/* General styles */
body {
    background-color: #000;
    color: white;
    font-family: 'Arial', sans-serif;
    text-align: center;
    margin: 0;
    padding: 0;
}

#jeopardyLogo {
    max-width: 20%;
    margin: 20px auto;
}

#jeopardyLogo img {
    max-width: 100%;
}

#gameBoard {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background-color: #000;
    color: white;
}

#questionDetail {
    border: 1px solid #fff;
    padding: 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000080;
    color: #fff;
    margin: 0;
    border-radius: 0;
    display: none;
    font-size: 2.5em;
    z-index: 1000;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.question-text {
    font-size: 1.2em;
    margin: 40px 20px;
    text-align: center;
}

.showAnswerButton button {
    background-color: #ffcc00;
    color: #000080;
    padding: 15px 30px;
    font-size: 0.8em;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 40px;
}

.no-categories-message {
    border: 2px solid #1a1aff;
    grid-row: 3;
    padding: 30px;
    width: 80%;
    max-width: 600px;
    background-color: #000080;
    color: #fff;
    margin: 40px auto;
    border-radius: 10px;
    font-size: 1.5em;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 255, 0.3);
}

.no-categories-message p {
    margin-bottom: 20px;
    line-height: 1.4;
}
#questions {
    display: grid;
    grid-template-columns: repeat(6, minmax(200px, 1fr)); /* Adjust column sizing as needed */
    margin-bottom: 20px;
    width: 100%;
}

.category-column {
    display: flex;
    flex-direction: column;
}

.category-title {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #00008b;
    color: white;
    padding: 10px;
    text-transform: uppercase;
    font-size: 1.4em;
    border: 2px solid #000000;
    border-radius: 4px;
    text-align: center;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
}

.question {
    padding: 20px;
    background-color: #1a1aff;
    color: #ffcc00;
    text-align: center;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 2em;
    border: 2px solid #000000;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
}


.question:hover {
    background-color: #00008b;
}

.answerText {
    padding: 20px;
    font-size: 1.6em;
    color: #ffcc00;
    text-align: center;
    margin-top: 30px;
}

/* Modal styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    display: none;
}

.modal-container {
    background-color: #00008b;
    border: 2px solid #fff;
    border-radius: 10px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 20px;
    color: white;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #fff;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.modal-title {
    font-size: 1.8em;
    color: #ffcc00;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5em;
    cursor: pointer;
}

.modal-body {
    margin-bottom: 20px;
}

/* Player Name Styles */
.player-names-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #fff;
}

.player-names-section h3 {
    color: #ffcc00;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.player-name-inputs {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.player-name-field {
    display: flex;
    align-items: center;
}

.player-name-field label {
    width: 80px;
    color: white;
    font-size: 1em;
}

.player-name-field input {
    flex: 1;
    padding: 8px;
    background-color: #555;
    border: 1px solid #777;
    border-radius: 4px;
    color: white;
    font-size: 1em;
}

.modal-body h3 {
    color: #ffcc00;
    margin: 15px 0;
    font-size: 1.2em;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.category-checkbox {
    display: flex;
    align-items: center;
    padding: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    cursor: pointer;
}

.category-checkbox input {
    margin-right: 10px;
}

.modal-search {
    width: 100%;
    padding: 10px;
    background-color: #555;
    color: white;
    border: 1px solid #777;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 1em;
}

.modal-search::placeholder {
    color: #aaa;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    border-top: 1px solid #fff;
    padding-top: 15px;
}

.top-actions {
    border-top: none;
    border-bottom: 1px solid #fff;
    padding-top: 0;
    padding-bottom: 15px;
    margin-top: 0;
    margin-bottom: 20px;
}

.btn-primary {
    background-color: #ffcc00;
    color: #000080;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border: 1px solid #fff;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
}

.selected-count {
    display: inline-block;
    background-color: #ffcc00;
    color: #000080;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.8em;
    margin-left: 10px;
}

#scores {
    display: flex;
    justify-content: space-around;
    padding: 20px;
    margin-top: 20px;
    border-radius: 8px;
}

.player-score {
    background-color: #444;
    border: 1px solid #e5e7eb;
    padding: 5px;
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    display: flex;
    font-size: 1em;
    flex-direction: column;
    align-items: center;
    width: 150px;
    color: #fff;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
}

.player-score-text {
    width: 80%;
    background-color: #00008b;
    font-family: cursive;
    padding: 10px;
    border-radius: 8px;
    color: #fff;
    font-size: 1.6em;
}

.player-score button {
    display: inline-block;
    padding: 5px 10px;
    margin: 5px;
    background-color: green;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#addPlayer1, #addPlayer2, #addPlayer3 {
    background-color: #10b981;
}

#subtractPlayer1, #subtractPlayer2, #subtractPlayer3 {
    background-color: #ef4444;
}

button {
    background-color: #ffcc00;
    color: #000;
    padding: 10px 20px;
    font-size: 1.2em;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 20px;
}

/* Add the following styles to your existing CSS */
.category-title-wrapper {
    margin-bottom: 10px;
}

.game-columns {
    float: left;
    width: 80%;
}

.detail-column {
    width: 20%;
    padding: 10px;
    border-left: 1px solid #ccc;
}

#scoreText1, #scoreText2, #scoreText3 {
    padding: 10px;
    font-size: 1.8em;
}
.scoreMoneySymbol p {
    padding: 10px;
    font-size: 1.8em;
}
/* Mobile styles */
@media only screen and (max-width: 1200px) {
    #jeopardyLogo {
        max-width: 30%;
    }

    #questions {
        grid-template-columns: repeat(3, 1fr);
        width: 100%;
    }

    .question {
        font-size: 1.2em;
        padding: 15px;
    }

    .category-title {
        font-size: 1.2em;
        padding: 10px;
    }

    #questionDetail {
        width: 90%;
    }


    button {
        font-size: 1.2em;
        padding: 10px 20px;
    }
}

/* Mobile styles */
@media only screen and (max-width: 600px) {
    #jeopardyLogo {
        max-width: 50%;
    }

    #questions {
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
    }

    .question {
        font-size: 0.9em;
        padding: 8px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .category-title {
        font-size: 0.9em;
        padding: 8px;
        height: 35px;
    }

    #questionDetail {
        width: 100%;
        font-size: 2em;
    }
    
    .question-text {
        font-size: 1em;
        margin: 20px 10px;
    }

    #scores {
        flex-direction: column;
        align-items: center;
        position: relative;
        margin-top: 40px;
        padding-bottom: 30px;
        border-top: 2px solid #00008b;
    }
    
    #scores::before {
        content: "Scores";
        display: block;
        width: 100%;
        text-align: center;
        font-size: 1.5em;
        font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
        color: #ffcc00;
        margin-bottom: 15px;
        padding-top: 10px;
    }

    .player-score {
        width: 90%;
        margin-bottom: 20px;
    }

    .player-score-text {
        font-size: 1.5em;
        padding: 10px;
    }

    .player-score button {
        font-size: 1.2em;
        padding: 10px 20px;
    }

    button {
        font-size: 1.2em;
        padding: 10px 20px;
    }
}
