*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: playfair display, sans serif;
}
.container{
    width: 95vw;
    margin: 0 auto;
}
.background {
    background-color: rgba(85, 33, 33, 0.862);
    background-size: cover;
    min-width: 100vw;
    height: auto;
    min-height: 100vh;
    padding: 0 0 5vh 0;
}
a {
    text-decoration: none;
    color: black;
    text-align: center;
}
ul {
    list-style: none;
}
h2 {
    text-transform: uppercase;
}
/* Navigation */

.flex-row-1 {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    padding: 20px 35px;
}
nav {
    _margin-right: 10px;
}

.menu li {
    display: inline-block;
    width: 100px;
    height: 30px;
    _margin-top: 2vh;
    text-align: center;
    vertical-align: middle;
}

.menu li a {
    color: rgb(231, 221, 221);
}

.menu li:hover {
    background-color: rgb(104, 45, 45);
}

.dropdown ul {
    display: none;
    position: absolute;
    width: inherit;
    margin-top: 10px
}

.dropdown ul li {
    height: fit-content;
}
.dropdown ul:hover li{
    background-color: rgb (251,251,251);
}

.menu li:hover ul {
    display: block;
    background-color: rgb(104, 45, 45);
    _background-color: rgb(251,251,251);
    _border-radius: 5px;
}

.flex-row-1 .menu .dropdown li:hover {
    background-color: rgb(251, 251, 251);
    color: rgb(66, 19, 19) !important;
    vertical-align: middle
}
.flex-row-1 .menu .dropdown li:hover a{
    color: rgb(66, 19, 19) !important;
    vertical-align: middle
}
/* Navigation-end */

/* Upper-part-layout-start */
.upper-part-layout {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.5608368347338936) 0%, rgba(0, 0, 0, 0.23870798319327735) 25%, rgba(0, 0, 0, 0.9221813725490196) 100%), url(./../images/landing-students-smaller.jpg) no-repeat;
    background-size: cover;
    background-position: 25% 75%;
    padding: 0 0 5% 1%;
}

.upper-part-text {
    margin-left: 10%;
    color: rgb(231, 221, 221);
}
.upper-part-text h2{
    margin-top: 35px;
}
h1 {
    text-transform: uppercase;
    color: rgb(255, 254, 254);
    font-size: 2em;
}
#motto1 {
    font-size: 1.8em;
}
#location {
    text-transform: none;    
}
.yh-btn {
    margin-top: 13px;
    background-color: rgba(95, 129, 160, 0.873);
    padding: 1%;
    width: 150px;
    text-align: center;
    border-radius: 10px;
}
.yh-btn:hover{
    background-color: transparent;
    border: 2px rgba(95, 129, 160, 0.873) solid;
}
.yh-btn:hover a{
    color: rgba(95, 129, 160, 0.873) !important;
}

/* Upper-part-layout-end */
/* IUCA-start */
section.iuca, section.htc {
    width: 80%;
    margin: 0 auto;
}

.flex-row-3 {
    margin-top: 3vh;
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    text-align: center;
    _flex-grow: 0;
    _flex-wrap: wrap;
    /* background-color: rgba(133, 54, 54); */
    background-color: rgba(95, 129, 160, 0.873);
    padding: 4%;
}

.text {
    width: 100%;
    background-color: rgba(240, 255, 255, 0.795);
    border-radius: 10px;
}

.flex-row-3 p {
    padding: 2%;
    margin-left: 1%;
    _width: calc(100%/3 - 1%);
    line-height: 1.7rem;
    font-weight: 500;
    height: fit-content;
}

h3 {
    margin: 2vh 0 1vh 0;
    font-size: xx-large;
}
/* Gallery-Activities */
.gallery-small {
    display: none;
}

.gallery {
    display: grid;
    place-content: center;
    min-height: 70vh;
    background: #0000002e;
    border-radius: 10px;
    margin-top: 5vh;
    text-align: center;
    color: white;
}
#love{
    margin-left: -20%;
}
#study{
    margin-right: -10%;
}

.gallery h2 {
    z-index: 3;
    text-transform: none;
}

.gallery .slider {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    gap: 1em;
    width: 100%;
    height: 300px;
    transition: all 400ms;
}

.gallery .slider:hover .box {
    filter: grayscale(100%) opacity(24%);
}

.pic-gal {
    width: 100%;
}

.box {
    position: relative;
    background: var(--img) center center;
    background-size: cover;
    transition: all 400ms;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery .slider .box:hover {
    filter: grayscale(0%) opacity(100%);
}

.gallery .slider:has(.box-1:hover) {
    grid-template-columns: 3fr 1fr 1fr 1fr 1fr;
}

.gallery .slider:has(.box-2:hover) {
    grid-template-columns: 1fr 3fr 1fr 1fr 1fr;
}

.gallery .slider:has(.box-3:hover) {
    grid-template-columns: 1fr 1fr 3fr 1fr 1fr;
}

.gallery .slider:has(.box-4:hover) {
    grid-template-columns: 1fr 1fr 1fr 3fr 1fr;
}

.gallery .slider:has(.box-5:hover) {
    grid-template-columns: 1fr 1fr 1fr 1fr 3fr;
}

.gallery .box:nth-child(odd) {
    transform: translateY(-16px);
}

.gallery .box:nth-child(even) {
    transform: translateY(16px);
}

.box::after {
    content: attr(data-text);
    position: absolute;
    bottom: 20px;
    background: #000;
    color: #fff;
    padding: 10px 10px 10px 14px;
    letter-spacing: 4px;
    text-transform: uppercase;
    transform: translateY(60px);
    opacity: 0;
    transition: all 400ms;
}

.box:hover::after {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 400ms;
}
.video video{
    width: 100%;
    _margin-bottom: 5vh;
    border-radius: 10px;
}
/* IUCA-end */

/* HTC-start */

/* Footer */

footer .flex-row-7{
    display: flex;
    justify-content: space-evenly;
    background-color: rgb(105, 105, 105);
    color: white;
    padding: 10px;
    border-top-style: solid;
    border-top-color: black;
}
/* Brealpoints-start */
@media screen and (min-device-width:498px) and (max-device-width: 768px) {
    .gallery {
        display: grid;
        place-content: center;
        min-height: 40vh;
        background: #0000002e;
        border-radius: 10px;
        margin-top: 5vh;
        margin-bottom: 2vh;
        text-align: center;
        color: white;
    }
    .gallery .slider {
        position: relative;
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
        gap: 0.7em;
        width: 100%;
        height: 39vh;
        transition: all 400ms;
    }
    .gallery h2 {
        z-index: 3;
        text-transform: none;
        font-size: 1.1em;
    }
}
@media screen and (min-device-width: 320px) and (max-device-width: 498px) {
    .flex-row-1 {
        padding: 20px 15px
    }
    .menu li {
        width: 70px;
        _margin-top: 2vh
    }
    .menu li a {
        font-size: 0.8em
    }
    #motto1 {
        font-size: 1.5em
    }
    h1 {
        font-size: 0.9em
    }
    #location {
        font-size: 0.7em
    }
    .upper-part-layout {
        padding: 0 0 5% 0
    }
    .yh-btn {
        width: 100px;
        font-size: 0.7em;
        border-radius: 10px;
    }
    .upper-part-text h2{
        margin-top: 5px;
    }
    /* Central Part */
    .flex-row-3 h3{
        font-size: 0.8em;
    }
    .flex-row-3 p{
        font-size: 0.8em;
        font-weight:lighter;
        line-height: 20px;
    }
    section.iuca, section.htc {
        width: 90%;
        margin: 0 auto;
    }
    .gallery, .gallery-2 {
        display: none;
    }

    .gallery-small {
        display: block;
        margin-top: 5vh;
        color: white;
        text-align: center;
        background-color: rgba(95, 129, 160, 0.873)
    }

    .gallery-small .activities {
        display: flex;
        flex-direction: row;
        justify-content: space-evenly;
        align-items: center;
        _margin-bottom: 1vh;
    }

    .gallery-small .activities .photo, .activ-text{
        width: calc(100%/3);
    }
    .activ-text{
        margin-bottom: 4px;
    }

    .gallery-small .activities .photo img {
    width: 26vw;
    height: 10vh;
    }
    h2 {
    font-size: 0.8em;
    margin-bottom: 1vh;
    color: rgba(255, 250, 250, 0.971);
    }
    .activities p{
        text-align: center;
        font-size: 0.3em;
        text-transform: capitalize;
    }
    .iuca video{
        border-radius: 0;
        margin-top: 10px;
    }
    footer .flex-row-7{
        padding: 4px;
    }
    footer .flex-row-7 p{
    font-size: 0.6em;
    _padding: 0.5%;
    text-align: center;
    }
}
/* Breakpoints-end */