@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');

:root {

    --header-height: 3rem;
    --nav-width: 68px;
    --first-color-light: #a8a8a8;
    --font-color: #ebebeb;
    --background-color: #121212;
    --navbar-color: #060606;
    --body-font: 'Raleway', sans-serif;
    --normal-font-size: 1rem;
    --z-fixed: 100;
    --button-bg-color: #ebebeb;
    --button-shadow:
        -6px -6px 8px rgba(255, 255, 255, 0.9),
        5px 5px 8px rgba(0, 0, 0, 0.07);
}


*,
::before,
::after {
    box-sizing: border-box
}

body {
    position: relative;
    margin: var(--header-height) 0 0 0;
    padding: 0 1rem;
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    transition: .5s;
    background-color: var(--background-color);
}

a {
    text-decoration: none
}

.header {
    width: 100%;
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    background-color: #0d0d0d;
    z-index: var(--z-fixed);
    transition: .5s;
    color: var(--font-color);
}

.header_toggle {
    color: var(--first-color);
    font-size: 1.5rem;
    cursor: pointer
}

.header_img {
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden
}

.header_img img {
    width: 40px
}

.l-navbar {
    position: fixed;
    top: 0;
    left: -30%;
    width: var(--nav-width);
    height: 100vh;
    background-color: var(--navbar-color);
    padding: .5rem 1rem 0 0;
    transition: .5s;
    z-index: var(--z-fixed)
}

.nav {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden
}

.nav_logo,
.nav_link {
    display: grid;
    grid-template-columns: max-content max-content;
    align-items: center;
    column-gap: 1rem;
    padding: .5rem 0 .5rem 1.5rem
}

.nav_logo {
    margin-bottom: 2rem
}

.nav_logo-icon {
    font-size: 1.25rem;
    color: var(--font-color)
}

.nav_logo-name {
    color: var(--font-color);
    font-weight: 700
}

.nav_link {
    position: relative;
    color: var(--first-color-light);
    margin-bottom: 1.5rem;
    transition: .3s
}

.nav_link:hover {
    color: var(--font-color)
}

.nav_icon {
    font-size: 1.25rem
}

.show {
    left: 0
}

.body-pd {
    padding-left: calc(var(--nav-width) + 1rem)
}

.active {
    color: var(--font-color)
}

.active::before {
    content: '';
    position: absolute;
    left: 0;
    width: 2px;
    height: 32px;
    background-color: var(--font-color)
}

.height-100 {
    height: 100vh
}


html {
    box-sizing: border-box;
    font-size: 18px;
    font-family: "Roboto", sans-serif;
    color: var(--font-color);

}

#greeting {
    font-weight: bold;
    font-size: 24px;
}

/* For toggle theme */

.checkbox {
    display: none;
}

.checkbox-label {
    background-color: #494949;
    width: 50px;
    height: 26px;
    border-radius: 50px;
    position: relative;
    padding: 5px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fa-moon {
    color: #f1c40f;
}

.checkbox-label .ball {
    background-color: #fff;
    width: 22px;
    height: 22px;
    position: absolute;
    left: 2px;
    top: 2px;
    border-radius: 50%;
    transition: transform 0.2s linear;
}

/* For statistics */
.container,
.container2 {
    width: 500px;
    height: 500px;
    border-radius: 24px;
    background-color: #1f1f1f;
    box-shadow: 5px 20px 50px #000;
    margin-top: 100px;
    margin-bottom: 20px;
}

.w {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    margin-top: -20px;
    margin-bottom: -20px;
}

h1 {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bolder;
    font-size: 36px;
    top: 10%;
}

.stats {
    position: relative;
    padding: 30px;
    font-size: 22px;
    top: 9%;
}

#logo {
    color: #1d9bf0;
}

/*Search box*/
.search {
    display: flex;
}

.box {
    height: 55px;
    display: flex;
    cursor: pointer;
    padding: 10px 20px;
    background: #212121;
    border-radius: 30px;
    align-items: center;
    box-shadow: 0px 10px 25px rgb(0, 0, 0);
    margin-top: 20px;
}

.box:hover input,
.box:focus-within input {
    width: 400px;
}

.box input {
    width: 0;
    outline: none;
    border: none;
    font-weight: 500;
    transition: 0.8s;
    background: transparent;
    color: #fff;
    font-size: 16px;
}

.box a .fas {
    color: #1d9bf0;
    font-size: 18px;
}

/*Container of Grade 11 & 12*/
.grade11,
.grade12 {
    width: 400px;
    height: 400px;
    border-radius: 24px;
    background-color: #1f1f1f;
    box-shadow: 5px 20px 50px #000;
    margin-top: 100px;
    margin-bottom: 20px;
    color: #fff;
    display: flex;
    justify-content: center;
}

.grade11:hover,
.grade12:hover {
    background: #272727;
    box-shadow: 5px 20px 50px #151515;
}

.grade_title {
    font-size: 45px;
    margin-bottom: 40%;
}

/*Sections*/
.section_divs {
    width: 200px;
    height: 200px;
    border-radius: 24px;
    background-color: #1f1f1f;
    box-shadow: 5px 20px 50px #000;
    margin-top: 100px;
    margin-bottom: 20px;
    color: #fff;
    display: flex;
    justify-content: center;
}

.section_divs:hover {
    background: #272727;
    box-shadow: 5px 20px 50px #151515;
}

.mainContainer {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
}

.section {
    font-size: 30px;
    margin-bottom: 40%;
}


/* Responsive adjustments */
@media screen and (max-width: 500px) {

    .box:hover input,
    .box:focus-within input {
        width: 200px;
    }

    .box {
        height: 40px;
    }

    .box input {
        font-size: 14px;
    }
}

@media (max-width: 768px) {

    .container,
    .container2 {

        width: 80%;
        height: auto;
        transform: none;
        margin: 0 auto;
        margin-top: 100px;
        margin-bottom: 20px;

    }

    h1 {
        top: 6%;
    }

    .stats {
        position: relative;
        padding: 30px;
        font-size: 22px;
        top: 4%;
    }


}

@media screen and (min-width: 768px) {
    body {
        margin: calc(var(--header-height) + 1rem) 0 0 0;
        padding-left: calc(var(--nav-width) + 2rem)
    }

    .header {
        height: calc(var(--header-height) + 1rem);
        padding: 0 2rem 0 calc(var(--nav-width) + 2rem)
    }

    .header_img {
        width: 40px;
        height: 40px
    }

    .header_img img {
        width: 45px
    }

    .l-navbar {
        left: 0;
        padding: 1rem 1rem 0 0
    }

    .show {
        width: calc(var(--nav-width) + 156px)
    }

    .body-pd {
        padding-left: calc(var(--nav-width) + 188px)
    }
}