body {
    background-color: #f2f2f2;
    font-family: 'Times New Roman', Times, serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

header {
    color: #fff;
    text-align: center;
    background: linear-gradient(to right, rgb(40, 39, 39), rgb(59, 59, 59));
    margin-bottom: 10px;
}

.header-background {
    background-image: url('assets/three.jpg');
    background-size: cover;
    background-position: center;
    padding: 50px 10px;
    color: #fff;
}

h1 {
    font-size: 36px;
    margin: 0;
    padding: 20px;
    display: inline-block;
    font-family: 'Arial Narrow', Arial, sans-serif;
}

nav {
    display: flex;
    justify-content: space-around;
    padding: 10px 10px;
    margin: 10px;
    padding-bottom: 25px;
    overflow: hidden;
    box-sizing: border-box;
    flex-wrap: wrap; 
}

.navi {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    gap: 40px;
    background-color: #c1b0b0;
    border-top: 40px;
    font-family: Georgia, 'Times New Roman', Times, serif;
    flex-wrap: wrap; 
}

.navi input[type="number"]{
    text-align: center;
    width: 80px;
    height: 20px;
    border-radius: 4px;
}

#fixed {
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 100;
}


nav a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
    font-size: 20px;
    text-transform: uppercase;
    box-sizing: border-box;
}

nav a:hover {
    background-color: #c2c2c2;
    color: #333;
    box-sizing: border-box;
}

main {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-bottom: 20px;
}

.section {
    font-weight: bold;
    font-size: large;
}

.line.highlight {
    background-color: #f4f430; 
}

.font-brown {
    color: rgb(189, 55, 55);
}

.poem-container {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 40%;
    text-align: center;
}

#poem-text {
    margin: 0;
}

#repeat {
    text-align: center;
    width: 80px;
    height: 20px;
    border-radius: 4px;
}

button {
    background-color: #5c525c;
    color: white;
    border: none;
    padding: 8px 16px;
    padding-bottom: 9px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 8px;
    font-family: Georgia, 'Times New Roman', Times, serif ;
}

.dropdown-toggle {
    display: none;
}

.dropdown-content{
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    gap: 40px;
    background-color: #c1b0b0;
    border-top: 40px;
    font-family: Georgia, 'Times New Roman', Times, serif;
    flex-wrap: wrap; 
}

/* Adjust for tablets */
@media (max-width: 912px) {
    .navi {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .dropdown-toggle {
        display: block;
    }

    .dropdown-content {
        display: none;
        width: 100%;
    }

    .navi.active .dropdown-content {
        display: flex;
    }

    .navi input[type="number"] {
        width: 90px;
        height: 20px;
    }

    #repeat {
        width: 90px;
        height: 20px;
    }

    button {
        padding: 8px 18px 10px;
        font-size: 12px;
    }
}

/* Adjust for phones */

@media (max-width: 768px) {
    .navi {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .dropdown-toggle {
        display: block; /* Visible on phones */
    }

    .dropdown-content {
        display: none;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        width: 100%;
    }

    .navi.active .dropdown-content {
        display: flex;
    }

    .navi label,
    .navi input[type="number"],
    .navi button {
        width: 100%;
        text-align: center;
    }

    .navi input[type="number"] {
        width: 100%;
        text-align: center;
    }
    
    #repeat {
        width: 100%;
        text-align: center;
    }

    button {
        width: 100%;
        padding: 10px;
        font-size: 16px;
    }
}

@media (min-width: 768px) {
    nav a {
        float: none;
        display: inline;
        text-align: center;
    }

    nav a:hover {
        background-color: #c2c2c2;
        color: #333;
    }
}

@media (max-width: 669px) {
    nav {
        display: inline;
        text-align: center;
    }

    nav a {
        float: none;
        display: block;
        width: 100%;
        text-align: center;
    }

    nav a:hover {
        background-color: #c2c2c2;
        color: #333;
    }
}