/* style.css */
/* Fieldset styling for a cute, playful look */
fieldset {
    border: 2px dashed #7209b7;
    border-radius: 20px;
    padding: 2rem;
    background: linear-gradient(135deg, #fef6ff, #f3e8ff);
    box-shadow: 0 8px 20px rgba(114, 9, 183, 0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    max-width: 650px;
    width: 90%;
    margin: 2.5rem auto;
}

fieldset:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 30px rgba(114, 9, 183, 0.25);
}

legend {
    padding: 0.6rem 1.3rem;
    border-radius: 20px;
    background: linear-gradient(135deg, #7209b7, #560bad);
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Inside fieldset spacing */
fieldset>*:not(legend) {
    margin-top: 1.2rem;
}

/* Overall page styling */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f9f9ff, #f0f4ff);
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 1rem;
}

/* Headings */
h2,
h4 {
    color: #5e60ce;
}

/* Letter styling with fun hover */
.letter-container .letter {
    color: #4cc9f0;
    font-weight: bold;
    transition: transform 0.3s ease, background 0.3s ease;
    padding: 0.2rem 0.4rem;
    border-radius: 8px;
}

.letter-container .letter:hover {
    transform: scale(1.2);
    background: rgba(76, 201, 240, 0.15);
}

/* Buttons */
.btn {
    border-radius: 30px;
    transition: all 0.3s ease;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* Specific buttons */
.record-btn {
    background: #f72585;
    color: #fff;
}

.record-btn:hover {
    background: #b5179e;
}

.prev-btn,
.next-btn {
    background: #7209b7;
    color: #fff;
}

.prev-btn:hover,
.next-btn:hover {
    background: #560bad;
}

/* Alerts */
.alert {
    border-radius: 20px;
    padding: 1.5rem;
}

.alert-success {
    background: #d8f3dc;
    color: #1b4332;
    border: 2px solid #95d5b2;
}

.alert-heading {
    color: #2a9d8f;
}

#successAlert a.btn {
    margin: 0 0.5rem;
    border-radius: 25px;
}

.status-message {
    font-size: 1.2rem;
}

.text-success {
    color: #2a9d8f !important;
}

.text-danger {
    color: #d00000 !important;
}

/* Responsive tweaks */
@media (max-width: 576px) {
    .letter-container .letter {
        font-size: 2.8rem;
    }

    fieldset {
        padding: 1.5rem;
    }

    legend {
        font-size: 1.3rem;
    }
}