/* 
 * STRUCTURE:
 * DESKTOP CSS
 * LAYOUTS
 * THEMES
 */


/* DESKTOP CSS */
@font-face {
    font-family: IRANSans;
    src: url(IRANSansUltraLight.ttf); 
} 
body {
    font-family: IRANSans;
    animation-timing-function: ease;
}


main {
    transition: opacity 0.5s, filter 0.5s;
}


.sidenav {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 2;
    overflow: hidden;
    transition: 0.5s;
}
.sidenav_container {
    position: relative;
    top: 100px;
    width: 100%;
    height: 100vh;
    overflow-y: hidden;
    transition: 0.5s;
}
.sidenav_links {
    width: 100%;
    margin-bottom: 40px;
}
.sidenav_links a {
    font-weight: 400;
    font-size: 28px;
    letter-spacing: 0.03em;
    text-align: right;
    text-decoration: none;
    text-align: center;
    cursor: pointer;

    padding: 14px 32px;
    display: block;
    transition: 0.3s;
}
.sidenav_container .social_container {
    justify-content: center;
}
.sidenav_container .youtube,
.sidenav_container .instagram,
.sidenav_container .twitter,
.sidenav_container .discord,
.sidenav_container .github {
    margin-left: 10px;
    margin-right: 10px;
    width: 30px;
    height: 30px;
    background-size: cover;
    background-repeat: no-repeat;
    display: inline-block;
    transition: all 0.2s;
}


.hamburger {
    position: absolute;
    top: 0;
    right: 0;

    margin: 15px;
    display: none;
    cursor: pointer;
    z-index: 10;
}
/*ANIMATED HAMBURGER*/
.bar1, .bar3 {
    width: 25px;
    height: 3px;
    margin: 8px 0;
    transition: 0.4s;

    animation-name: blank_width 0.1s 0s, hamburger_in 0.5s 0.1s;
    animation-fill-mode: forwards;
}
.change .bar1 {
    -webkit-transform: rotate(-45deg) translate(-5px, 4px);
    transform: rotate(-45deg) translate(-5.5px, 4px);
}
.change .bar3 {
    -webkit-transform: rotate(45deg) translate(-4px, -3px);
    transform: rotate(45deg) translate(-3.5px, -2.5px);
}

/* FOOTER */
.social_container {
    display: flex;
}
footer .youtube,
footer .instagram,
footer .twitter,
footer .discord,
footer .github {
    margin-right: 20px;
    width: 28px;
    height: 28px;
    background-size: cover;
    background-repeat: no-repeat;
    display: inline-block;
    transition: all 0.2s;
}
.youtube:hover,
.instagram:hover,
.twitter:hover,
.discord:hover,
.github:hover {
    filter: brightness(0.8);
}
.youtube {
    background-image: url("images/footer/youtube_dark.png");
}
.instagram {
    background-image: url("images/footer/instagram_dark.png");
}
.twitter {
    background-image: url("images/footer/twitter_dark.png");
}
.discord {
    background-image: url("images/footer/discord_dark.png");
}
.github {
    background-image: url("images/footer/github_dark.png");
}


/* LAYOUTS CSS */

@media screen and (max-width: 800px) {
    .sidenav_container button {
        font-size: 20px
    }
}

/* COMPRESS FOOTER INTO VERTICAL STACK */
@media screen and (max-width: 750px) {
    .hamburger {
        display: block;
    }
    footer {
        display: none;
    }
    .youtube,
    .instagram,
    .twitter,
    .discord,
    .github {
        margin-right: 30px;
    }
}

/* SHRINK DROPDOWN MENU TEXT FOR SHORT SCREENS (SUB 450PX HEIGHT) */
@media screen and (max-height: 450px) {
    .sidenav_container {
        overflow-y: auto;
    }
    .sidenav_container a {
        font-size: 20px
    }
}

/* SHRINK FOOTER FOR SMALLER PHONES */
@media screen and (max-width: 400px) {
    .youtube,
    .instagram,
    .twitter,
    .discord,
    .github {
        margin-right: 24px;
    }
}


/* THEMES */

.sidenav {
    background-color: rgb(36, 36, 36);
}
.sidenav_links a {
    color: rgb(199, 199, 199);
    color: rgb(219, 219, 219, 0.5);
}
.sidenav_links .current {
    color: rgb(219, 219, 219);
}
.sidenav_links a:hover,
.sidenav_container a:focus {
    color: #ffeccf;
    color: rgb(219, 219, 219);
}
.bar1,
.bar2,
.bar3 {
    background-color: rgb(44, 44, 44);
}