body {
    background-color: #AEC6CF; /* Pastel blue background */
    color: #FDFD96; /* Pastel yellow text */
    font-family: 'Comic Sans MS'; /* Softer font */
    margin: 0;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.navbar {
    background-color: #AEC6CF;
    overflow: hidden;
}

.hamburger-menu {
    font-size: 30px;
    cursor: pointer;
    padding: 10px;
    display: block;
    color: #FDFD96;
}

.nav-links {
    display: none;
    flex-direction: column; /* Stack items vertically */
    position: absolute; /* Position absolute to avoid shifting the webpage */
    top: 50px; /* Position below the navbar */
    left: 10px; /* Position with a little margin from the left */
    background-color: #AEC6CF;
    padding: 10px;
    border-radius: 5px;
}

.nav-links.show {
    display: flex;
}

.nav-links a {
    padding: 10px;
    text-decoration: none;
    color: #FDFD96;
}

.nav-links a:hover {
    background-color: #FFB347;
}

.container {
    text-align: center;
    margin-top: 50px;
}


#sentence-prompt {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

#chart-toggle {
    margin-bottom: 20px;
}

#chart-toggle input[type="radio"] {
    margin: 0 10px;
}

#hiragana-chart-container {
    display: flex;
    justify-content: center;
    max-width: 50; /* Limit the chart to 80% of the screen width */
    margin: 0 auto; /* Center the chart within the container */
}

.hiragana-chart {
    display: grid;
    grid-template-columns: repeat(10, auto); /* Ensure 5 columns */
    gap: 5px; /* Smaller gap between buttons */
}

.hiragana-char {
    padding: 5px 8px; /* Decrease padding */
    border: 1px solid #FDFD96; /* Pastel yellow border */
    cursor: pointer;
    background-color: #FDFD96; /* Pastel yellow background for characters */
    color: #AEC6CF; /* Pastel blue text for characters */
    font-size: 16px; /* Adjust font size */
    border-radius: 3px; /* Smaller border radius */
    transition: background-color 0.3s;
    text-align: center; /* Center text */
    min-width: 30px; /* Set minimum width to ensure buttons are not too small */
}

.hiragana-char:hover {
    background-color: #FFB347; /* Light orange background on hover */
}

#user-input {
    margin-top: 20px;
    font-size: 24px;
    font-weight: bold;
}

#submit-btn, #clear-btn, #backspace-btn, #hint-btn {
    margin-top: 20px;
    padding: 5px 10px; /* Smaller button */
    font-size: 16px; /* Slightly smaller font size */
    background-color: #FDFD96; /* Pastel yellow button background */
    border: none;
    border-radius: 3px; /* Smaller border radius */
    cursor: pointer;
    color: #AEC6CF; /* Pastel blue text for button */
    transition: background-color 0.3s;
}

#submit-btn:hover, #clear-btn:hover, #backspace-btn:hover, #hint-btn:hover {
    background-color: #FFB347; /* Light orange background on hover */
}

#feedback {
    margin-top: 20px;
    font-size: 18px;
    font-weight: bold;
}

/* Style for the difficulty slider */
#difficulty-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 100%;
    height: 10px;
    background: #FDFD96; /* Pastel yellow background */
    outline: none;
    opacity: 0.9;
    transition: opacity .2s;
    border-radius: 5px;
}

#difficulty-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #AEC6CF; /* Pastel blue thumb */
    cursor: pointer;
    border-radius: 50%;
}

#difficulty-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #AEC6CF; /* Pastel blue thumb */
    cursor: pointer;
    border-radius: 50%;
}
#picture-matching-section {
    margin-top: 40px;
    text-align: center;
}

#matching-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 15px;
}

#multiple-choices {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.choice-btn {
    padding: 10px 20px;
    background-color: #FDFD96; /* Pastel yellow button background */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    color: #AEC6CF; /* Pastel blue text for button */
    transition: background-color 0.3s;
    font-size: 18px;
}

.choice-btn:hover {
    background-color: #FFB347; /* Light orange background on hover */
}
#navigation-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

#navigation-buttons button {
    background-color: #FDFD96; /* Pastel yellow button background */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    color: #AEC6CF; /* Pastel blue text for button */
    transition: background-color 0.3s;
    font-size: 18px;
    padding: 10px;
    margin: 0 10px;
}

#navigation-buttons button:hover {
    background-color: #FFB347; /* Light orange background on hover */
}
#picture-matching-section {
    display: flex;
    align-items: center; /* Vertically center the buttons */
    justify-content: center; /* Horizontally center the content */
    margin-top: 40px;
}

#matching-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    margin: 0 20px; /* Add some margin to the left and right of the image */
    border-radius: 15px;
}

#prev-btn, #next-btn {
    background-color: #FDFD96; /* Pastel yellow button background */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    color: #AEC6CF; /* Pastel blue text for button */
    transition: background-color 0.3s;
    font-size: 18px;
    padding: 10px;
    margin: 0 10px;
}

#prev-btn:hover, #next-btn:hover {
    background-color: #FFB347; /* Light orange background on hover */
}

#multiple-choices {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px; /* Add some margin to the top to create space */
    flex-wrap: wrap; /* Ensure the buttons wrap if they don't fit in one line */
}

.choice-btn {
    padding: 10px 20px;
    background-color: #FDFD96; /* Pastel yellow button background */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    color: #AEC6CF; /* Pastel blue text for button */
    transition: background-color 0.3s;
    font-size: 18px;
}

.choice-btn:hover {
    background-color: #FFB347; /* Light orange background on hover */
}
