/* Jeopardy Game Styles */

#jeopardy-start-container {
    margin: 40px 0;
}

.jeopardy-start-button {
    background: linear-gradient(135deg, #64b5f6 0%, #81c784 25%, #ffb74d 50%, #f06292 100%);
    border: none;
    border-radius: 20px;
    padding: 60px 120px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.jeopardy-start-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.jeopardy-start-button:active {
    transform: translateY(-2px);
}

#jeopardy-game-container {
    width: 100%;
}

.jeopardy-board {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    max-width: 1000px;
    margin: 0 auto;
}

.jeopardy-row {
    display: contents;
}

.jeopardy-cell {
    background: linear-gradient(135deg, #64b5f6 0%, #81c784 25%, #ffb74d 50%, #f06292 100%);
    color: white;
    padding: 20px 10px;
    text-align: center;
    font-weight: 700;
    font-size: 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.jeopardy-cell:hover:not(.answered) {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

.jeopardy-cell.answered {
    background: #e0e0e0;
    color: #999;
    cursor: default;
    opacity: 0.5;
}

.header-cell {
    background: linear-gradient(135deg, #1976d2 0%, #388e3c 25%, #f57c00 50%, #c2185b 100%);
    font-size: 20px;
    min-height: 100px;
    cursor: default;
}

.point-cell {
    /* Background color is set inline to match category colors */
    color: white;
    font-size: 22px;
    font-weight: 700;
    cursor: default;
}

.question-cell {
    font-size: 24px;
}

/* Modal Styles */
.jeopardy-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.jeopardy-modal-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 700px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.jeopardy-question-display {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, #e3f2fd 0%, #f1f8e9 100%);
    transition: all 0.3s ease;
}

.jeopardy-question-display:hover {
    background: linear-gradient(135deg, #bbdefb 0%, #c8e6c9 100%);
    transform: scale(1.02);
}

.jeopardy-question-display h3 {
    font-size: 32px;
    color: #333;
    font-weight: 600;
    line-height: 1.4;
}

.jeopardy-answer-display {
    margin-top: 30px;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 12px;
}

.jeopardy-answer-display h4 {
    font-size: 20px;
    color: #666;
    margin-bottom: 15px;
}

.jeopardy-answer-display p {
    font-size: 24px;
    color: #333;
    font-weight: 600;
    margin-bottom: 30px;
}

.jeopardy-answer-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.jeopardy-btn {
    padding: 15px 30px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

.correct-btn {
    background: linear-gradient(135deg, #81c784 0%, #66bb6a 100%);
    color: white;
}

.correct-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.incorrect-btn {
    background: linear-gradient(135deg, #f06292 0%, #e91e63 100%);
    color: white;
}

.incorrect-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.close-btn {
    background: #999;
    color: white;
    margin-top: 20px;
}

.close-btn:hover {
    background: #777;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .jeopardy-start-button {
        padding: 40px 60px;
    }
    
    .jeopardy-start-button h3 {
        font-size: 28px !important;
    }
    
    .jeopardy-board {
        grid-template-columns: repeat(5, 1fr);
        gap: 5px;
    }
    
    .jeopardy-cell {
        padding: 10px 5px;
        font-size: 12px;
        min-height: 60px;
    }
    
    .header-cell {
        font-size: 14px;
        min-height: 70px;
    }
    
    .point-cell {
        font-size: 14px;
    }
    
    .question-cell {
        font-size: 16px;
    }
    
    .jeopardy-modal-content {
        padding: 20px;
    }
    
    .jeopardy-question-display h3 {
        font-size: 24px;
    }
    
    .jeopardy-answer-display p {
        font-size: 20px;
    }
    
    .jeopardy-btn {
        padding: 12px 20px;
        font-size: 16px;
        min-width: 120px;
    }
}

/* Maybe Next Time Notification Styles */
.maybe-next-time-notification {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
    overflow: hidden;
}

.maybe-next-time-notification.hiding {
    animation: fadeOut 0.3s ease forwards;
}

.maybe-next-time-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.airplane-with-banner {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 20px;
    animation: flyRightToLeft 6s ease-in-out forwards;
    transform-origin: center;
    animation-fill-mode: forwards;
}

.airplane-animation {
    font-size: 120px;
    display: inline-block;
    animation: planeWobble 0.5s ease-in-out infinite;
    transform-origin: center;
}

.banner-paper {
    background: white;
    padding: 15px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: bannerWave 0.6s ease-in-out infinite;
    transform-origin: left center;
}

.banner-paper::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 10px solid white;
}

.banner-text {
    font-size: 36px;
    font-weight: 900;
    color: #333;
    letter-spacing: 2px;
    white-space: nowrap;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

@keyframes flyRightToLeft {
    0% {
        transform: translateX(calc(100vw + 200px)) translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateX(0) translateY(-20px);
        opacity: 1;
    }
    90% {
        transform: translateX(calc(-100vw - 200px)) translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateX(calc(-100vw - 200px)) translateY(0);
        opacity: 0;
    }
}

@keyframes planeWobble {
    0%, 100% {
        transform: rotate(-5deg);
    }
    50% {
        transform: rotate(5deg);
    }
}

@keyframes bannerWave {
    0%, 100% {
        transform: rotate(-2deg);
    }
    50% {
        transform: rotate(2deg);
    }
}

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

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}
