.header {
    position: fixed;
    top: -120px;
    width: 100%;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    opacity: 0;
    z-index: 55;
}

.header.active {
    animation: showHeader 1s ease-in-out forwards;
}

@keyframes showHeader {
    from {
        top: -120px;
        opacity: 0;
    }
    to {
        top: 0;
        opacity: 1;
    }
}

.header-red {
    position: absolute;
    top: 0;
    width: 100%;
    height: auto;
    z-index: 0;
}

.header-yellow {
    position: absolute;
    top: 0;
    width: 100%;
    height: auto;
    z-index: -1;
}

.logo {
    position: absolute;
    top: 14%;
    width: 10%;
    margin-left: 6.9%;
    z-index: 1;
    cursor: pointer;
}

.header-container {
    position: relative;
    right: 0%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6% 6% 0.6% 35%;
    box-sizing: border-box;
}

.nav-buttons {
    display: flex;
    gap: 32px;
    margin-right: auto;
}

.nav-button {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-family: 'Circe Rounded', Arial, sans-serif;
    font-weight: 400;
    font-size: 2.4vh;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center;
    vertical-align: middle;
    padding: 0;
    z-index: 1;
}

@media screen and (max-width: 1700px) {
    .nav-button {
        font-size: 1.2em;
    }
}



.right-buttons {
    display: flex;
    gap: 24px;
    align-items: center;
}

.quiz-button {
    background: linear-gradient(to right, #FFE680, #FAB041, #FFE680);
    border: none;
    width: auto;
    border-radius: 16px;
    padding: 1.2vh 1.8vw;
    cursor: pointer;
    color: #442F1E;
    font-weight: 400;
    font-size: 2.4vh;
    text-align: center;
    font-family: 'Circe Rounded', Arial, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-sizing: border-box;
    line-height: 100%;
    position: relative;
    overflow: hidden;
}

@media screen and (max-width: 1700px) {
    .quiz-button {
        padding: 1.2vh 1.8vw;
        font-size: 1.2em;
    }
}

@media screen and (max-width: 1600px) {
    .quiz-button {
        padding: 0.6em 1.4em;
        border-radius: 12px;
    }
}

@media screen and (max-width: 1450px) {
    .quiz-button {
        padding: 0.5em 1.2em;
        border-radius: 10px;
    }
}

@media screen and (max-width: 1350px) {
    .quiz-button {
        font-size: 1.1em;
        padding: 0.4em 1em;
        border-radius: 8px;
    }
}

.quiz-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #fff;
    transition: all 0.3s ease;
    z-index: 1;
}

.quiz-button::after {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: #fff;
    transition: all 0.3s ease;
    z-index: 1;
}

.quiz-button:hover::before {
    left: 0;
}

.quiz-button:hover::after {
    right: 0;
}

.quiz-button span {
    position: relative;
    z-index: 2;
}

.enter-button {
    display: flex;
    align-items: center;
    gap: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: #FDE170;
    font-size: 2.4vh;
    font-family: 'Circe Rounded', Arial, sans-serif;
    font-weight: 400;
    line-height: 100%;
}

.enter-button img {
    height: 3.6vh;
    width: auto;
}

.burger-menu {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 10px;
    z-index: 100;
    align-items: center;
}

.burger-line {
    width: 22px;
    height: 3px;
    background-color: #fff;
    border-radius: 3px;
    transition: all 0.5s ease;
}

.burger-line:nth-child(1) {
    width: 22px;
    height: 2px;
}

.burger-line:nth-child(2) {
    width: 16px;
    height: 2px;
}

.burger-line:nth-child(3) {
    width: 10px;
    height: 2px;
}

.burger-menu.active .burger-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    width: 22px;
}

.burger-menu.active .burger-line:nth-child(2) {
    opacity: 0;
}

.burger-menu.active .burger-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    width: 22px;
    position: relative;
    top: 6px;
}

@media screen and (max-width: 1200px) {
    .header-container {
        padding: 0.6% 6% 0.6% 32%;
        top: 11px;
    }

    .quiz-button {
        border-radius: 10px;
        padding: 1vh 1.8vw;
    }

    .header {
        background: linear-gradient(to bottom, #cc0101 0%, #cc0101 80%, transparent 80%, transparent 100%);
    }

    .logo {
        position: absolute;
        top: 34%;
        width: 13%;
        margin-left: 5.4%;
        z-index: 1;
    }

    .header-red {
        top: 55%;
    }
    
    .header-yellow {
        top: 56%;
    }

    .nav-button, .quiz-button {
        font-size: 0.9em;
    }

    .enter-button {
        font-size: 1em;
    }
    
    .enter-button img {
        height: 3.5vh;
    }
}

@media screen and (max-width: 900px) {
    .header-container {
        padding: 0.6% 6% 0.6% 28%;
        top: 12px;
    }
}

@media screen and (max-width: 768px) {
    .header {
        background: none;
    }

    .logo {
        position: absolute;
        top: 60%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 35%;
        height: auto;
        margin: 0;
    }
    
    .header-red {
        top: 0;
        content: url('../images/header-red-mobile.webp');
        height: auto;
        width: 100%;
        z-index: 1;
        position: relative;
    }
    
    .header-yellow {
        top: 0;
        content: url('../images/header-yellow-mobile.webp');
        height: auto;
        width: 100%;
        z-index: 0;
    }
    
    .nav-buttons, .right-buttons {
        display: none;
    }
    
    .burger-menu {
        display: flex;
        position: absolute;
        top: 15%;
        right: 20px;
    }
    
    .burger-line {
        width: 22px;
        height: 3px;
        background-color: #fff;
        border-radius: 3px;
        transition: all 0.5s ease;
    }
    
    .burger-line:nth-child(1) {
        width: 22px;
        height: 2px;
    }
    
    .burger-line:nth-child(2) {
        width: 16px;
        height: 2px;
    }
    
    .burger-line:nth-child(3) {
        width: 10px;
        height: 2px;
    }
    
    .burger-menu.active .burger-line:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
        width: 22px;
    }
    
    .burger-menu.active .burger-line:nth-child(2) {
        opacity: 0;
    }
    
    .burger-menu.active .burger-line:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
        width: 22px;
        position: relative;
        top: 6px;
    }
}
