@import url('../assets/styles/theme.css');
@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');

@media screen and (max-width: 319.5px) {

    * {
        display: none;
        overflow: hidden;
    }
}

@media screen and (min-width: 320px) {

    * {
        font-family: 'Poppins', sans-serif;
    }

    html {
        scroll-behavior: smooth;
    }

    input {
        cursor: pointer;
    }

    img {
        -webkit-user-select: none;
        -khtml-user-select: none;
        -moz-user-select: none;
        -o-user-select: none;
        user-select: none;
    }

    /* Nav Bar - section */

    nav,
    nav div:nth-child(3) {
        display: flex;
    }

    nav {
        z-index: 20;
        justify-content: space-evenly;
        background-color: var(--first-color);
        height: 65px;
    }

    nav div:nth-child(1),
    nav > a {
        align-self: center;
        color: var(--second-color);
    }

    nav div:nth-child(1) img {
        border-radius: 50%;
        height: 75px;
        width: 85px;
    }

    nav > a {
        font-size: 0.9rem;
    }
    
    a {
        cursor: pointer;
        text-decoration: none;
        color: var(--first-color);
        font-size: 1.15em;
        font-weight: 400;
        transition: 200ms;
    }

    a:hover {
        color: var(--fourth-color);
    }

    ul {
        padding: 0;
        list-style-type: none;
    }

    nav div:nth-child(3) {
        z-index: 1;
        flex-direction: column;
        position: relative;
        top: 25px;
        left: 25px;
        margin : 0 40px 0 0;
        user-select: none;
        -webkit-user-select: none;
    }

    /* Burger - section */

    nav div:nth-child(3) input
    {
        z-index: 2;
        position: absolute;
        cursor: pointer;
        width: 40px;
        height: 32px;
        opacity: 0;
    }

    nav div:nth-child(3) span
    {
        z-index: 1;
        position: relative;
        width: 30px;
        height: 2px;
        margin-bottom: 5px;
        background: var(--second-color);
        border-radius: 3px;
        transform-origin: 5px 0px;
        transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
                    background 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
                    opacity 0.55s ease;
    }

    nav div:nth-child(3) span:first-child
    {
        transform-origin: 0% 0%;
    }

    nav div:nth-child(3) span:nth-last-child(2)
    {
        transform-origin: 0% 100%;
    }

    nav div:nth-child(3) input:checked ~ span
    {
        opacity: 1;
        transform: rotate(45deg) translate(-3px, -1px);
        background: var(--second-color);
    }
    
    nav div:nth-child(3) input:checked ~ span:nth-last-child(3)
    {
        opacity: 0;
        transform: rotate(0deg) scale(0.2, 0.2);
    }

    nav div:nth-child(3) input:checked ~ span:nth-last-child(2)
    {
        transform: rotate(-45deg) translate(0, -1px);
    }

    nav ul
    {
        z-index: 16;
        position: absolute;
        left: -175px;
        width: 270px;
        height: 320px;
        box-shadow: 0 0 10px var(--first-color);
        margin: 40px 0 0 -50px;
        padding: 5px 25px 0 25px;
        background-color: var(--second-color);
        transform-origin: 0% 0%;
        transform: translate(0, -150%);
        transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
        -webkit-font-smoothing: antialiased;
    }

    nav ul li
    {
        padding: 2px 0;
        transition-delay: 2s;
    }

    nav ul li a {
        font-size: 1.3em;
    }

    nav div:nth-child(3) input:checked ~ ul
    {
        transform: none;
    }

    nav ul li:nth-child(1) hr {
        width: 75px;
    }

    nav ul li:nth-child(2) hr {
        width: 168px;
    }

    nav ul li:nth-child(3) hr {
        width: 210px;
    }

    nav ul li:nth-child(4) hr {
        width: 177px;
    }

    nav ul li:nth-child(5) hr {
        width: 172px;
    }

    nav ul li:nth-child(6) hr {
        width: 122px;
    }

    nav ul li:nth-child(7) hr {
        width: 70px;
    }

    nav ul li:nth-child(8) {
        padding: 8px 0;
    }

    nav ul li:nth-child(8) a {
        padding: 0 16px 0 0;
    }

    nav ul li:nth-child(8) a img {
        height: 35px;
        width: 35px;
    }

    nav ul li:nth-child(8) a img:hover {
        background-color: var(--third-color);
        border: 2px solid var(--fourth-color);
    }

}

@media screen and (min-width: 399px) {

    nav > a {
        font-size: 1rem;
    }
}

@media screen and (min-width: 499px) {

    nav > a {
        font-size: 1.2rem;
    }
}

@media screen and (min-width: 599px) {

    nav > a {
        font-size: 1.4rem;
    }
}

@media screen and (min-width: 699px) {

    nav > a {
        font-size: 1.6rem;
    }
}