@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #4ecca3;
    --primary-light: #6adfb5;
    --primary-dark: #3aa882;
    --danger-color: #e84545;
    --text-light: #ffffff;
    --text-dark: #1a1a2e;
    --bg-dark: #0f0e17;
    --bg-gradient: linear-gradient(135deg, #0f0e17 0%, #19182a 100%);
    --bg-card: rgba(255, 255, 255, 0.08);
    --transition: all 0.3s ease;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    --border-radius: 16px;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-gradient);
    color: var(--text-light);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

#game-container {
    width: 100%;
    max-width: 1200px;
    padding: 20px;
    text-align: center;
    position: relative;
}

.screen {
    background: rgba(15, 14, 23, 0.95);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    animation: fadeIn 0.5s ease-out;
    width: 90%;
    max-width: 600px;
}

.screen#game-screen {
    width: 100%;
    max-width: 100%;
    padding: 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
    height: 100vh;
    background: var(--bg-dark);
}

.screen:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.45);
}

.screen#game-screen:hover {
    transform: none;
}

.hidden {
    display: none;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3),
                 0 0 20px rgba(78, 204, 163, 0.3);
    letter-spacing: 2px;
    font-weight: 700;
    text-align: center;
}

h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: var(--danger-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3),
                 0 0 20px rgba(232, 69, 69, 0.3);
    font-weight: 600;
    text-align: center;
}

p {
    font-size: 1.2rem;
    margin-bottom: 10px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
}

button {
    background: linear-gradient(45deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    color: var(--text-light);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin: 15px auto;
    display: block;
    box-shadow: 0 4px 15px rgba(78, 204, 163, 0.3);
    position: relative;
    overflow: hidden;
}

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

button:hover::before {
    left: 100%;
}

button:hover {
    background: linear-gradient(45deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(78, 204, 163, 0.4);
}

button:active {
    transform: translateY(-1px);
}

#start-screen, #game-over-screen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#gameCanvas {
    background: rgba(15, 14, 23, 0.7);
    border-radius: var(--border-radius);
    margin: 20px auto;
    display: block;
    max-width: 98%;
    max-height: 85vh;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.game-info {
    display: flex;
    justify-content: space-between;
    padding: 15px 25px;
    font-size: 1.1rem;
    background: rgba(15, 14, 23, 0.9);
    border-radius: 12px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    width: 98%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    align-items: center;
}

#score, #time {
    background: rgba(78, 204, 163, 0.1);
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: 500;
}

#high-score, #final-score {
    color: var(--primary-color);
    font-weight: 600;
}

.exit-btn {
    background: rgba(232, 69, 69, 0.2);
    border: 1px solid rgba(232, 69, 69, 0.3);
    padding: 8px 15px;
    font-size: 0.9rem;
    color: var(--text-light);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 1px;
    font-weight: 500;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: none;
}

.exit-btn:hover {
    background: rgba(232, 69, 69, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(232, 69, 69, 0.3);
}

.exit-btn:active {
    transform: translateY(0);
}

.exit-btn i {
    font-size: 1rem;
}

.info-card, .result-card {
    background: rgba(15, 14, 23, 0.9);
    border-radius: 12px;
    padding: 15px 25px;
    margin: 15px 0;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.info-card i, .result-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.instructions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
    width: 100%;
}

.instruction-item {
    background: rgba(78, 204, 163, 0.1);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition);
    border: 1px solid rgba(78, 204, 163, 0.2);
}

.instruction-item:hover {
    transform: translateY(-5px);
    background: rgba(78, 204, 163, 0.15);
}

.instruction-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.instruction-item p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.credits {
    position: absolute;
    bottom: 20px;
    text-align: center;
    width: 100%;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.credits i {
    color: var(--danger-color);
}

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

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

@media (max-width: 768px) {
    .screen {
        padding: 30px;
        width: 95%;
    }

    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }

    .game-info {
        font-size: 0.9rem;
        padding: 10px 15px;
    }

    button {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .instructions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .screen {
        padding: 20px;
    }

    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.7rem;
    }

    p {
        font-size: 1rem;
    }

    .game-info {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
}

.game-controls {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 14, 23, 0.85);
    border-radius: var(--border-radius);
    border: 2px solid rgba(78, 204, 163, 0.3);
    box-shadow: 0 0 20px rgba(78, 204, 163, 0.3);
}

.play-btn {
    background: linear-gradient(45deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 15px 40px;
    font-size: 1.3rem;
    border-radius: 12px;
    color: white;
    font-weight: bold;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(78, 204, 163, 0.3);
}

.pulse-btn {
    animation: pulse 1.5s infinite;
}

.play-btn:hover {
    background: linear-gradient(45deg, var(--primary-light) 0%, var(--primary-color) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(78, 204, 163, 0.4);
}

.play-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(78, 204, 163, 0.3);
}

/* hidden sınıfı için stiller */
.hidden {
    display: none !important;
} 