* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color:  rgba(255, 255, 255, 0);

}   a {
    text-decoration: none;
    cursor: pointer;

}

:root {
    --color1: #70201e;
    --color2: #983034;
    --color3: #aa4651;
    --padding: 50px;

}   body {
    font-family: "Intel One Mono", monospace;
    font-optical-sizing: auto;
    font-weight: normal;
    font-style: normal;
}

nav {
    --y-position: 0;
    --background: transparent;
    --text-color: #ffffff;
    --transition-duration: 0s;
    --hover-color: var(--color1);

    position: fixed;
    z-index: 100;

    top: var(--y-position);
    left: 0;

    width: 100%;
    height: 70px;

    display: flex;
    flex-direction: row;

    justify-content: space-between;
    align-items: center;

    background: var(--background);
    padding: 5px 30px;

    transition: var(--transition-duration) ease-out;
    user-select: none;

    border: none;

}   nav.floating {
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;

}   nav a {
    display: flex;
    flex-direction: row;

    justify-content: center;
    align-items: center;

    gap: 5px;
    color: var(--text-color);

    font-family: monospace;
    font-size: 18px;

}   nav a img {
    width: 50px;
    aspect-ratio: 1/1;
    pointer-events: none;
    
}   nav ul {
    display: flex;
    flex-direction: row;

    justify-content: center;
    align-items: center;

    gap: 20px;
    list-style: none;

}   nav ul li {
    display: block;

}  nav ul li a {
    transition: .3s ease-out;

}  nav ul li a:hover {
    color: var(--hover-color);

}   nav #_mob-btn {
    position: relative;
    cursor: pointer;

    width: 50px;
    height: 35px;   

    transition: .2s ease-out;
    z-index: 950;

    display: none;
    
}   nav #_mob-btn span {
    position: absolute;

    width: 100%;
    height: 5px;

    background-color: var(--text-color);
    border-radius: 50px;

    transition: top .3s ease-out .15s,
                bottom .3s ease-out .15s,
                transform .3s ease-out,
                opacity .3s ease-out,
                background-color .3s ease-out;
    transform-origin: center;

}   nav #_mob-btn span:nth-child(1) {
    top: 0px;
    left: 0px;

}   nav #_mob-btn span:nth-child(2) {
    top: 15px;
    left: 0px;

}   nav #_mob-btn span:nth-child(3) {
    bottom: 0px;
    left: 0px;

}   nav #_mob-btn.close span {
    background-color: #983034;
    transition: top .3s ease-out,
        bottom .3s ease-out,
        transform .3s ease-out .15s,
        opacity .3s ease-out .2s,
        background-color .3s ease-out;

    
}   nav #_mob-btn.close span:nth-child(1) {
    top: 15px;
    transform: rotateZ(225deg);
    
}   nav #_mob-btn.close span:nth-child(2) {
    transform: rotateZ(225deg);
    opacity: 0;
    top: 15px;
    
}   nav #_mob-btn.close span:nth-child(3) {
    transform: rotateZ(135deg);
    bottom: 15px;

}

main {
    width: 100%;
    min-height: 100svh;
}

section {
    position: relative;
    width: 100%;
    padding: var(--padding);
    background: #ffffff;

}   section h2 {
    font-size: 28px;
    color: var(--color3);
}

@media (max-width: 550px) {
    :root {
        --padding: 30px;
    }

    nav {
        padding: 0 20px;
    }
    nav #_mob-btn {
        display: flex;

    }   nav ul.menu {
        position: fixed;
        z-index: 90;
        
        top: 0;
        right: -280px;

        background: rgba(255, 255, 255, 1);
        backdrop-filter: blur(10px);
        
        width: 280px;
        height: 100dvh;

        flex-direction: column;
        gap: 0;

        transition: .3s ease-out;
        
    }   nav ul.menu.show {
        transform: translateX(-100%);
        
    }   nav ul.menu li {
        width: 100%;
        
    }   nav ul.menu li a {
        width: 100%;
        height: auto;

        padding: 10px;
        background: transparent;

        text-align: center;
        transition: .3s ease-out;

        color: var(--color1);
        font-size: 20px;

    }   nav ul.menu li a:hover {
        background: #d9d9d9;
    }
}   