
body {
    font-family: "Nunito", sans-serif;
    font-weight: 1000;
    text-align: center;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

.nunito-fo {
  font-family: "Nunito", sans-serif;
  font-optical-sizing: auto;
  font-weight: 200;
  font-style: normal;
}

#header {
    background-color: #8ec5ec;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

#title {
    font-size: 40px;
    font-weight: bold;
    flex-grow: 1;
    text-align: center;
}

button, button1, button2 {
    font-family: "Nunito", sans-serif;
    background-color: #87c7f4;
    color: white;
    border: none;
    padding: 30px;
    margin: 10px;
    font-size: 25px;
    border-radius: 13px;
    cursor: pointer;
    transition: background 0.3s;
    text-align: center;
    position: relative;
    transform: none;
    z-index: auto;
    display: inline-block;
    width: auto;
    height: auto;
}

button:hover, button1:hover, button2:hover {
    background-color: #005fa3;
}

#content {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.letters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
    width: 90%;
    max-width: 500px;
    margin-top: 20px;
}

.phrases {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    width: 90%;
    max-width: 500px;
    margin-top: 20px;
}

.letters button, .phrases button {
    width: 100px;
    height: 50px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

img {
    margin-top: 20px;
    width: 200px;
    height: auto;
    border-radius: 10px;
}

@media (max-width: 600px) {
    #header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: center;
    }

    #title {
        font-size: 30px;
        flex-grow: 1;
        text-align: center;
    }

    .letters, .phrases {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 10px;
    }

    .letters button, .phrases button {
        width: 80px;
        height: 40px;
    }

    img {
        width: 314px;
    }

    button, button1, button2 {
        padding: 30px;
        font-size: 25px;
        margin: 10px;
    }
}

/* Toggle switch */
.switch {
    position: absolute;
    top: 15px;
    right: 15px;
    display: inline-block;
    width: 50px;
    height: 25px;
}

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

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

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

input:checked, .slider {
    background-color: #2196F3;
}

input:checked + .slider:before {
    transform: translateX(24px);
}

/* Dark mode styles */
.dark-mode {
    background-color: #1e1e1e;
    color: #e0e0e0;
}

.dark-mode #header {
    background-color: #333;
    color: white;
}

.dark-mode button, 
.dark-mode button1, 
.dark-mode button2 {
    background-color: #444;
    color: white;
}

.dark-mode button:hover, 
.dark-mode button1:hover, 
.dark-mode button2:hover {
    background-color: #666;
}

/* Position the theme toggle at the bottom right */
.bottom-toggle {
    position: fixed;
    bottom: 60px;
    right: 20px;
    z-index: 1000;
}
