@font-face {
    font-family: healthyAfrica;
    src:url("../font/Kabrio-Extrabold-Italic-trial.ttf");
}
@font-face {
    font-family: healthyAfricalite;
    src:url("../font/DHannaSoft-BoldItalic.ttf");
}

/* location */
#location{
    display: flex;
    justify-content: center;
}
#location .title,
#location .subtitle{
    position: absolute;
    text-align: center;
}
#location .title h3{
    font-size: 3rem;
    color: #2596a0;
    margin-top: 50px;
}
#location .subtitle h5{
    font-size: 1rem;
    margin-top: 120px;
}
#location .container{
    min-width: 100%;
    padding: 0;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    height: 100vh;
}
#location .box{
    height: 100%;
    min-width: 200px;
    padding: 20px;
    flex: 1;
    transition: 1s;
    display: flex;
    justify-content: center;
    align-items: center;
}
#location .box:hover{
    flex: 2;
}

#location .box1{
    background: linear-gradient(rgba(179, 255, 249, 0.466), rgba(143, 198, 250, 0.5)), url("../img/pexels-polina-tankilevitch-3873143.jpg");
}
#location .box2{
    background: linear-gradient(rgba(194, 252, 247, 0.842),rgba(168, 228, 230, 0.5)), url("../img/pexels-pavel-danilyuk-6753427.jpg");
}
#location .box1,
#location .box2{
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
#location .box ul{
    list-style-type: none;
    margin-top: 150px;
    display: none;
    opacity: 0;
}
#location .box ul li a{
    font-size: 1rem;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}
#location .box:hover ul{
    display: block;
    opacity: 1;
}
#location .sponsor{
    position: absolute;
    bottom: 0;
    width: 300px;
    object-fit: cover;
}
#location .sponsor img{
    width: 100%;
}
@media screen and (max-width: 1023px) {
    #location .box:hover{
        flex: 1;
    }
}
@media screen and (max-width: 399px) {
    #location .subtitle{
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    #location .title h3{
        font-size: 1.7rem;
    }
    #location .subtitle h5{
        margin-top: 0;
        font-size: 1rem;
    }
    #location .box{
        height: 50%;
    }
    #location .sponsor{
        width: 200px;
    }
}