/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Creepster&family=Nosifer&family=Changa+One&display=swap');

/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 50%, #16213e 100%);
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: calc(100vh - 80px); /* Account for navbar */
    margin-top: 80px; /* Space for fixed navbar */
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    border: 2px solid #444;
}

.title {
    font-family: 'Creepster', cursive;
    font-size: 3.5rem;
    color: #ff6b6b;
    text-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
    margin-bottom: 10px;
    animation: glow 2s ease-in-out infinite alternate;
}

.subtitle {
    font-size: 1.2rem;
    color: #cccccc;
    font-style: italic;
}

@keyframes glow {
    from { text-shadow: 0 0 20px rgba(255, 107, 107, 0.5); }
    to { text-shadow: 0 0 30px rgba(255, 107, 107, 0.8), 0 0 40px rgba(255, 107, 107, 0.3); }
}

/* Game Selection */
.game-selection {
    text-align: center;
    margin-bottom: 40px;
}

.game-selection h2 {
    font-family: 'Changa One', cursive;
    font-size: 2.5rem;
    color: #4ecdc4;
    margin-bottom: 30px;
    text-shadow: 0 0 10px rgba(78, 205, 196, 0.3);
}

.franchise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
}

.franchise-card {
    background: linear-gradient(145deg, #1e1e2e, #252539);
    border: 2px solid #444;
    border-radius: 20px;
    padding: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.franchise-card:hover {
    transform: scale(1.05);
    border-color: #4ecdc4;
    box-shadow: 0 10px 30px rgba(78, 205, 196, 0.3);
}

.franchise-card[data-franchise="fnaf"]:hover {
    border-color: #ff6b4a;
    box-shadow: 0 10px 30px rgba(255, 107, 74, 0.3);
}

.franchise-card[data-franchise="killer"]:hover {
    border-color: #dc143c;
    box-shadow: 0 10px 30px rgba(220, 20, 60, 0.3);
}

.franchise-card[data-franchise="twd"]:hover {
    border-color: #228b22;
    box-shadow: 0 10px 30px rgba(34, 139, 34, 0.3);
}

.franchise-icon {
    font-size: 4rem;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.franchise-card h3 {
    font-family: 'Changa One', cursive;
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #ffffff;
}

.franchise-card p {
    color: #cccccc;
    font-size: 1rem;
    line-height: 1.4;
}

/* Game Area */
.game-area {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    border: 1px solid #444;
}

.back-btn {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: #ff5252;
    transform: scale(1.05);
}

.game-info {
    display: flex;
    gap: 30px;
    align-items: center;
}

.franchise-name {
    font-family: 'Changa One', cursive;
    font-size: 1.5rem;
    color: #4ecdc4;
}

.score {
    font-size: 1.2rem;
    color: #ffd700;
    font-weight: bold;
}

/* Quote Container */
.quote-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.quote-card {
    background: linear-gradient(145deg, #1a1a2e, #252539);
    border: 2px solid #444;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.quote-text {
    font-size: 1.6rem;
    line-height: 1.6;
    color: #ffffff;
    margin-bottom: 20px;
    font-style: italic;
    position: relative;
}

.quote-text::before {
    content: '"';
    font-size: 4rem;
    color: #4ecdc4;
    position: absolute;
    top: -20px;
    left: -20px;
    opacity: 0.3;
}

.quote-text::after {
    content: '"';
    font-size: 4rem;
    color: #4ecdc4;
    position: absolute;
    bottom: -40px;
    right: -20px;
    opacity: 0.3;
}

.quote-author-hint {
    font-size: 1rem;
    color: #888;
    font-style: normal;
}

/* Answer Section */
.answer-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

#answerInput {
    padding: 15px;
    font-size: 1.2rem;
    border: 2px solid #444;
    border-radius: 10px;
    background: #1a1a2e;
    color: #ffffff;
    text-align: center;
}

#answerInput:focus {
    outline: none;
    border-color: #4ecdc4;
    box-shadow: 0 0 10px rgba(78, 205, 196, 0.3);
}

.answer-section div {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.submit-btn, .hint-btn, .skip-btn {
    padding: 12px 25px;
    font-size: 1rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.submit-btn {
    background: #4ecdc4;
    color: #1a1a2e;
}

.submit-btn:hover {
    background: #45b7aa;
    transform: scale(1.05);
}

.hint-btn {
    background: #ffd700;
    color: #1a1a2e;
}

.hint-btn:hover {
    background: #ffed4e;
    transform: scale(1.05);
}

.skip-btn {
    background: #ff6b6b;
    color: white;
}

.skip-btn:hover {
    background: #ff5252;
    transform: scale(1.05);
}

/* Feedback */
.feedback {
    text-align: center;
    margin-bottom: 20px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
}

.feedback.correct {
    color: #4ecdc4;
    animation: bounce 0.6s ease;
}

.feedback.incorrect {
    color: #ff6b6b;
    animation: shake 0.6s ease;
}

@keyframes bounce {
    0%, 20%, 60%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    80% { transform: translateY(-5px); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Progress Section */
.progress-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 1px solid #444;
}

.attempts, .question-counter {
    font-size: 1.1rem;
    color: #cccccc;
}

/* Results Screen */
.results-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
}

.results-content {
    background: linear-gradient(145deg, #1a1a2e, #252539);
    border: 2px solid #444;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.results-title {
    font-family: 'Changa One', cursive;
    font-size: 2.5rem;
    color: #4ecdc4;
    margin-bottom: 30px;
    text-shadow: 0 0 10px rgba(78, 205, 196, 0.3);
}

.final-score {
    margin-bottom: 30px;
}

.score-display {
    font-size: 3rem;
    font-weight: bold;
    color: #ffd700;
    margin-bottom: 10px;
}

.score-percentage {
    font-size: 1.5rem;
    color: #4ecdc4;
}

.performance-stats {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stat {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #444;
}

.stat-label {
    color: #cccccc;
}

.stat-value {
    color: #ffffff;
    font-weight: bold;
}

.performance-message {
    font-size: 1.2rem;
    margin-bottom: 30px;
    padding: 15px;
    background: rgba(78, 205, 196, 0.1);
    border-radius: 10px;
    border: 1px solid #4ecdc4;
    color: #4ecdc4;
}

.results-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.play-again-btn, .change-franchise-btn, .leaderboard-btn {
    padding: 15px 25px;
    font-size: 1.1rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.play-again-btn {
    background: #4ecdc4;
    color: #1a1a2e;
}

.play-again-btn:hover {
    background: #45b7aa;
    transform: scale(1.05);
}

.change-franchise-btn {
    background: #ffd700;
    color: #1a1a2e;
}

.change-franchise-btn:hover {
    background: #ffed4e;
    transform: scale(1.05);
}

.leaderboard-btn {
    background: #ff6b6b;
    color: white;
}

.leaderboard-btn:hover {
    background: #ff5252;
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    .title {
        font-size: 2.5rem;
    }
    
    .franchise-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .game-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .game-info {
        gap: 20px;
    }
    
    .quote-card {
        padding: 25px;
    }
    
    .quote-text {
        font-size: 1.3rem;
    }
    
    .answer-section div {
        flex-direction: column;
    }
    
    .progress-section {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .franchise-card {
        padding: 20px;
    }
    
    .franchise-icon {
        font-size: 3rem;
    }
    
    .quote-text {
        font-size: 1.1rem;
    }
    
    .results-content {
        padding: 25px;
    }
    
    .score-display {
        font-size: 2.5rem;
    }
} 