.main_nav {
    display: flex;
    gap: 1rem;
}

.main_nav a {
    color: white;
    font-size: 1.1rem;
    font-family: Aeonik Pro, sans-serif;
    text-decoration: none;
    padding: 9px;
    transition: 0.1s;
}

.main_nav a:hover {
    background-color: #ffffff31;
    border-radius: 30px;
    padding: 9px;
    transition: 0.1s;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.upper_content * {
    opacity: 0;
    animation: fadeUp 0.6s ease-out forwards;
}

.main_nav a:nth-child(1) { animation-delay: 0.1s; }
.main_nav a:nth-child(2) { animation-delay: 0.2s; }
.main_nav a:nth-child(3) { animation-delay: 0.3s; }
.main_nav a:nth-child(4) { animation-delay: 0.4s; }
.main_nav a:nth-child(5) { animation-delay: 0.5s; }

.log_buttons a:nth-child(1) { animation-delay: 0.6s; }
.log_buttons a:nth-child(2) { animation-delay: 0.7s; }

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 110;
    position: absolute;
    left: 20px;
    top: 20px;
    opacity: 1 !important;
    animation: none !important;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: white;
    border-radius: 10px;
    display: block;
}

.close_menu {
    display: none;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
        position: absolute;
        left: 20px;
        top: 50%;
        transform: translateY(-50%);
        margin: 0;
    }

    .main_nav {
        position: fixed;
        top: 0;
        left: -100%;
        height: 100vh;
        width: 250px;
        background-color: #111;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.3s ease-in-out;
        z-index: 100;
        box-shadow: 2px 0 10px rgba(0,0,0,0.5);
    }

    .main_nav.active {
        left: 0;
    }

    .log_buttons {
        margin-left: auto;
        display: flex;
        align-items: center;
        height: 100%;
    }

    .log_button {
        margin: 0;
        width: 90px; 
        font-size: 0.85rem;
        padding: 8px 0;
    }
    
    .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

    .close_menu {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        background: none;
        border: none;
        color: white;
        font-size: 2.5rem;
        cursor: pointer;
    }
}