body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #b3e0ff;
    overflow: hidden;
}

.start-screen {
    text-align: center;
}

.start-screen h1 {
    font-size: 48px;
    color: #333;
    margin-bottom: 20px;
}

/* Genel Stiller */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    text-align: center;
    margin: 0;
    padding: 0;
}

.character-selection {
    width: 80%;
    max-width: 800px;
    margin: 50px auto;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.character-selection h2 {
    font-size: 32px;
    color: #333;
    margin-bottom: 20px;
}

/* Karakter Listesi */
.characters {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Her satırda 4 karakter */
    gap: 20px;
    max-height: 400px; /* Dikey kaydırma için sınır */
    overflow-y: auto; /* Kaydırma çubuğu ekler */
    padding: 10px;
}

.character {
    width: 100px;
    height: 120px; /* Yüksekliği artırıldı */
    border: 2px solid #ccc;
    padding: 10px;
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-radius: 10px;
}

.character img {
    width: 100%;
    height: 80px; /* Resim yüksekliği optimize edildi */
    object-fit: cover;
    border-radius: 10px;
}

.character p {
    margin: 5px 0 0 0;
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

.character:hover {
    transform: scale(1.1);
    border-color: #ffcc00;
}

.character.selected {
    border-color: #ff9900;
}

/* Buton Stilleri */
.start-game {
    font-size: 18px;
    padding: 10px 20px;
    background-color: #ffcc00;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.start-game:hover {
    background-color: #ff9900;
}

@media (max-width: 768px) {
    .characters {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        max-height: 400px; 
        overflow-y: auto; 
        padding: 10px;
    }
}

@media (max-width: 480px) {

    .characters {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        max-height: 400px; 
        overflow-y: auto; 
        padding: 10px;
    }
}
