﻿/* Genel sayfa ayarları */
body {
    background-color: #000;
    color: #fff;
    height: 100vh;
    margin: 0;
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.star-select {
    font-size: 2rem;
    cursor: pointer;
    color: #555; /* Seçili olmayanlar gri */
    transition: color 0.2s;
}

    .star-select.selected {
        color: #fff; /* Seçili olanlar beyaz */
    }

    .star-select:hover {
        color: #ccc;
    }

/* Ortada karşılama metni */
.welcome-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

h1 {
    font-size: 2.5rem;
    letter-spacing: 1px;
    margin-bottom: 20px;
}
.rating-input {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
    direction: ltr; /* Yıldızların soldan sağa doğru olduğundan emin olalım */
}

.star-select {
    font-size: 2.5rem; /* Boyutu büyüttük */
    cursor: pointer;
    color: #444; /* Pasif renk */
    transition: all 0.2s ease;
    user-select: none; /* Seçimi engelle */
    position: relative;
}

    /* Hover efekti için */
    .star-select:hover {
        transform: scale(1.2); /* Üzerine gelince büyüsün */
        color: #fff !important;
    }

    /* Hover edilen yıldızdan öncekilerin de yanması için (CSS ile zor, JS ile yapacağız) */
    .star-select.selected {
        color: #ffd700; /* Altın sarısı */
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    }
/* Buton */
.enter-btn {
    background-color: transparent;
    color: white;
    border: 2px solid white;
    padding: 10px 25px;
    font-size: 1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .enter-btn:hover {
        background-color: white;
        color: black;
    }

/* Fade-in animasyonları */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.fade-in-delay {
    animation: fadeIn 1s ease-out forwards;
    animation-delay: 0.5s;
}

/* Yıldız alanı */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

/* Tek tek yıldızlar */
.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: moveUp linear infinite;
    opacity: 0.7;
}

/* Yıldızların yukarıya doğru hareket animasyonu */
@keyframes moveUp {
    0% {
        transform: translateY(100vh);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-10vh);
        opacity: 0;
    }
}
button {
    background: #000;
    color: #fff;
    border: 2px solid white;
    padding: 0.8rem 1.5rem; /* iç boşluk */
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.2s;
    font-family: 'Philosopher', sans-serif;
    /* buton genişliğini yazıya göre ayarla */
    display: inline-block;
    width: auto;
}

.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: moveUp linear infinite;
    opacity: 0.7;
}

@keyframes moveUp {
    0% {
        transform: translateY(100vh);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-10vh);
        opacity: 0;
    }
}
