@font-face {
    font-family: 'montserrat';
    src: url('./assets/fonts/Montserrat-VariableFont_wght.ttf');
}
@font-face {
    font-family: 'brighter';
    src: url('./assets/fonts/brighter-sans-regular.otf');
}

body {
    padding: 0;
    margin: 0;
    font-family: 'montserrat';
}

nav {
    background-color: #454b;
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    height: 100px;
    z-index: 1;
}
.nav-left {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
    flex: 5;
}
h1 {
    font-family: 'brighter';
    font-weight: 700;
    font-size: medium;
}
#logo {
    width: 30px;
    margin: 8px;
}
.open {
    display: none;
}
.links {
    margin: 6px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    flex: 8;
}
nav a, nav p {
    text-decoration: none;
    color: white;
    padding: 6px;
    transition-duration: 0.4ms;
    font-family: 'brighter';
}
h2 {
    color: white;
}
#apply {
    background-color: green;
    color: aliceblue;
    text-decoration: none;
    border-radius: 1000px;
    padding: 12px;
    border: none;
    width: 18em;
    margin: 8px;
    font-size: 1em;
    letter-spacing: 1px;
    cursor: pointer;
    transition-duration: 400ms;
    align-self: center;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    z-index: 1;
    gap: 5px;
}
#apply:hover {
    background-color: darkgreen;
    gap: 10px;
}
#apply:active {
    transform: translateY(4px);
}
nav a:hover {
    color: lightgreen;
    font-weight: bold;
}
.active {
    font-weight: bold;
    color: chartreuse;
    cursor: pointer;
    font-family: 'brighter';
    margin: 0;
}

#div {
    position: relative;
    overflow: hidden;
    padding: 2em;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
#bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    z-index: -1;
}

#div p, h2 {
    color: #333;
    margin: 10px auto;
}
#div a {
    position: relative;
    background-color: green;
    color: whitesmoke;
    text-decoration: none;
    padding: 6px;
}

p {
    font-size: 1.1em;
    margin: 10px;
}
span {
    color: greenyellow;
}
#img {
    width: 25%;
    float: left;
    margin-right: 15px;
    overflow: hidden;
    margin: 10px;
}
#img img {
    width: 100%;
    transition-duration: 500ms;
    cursor: pointer;
}
#img img:hover {
    scale: 1.2;
}
.scale {
    animation: inc 1s 1;
}
@keyframes inc {
    from{transform: rotateZ(-90deg) scale(0);}
    to{transform: rotateZ(0deg) scale(1);}
}

.cards {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    overflow-x: scroll;
}
.cards::-webkit-scrollbar {
    display: none;
}
.card {
    flex: 1;
    color: whitesmoke;
    font-weight: bold;
    font-size: large;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 150px;
    height: 250px;
    background-color: green;
    outline: 2px solid whitesmoke;
}

i {
    font-size: 3em;
}
.number {
    margin-bottom: 0; 
    font-weight: 900; 
    font-size: xx-large;
}
.descr {
    text-align: center; 
    font-size: larger;
}
#admissions {
    background: url('./assets/sir-sharif-and-students.jpg');
    background-size: contain;
    padding: 35px;
    position: relative;
    display: flex;
    flex-direction: column;
    z-index: 0;
}
#admissions h2 {
    font-size: xx-large;
    color: white;
    z-index: 1;
}
#admissions p {
    font-size: larger;
    color: white;
    z-index: 1;
}
.overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #003d;
    top: 0;
    left: 0;
    z-index: 0;
}
#mission {
    background-color: green;
    color: white;
    padding: 35px;
    font-weight: 700;
    font-size: larger;
    line-height: 1.8em;
    display: flex;
    flex-direction: column;
}
#mission a {
    color: green;
    background-color: white;
    padding: 8px 12px;
    align-self: center;
    display: inline-block;
    text-decoration: none;
    border-radius: 8px;
}
#mission a:hover {
    animation: bounce 0.2s 1;
}
@keyframes bounce {
    0%{transform: translateY(-4px);}
    50%{transform: translateY(4px);}
    100%{transform: translateY(-4px);}
}

#highlights h2 {
    color: #333;
    font-weight: 800;
    font-size: x-large;
    text-align: center;
}
.highlights {
    display: grid;
    grid-template-columns: auto auto auto auto;
    gap: 6px;
    padding: 8px;
}
.highlights a {
    overflow: hidden;
    height: 200px;
}
.highlights video, .highlights img {
    width: 100%;
    height: 100%;
    transition-duration: 400ms;
    object-fit: cover;
}
.highlights video:hover, .highlights img:hover {
    transform: scale(1.4);
}

.subs {
    width: 40%;
    text-decoration: none;
    text-align: center;
    color: aliceblue;
    background-color: green;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 10px;
    margin: 10px auto;
    border-radius: 5px;
    transition-duration: 400ms;
}
.subs:hover {
    background-color: darkgreen;
}

footer {
    background-color: #1D2330;
    margin-bottom: 0;
    padding: 6px;
    color: #F8F9FA;
}
.footer-sections {
    display: flex;
    flex-direction: row;
    align-items: start;
    justify-content: space-around;
}
.footer-links {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: start;
}
footer p, .footer-link, footer i, .socials a {
    font-size: small;
    text-align: center;
    text-decoration: none;
    color: #F8F9FA;
}
.footer-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    text-align: start;
    transition-duration: 400ms;
    padding: 4px;
}
.footer-link:hover {
    text-decoration: underline;
    font-weight: 600;
}
.socials {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 3px;
}
.socials i {
    width: 30px;
    height: 30px;
    transition-duration: 400ms;
    font-size: large;
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.socials i:hover {
    color: #1D2330;
    background-color: #F8F9FA;
}
footer hr {
    width: 95%;
    border: none;
    outline: none;
    height: 2px;
    background-color: #505050;
    border-radius: 100px;
}
#year {
    color: #F8F9FA;
}

@media only screen and (max-width: 720px) {
    .open {
        display: inline;
        width: fit-content;
        padding: 3px;
        text-align: right;
        color: aliceblue;
        font-size: 2em;
        font-weight: bold;
        cursor: pointer;
    }
    #close {
        font-size: 3em;
        font-weight: 600;
        align-self: flex-end;
    }
    .links {
        display: none;
        flex-direction: column;
        align-items: center;
        justify-content: start;
        position: fixed;
        background-color: #222d;
        top: 0;
        left: 0;
        width: 100%;
        height: 1000px;
        margin: 0;
        padding: 0;
    }
    .links a, .links p {
        font-size: x-large;
    }
    /* #div {
        z-index: -10;
    } */
    .number {
        margin-bottom: 0; 
        font-weight: 700; 
        font-size: x-large;
    }
    .descr {
        text-align: center; 
        font-size: medium;
    }
    #admissions {
        background-size: cover;
    }
    #img {
        width: 50%;
    }
    .subs {
        width: 70%;
    }
    .footer-sections {
        display: grid;
        grid-template-columns: auto auto;
        align-items: center;
        justify-content: space-around;
    }
}

@media only screen and (max-width: 500px) {
    .footer-sections, .footer-links, .footer-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
    }
}