/* vocabulaire.css - Page de vocabulaire */
.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.theme-box {
    width: 150px;
    height: 100px;
    padding: 15px;
    border: 2px solid #2a7f62;
    border-radius: 10px;
    background-color: white;
    color: #2a7f62;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.theme-box i.fa-search {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 16px;
    color: #666;
}

.theme-box i.fa-search:hover {
    color: #2a7f62;
}

.theme-box i {
    font-size: 24px;
}

.theme-box span {
    font-family: 'Klee One', cursive;
    font-size: 18px;
}

.theme-box.selected {
    background-color: #ff6b6b;
    color: white;
    border-color: #ff6b6b;
}

.theme-box:hover:not(.selected) {
    background-color: #e8f5f3;
}

.hidden {
    display: none;
}

#exercice-container {
    text-align: center;
}

#word-display {
    font-size: 48px;
    margin: 20px 0;
    font-family: 'Klee One', cursive;
}

#user-input {
    font-size: 24px;
    font-family: 'Klee One', cursive;
    padding: 8px;
    width: 80%;
    box-sizing: border-box;
    text-align: center;
    margin: 10px auto;
    border: 1px solid #ddd;
    border-radius: 5px;
}

#result {
    font-size: 18px;
    margin: 10px;
    color: #2a7f62;
    font-weight: bold;
    min-height: 24px;
}

#controls {
    margin: 20px 0;
}

#options {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Checkbox personnalisée */
.checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    font-size: 16px;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    position: relative;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: white;
    border: 2px solid #2a7f62;
    border-radius: 4px;
    margin-right: 8px;
}

.checkbox-container:hover input ~ .checkmark {
    background-color: #e8f5f3;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: #ff6b6b;
    border-color: #ff6b6b;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.modal {
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
    position: relative;
}

.close {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #2a7f62;
}

ruby rt {
    font-size: 0.6em;
    color: #666;
}

.li-content {
  display: flex;
  justify-content: flex-start;
  width: 100%; /* or a fixed width */
  padding: 0;

}
.li-kana {
    text-align: left;
    width: 50%;
}

.li-translation {
    text-align: left;
    width : 50%;
}
.furigana {
    margin-left : 20px;
    color:#2a7f62;
}

