/* overlay buttons custom feature for homepage */

/* must use extra specific selector to 
override margin on lists */
ul.overlay-buttons.overlay-buttons {
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    margin: 15px 0 20px;
    list-style-type: none;
    -webkit-justify-content: space-between;
    justify-content: space-between;
}

.overlay-buttons-button {
    position: relative;
    width: 19%;
    box-sizing: border-box;
    
    /* add padding to bottom of button so that text
     does not overlap image */
    background-color: #777;
    padding-bottom: 75px;
}

.overlay-buttons img {
    display: block;
    width: 100%;
    height: auto;
}

/* must use extra specific selector to 
override styling on links */
.overlay-buttons .overlay-buttons-overlay {
    -ms-align-items: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
    background-color: #95001a;
    -ms-transition: 1s;
    -moz-transition: 1s;
    -webkit-transition: 1s;
    transition: 1s;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 75px;
    width: 100%;
    -ms-transition: 0.5s;
    -moz-transition: 0.5s;
    -webkit-transition: 0.5s;
    transition: 0.5s;
    overflow: hidden;
    color: #fff;
    background-color: #95001a;
    text-align: center;
    font-family: "Lora", serif;
    font-style: italic;
    font-size: 1.5rem;
}

.overlay-buttons-text {
    position: absolute;
    overflow: hidden;
    top: 50%;
    left:50%;
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
}

.overlay-buttons-link:hover .overlay-buttons-overlay {
    height: 100%;
    background-color: #eaa900;
    background: linear-gradient(0deg, rgba(234,169,0,1) 0%, rgba(234,169,0,1) 75px, rgba(234,169,0,0.9) 95px, rgba(234,169,0,0.9) 100%);
    color: #243069;
}

@media screen and (max-width: 1000px) {
    
    .overlay-buttons .overlay-buttons-overlay {
        font-size: 1.3rem;
    }
    
}

@media screen and (max-width: 800px) {
    .overlay-buttons .overlay-buttons-overlay {
        font-size: 1.1rem;
    }
}

@media screen and (max-width: 600px) {
    
    ul.overlay-buttons.overlay-buttons {
        -webkit-flex-wrap: wrap;
        flex-wrap: wrap;
        -webkit-justify-content: center;
        justify-content: center;
    }
    
    .overlay-buttons-button {
        -webkit-flex: 0 1 216px;
        flex: 0 1 216px;
        margin: 10px;
    }
}
