body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#game-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#setup-screen, #game-screen {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 20px;
    max-width: 800px;
    width: 100%;
}

#game-screen {
    position: relative;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

#question-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.grid-item {
    background-color: rgba(52, 152, 219, 0.9);
    color: white;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    border-radius: 5px;
    border: none;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s;
}

.grid-item:hover {
    background-color: rgba(41, 128, 185, 0.9);
}

.grid-item.star {
    grid-column: 2 / span 2;
    grid-row: 6;
}

#question-card {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(236, 240, 241, 0.95);
    padding: 20px;
    border-radius: 5px;
    max-width: 80%;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    font-size: 1.2em;
    font-weight: bold;
}

.answer-option {
    background-color: rgba(46, 204, 113, 0.9);
    color: white;
    padding: 10px;
    margin: 5px 0;
    cursor: pointer;
    border-radius: 5px;
    border: none;
    width: 100%;
    text-align: right;
    transition: background-color 0.3s;
    font-size: 1.1em;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.answer-option:hover {
    background-color: rgba(39, 174, 96, 0.9);
}

#feedback {
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
    text-align: center;
    font-size: 1.2em;
    font-weight: bold;
}

.correct {
    background-color: rgba(46, 204, 113, 0.9);
    color: white;
}

.incorrect {
    background-color: rgba(231, 76, 60, 0.9);
    color: white;
}

#score {
    text-align: center;
    font-size: 1.3em;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px;
    border-radius: 5px;
    margin-top: 20px;
}

#game-end {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    z-index: 1000;
    font-size: 1.2em;
    font-weight: bold;
}

#continue-button {
    display: block;
    margin: 10px auto 0;
    font-size: 1.1em;
    font-weight: bold;
    background-color: rgba(52, 152, 219, 0.9);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#continue-button:hover {
    background-color: rgba(41, 128, 185, 0.9);
}

.show-answer-button {
    background-color: rgba(52, 152, 219, 0.9);
    color: white;
    padding: 10px;
    margin: 10px 0;
    cursor: pointer;
    border-radius: 5px;
    border: none;
    width: 100%;
    text-align: center;
    transition: background-color 0.3s;
    font-size: 1.1em;
    font-weight: bold;
}

.show-answer-button:hover {
    background-color: rgba(41, 128, 185, 0.9);
}

#answer-options p {
    background-color: rgba(236, 240, 241, 0.95);
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}


#footer {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px;
    text-align: center;
    margin-top: 20px;
    width: 100%;
}

#footer p {
    margin-bottom: 10px;
}

#footer hr {
    margin: 10px 0;
    border: 0;
    border-top: 1px solid #ccc;
}

.secondary-button {
    background-color: rgba(52, 152, 219, 0.9);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s;
}

.secondary-button:hover {
    background-color: rgba(41, 128, 185, 0.9);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 5px;
}

.close {
    color: #aaa;
    float: left;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

#conversation-content {
    max-height: 400px;
    overflow-y: auto;
}

.message {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 5px;
}

.message.human {
    background-color: #f0f0f0;
}

.message.assistant {
    background-color: #e6f3ff;
}

