* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: linear-gradient(45deg, #1a1a1a, #2d2d2d);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 20px;
}

.game-container {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px auto;
}

canvas {
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    margin-bottom: 20px;
}

.button-container {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

button {
    background: linear-gradient(45deg, #4a90e2, #357abd);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

button:active {
    transform: translateY(0);
}

.room-link {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
    word-break: break-all;
    max-width: 100%;
    text-align: center;
}

.score-display {
    font-size: 24px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.game-title {
    font-size: 36px;
    margin-bottom: 30px;
    text-align: center;
    background: linear-gradient(45deg, #4a90e2, #357abd);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Responsive Tasarım */
@media (max-width: 850px) {
    .game-container {
        width: 95%;
        padding: 15px;
    }
    
    canvas {
        width: 100%;
        max-width: 600px;
        height: auto;
    }
    
    .game-title {
        font-size: 28px;
    }
    
    button {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 0;
        justify-content: flex-start;
    }

    .game-container {
        width: 100%;
        padding: 5px;
        margin: 0;
        border-radius: 0;
        background: none;
        box-shadow: none;
        backdrop-filter: none;
    }
    
    canvas {
        width: 100%;
        max-width: 280px;
        height: auto;
        margin: 10px 0;
    }
    
    .game-title {
        font-size: 20px;
        margin: 10px 0;
    }
    
    .button-container {
        flex-direction: column;
        width: 90%;
        gap: 8px;
        margin-top: 5px;
    }
    
    button {
        width: 100%;
        padding: 8px 16px;
        font-size: 14px;
        border-radius: 20px;
    }
    
    .score-display {
        font-size: 16px;
        margin: 5px 0;
    }

    .mobile-controls {
        bottom: 15px;
        gap: 100px;
    }

    .control-button {
        width: 40px;
        height: 40px;
        background: rgba(74, 144, 226, 0.4);
    }
    
    .control-button svg {
        width: 20px;
        height: 20px;
    }
}

/* Tablet için özel ayarlar */
@media (min-width: 768px) and (max-width: 1024px) {
    .game-container {
        width: 90%;
        padding: 15px;
    }
    
    canvas {
        width: 100%;
        max-width: 700px;
        height: auto;
    }
    
    .mobile-controls {
        bottom: 30px;
    }
}

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

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

/* Karanlık mod */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(45deg, #121212, #1a1a1a);
    }
}

/* Mobil Kontroller */
.mobile-controls {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    gap: 20px;
    z-index: 1000;
}

.control-button {
    width: 60px;
    height: 60px;
    background: rgba(74, 144, 226, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: all 0.2s ease;
}

.control-button:active {
    background: rgba(74, 144, 226, 0.5);
    transform: scale(0.95);
}

.control-button svg {
    width: 30px;
    height: 30px;
    fill: white;
}

/* Tablet ve Mobil için kontrolleri göster */
@media (max-width: 1024px) {
    .mobile-controls {
        display: flex;
    }
}

/* Mobil için özel ayarlar */
@media (max-width: 480px) {
    .control-button {
        width: 50px;
        height: 50px;
    }
    
    .control-button svg {
        width: 25px;
        height: 25px;
    }
} 