
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #fff7ec;
    color: #493d36;
    min-height: 100vh;
    padding: 25px;
}

.game-container {
    max-width: 1000px;
    min-height: 650px;
    margin: auto;
    background: #ffffff;
    border-radius: 28px;
    padding: 25px 35px;
    box-shadow: 0 12px 40px #d9bda344;
    overflow: hidden;
}

/* HEADER */

header, .top-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.logo {
    color: #ed936a;
    font-size: 20px;
    font-weight: 800;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    transition: .25s;
}

button:hover {
    transform: translateY(-3px);
}

button:disabled {
    cursor: not-allowed;
}

#soundBtn, .back-btn {
    background: #fff0df;
    padding: 10px 16px;
    border-radius: 12px;
    color: #8d634a;
    font-weight: 600;
}

/* HALAMAN */

.screen {
    display: none;
    padding: 35px 10px;
    animation: appear .5s ease;
}

.screen.active {
    display: block;
}

@keyframes appear {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* BERANDA */

.hero {
    max-width: 600px;
    text-align: center;
    margin: 25px auto;
}

.mascot {
    font-size: 95px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-13px);
    }
}

.tag {
    display: inline-block;
    background: #fff0df;
    color: #d98560;
    padding: 8px 17px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 12px 0;
}

h1 {
    font-size: clamp(35px, 7vw, 60px);
    line-height: 1.2;
    font-weight: 800;
}

h1 span {
    color: #ef956e;
}

.hero p, .subtitle {
    color: #95847a;
    font-size: 14px;
    margin: 15px 0;
    line-height: 1.8;
}

input {
    width: 100%;
    max-width: 350px;
    padding: 15px;
    border: 2px solid #f4dfce;
    border-radius: 13px;
    margin: 15px 0;
    font-family: inherit;
    outline: none;
}

input:focus {
    border-color: #ed9b75;
}

.main-btn {
    background: #ed956f;
    color: white;
    padding: 15px 27px;
    border-radius: 14px;
    font-weight: 700;
    box-shadow: 0 5px 0 #cf7958;
}

.main-btn:hover {
    background: #df805b;
}

.footer {
    text-align: center;
    color: #b4a39a;
    font-size: 11px;
    margin-top: 30px;
}

/* PETA LEVEL */

.section-heading {
    margin-top: 25px;
}

h2 {
    font-size: 25px;
    margin-top: 15px;
}

.level-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 25px;
}

.level-card {
    background: #fff7ed;
    border: 2px solid #f5e4d3;
    padding: 20px;
    border-radius: 18px;
    text-align: left;
    color: #493d36;
}

.level-card:hover {
    background: #fff0df;
    border-color: #ed956f;
}

.level-card:disabled {
    opacity: .45;
    cursor: not-allowed;
    transform: none;
}

.level-card strong {
    display: block;
    font-size: 16px;
    margin: 7px 0;
}

.level-card small {
    color: #9c887b;
}

.level-icon {
    font-size: 32px;
}

/* PERTANYAAN */

.progress-info {
    display: flex;
    justify-content: space-between;
    margin: 25px 0 10px;
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    height: 11px;
    background: #f5e9df;
    border-radius: 20px;
    overflow: hidden;
}

#progress {
    height: 100%;
    width: 0%;
    background: #ed956f;
    transition: .4s;
}

.question-card {
    max-width: 650px;
    margin: 35px auto;
    text-align: center;
    background: #fff9f2;
    border: 2px solid #f4e5d8;
    border-radius: 25px;
    padding: 30px;
}

.question-icon {
    font-size: 55px;
    animation: bounce 2s infinite;
}

#question {
    font-size: 21px;
    margin: 20px 0;
}

.answers {
    display: grid;
    gap: 12px;
    margin-top: 25px;
}

.answer-btn {
    text-align: left;
    padding: 15px;
    background: white;
    border: 2px solid #f0dfd0;
    border-radius: 13px;
    color: #594a40;
    font-weight: 500;
}

.answer-btn:hover:not(:disabled) {
    border-color: #ed956f;
    background: #fff0e6;
}

.answer-btn.correct {
    background: #e2f6e7;
    border-color: #65b97a;
}

.answer-btn.wrong {
    background: #ffe9e5;
    border-color: #e88a7a;
}

.answer-btn:disabled {
    cursor: default;
    opacity: 1;
}

#feedback {
    margin: 18px 0;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.7;
}

.hidden {
    display: none !important;
}

/* HASIL */

.result-card {
    text-align: center;
    max-width: 550px;
    margin: 45px auto;
    background: #fff8ee;
    padding: 40px 25px;
    border-radius: 25px;
    border: 2px solid #f5e2d0;
}

.result-icon {
    font-size: 80px;
    animation: bounce 2s infinite;
}

.result-card h1 {
    font-size: 35px;
    margin: 15px 0;
}

.result-card p {
    color: #95847a;
    line-height: 1.8;
    margin: 12px 0;
}

.result-score {
    background: #ffedda;
    color: #d47d53;
    border-radius: 15px;
    padding: 20px;
    font-size: 28px;
    font-weight: 800;
    margin: 25px 0;
}

#finalRank {
    margin: 20px;
    font-weight: 800;
    color: #d47d53;
}

/* RESPONSIVE */

@media(max-width: 600px) {

    body {
        padding: 10px;
    }

    .game-container {
        padding: 18px;
    }

    .logo {
        font-size: 15px;
    }

    .level-grid {
        grid-template-columns: 1fr;
    }

    .question-card {
        padding: 20px 15px;
    }

    h2 {
        font-size: 21px;
    }

    .result-card {
        padding: 25px 15px;
    }

    header {
        flex-wrap: wrap;
    }
}
