/* GENEL VE FONT AYARLARI */
body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #1f2833 0%, #3a4750 100%);
    color: #e0e0e0;
    display: flex;
    flex-direction: column; 
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding-bottom: 50px;
}

.game-container {
    background-color: #2c3e50;
    padding: 30px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    text-align: center;
    max-width: 600px;
    width: 90%;
    border: 3px solid #3498db;
    margin-top: 30px;
}

h1 {
    color: #f39c12;
    font-weight: 800;
    margin-bottom: 25px;
}

#score-area {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 15px;
    color: #e74c3c;
}

#goal-message {
    font-size: 0.95em;
    font-weight: 500;
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.05);
}

/* ANA BUTON STİLİ */
#play-sound-btn {
    padding: 15px 35px;
    font-size: 1.2em;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

#play-sound-btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

/* DİNAMİK SEÇENEK BUTONLARI */
#options-container {
    display: flex;
    justify-content: space-around;
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 30px;
}

.dynamic-option {
    padding: 20px;
    font-size: 3em;
    font-weight: 800;
    width: 45%; /* P ve F için genişlik artırıldı */
    background-color: #ecf0f1;
    color: #2c3e50;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 0 #bdc3c7;
    
    /* İçerik Hizalaması */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    line-height: 1; 
}

.dynamic-option:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 0 #bdc3c7;
}

.dynamic-option:active {
    transform: translateY(0);
    box-shadow: 0 2px 0 #bdc3c7;
}

/* Açıklayıcı Metin Stili */
.dynamic-option small {
    font-size: 0.3em;
    font-weight: 600;
    display: block;
    margin-top: 5px;
    line-height: 1.2;
}

/* GEÇİŞ (CRESC/DIM) SEÇENEK BUTONLARI */
#transition-options-container {
    display: flex;
    justify-content: space-around;
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 30px;
}

.transition-option {
    padding: 15px 10px;
    font-size: 1.1em;
    font-weight: 600;
    width: 48%; 
    background-color: #9b59b6; 
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 0 #8e44ad;
    display: flex;
    align-items: center;
    justify-content: center;
}

.transition-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #8e44ad;
}

/* Kreşendo/Diminuendo Sembolleri */
.transition-option .symbol {
    display: inline-block;
    width: 30px;
    height: 15px;
    margin-right: 10px;
}

.symbol-cresc {
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 15px solid white; 
    border-right: 15px solid transparent;
    transform: rotate(180deg);
}

.symbol-dim {
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 15px solid white; 
    border-left: 15px solid transparent;
    transform: rotate(180deg);
}

/* GERİ BİLDİRİM VE ANİMASYONLAR */
#feedback {
    min-height: 40px;
    font-size: 1.2em;
    font-weight: 600;
}

.message.correct { 
    color: #2ecc71; 
    animation: pulse 0.5s;
}
.message.wrong { 
    color: #e74c3c; 
    animation: shake 0.5s;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

/* FOOTER STİLİ */
footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    text-align: center;
    padding: 10px 0;
    background-color: #1f2833;
    font-size: 0.9em;
    color: #95a5a6;
    border-top: 1px solid #3a4750;
    z-index: 1000;
}

footer a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    margin-right: 10px;
}

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