* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Orbitron', sans-serif;
    height: 100vh;
    overflow: hidden;
    background: #000;
    color: #fff;
}

/* Yıldız animasyonları için güncellenen CSS */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 0;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #fff;
    border-radius: 50%;
    animation: twinkle var(--duration, 4s) ease-in-out infinite;
    opacity: 0.7;
}

.star.small {
    width: 1px;
    height: 1px;
}

.star.medium {
    width: 2px;
    height: 2px;
}

.star.large {
    width: 3px;
    height: 3px;
}

@keyframes twinkle {
    0% {
        opacity: 0.3;
        transform: scale(0.7);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0.3;
        transform: scale(0.7);
    }
}

/* Yıldız kuyruğu efekti için */
.star.shooting {
    position: absolute;
    width: 3px;
    height: 3px;
    background: linear-gradient(45deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0.3) 70%, transparent 100%);
    box-shadow: 0 0 5px #fff;
    animation: shooting 2s linear;
}

@keyframes shooting {
    0% {
        transform: translateX(-100px) translateY(-100px) rotate(45deg);
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        transform: translateX(400px) translateY(400px) rotate(45deg);
        opacity: 0;
    }
}

.twinkling {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent url('images/twinkling.png') repeat;
    z-index: 1;
    animation: move-twinkle 200s linear infinite;
}

@keyframes move-twinkle {
    from {background-position: 0 0;}
    to {background-position: -10000px 5000px;}
}

.container {
    position: relative;
    z-index: 10;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.game-title {
    text-align: center;
    opacity: 0;
    animation: showContent 1s ease-in-out 3s forwards;
    position: relative;
    z-index: 11;
}

h1 {
    font-family: 'Origin Tech Demo', sans-serif;
    font-size: 4rem;
    letter-spacing: 4px;
    font-weight: normal;
    margin-bottom: 2rem;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
    animation: glow 2s ease-in-out infinite alternate;
    text-transform: uppercase;
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px #fff, 
                     0 0 20px #fff, 
                     0 0 30px #2980b9, 
                     0 0 40px #2980b9;
    }
    to {
        text-shadow: 0 0 20px #fff, 
                     0 0 30px #3498db, 
                     0 0 40px #3498db, 
                     0 0 50px #3498db,
                     0 0 60px #3498db;
    }
}

.loading-bar {
    width: 400px;
    height: 18px;
    background: rgba(255,255,255,0.15);
    border-radius: 9px;
    margin: 30px auto;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(52,152,219,0.3);
}

.loading-progress {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2980b9);
    box-shadow: 0 0 15px rgba(52,152,219,0.5);
    opacity: 0;
    transform-origin: left;
    animation: none;
}

@keyframes loading {
    0% { 
        width: 0; 
        opacity: 1;
    }
    100% { 
        width: 100%; 
        opacity: 1;
    }
}

.start-button {
    background: transparent;
    border: 2px solid #3498db;
    color: #fff;
    padding: 15px 40px;
    font-size: 1.2rem;
    border-radius: 30px;
    cursor: pointer;
    font-family: 'Black Ops One', 'Orbitron', sans-serif;
    transition: all 0.3s ease;
    opacity: 0;
    display: none;
    position: relative;
    z-index: 12;
}

.start-button:hover {
    background: #3498db;
    box-shadow: 0 0 20px rgba(52,152,219,0.5);
}

@keyframes show-button {
    0% { 
        opacity: 0; 
        transform: translateY(20px);
    }
    100% { 
        opacity: 1; 
        transform: translateY(0);
    }
}

/* Mobil optimizasyonları */
@media (max-width: 768px) {
    h1 {
        font-size: 2.8rem;
        letter-spacing: 2px;
    }

    .loading-bar {
        width: 300px;
        height: 15px;
        border-radius: 7.5px;
    }

    .start-button {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

/* Çok küçük ekranlar için ek medya sorgusu */
@media (max-width: 480px) {
    .loading-bar {
        width: 95vw;
        height: 15px;
        border-radius: 7.5px;
    }
}

/* Logo animasyonu için stil */
.cosmic-logo {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 300px;
    opacity: 0;
    z-index: 1;
    animation: showHideLogo 3s ease-in-out forwards;
}

@keyframes showHideLogo {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    80% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

/* Ana içerik için yeni animasyon */
@keyframes showContent {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
} 