body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f4f4f4;
}

header {
    background-color: #5a2e9b;
    color: #fff;
    text-align: center;
    padding: 4rem 0;
}

header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

header p {
    font-size: 1.2rem;
    font-weight: 300;
}

section {
    padding: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    margin-top: 2rem;
    border-radius: 8px;
}

h2 {
    text-align: center;
    color: #5a2e9b;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

/* Neden Müzik Eğitimi Bölümü */
#neden-muzik {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 2rem;
}

.madde {
    flex-basis: 45%;
    text-align: center;
    background-color: #f9f9f9;
    padding: 1rem;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.madde:hover {
    transform: translateY(-5px);
}

.madde img {
    width: 350px;
    height: 250px;
    margin-bottom: 1rem;
}

/* Nasıl Olmalı Bölümü */
#nasil-olmali ul {
    list-style: none;
    padding: 0;
}

#nasil-olmali li {
    background-color: #e6e6fa;
    margin-bottom: 1rem;
    padding: 1rem;
    border-left: 5px solid #5a2e9b;
    border-radius: 4px;
}

/* İnteraktif Etkinlikler Bölümü */
#etkinlikler .etkinlik {
    background-color: #f0f0f0;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: center;
}

/* Enstrüman Seçim Butonları */
.enstruman-secimi {
    margin-bottom: 1rem;
}

.enstruman-dugme {
    padding: 0.5rem 1rem;
    margin: 0 0.5rem;
    cursor: pointer;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
}

.enstruman-dugme.secili {
    background-color: #5a2e9b;
    color: #fff;
    border-color: #5a2e9b;
}

.ritim-alan button {
    padding: 1rem 2rem;
    font-size: 1.2rem;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    background-color: #5a2e9b;
    color: #fff;
    margin: 0 0.5rem;
    transition: background-color 0.3s ease;
}

.ritim-alan button:hover {
    background-color: #4b2587;
}

#calinan-ritim {
    margin-top: 1rem;
    font-weight: bold;
    min-height: 20px;
}

/* Canvas (Boyama Alanı) ve resim için konteyner */
.boyama-konteyner {
    position: relative;
    width: 600px; /* Canvas genişliği */
    height: 400px; /* Canvas yüksekliği */
    margin: 0 auto;
}

#boyama-resmi {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#boyama-alani {
    border: 2px solid #5a2e9b;
    border-radius: 8px;
    cursor: crosshair;
    background-color: transparent; /* Resmin görünmesi için şeffaf */
    position: absolute;
    top: 0;
    left: 0;
}


/* Renk Seçim Butonları */
.renk-secimi {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    gap: 1rem;
}

.renk-dugme {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
    outline: none;
}

/* Her renk butonunun arka plan rengini ayarlama */
.renk-dugme[data-renk="#5a2e9b"] { background-color: #5a2e9b; }
.renk-dugme[data-renk="#ff0000"] { background-color: #ff0000; }
.renk-dugme[data-renk="#0000ff"] { background-color: #0000ff; }
.renk-dugme[data-renk="#008000"] { background-color: #008000; }
.renk-dugme[data-renk="#ffff00"] { background-color: #ffff00; }

.renk-dugme:hover {
    transform: scale(1.1);
}

.renk-dugme.secili {
    border-color: #333;
}

/* Fırça Ayarları */
.firca-ayarlari {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

#firca-kalinligi {
    width: 150px;
}

#kalinlik-deger {
    font-weight: bold;
    color: #5a2e9b;
}

/* Temizle Butonu */
#temizle-dugme {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    background-color: #e57373;
    color: #fff;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
}

#temizle-dugme:hover {
    background-color: #d32f2f;
}

/* Davul Görselleri */
.davul-gorselleri {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.davul-gorselleri img {
    width: 100px;
    height: 100px;
    display: none; /* Başlangıçta gizli */
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background-color: #5a2e9b;
    color: #fff;
    margin-top: 2rem;
}

footer a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

footer a:hover {
    text-decoration: underline;
}

/* Mobil Uyum */
@media (max-width: 768px) {
    #neden-muzik {
        flex-direction: column;
    }
    .madde {
        flex-basis: 100%;
    }
}