/* Game Settings Page Styles */
.settings-header {
    text-align: center;
    font-size: 3rem;
    font-family: 'Roboto', sans-serif;
    font-weight: 900;
    margin-bottom: 18px;
    margin-top: 0;
    letter-spacing: 2px;
    color: #ff3c3c;
    text-shadow: 0 0 20px #fff, 0 0 40px #ff3c3c;
}
.settings-header .star {
    color: #ffe600;
    text-shadow: 0 0 10px #ffe600, 0 0 20px #fff;
}
.challenge-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 900;
    color: #ffe600;
    margin-bottom: 18px;
    letter-spacing: 2px;
    text-shadow: 0 0 8px #000, 0 0 12px #ffe600;
}
.settings-box {
    margin: 0 auto;
    margin-top: 18px;
    background: rgba(0,0,0,0.5);
    border-radius: 16px;
    box-shadow: 0 0 12px #00bfff;
    padding: 32px 24px;
    max-width: 700px;
    border: 1.5px solid #00bfff;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.difficulty-cards {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
    width: 100%;
}
.difficulty-card {
    background: rgba(10,20,40,0.8);
    border: 2px solid #00bfff;
    border-radius: 12px;
    box-shadow: 0 0 8px #00bfff;
    padding: 24px 18px 16px 18px;
    flex: 1 1 120px;
    text-align: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    position: relative;
    transition: border 0.2s, box-shadow 0.2s, background 0.2s;
}
.difficulty-card.selected {
    border: 2.5px solid #ffe600;
    background: #ffe600;
    color: #222;
    box-shadow: 0 0 16px #ffe600;
}
.difficulty-card .icon {
    font-size: 2rem;
    margin-bottom: 8px;
    display: block;
}
.difficulty-card.selected .icon {
    color: #ff3c3c;
    text-shadow: 0 0 8px #ff3c3c;
}
.diff-label {
    font-size: 1.1rem;
    font-weight: 900;
    margin-bottom: 4px;
    letter-spacing: 1px;
}
.diff-time {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 8px;
}
.difficulty-card input[type="radio"] {
    margin-top: 8px;
    accent-color: #ffe600;
    transform: scale(1.2);
}
.rounds-slider-box {
    width: 100%;
    text-align: center;
    margin-bottom: 24px;
    font-size: 1.2rem;
    color: #fff;
    font-weight: 700;
}
.rounds-slider {
    width: 80%;
    margin: 12px auto 0 auto;
    accent-color: #00bfff;
}
.sga-btn {
    display: block;
    margin: 0 auto;
    background: #2fff7f;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 900;
    border: none;
    border-radius: 32px;
    padding: 16px 40px;
    box-shadow: 0 4px 24px rgba(0,255,127,0.2);
    cursor: pointer;
    transition: background 0.2s;
    text-align: center;
    text-decoration: none;
    letter-spacing: 1px;
}
.sga-btn:hover {
    background: #1ed760;
}
/* Video background for game-settings.html */
#bg-video-settings {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -1;
    opacity: 0.5;
    pointer-events: none;
}
/* Neon header styles for index.html */
.neon-title {
    text-align: center;
    font-size: 3.5rem;
    font-family: 'Roboto', sans-serif;
    font-weight: 900;
    margin-bottom: 18px;
    margin-top: 0;
    letter-spacing: 2px;
    text-shadow: 0 0 20px #fff, 0 0 40px #ff3c3c, 0 0 60px #00bfff;
}
.fam-star {
    color: #ff3c3c;
    text-shadow: 0 0 10px #ff3c3c, 0 0 20px #fff;
}
.quizary {
    color: #00bfff;
    text-shadow: 0 0 10px #00bfff, 0 0 20px #fff;
}
.subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 32px;
    text-shadow: 0 0 8px #000;
}
.start-btn {
    display: block;
    margin: 0 auto 12px auto;
    background: #2fff7f;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    border: none;
    border-radius: 32px;
    padding: 16px 40px;
    box-shadow: 0 4px 24px rgba(0,255,127,0.2);
    cursor: pointer;
    transition: background 0.2s;
    text-align: center;
    text-decoration: none;
}
.start-btn:hover {
    background: #1ed760;
}
.how-to-play-link {
    text-align: center;
    margin-bottom: 24px;
}
.how-to-play-link a {
    color: #ffe600;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 1px;
    text-shadow: 0 0 6px #000;
}
.how-to-play-link a:hover {
    text-decoration: underline;
}
.feature-box {
    margin: 0 auto;
    margin-top: 18px;
    background: rgba(0,0,0,0.5);
    border-radius: 16px;
    box-shadow: 0 0 12px #00bfff;
    padding: 32px 24px;
    max-width: 700px;
    border: 1.5px solid #00bfff;
}
.features-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 900;
    color: #ffe600;
    margin-bottom: 18px;
    letter-spacing: 2px;
    text-shadow: 0 0 8px #000, 0 0 12px #ffe600;
}
.features-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 18px 0;
}
.feature {
    flex: 1 1 220px;
    font-size: 1.15rem;
    color: #fff;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    text-shadow: 0 0 6px #000;
}
.icon {
    color: #2fff7f;
    font-size: 1.25rem;
    margin-right: 6px;
    text-shadow: 0 0 6px #2fff7f;
}
footer {
    text-align: center;
    color: #fff;
    font-size: 1rem;
    margin-top: 32px;
    text-shadow: 0 0 8px #000;
}

/* Video background for index.html */
#bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -1;
    opacity: 0.5;
    pointer-events: none;
}

/* styles.css */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background-color: #f5f5f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 40px;
    padding-bottom: 40px;
}

#quiz-container {
    max-width: 600px;
    width: 90%;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 350px;
}

h1 {
    text-align: center;
    margin-bottom: 40px;
    margin-top: 0;
    color: #333;
    font-weight: 700;
    font-size: 2.5rem;
    letter-spacing: 2px;
}

#settings {
    margin-bottom: 20px;
}

.rounds-slider {
    writing-mode: bt-lr;
    -webkit-appearance: slider-vertical;
    width: 30px;
    height: 150px;
}

#category-selection,
#difficulty-selection {
    margin-bottom: 10px;
}

#category-selection label,
#difficulty-selection label {
    font-weight: 500;
    margin-right: 10px;
    color: #555;
}

#category-selection select,
#difficulty-selection select {
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 14px;
    background-color: #fff;
    color: #333;
}

#question-container {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    display: none;
}

#question-number {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #007bff; /* Changed question number color */
}

#question {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 20px;
    color: #007bff; /* Changed question color */
}

#timer-container {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

#timer {
    font-size: 14px;
    font-weight: 500;
    color: #555;
    margin-right: 10px;
}

#timer-bar {
    width: 100%;
    height: 10px;
    background-color: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}

#timer-progress {
    height: 100%;
    background-color: #007bff;
    transition: width 0.3s ease;
}

.answer {
    background-color: #e0e0e0;
    border-radius: 4px;
    padding: 10px 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.answer:hover {
    background-color: #d0d0d0;
}

.correct {
    background-color: #d4edda;
    color: #155724;
    font-weight: 500;
}

.incorrect {
    background-color: #f8d7da;
    color: #721c24;
    font-weight: 500;
}

#answer-feedback {
    font-size: 16px;
    font-weight: 500;
    margin-top: 20px;
    padding: 10px;
    border-radius: 4px;
    display: none;
}

#answer-feedback.correct {
    background-color: #d4edda;
    color: #155724;
}

#answer-feedback.incorrect {
    background-color: #f8d7da;
    color: #721c24;
}

#next-question {
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 20px;
    display: none;
}

#next-question:hover {
    background-color: #0056b3;
}

#controls {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    display: none;
}

#score {
    font-size: 16px;
    font-weight: 700;
    color: #007bff; /* Changed score color */
}

#progress-bar {
    width: 200px;
    height: 10px;
    background-color: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}

#progress-value {
    height: 100%;
    background-color: #007bff;
    transition: width 0.3s ease;
}

#end-game {
    background-color: #007bff; /* Same color as next button */
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#end-game:hover {
    background-color: #0056b3;
}

#game-over {
    text-align: center;
    margin-top: 30px;
    display: none;
}

#game-over h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

#final-score {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 20px;
}

#play-again,
#quit {
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin: 0 10px;
}

#play-again:hover,
#quit:hover {
    background-color: #0056b3;
}

.disabled {
    background-color: #cccccc;
    color: #666666;
    cursor: not-allowed;
}