/* Genel Ayarlar */
body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background-color: #1e1f29;
    color: #ffffff;
    overflow-x: hidden;
}

/* Header */
header {
    text-align: center;
    padding: 20px 0;
    background-color: #292b3a;
    border-bottom: 2px solid #ff4655;
}

.logo {
    width: 200px;
    margin-bottom: 15px;
    animation: fadeIn 0.6s ease;
}

.class-filters {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
    animation: fadeInDown 0.5s ease;
}

.class-filters button {
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.class-filters button:hover {
    transform: scale(1.2);
    opacity: 0.8;
}

.class-filters img {
    width: 60px;
    height: 60px;
}

/* Karakter Grid */
.character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
    animation: fadeInUp 0.7s ease;
    opacity: 1;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.character-grid.hidden {
    opacity: 0;
    transform: translateY(20px);
}

.character-card {
    text-align: center;
    background: #2e2f3d;
    border-radius: 15px;
    padding: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.character-card img {
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
    border-radius: 50%;
    border: 3px solid #ff4655;
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.character-card:hover img {
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(255, 70, 85, 0.4);
}

.character-card span {
    display: block;
    font-size: 14px;
    font-weight: bold;
    margin-top: 10px;
    text-transform: capitalize;
    color: #ffffff;
}

.character-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(255, 70, 85, 0.4);
}

/* Pop-Up Overlay */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Pop-Up */
.popup {
    background: #2c2f3f;
    border-radius: 15px;
    width: 95%; /* Daha geniş için artırıldı */
    max-width: 800px; /* Maksimum genişlik artırıldı */
    min-height: 500px; /* Minimum yükseklik artırıldı */
    max-height: 700px; /* Maksimum yükseklik artırıldı */
    display: flex;
    flex-direction: row;
    animation: scaleIn 0.3s ease;
    overflow-y: auto; /* Dikey kaydırma aktif */
    overflow-x: hidden; /* Yatay kaydırma kapalı */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
}


@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.popup-content {
    display: flex;
    flex-direction: row;
    width: 100%;
    padding: 20px;
}

.popup-banner {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    margin-right: 10px; /* Çizgi ile boşluk */
}

.popup-banner img {
    width: 100%; /* Daha geniş için artırıldı */
    max-width: 760px; /* Maksimum genişlik artırıldı */
    min-height: 460px; /* Minimum yükseklik artırıldı */
    max-height: 660px; /* Maksimum yükseklik artırıldı */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.popup-options {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
}

.popup-options label {
    font-size: 16px;
    font-weight: bold;
    color: #ffffff;
}

.popup-options select {
    padding: 8px;
    font-size: 14px;
    background: #292b3a;
    border: 2px solid #ff4655;
    color: #ffffff;
    border-radius: 8px;
    outline: none;
    width: 90%;
    transition: all 0.3s ease;
}

.popup-options select:focus {
    border-color: #ff6a6a;
}

#start-btn {
    padding: 10px 20px;
    font-size: 14px;
    background: #292b3a;
    border: 2px solid #ff4655;
    color: #ffffff;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
    width: 90%;
    text-align: center;
}

#start-btn:disabled {
    background: #555;
    cursor: not-allowed;
    opacity: 0.6;
}

#start-btn:not(:disabled):hover {
    transform: scale(1.05);
}

/* Çıkma Butonu */
.close-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    color: #ff4655;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.close-popup:hover {
    transform: scale(1.2);
}

/* Aç/Kapa Butonu */
.toggle-switch {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toggle-switch .switch {
    position: relative;
    width: 50px;
    height: 25px;
}

.toggle-switch .switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 25px;
}

.toggle-switch .slider:before {
    position: absolute;
    content: "";
    height: 19px;
    width: 19px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

.toggle-switch input:checked + .slider {
    background-color: #ff4655;
}

.toggle-switch input:checked + .slider:before {
    transform: translateX(25px);
}

/* Mobil Optimizasyon */
@media (max-width: 768px) {
    .character-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .popup-banner img {
        max-height: 250px;
    }
}

@media (max-width: 480px) {
    .popup {
        max-width: 95%;
        padding: 10px;
    }

    .popup-banner img {
        max-height: 200px;
    }

    .popup-options select,
    #start-btn {
        font-size: 12px;
        width: 100%;
    }
}
