/* Base Layout Adjustments */
body {
    font-family: Arial, sans-serif;
    text-align: center;
    background-color: #f5f5f5;
    margin: 0;
    padding: 20px 15px; /* Reduced padding for small screens */
    box-sizing: border-box;
}

h1 {
    font-size: clamp(28px, 6vw, 40px); /* Fluid scaling header */
    margin-top: 10px;
}

/* Fluid Image Styling */
img {
    width: 100%;
    max-width: 300px; /* Caps size on desktop, scales down on mobile */
    height: auto;
    aspect-ratio: 3 / 4; /* Keeps exact aspect ratio */
    object-fit: cover;
    object-position: top;
    border-radius: 12px;
}

/* Responsive Grid Layout */
.awards {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2x2 grid */
    gap: 12px;
    width: 100%;
    max-width: 360px; /* Constrains max width on large screens */
    margin: 20px auto;
}

.awards button {
    margin: 0;
    padding: 15px 10px;
    font-size: 16px;
    background-color: white;
    border: 2px solid #ddd;
    border-radius: 12px;
    cursor: pointer;
    /* Improves touch response on mobile */
    -webkit-tap-highlight-color: transparent; 
    touch-action: manipulation;
}

.awards strong {
    display: block;
    font-size: 32px;
}

.awards span {
    font-size: 14px;
}

/* Primary Action Button */
#guess {
    width: 100%;
    max-width: 360px;
    padding: 16px;
    font-size: 20px;
    font-weight: bold;
    border-radius: 12px;
    border: none;
    background-color: #2196F3;
    color: white;
    cursor: pointer;
}

/* Button Selection & Feedback States */
.awards button.award-selected {
    background-color: #333;
    color: white;
    border-color: #333;
}

.award-correct {
    background-color: #4caf50 !important;
    color: white;
    border-color: #4caf50 !important;
}

.award-incorrect {
    background-color: #f44336 !important;
    color: white;
    border-color: #f44336 !important;
}

.award-missed {
    background-color: #fff3cd !important;
    border-color: #f0c36d !important;
    color: #333;
}

#result {
    margin-top: 20px;
    font-size: 18px;
}

/* Extra Small Screens (Phones under 360px width) */
@media (max-width: 360px) {
    .awards strong {
        font-size: 24px;
    }
    .awards span {
        font-size: 12px;
    }
}