/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
}

.container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

/* Screen Management */
.screen {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.screen.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Start Screen Styles */
.start-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.start-content h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #4a5568;
    line-height: 1.2;
}

.subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 25px;
    font-weight: 500;
}

.instructions {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

/* Button Styles */
.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    min-width: 200px;
}

.btn-primary {
    background: linear-gradient(45deg, #ff6b6b, #ffa500);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.btn-wrestler {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
    margin-right: 10px;
}

.btn-wrestler:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.btn-coaster {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    margin-left: 10px;
}

.btn-coaster:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

/* Game Content Styles */
.game-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.progress {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1rem;
    color: #666;
    font-weight: 500;
}

.question-card {
    text-align: center;
}

.question-name {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #2d3748;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.question-prompt {
    font-size: 1.3rem;
    color: #4a5568;
    margin-bottom: 30px;
    font-weight: 500;
}

.answer-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Answer Screen Styles */
.answer-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.result-indicator {
    margin-bottom: 25px;
}

.result-message {
    font-size: 2rem;
    font-weight: bold;
    padding: 15px 25px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 20px;
}

.result-message.correct {
    background: linear-gradient(45deg, #2ecc71, #27ae60);
    color: white;
}

.result-message.incorrect {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
}

.answer-card {
    max-width: 500px;
    margin: 0 auto;
}

.answer-name {
    font-size: 2.5rem;
    margin-bottom: 25px;
    color: #2d3748;
    font-weight: bold;
}

.answer-details {
    margin-bottom: 30px;
}

.answer-image {
    width: 100%;
    max-width: 450px;
    height: 300px;
    object-fit: contain;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background: #f8f9fa;
}

.answer-image.clickable {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.answer-image.clickable:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.answer-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    text-align: left;
    max-width: 450px;
    margin: 0 auto;
}

/* Final Screen Styles */
.final-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.final-content h1 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #4a5568;
}

.score-display {
    margin-bottom: 30px;
}

.final-score {
    font-size: 2rem;
    font-weight: bold;
    color: #2d3748;
    margin-bottom: 15px;
}

.score-message {
    font-size: 1.2rem;
    color: #666;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .start-content, .game-content, .answer-content, .final-content {
        padding: 25px;
    }

    .start-content h1 {
        font-size: 2rem;
    }

    .question-name {
        font-size: 2.5rem;
    }

    .answer-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-wrestler, .btn-coaster {
        margin: 5px 0;
        width: 100%;
        max-width: 280px;
    }

    .answer-name {
        font-size: 2rem;
    }

    .final-content h1 {
        font-size: 2rem;
    }

    .final-score {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .question-name {
        font-size: 2rem;
    }

    .start-content h1 {
        font-size: 1.8rem;
    }

    .btn {
        min-width: 150px;
        padding: 12px 25px;
    }
}

/* Image 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.8);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    margin: auto;
}

.modal-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.close:hover {
    color: #ccc;
}
