body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f3f4f6; /* Tailwind's gray-100 */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    transition: background-color 0.5s ease;
}
#game-container {
    width: 100%;
    max-width: 800px; /* Increased max-width */
    background-color: white;
    padding: 24px; /* Tailwind's p-6 */
    border-radius: 12px; /* Tailwind's rounded-lg */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Slightly stronger shadow */
    transition: box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center items horizontally */
}
header {
    text-align: center;
    margin-bottom: 20px; /* Tailwind's mb-5 */
}
header h1 {
    font-size: 2.25rem; /* Tailwind's text-3xl */
    font-weight: 700;  /* Tailwind's font-bold */
    color: #4f46e5; /* Tailwind's indigo-600 */
    transition: color 0.3s ease;
    margin-bottom: 8px; /* Tailwind's mb-2 */
}
header p {
    font-size: 1rem; /* Tailwind's text-base */
    color: #6b7280; /* Tailwind's gray-500 */
    transition: color 0.3s ease;
}

@font-face {
    font-family: SZ-Bold;
    src: url(Fonts/StyreneA-Bold.otf);
}

@font-face {
    font-family: SZ-Light;
    src: url(Fonts/StyreneA-Light.otf);
}

#website_title {
    font-family: "SZ-Bold", sans-serif;
    font-weight: 700;
    background-color: #002664;
    padding: 1rem;
    padding-left: 2rem;
    padding-right: 2rem;
    padding-bottom: 1.2rem;
    color: white;
}

#website_subtitle {
    font-family: "SZ-Light";
}

#image-container {
    width: 100%;
    border-radius: 8px; /* Tailwind's rounded-md */
    overflow: hidden;
    margin-bottom: 20px; /* Tailwind's mb-5 */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    transition: box-shadow 0.3s ease;
}
#station-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}
#map-container {
    width: 100%;
    height: 300px; /* Increased height for better map interaction */
    border-radius: 8px; /* Tailwind's rounded-md */
    margin-bottom: 20px; /* Tailwind's mb-5 */
    border: 1px solid #e5e7eb; /* Tailwind's border-gray-200 */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
#question-container {
    width: 100%;
    margin-bottom: 20px; /* Tailwind's mb-5 */
}
#question-text {
    font-size: 1.25rem; /* Tailwind's text-lg */
    font-family: "SZ-Light";
    font-weight: 600; /* Tailwind's font-semibold */
    color: #374151; /* Tailwind's gray-700 */
    text-align: center;
    margin-bottom: 12px; /* Tailwind's mb-3 */
    transition: color 0.3s ease;
}
#answer-input {
    width: 100%;
    padding: 12px; /* Tailwind's p-3 */
    border-radius: 6px; /* Tailwind's rounded-md */
    border: 1px solid #d1d5db; /* Tailwind's border-gray-300 */
    font-size: 1rem; /* Tailwind's text-base */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 16px; /* Tailwind's mb-4 */
}
#answer-input:focus {
    outline: none;
    border-color: #4f46e5; /* Tailwind's indigo-500 */
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15); /* Tailwind's indigo-200 with opacity */
}
#submit-answer, #skip-button {
    padding: 12px 24px; /* Tailwind's py-3 px-6 */
    background-color: #002664; /* Tailwind's indigo-600 */
    color: white;
    border-radius: 6px; /* Tailwind's rounded-md */
    font-size: 1rem; /* Tailwind's text-base */
    font-weight: 600; /* Tailwind's font-semibold */
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    border: none;
    display: block;
    margin: 0 auto; /* Center the button */
    width: fit-content; /* Adjust width to content */
}
#submit-answer:hover, #skip-button:hover {
    background-color: #ff641a;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}
#submit-answer:active, #skip-button:active {
    background-color: white;
    color: black;
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
#feedback {
    margin-top: 20px; /* Tailwind's mb-5 */
    padding: 16px; /* Tailwind's p-4 */
    border-radius: 6px; /* Tailwind's rounded-md */
    text-align: center;
    font-size: 1.125rem; /* Tailwind's text-lg */
    font-weight: 500; /* Tailwind's font-medium */
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    border: 1px solid transparent;
}
.correct-feedback {
    background-color: #f0fdf4; /* Tailwind's green-100 */
    color: #15803d; /* Tailwind's green-700 */
    border-color: #d1fae5; /* Tailwind's green-200 */
}
.incorrect-feedback {
    background-color: #fef2f2; /* Tailwind's red-100 */
    color: #b91c1c; /* Tailwind's red-700 */
    border-color: #fee2e2; /* Tailwind's red-200 */
}
.trivia-container {
    margin-top: 24px; /* Tailwind's mt-6 */
    padding: 16px; /* Tailwind's p-4 */
    border-radius: 8px; /* Tailwind's rounded-md */
    background-color: #eff6ff; /* Tailwind's blue-50 */
    border: 1px solid #dbeafe; /* Tailwind's blue-200 */
    transition: background-color 0.3s ease, border-color 0.3s ease;
}
.trivia-title {
    font-size: 1.25rem; /* Tailwind's text-lg */
    font-weight: 600; /* Tailwind's font-semibold */
    color: #2563eb; /* Tailwind's blue-600 */
    margin-bottom: 12px; /* Tailwind's mb-3 */
    transition: color 0.3s ease;
}
.trivia-content {
    font-size: 1rem; /* Tailwind's text-base */
    color: #4b5563; /* Tailwind's gray-600 */
    transition: color 0.3s ease;
    line-height: 1.6; /* Increased line height for better readability */
}
#next-question {
    margin-top: 20px; /* Tailwind's mt-5 */
    padding: 12px 24px; /* Tailwind's py-3 px-6 */
    background-color: #4f46e5; /* Tailwind's indigo-600 */
    color: white;
    border-radius: 6px; /* Tailwind's rounded-md */
    font-size: 1rem; /* Tailwind's text-base */
    font-weight: 600; /* Tailwind's font-semibold */
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    border: none;
    display: none; /* Initially hidden */
    margin: 0 auto; /* Center the button */
    width: fit-content;
}
#next-question:hover {
    background-color: #4338ca; /* Tailwind's indigo-700 */
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}
#next-question:active {
    background-color: #4f46e5; /* Tailwind's indigo-600 */
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

#victory-screen {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    justify-content: center;
    align-items: center;
    z-index: 10;
    flex-direction: column;
}
#victory-screen h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}
#victory-screen p {
    font-size: 1.5rem;
    margin-bottom: 30px;
}
#reset-button {
    padding: 15px 30px;
    background-color: #4f46e5;
    color: white;
    border-radius: 8px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border: none;
}
#reset-button:hover {
    background-color: #4338ca;
}

#skipDiv {
        display: flex;
        justify-content: center;
        margin-top: 0.5rem;
}

/* Media queries for responsiveness */
@media (max-width: 768px) { /* Medium screens and below (md breakpoint in Tailwind is 768px) */
    #game-container {
        padding: 16px; /* Reduced padding on smaller screens */
    }
    header h1 {
        font-size: 2rem; /* Smaller heading on medium screens */
    }
    header p {
        font-size: 0.875rem; /* Smaller text on medium screens */
    }
    #question-text {
        font-size: 1.125rem; /* Smaller question text */
    }
    #answer-input {
        font-size: 0.875rem; /* Smaller input text */
        padding: 10px;
    }
    #submit-answer, #next-question {
        font-size: 0.875rem; /* Smaller button text */
        padding: 10px 20px;
    }
    .trivia-title {
        font-size: 1rem; /* Smaller trivia title */
    }
    .trivia-content {
        font-size: 0.875rem; /* Smaller trivia content */
    }
    #map-container {
        height: 250px; /* Reduced map height on smaller screens */
    }
     #victory-screen h2 {
        font-size: 2.5rem;
    }
    #victory-screen p {
        font-size: 1.2rem;
    }
    #reset-button {
        font-size: 1rem;
        padding: 12px 25px;
    }
}

@media (max-width: 640px) { /* Small screens and below (sm breakpoint in Tailwind is 640px) */
    #game-container {
        padding: 12px; /* Further reduced padding on small screens */
    }
    header h1 {
        font-size: 1.75rem; /* Smaller heading on small screens */
    }
    header p {
        font-size: 0.75rem; /* Smaller text on small screens */
    }
    #question-text {
        font-size: 1rem; /* Smaller question text */
    }
    #answer-input {
        font-size: 0.875rem; /* Keep input text size the same */
        padding: 8px;
    }
    #submit-answer, #next-question {
        font-size: 0.75rem; /* Smaller button text */
        padding: 8px 16px;
    }
    .trivia-title {
        font-size: 0.9rem; /* Smaller trivia title */
    }
    .trivia-content {
        font-size: 0.8rem; /* Smaller trivia content */
    }
    #map-container {
        height: 200px; /* Reduced map height on very small screens */
    }
     #victory-screen h2 {
        font-size: 2rem;
    }
    #victory-screen p {
        font-size: 1rem;
    }
    #reset-button {
        font-size: 0.9rem;
        padding: 10px 20px;
    }
    #skip-button {
        font-size: 0.75rem; /* Smaller button text */
        padding: 8px 16px;
    }
}