/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;500;600;700&family=Source+Sans+Pro:wght@400;500;600;700&display=swap');

/* Color variables for dark theme */
:root {
    --primary-bg: #000;
    --primary-text: #fff;
    --accent-orange: #ff4500;
    --accent-gray: #333;
    --card-bg: #1a1a1a;
    --card-text: #fff;
    --wrong-bg: #2a2a2a;
    --hint-bg: #333;
    --hint-border: #ff4500;
    --secondary-gray: #666;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Source Sans Pro', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--primary-bg);
    min-height: 100vh;
    color: var(--primary-text);
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header styles */
header {
    text-align: center;
    margin-bottom: 30px;
    background: var(--card-bg);
    color: var(--card-text);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid var(--accent-gray);
}

/* Logo styling */
.logo {
    height: 40px;
    width: auto;
    vertical-align: middle;
    margin: 0 10px;
}

header h1 {
    font-family: 'Source Code Pro', 'Courier New', monospace;
    font-size: 3rem;
    font-weight: 400;
    color: var(--primary-text);
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px #000;
    animation: bounce 2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.subtitle {
    font-family: 'Source Sans Pro', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.2rem;
    color: var(--secondary-gray);
    margin-bottom: 15px;
}

.level-indicator {
    font-family: 'Source Code Pro', 'Courier New', monospace;
    display: inline-block;
    background: var(--accent-orange);
    color: var(--primary-text);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 5px 15px rgba(255, 69, 0, 0.3);
}

/* Main content styles */
.riddle-section, .victory-section, .wrong-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.riddle-card, .victory-card, .wrong-card {
    background: var(--card-bg);
    color: var(--card-text);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    text-align: center;
    max-width: 600px;
    width: 100%;
    animation: slideIn 0.8s ease-out;
    border: 1px solid var(--accent-gray);
}

.riddle-card h2, .victory-card h2, .wrong-card h2 {
    font-family: 'Source Code Pro', 'Courier New', monospace;
    font-size: 2rem;
    color: var(--accent-orange);
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px #000;
}

.riddle-text {
    font-family: 'Source Sans Pro', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--accent-gray);
    color: var(--primary-text);
    padding: 25px;
    border-radius: 15px;
    margin: 20px 0;
    font-size: 1.3rem;
    font-weight: 500;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--secondary-gray);
}

/* Links section */
.links-section h3 {
    font-family: 'Source Code Pro', 'Courier New', monospace;
    color: var(--secondary-gray);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.riddle-link {
    font-family: 'Source Code Pro', 'Courier New', monospace;
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: var(--primary-text);
    border-radius: 15px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--accent-gray);
}

.riddle-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.riddle-link:hover::before {
    left: 100%;
}

.riddle-link.correct {
    background: var(--wrong-bg);
    color: var(--primary-text);
    border-color: var(--secondary-gray);
}

.riddle-link.wrong {
    background: var(--wrong-bg);
    color: var(--primary-text);
    border-color: var(--secondary-gray);
}

.riddle-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Victory page styles */
.trophy {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: rotate 2s infinite linear;
    color: var(--accent-orange);
}

.victory-message {
    font-family: 'Source Sans Pro', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.2rem;
    color: var(--secondary-gray);
    margin-bottom: 25px;
    line-height: 1.8;
}

.achievements {
    background: var(--accent-gray);
    color: var(--primary-text);
    padding: 25px;
    border-radius: 15px;
    margin: 25px 0;
    text-align: left;
    border: 1px solid var(--secondary-gray);
}

.achievements h3 {
    font-family: 'Source Code Pro', 'Courier New', monospace;
    margin-bottom: 15px;
    text-align: center;
    color: var(--accent-orange);
}

.achievements ul {
    list-style: none;
}

.achievements li {
    font-family: 'Source Sans Pro', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 10px 0;
    font-size: 1.1rem;
}

.celebration {
    font-size: 2rem;
    margin: 25px 0;
    animation: bounce 1s infinite;
    color: var(--accent-orange);
}

.play-again-btn {
    font-family: 'Source Code Pro', 'Courier New', monospace;
    display: inline-block;
    background: var(--accent-orange);
    color: var(--primary-text);
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 69, 0, 0.3);
}

.play-again-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 69, 0, 0.4);
    background: #ff5722;
}

/* Wrong answer page styles */
.wrong-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: shake 0.5s ease-in-out;
    color: var(--accent-orange);
}

.encouragement {
    font-family: 'Source Sans Pro', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.2rem;
    color: var(--secondary-gray);
    margin-bottom: 25px;
    line-height: 1.8;
}

.tips {
    background: var(--accent-gray);
    color: var(--primary-text);
    padding: 25px;
    border-radius: 15px;
    margin: 25px 0;
    text-align: left;
    border: 1px solid var(--secondary-gray);
}

.tips h3 {
    font-family: 'Source Code Pro', 'Courier New', monospace;
    margin-bottom: 15px;
    text-align: center;
    color: var(--accent-orange);
}

.tips ul {
    list-style: none;
}

.tips li {
    font-family: 'Source Sans Pro', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 10px 0;
    font-size: 1.1rem;
    color: var(--primary-text);
}

.try-again {
    margin-top: 30px;
}

.try-again p {
    font-family: 'Source Sans Pro', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.2rem;
    color: var(--secondary-gray);
    margin-bottom: 15px;
}

.try-again-btn {
    font-family: 'Source Code Pro', 'Courier New', monospace;
    display: inline-block;
    background: var(--accent-orange);
    color: var(--primary-text);
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 69, 0, 0.3);
}

.try-again-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 69, 0, 0.4);
    background: #ff5722;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    color: var(--card-text);
    border: 1px solid var(--accent-gray);
}

footer p {
    font-family: 'Source Sans Pro', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.1rem;
    color: var(--secondary-gray);
    font-weight: 500;
}

/* Animations */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

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

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

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 2.5rem;
    }
    
    .riddle-card, .victory-card, .wrong-card {
        padding: 25px;
    }
    
    .riddle-text {
        font-size: 1.1rem;
        padding: 20px;
    }
    
    .link-grid {
        grid-template-columns: 1fr;
    }
    
    .trophy, .wrong-icon {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 2rem;
    }
    
    .riddle-card h2, .victory-card h2, .wrong-card h2 {
        font-size: 1.5rem;
    }
    
    .riddle-text {
        font-size: 1rem;
        padding: 15px;
    }
} 