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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    min-height: 100vh;
}

/* Main Content */
.main-content {
    padding: 2rem;
}

.game-container {
    max-width: 1800px;
    margin: 0 auto;
    display: flex;
    gap: 20px;
    min-height: calc(100vh - 200px);
}

/* Sidebar */
.sidebar {
    background: rgba(255, 255, 255, 0.15);
    padding: 20px;
    border-radius: 15px 0 0 15px;
    min-width: 300px;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar h1 {
    font-size: 2em;
    text-align: center;
    margin-bottom: 10px;
}

.game-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.2);
    padding: 12px 15px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1em;
    text-align: center;
}

.game-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Trivia Section */
.trivia-section {
    background: rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 10px;
}

.trivia-section h3 {
    margin-bottom: 15px;
    font-size: 1.2em;
}

#trivia-question {
    margin-bottom: 15px;
    font-size: 1em;
    line-height: 1.5;
}

.trivia-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.trivia-option {
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid transparent;
    padding: 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
}

.trivia-option:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateX(5px);
}

.trivia-option.correct {
    background: rgba(76, 175, 80, 0.5);
    border-color: #4caf50;
}

.trivia-option.incorrect {
    background: rgba(244, 67, 54, 0.5);
    border-color: #f44336;
}

/* Guess Section */
.guess-section {
    background: rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 10px;
}

.guess-section h3 {
    margin-bottom: 15px;
    font-size: 1.2em;
}

#guess-input {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    margin-bottom: 10px;
}

.reveal-btn {
    background: rgba(244, 67, 54, 0.9) !important;
    color: white !important;
    margin-top: 5px;
}

.reveal-btn:hover {
    background: rgba(244, 67, 54, 1) !important;
}

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

#guess-feedback.correct {
    background: rgba(76, 175, 80, 0.5);
}

#guess-feedback.incorrect {
    background: rgba(244, 67, 54, 0.5);
}

/* Buttons and Inputs */
button, select {
    padding: 12px 20px;
    font-size: 1em;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: #764ba2;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23764ba2' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 35px;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

button:active {
    transform: translateY(0);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Game Area */
.game-area {
    flex: 1;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.canvas-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 20px;
}

#game-canvas {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

/* Footer */
/* Victory Overlay */
.victory-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.victory-message {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.5s ease-out;
}

.victory-message h2 {
    font-size: 3em;
    margin-bottom: 20px;
}

.victory-message p {
    font-size: 1.2em;
    margin: 10px 0;
}

.victory-message button {
    margin-top: 20px;
    font-size: 1.2em;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
