body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f0f0f0;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

h1 {
    text-align: center;
}

#buttonContainer {
    margin-bottom: 20px;
}

#languageButtons, #alphabetButtons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 10px;
}

.letter-btn {
    margin: 2px;
    padding: 10px 15px;
    border: none;
    background-color: #f0f0f0;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    min-width: 60px;
}

.letter-btn:hover {
    background-color: #e0e0e0;
}

.letter-btn.active {
    background-color: #007bff;
    color: white;
}

.letter-btn.has-festivals {
    font-weight: bold;
}

#searchInput {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

#festivalList {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.festival-item {
    width: calc(33.33% - 10px);
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 4px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

@media (max-width: 600px) {
    .festival-item {
        width: calc(50% - 10px);
    }
}

@media (max-width: 400px) {
    .festival-item {
        width: 100%;
    }
}