body{
    background: #A64149;
    background: linear-gradient(155deg, rgba(166, 65, 73, 0.19) 0%, rgba(242, 219, 187, 1) 69%, rgba(217, 217, 217, 1) 100%);
    font-family: "Red Hat Display", sans-serif;
    margin: 0;

}
body.loaded .logo {
    opacity: 1; 
    transform: translateY(0);}

#navBar {
    width: 100%;
    height: auto;
    background-color: rgb(61, 60, 64, 0);
    color: #3D3C40;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    box-sizing: border-box;
    position: relative;
    top: 0;
    left: 0;
    z-index: 100;
    font-size: 4vh;
    font-weight:520;
}


#navBar.fixed {
    position: fixed;
    background-color: rgba(61, 60, 64, 0); 
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; 
}




.logo {
    font-size: 5vh;
    font-weight: bolder;
    font-family: "Dancing Script", cursive;
    color: #A64149;
    text-shadow: #A64149;
    transform: translateY(20px); 
    transition: opacity 2s ease, transform 2s ease; 
}

.menu-icon {
    display: none;
    font-size: 3vh;
    cursor: pointer;
    color:#A64149;
}

.navItems {
    display: flex;
    gap: 2.252vh;
}

.navItems a {
    text-decoration: none;
    color: inherit;
    padding: 5px 10px;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.navItems a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #D9525E;
}


@media (max-width: 768px) {
    .menu-icon {
        display: block;
    }

    .navItems {
        display: none; 
        flex-direction: column; 
        gap: 15px;
        width: 100%; 
        background-color: rgb(217, 82, 94); 
        position: absolute;
        top: 100%; 
        left: 0;
        padding: 10px 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .navItems a {
        padding: 10px 20px;
        font-size: 2.5vh;
        text-align: left;
        font-family:"archivo", sans-serif;
        color: #FAE5E3; 
    }

    .navItems.show {
        display: flex; 
    }
}

h1{
    font-size: 7vh;
    color: #A64149;
    text-align: center;
    margin-top: 20px;
    padding: 20px;
    font-weight: bold;
}

p{
    font-size: 4vh;
    color: #3D3C40;
    text-align: left;
    margin: 10px 0;
}
h2{
    font-size: 6vh;
    font-weight: 700;
    color: #531a20;
    text-align: left;
    margin-top: 30px;
    padding: 20px;
}


.chapter1, .chapter2, .chapter3, .chapter4, .epilogue{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    height: auto;
    margin: 10px;
    line-height: 5vh;
 
}

.end, .dyslexic, .tools, .napkin, .frustrated{
    width: 30%;
    height: 100vh;
    margin: 0 auto;
    border-radius: 8vh;
    
}

ul{
    font-size: 4vh;
    text-align: left;
}

#footer{
    display: flex; 
     align-items: center; 
     justify-content: center;
     text-decoration: none;
 }


 #footer a {
     text-decoration: none; 
     color: #3D3C40; 
     font-size: 3vh; 
     margin: 0 15px; 
     transition: color 0.3s ease; 
 }
 
 #footer a:hover {
     color: #A64149; 
 } 

 @media (max-width: 768px) {
    #footer {
      
        gap: 10px; 
    }

    #footer a {
        font-size: 3vh; 
    }
}


@media (max-width: 480px) {
    #footer {
       
        gap: 3px; 
    }

    #footer a {
        font-size: 3vh;
    }
}

@media (max-width: 768px) {
    .end, .dyslexic, .tools, .napkin, .frustrated {
        width: 90%; /* Adjust width for tablets */
        max-width: 90%; /* Ensure images don't exceed container width */
    }
}

/* Media query for mobile phones (max-width: 480px) */
@media (max-width: 480px) {
    .end, .dyslexic, .tools, .napkin, .frustrated {
        width: 90%; /* Full width for smaller screens */
        max-width: 90%; /* Ensure images fit within the container */
    }
}