/* General Reset */
body {
    margin: 0;
    padding: 0;
    font-family: 'Proxima Nova', Arial, sans-serif; /* Use Proxima Nova or fallback */
    background: linear-gradient(135deg, #1a1a1a 0%, #23272b 100%);
    color: #ffffff; /* Light text for contrast */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh; /* Full screen height */
    text-align: center;
}

/* Center the main content */
h1 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #ffffff;
}

#status-bar {
    display: flex;
    justify-content: space-around;
    width: 90%;
    max-width: 600px;
    margin-bottom: 20px;
    padding: 10px;
    background-color: #1e1e1e; /* Slightly lighter dark background */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

#status-bar span {
    font-size: 1em;
    font-weight: bold;
    color: #ffffff;
}

/* Player Container */
#player-container {
    width: 90%;
    max-width: 640px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 56.25%; /* Maintain 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background-color: #000;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

#player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Feedback Overlay */
#feedback-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent dark overlay */
    z-index: 10;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.5s ease-out;
    border-radius: 10px;
}

#feedback-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

#feedback-text-overlay {
    font-size: 2em;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

#feedback-message {
    font-size: 1.5em; /* Larger font size */
    font-weight: bold;
    color: #ffbb00; /* Green color */
    margin-bottom: 20px;
    text-align: center;
}

/* Answer Buttons */
#answer-buttons-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

#answer-buttons-container button {
    padding: 10px 20px;
    font-size: 1em;
    font-weight: bold;
    color: #ffffff;
    background-color: #1e88e5; /* Blue button */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#answer-buttons-container button:hover:not(:disabled) {
    background-color: #1565c0; /* Darker blue on hover */
}

#answer-buttons-container button:disabled {
    background-color: #555555; /* Disabled button color */
    cursor: not-allowed;
    opacity: 0.7;
}

/* Scoreboard */
#scoreboard {
    width: 90%;
    max-width: 600px;
    padding: 15px;
    background-color: #1e1e1e;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
}

.scoreboard-row {
    display: flex;
    justify-content: space-between;
    margin: 5px 0;
}

.scoreboard-row span {
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
}

/* Quiz Complete Section */
#quiz-complete {
    display: none;
    padding: 20px;
    background-color: #1e1e1e;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

#quiz-complete h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #ffffff;
}

#quiz-complete p {
    font-size: 1.2em;
    margin-bottom: 15px;
    color: #ffffff;
}

#quiz-complete button {
    padding: 10px 20px;
    font-size: 1em;
    font-weight: bold;
    color: #ffffff;
    background-color: #43a047; /* Green button */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#quiz-complete button:hover {
    background-color: #2e7d32; /* Darker green on hover */
}

/* Hidden Elements */
.hidden {
    display: none;
}

/* Baseball theme for front page */
.baseball-logo {
    width: 60px;
    margin-bottom: 10px;
}

.main-title {
    font-family: 'Bebas Neue', Impact, Arial, sans-serif;
    font-size: 2.2em;
    letter-spacing: 2px;
    color: #ffbb00;
    text-shadow: 2px 2px 8px #000, 0 0 10px #1e88e5;
    margin-bottom: 8px;
}

.subtitle {
    color: #b0b0b0;
    font-size: 1.1em;
    margin-bottom: 18px;
}

.video-thumb-list {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
    margin-bottom: 20px;
    width: 100%;
}

.video-thumb {
    width: 130px;
    cursor: pointer;
    border-radius: 10px;
    border: 2px solid #ffbb00;
    overflow: hidden;
    background: #23272b;
    box-shadow: 0 2px 8px #0008;
    transition: transform 0.15s, box-shadow 0.15s;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.video-thumb:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px #1e88e5aa;
    border-color: #43a047;
}
.video-thumb img {
    width: 100%;
    display: block;
    border-bottom: 2px solid #ffbb00;
}
.video-thumb-title {
    font-size: 1.05em;
    color: #fff;
    padding: 7px 0 7px 0;
    font-weight: bold;
    text-align: center;
    background: #181818;
    width: 100%;
}

@media (max-width: 480px) {
    .main-title { font-size: 1.3em; }
    .video-thumb { width: 100px; }
}