:root {
    --primary-color: #3498db;
    --correct-color: #2ecc71;
    --incorrect-color: #e74c3c;
    --bg-color: #f9f9f9;
    --card-bg: white;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: 0.3s ease;
}

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

body {
    align-items: flex-start;
    padding: 20px 0;
}

.game-container {
    width: 100%;
    max-width: 1200px;
    height: auto;
    grid-template-rows: auto 1fr auto;
    gap: 16px;
    margin: 0 auto;
    padding: 16px;
}

.progress-container {
    grid-row: 1;
    width: 100%;
    height: 10px;
    background-color: #eee;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-bar {
    height: 100%;
    background-color: var(--primary-color);
    width: 0%;
    transition: width 0.5s ease-out;
}

.candidate {
    width: calc(50% - 8px);
    aspect-ratio: 1/1;
    margin: 0 auto;
    max-width: 400px;
}

.candidate:hover {
    transform: scale(1.02);
}

.answers-container {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: nowrap;
    padding: 0 16px;
}

.answer {
    flex: 1;
    max-width: calc(50% - 8px);
    aspect-ratio: 1/1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.answer:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.answer.correct {
    box-shadow: 0 0 0 3px var(--correct-color);
}

.answer.incorrect {
    box-shadow: 0 0 0 3px var(--incorrect-color);
}

img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Alternative layout */
.game-container.alt-layout {
    grid-template-rows: auto auto auto auto;
}

.alt-layout .answers-container {
    flex-direction: column;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.loading {
    position: relative;
}

.loading::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
}
