@import url('https://fonts.googleapis.com/css2?family=Kanit&display=swap');

body {
    background-color: #ce5a67;
    background-image: linear-gradient(62deg, #ce5a67 18%, #F7CE68 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px; /* Adjusted for mobile */
    font-family: 'Kanit', sans-serif;
}

.card {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,.3);
    padding: 15px; /* Adjusted padding */
    width: 100%; /* Full width on mobile */
    max-width: 600px; /* Maximum width for larger screens */
    margin: 0 auto; /* Center align the card */
}

.question, .timer, #score, #result {
    font-size: calc(1rem + 1vw); /* Responsive font size */
    margin: 0.5rem 0;
}

.timer {
    color: #dc3545;
}

.choice-btn {
    font-size: 1rem; /* Adjusted for mobile */
    width: 100%; /* Full width */
    padding: 12px 20px; /* Better for touch */
    margin-bottom: 10px; /* Space between buttons */
}

.btn-row {
    margin-bottom: 0.5rem;
}

#score {
    color: #28a745;
    font-weight: bold;
}

#result {
    margin-top: 1rem;
}

/* Media Queries for Larger Screens */
@media only screen and (min-width: 380px) {
    .choice-btn {
        font-size: 1.25rem; /* Larger font size for larger screens */
        padding: 10px; /* Adjusted padding */
    }
    .card {
        padding: 20px; /* Larger padding for larger screens */
    }
    body {
        padding: 20px; /* More padding on larger screens */
    }
}
