/* Jeopardy Game Styles with Windows XP Theme */

:root {
    /* Default Windows XP color scheme */
    --primary-color: #0054E3;
    --secondary-color: #3F8CF3;
    --background-color: #ECE9D8;
    --text-color: #000000;
    --board-bg: #003399;
    --category-bg: #0054E3;
    --category-text: #FFFFFF;
    --question-bg: #0054E3;
    --question-text: #FFD700;
    --modal-bg: #ECE9D8;
    --button-bg: #0054E3;
    --button-hover: #3F8CF3;
    --correct-color: #2E8B57;
    --incorrect-color: #DC143C;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tahoma', 'Arial', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    padding: 20px;
}

#app {
    max-width: 1400px;
    margin: 0 auto;
}

/* Header Styles */
header {
    text-align: center;
    background: linear-gradient(180deg, #0054E3 0%, #003399 100%);
    color: white;
    padding: 20px;
    border-radius: 8px 8px 0 0;
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.2), 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
    position: relative;
}

header h1 {
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
}

#round-indicator {
    position: absolute;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 1.1em;
}

/* Players Panel */
#players-panel {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    margin-bottom: 30px;
}

.player-card {
    flex: 1;
    background: linear-gradient(180deg, #FFFFFF 0%, #E0E0E0 100%);
    border: 2px solid #003399;
    border-radius: 6px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.player-name {
    width: 100%;
    padding: 8px;
    border: 2px inset #D4D0C8;
    background: #FFFFFF;
    font-size: 1.1em;
    margin-bottom: 10px;
    font-family: 'Tahoma', 'Arial', sans-serif;
}

.player-score {
    font-size: 2em;
    font-weight: bold;
    color: var(--primary-color);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Game Board */
#game-board {
    background: var(--board-bg);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4),
                inset 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
}

.categories-row,
.questions-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-bottom: 10px;
}

.category-cell {
    background: var(--category-bg);
    color: var(--category-text);
    padding: 15px;
    text-align: center;
    font-weight: bold;
    font-size: 1.1em;
    border-radius: 4px;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 2px outset #0054E3;
}

.question-cell {
    background: var(--question-bg);
    color: var(--question-text);
    padding: 30px;
    text-align: center;
    font-weight: bold;
    font-size: 1.8em;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 2px outset #0054E3;
}

.question-cell:hover {
    background: var(--button-hover);
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.question-cell.answered {
    background: #003366;
    cursor: default;
    opacity: 0.5;
}

.question-cell.answered:hover {
    transform: none;
}

/* Control Panel */
#control-panel {
    background: linear-gradient(180deg, #FFFFFF 0%, #D4D0C8 100%);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 2px solid #003399;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.controls-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.control-btn {
    padding: 10px 20px;
    font-size: 1em;
    font-family: 'Tahoma', 'Arial', sans-serif;
    background: linear-gradient(180deg, #FFFFFF 0%, #D4D0C8 100%);
    border: 2px outset #FFFFFF;
    border-radius: 3px;
    cursor: pointer;
    color: var(--text-color);
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2);
    transition: all 0.1s;
}

.control-btn:hover {
    background: linear-gradient(180deg, #F0F0F0 0%, #C0C0C0 100%);
}

.control-btn:active {
    border-style: inset;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--modal-bg);
    width: 90%;
    max-width: 800px;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    border: 3px outset #FFFFFF;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.7);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-header {
    background: linear-gradient(180deg, #0054E3 0%, #003399 100%);
    color: white;
    padding: 20px;
    border-radius: 5px 5px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 1.3em;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.2);
}

.modal-body {
    padding: 30px;
    max-height: 500px;
    overflow-y: auto;
}

#question-text,
#final-question-text,
#final-category {
    font-size: 1.4em;
    margin-bottom: 20px;
    line-height: 1.6;
}

#answer-section,
#final-answer-section {
    margin-top: 20px;
}

#answer-text,
#final-answer-text {
    font-size: 1.3em;
    color: var(--primary-color);
    font-weight: bold;
    line-height: 1.6;
}

hr {
    border: none;
    border-top: 2px solid #999;
    margin: 15px 0;
}

.wager-input {
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wager-input label {
    font-weight: bold;
    min-width: 150px;
}

.wager-input input {
    flex: 1;
    padding: 8px;
    border: 2px inset #D4D0C8;
    font-size: 1.1em;
    font-family: 'Tahoma', 'Arial', sans-serif;
}

.modal-footer {
    padding: 20px;
    border-top: 2px solid #999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-btn {
    padding: 12px 24px;
    font-size: 1.1em;
    font-family: 'Tahoma', 'Arial', sans-serif;
    background: linear-gradient(180deg, #FFFFFF 0%, #D4D0C8 100%);
    border: 2px outset #FFFFFF;
    border-radius: 3px;
    cursor: pointer;
    color: var(--text-color);
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2);
    transition: all 0.1s;
}

.modal-btn:hover {
    background: linear-gradient(180deg, #F0F0F0 0%, #C0C0C0 100%);
}

.modal-btn:active {
    border-style: inset;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

#player-response-controls,
#final-response-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.response-buttons {
    display: flex;
    gap: 10px;
    justify-content: space-around;
}

.response-btn {
    flex: 1;
    padding: 12px;
    font-size: 1em;
    font-family: 'Tahoma', 'Arial', sans-serif;
    border: 2px outset;
    border-radius: 3px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.1s;
}

.correct-btn {
    background: linear-gradient(180deg, #90EE90 0%, #2E8B57 100%);
    color: white;
    border-color: #2E8B57;
}

.correct-btn:hover {
    background: linear-gradient(180deg, #98FB98 0%, #3CB371 100%);
}

.incorrect-btn {
    background: linear-gradient(180deg, #FF6B6B 0%, #DC143C 100%);
    color: white;
    border-color: #DC143C;
}

.incorrect-btn:hover {
    background: linear-gradient(180deg, #FF7F7F 0%, #E91E63 100%);
}

.response-btn:active {
    border-style: inset;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .categories-row,
    .questions-row {
        grid-template-columns: repeat(3, 1fr);
    }

    #players-panel {
        flex-direction: column;
    }

    header h1 {
        font-size: 2em;
    }

    #round-indicator {
        position: static;
        transform: none;
        display: inline-block;
        margin-top: 10px;
    }
}

@media (max-width: 768px) {
    .categories-row,
    .questions-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .question-cell {
        padding: 20px;
        font-size: 1.4em;
    }

    .response-buttons {
        flex-direction: column;
    }

    #control-panel {
        flex-direction: column;
    }

    .controls-group {
        width: 100%;
        justify-content: center;
    }
}
