/*
home screen specific styling
*/

.background-img1 h1{
    position:absolute;
    bottom:0%;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 20px;
    padding: 10px 20px;
    /*font-size: clamp(.5rem, 2rem, 3rem);*/
    font-size:2.5rem;
}
.background-img1{
    width: 100%;
    overflow: hidden;
    position: relative;
    height: auto;
    display:flex;
    justify-content: center;
}
.background-img1 img {
    width: 100%;
    max-height: 720px;
    object-fit: cover;
    margin-bottom:-3%;
}
a{
    text-decoration: none;
}

/*ipad or smaller image styling*/
@media (max-width: 768px) {
    .background-img1{
        width: 100%;
        overflow: hidden;
        position: relative;
        height: auto;
    }
    .background-img1 img{
        width: 140%; /* 100% + 2x20% for cropping sides */
        max-width: none;
        display: block;
        margin-left: -20%; /* crops 20% on the left */
        margin-right: -20%
    }
    .background-img1 h1{
        font-size: 1.5rem;
        margin-left: 20px;
        margin-right: 20px;
    }
    #navMenu{
        height:0px;
    }
}

/* Popup */
.popup {
    background-color: rgba(0, 0, 0, 0.8);
    opacity: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: all 0.3s ease-in-out;
    z-index: -1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup.active {
    opacity: 1;
    z-index: 999;
}
.popup-content {
    background-color: #333;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    max-width: 500px;
    width: 100%;
    position: relative;
}

.popup-content h2 {
    margin-top: 0;
}
.popup-content p {
    margin: 10px 0;
    line-height: 1.5;
}

.close {
    background-color: #575757;
    color: white;
    border: none;
    font-weight: bold;
    padding: 10px 15px;
    font-size: 15px;
    cursor: pointer;
    border-radius: 50px;
    position: absolute;
    top: 15px;
    right: 15px;
    margin-top: 0;
}

#openPopup.news{
    position: fixed;
    top:70px;
    right:10px;
    z-index:1000;
    transition: all 0.3s ease-in-out;
}

/* Mobile screen popup */
@media (max-width: 480px) {
    #openPopup.news{
        top: auto;
        background-color: rgb(143, 143, 143);
        right: 0;
        bottom: 0px;
        width: 100%;
        height: 60px;
        border-radius:0px;
    }
    #popupBtnHolder{
        display: flex;
        justify-content: center;
    }
    #openPopup.active {
       display:none;
    }
    iframe.center{
        display:none;
    }
}