body {
    font-family: Arial, sans-serif;
    text-align: center;
    padding: 20px;
    background-color: #f5f5f5;
    max-width: 800px;
    margin: 0 auto;
}

h1 {
    color: #2c3e50;
    margin-bottom: 30px;
}

.letter-container {
    position: relative;
    min-height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.devanagari-letter {
    font-size: 256px;
    margin: 30px 0;
    color: #2c3e50;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    padding-top: 30px;
}

.devanagari-letter:hover {
    transform: scale(1.05);
}

.letter-hint {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #2c3e50;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    white-space: nowrap;
}

.devanagari-letter:hover + .letter-hint,
.letter-hint:hover {
    opacity: 1;
}

.controls {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

button {
    padding: 12px 24px;
    font-size: 16px;
    background-color: #0c3555;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 90px;
}

button:hover {
    background-color: #1e4b5e;
    transform: translateY(-2px);
}

input, select {
    padding: 12px;
    font-size: 16px;
    margin: 10px 0;
    border-radius: 6px;
    border: 1px solid #ddd;
    height: 48px;
    box-sizing: border-box;
}

input {
    width: 220px;
}

select {
    background-color: white;
    min-width: 180px;
}

.message {
    font-size: 18px;
    margin: 20px 0;
    min-height: 27px;
    font-weight: bold;
}

.correct {
    color: #27ae60;
}

.incorrect {
    color: #e74c3c;
}

.input-group {
    margin: 30px 0;
}

.toggle-container {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.toggle-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #c18c1f;
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

.toggle-label {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
    cursor: pointer;
}

.alphabet-table {
    width: 100%;
    margin: 30px auto;
    border-collapse: collapse;
    display: none;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.alphabet-table.show {
    display: table;
}

.alphabet-table th {
    background-color: #c18c1f;;
    color: white;
    padding: 12px;
    font-size: 18px;
}

.alphabet-table td {
    padding: 15px;
    border: 1px solid #eee;
    font-size: 16px;
}

.alphabet-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.table-char {
    font-size: 42px;
    display: block;
    margin-bottom: 5px;
}

.table-char-name {
    font-size: 24px;
    display: block;
    margin-bottom: 5px;
}

.table-type {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    background-color: #f1c40f;
    color: #2c3e50;
    margin-top: 5px;
}

.table-type.vowels {
    background-color: #2ecc71;
    color: white;
}

@media (max-width: 600px) {
    .devanagari-letter {
        font-size: 180px;
    }

    .letter-container {
        min-height: 220px;
    }

    .controls, .toggle-container {
        flex-direction: column;
        gap: 12px;
    }

    button, input, select {
        width: 100%;
        max-width: 300px;
    }

    .alphabet-table td {
        padding: 10px;
    }

    .table-char {
        font-size: 24px;
    }
}

.counter-container {
    background-color: #2c3e50;
    color: white;
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: bold;
    display: inline-block;
    margin: 15px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.counter-number {
    font-size: 24px;
    color: #f1c40f;
    margin: 0 5px;
}

.version-footer {
    text-align: right;
    margin-top: 20px;
    padding: 10px;
    color: #666;
    font-size: 0.8em;
}

#prev {
    transition: opacity 0.3s ease;
}

#prev.hidden {
    opacity: 0;
    pointer-events: none; /* Evita interacciones */
}