.games {
    background: url(../img/gulai/trivia4.png);
    background-repeat: no-repeat;
    background-size: cover;
    height: 100%;
    width: 100%;
    position: relative;
}
#gamesDetail {
    position: relative;
    background-position: center;
    transition: background-image 0.6s ease;
}
.games .text {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 30px;
    transform: translate(-50%, -50%);
    width: 90%;
}
.games .text h1 {
    color: #fff;
    font-size: 3.5rem;
    font-family: fertigoitalic;
    text-align: center;
}
.games .text p {
    color: #fff;
    font-weight: bold;
    font-size: 2rem;
    margin-top: 8px;
    text-align: center;
}
.games .text a {
    margin: 30px auto 0;
    display: block;
    width: 300px;
    background: #fff;
    padding: 15px;
    text-align: center;
    font-family: fertigoitalic;
    border-radius: 50px;
    font-size: 1.5rem;
}
.games .text a:active {
    color: #000;
    background: #fff;
    border-color: transparent;
}
.games .text a:hover {
    color: #000;
    background: #fff;
    border-color: transparent;
}
.games #gamesDetail {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    width: 100%;
    position: relative;
    transition: background-image 0.4s ease;
}
.trivia {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 900px;
    text-align: center;
}
.progress {
    position: absolute;
    top: 90px;
    left: 24px;
    z-index: 10;
    color: #fff;
    font-size: 2rem;
    font-weight: bold;
    font-family: fertigoitalic;
    background: rgba(0, 0, 0, 0.35);
    height: 100px;
    background: transparent;
}
.question {
    color: #fff;
    font-size: 2.5rem;
    font-family: fertigoitalic;
    margin-bottom: 30px;
}
.answers {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.answer {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid #fff;
    color: #fff;
    padding: 18px 20px;
    border-radius: 50px;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
.answer:hover,
.answer.active {
    background: #fff;
    color: #000;
    font-weight: bold;
}
.answer.correct {
    background: #136846 !important;
    border-color: #136846;
    color: #fff;
}
.answer.wrong {
    background: #ee3638 !important;
    border-color: #ee3638;
    color: #fff;
}
.answer.disabled {
    pointer-events: none;
    opacity: 0.9;
}
.congrats {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.congrats.show {
    display: flex;
}
.congrats-inner {
    width: 90%;
}
.congrats-inner h1 {
    color: #fff;
    font-size: 3.5rem;
    font-family: fertigoitalic;
    text-align: center;
}
.congrats-inner p {
    color: #fff;
    font-size: 2rem;
    font-family: fertigoitalic;
    margin-top: 8px;
}
.congrats-action {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
}
.congrats-action button {
    display: block;
    width: 300px;
    background: #fff;
    padding: 15px;
    text-align: center;
    font-family: fertigoitalic;
    border-radius: 50px;
    font-size: 1.2rem;
    margin-right: 5px;
    color: #000;
}
.congrats-action a {
    display: block;
    width: 300px;
    background: #fff;
    padding: 15px;
    text-align: center;
    font-family: fertigoitalic;
    border-radius: 50px;
    font-size: 1.2rem;
    margin-right: 5px;
    color: #000;
}
.congrats-action .btn:active {
    color: #000;
    background: #fff;
    border-color: transparent;
}
.congrats-action .btn:hover {
    color: #000;
    background: #fff;
    border-color: transparent;
}
.trivia {
    transition:
        opacity 0.35s ease,
        transform 0.35s ease;
}
.trivia.is-leaving {
    opacity: 0;
    transform: translate(-50%, -45%);
}
.trivia.is-entering {
    opacity: 0;
    transform: translate(-50%, -55%);
}
.question {
    animation: fadeUp 0.4s ease both;
}
.answer {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeUp 0.4s ease forwards;
}
.answer:nth-child(1) {
    animation-delay: 0.05s;
}
.answer:nth-child(2) {
    animation-delay: 0.1s;
}
.answer:nth-child(3) {
    animation-delay: 0.15s;
}
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@media (orientation: portrait) {
    .games {
        background: url(../img/games/trivia-mobile-detail1.png);
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
    }
    .games .text {
        width: 90%;
    }
    .games .text h1 {
        font-size: 2rem;
    }
    .games .text p {
        font-size: 1rem;
    }
    .games .text a {
        font-size: 1rem;
        width: 200px;
    }
    .progress {
        font-size: 1.5rem;
    }
    .question {
        font-size: 1.5rem;
    }
    .answer {
        font-size: 1rem;
    }
    .congrats-inner h1 {
        font-size: 2rem;
    }
    .congrats-inner p {
        font-size: 1rem;
    }
    .congrats-action a {
        font-size: 1rem;
    }
    .congrats-action button {
        font-size: 1rem;
    }
}
