body {
    font-family: 'Lato', sans-serif;
    margin: 0;
    background: linear-gradient(to bottom, #550349, #5e8abc);
    color: #e0e0e0;
    text-align: center;
    font-size: 0.8rem;
}

p {
    text-align: justify;
    line-height: 1.6;
}

header {
    background-color: rgba(10, 10, 26, 0.6);
    padding: 1rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #00f0ff;
    backdrop-filter: blur(10px);
}

nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #00f0ff;
    text-shadow: 0 0 10px #00f0ff;
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #e49503;
    font-weight: bold;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-links a:hover {
    color: #00f0ff;
    text-shadow: 0 0 10px #00f0ff;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: #e0e0e0;
    margin: 5px;
    transition: all 0.3s ease;
}

main {
    padding: 80px 1rem 1rem 1rem;
    max-width: 800px;
    margin: auto;
}

section {
    padding: 0.2rem 0;
}

.panel {
    background-color: rgba(20, 20, 40, 0.8);
    border: 1px solid #00f0ff;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
}

h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 30px;
    text-transform: uppercase;
    text-align: center;
    background: linear-gradient(to right, #fc72ff, #8f68ff, #487bff, #8f68ff, #fc72ff);
    background-size: 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: animate-gradient 2.5s linear infinite;
  }
  
  @keyframes animate-gradient {
    from {
      background-position: 0%;
    }
    to {
      background-position: 200%;
    }
  }

h3 {
    color: #e49503;
    text-shadow: 0 0 10px #e49503;
    font-size: 1.2rem;
}

h2{
    color: #00f0ff;
    text-shadow: 0 0 10px #00f0ff;
}

h4 {
    font-size: 1.2rem;
    border: 1px solid #00f0ff;
    padding: 0.5rem 0.5rem;
    background-color: rgba(10, 207, 241, 0.1);
    color: #00f0ff;
    text-shadow: 0 0 10px #00f0ff;
    width: 218px;
    margin: 1.2rem auto;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
}

.image-container {
    display: flex;
    justify-content: space-around;
    align-items: flex-end; /* Align items to the bottom */
    margin-top: 2rem;
}

.image-item {
    text-align: center;
    display: flex; /* Use flex to align image and text within item */
    flex-direction: column;
    align-items: center;
    width: 300px;
    min-height: 450px; /* Ensure a minimum height for alignment */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

.image-item img {
    max-width: 100%;
    max-height: 350px; /* Set a maximum height for the images */
    height: auto; /* Maintain aspect ratio */
    object-fit: contain; /* Ensure the entire image is visible without cropping */
    border: 1px solid #00f0ff;
    border-radius: 5px;
    margin-bottom: 1rem; /* Add some space between image and text */
}

.image-item p {
    text-align: center;
    margin-top: 0;
    flex-grow: 1; /* Allow paragraphs to grow and take available space */
}

#livros img {
    max-width: 300px;
    display: block;
    margin: 2rem auto;
    border: 1px solid #00f0ff;
    border-radius: 5px;
}

footer p {
    text-align: center;
}

@media screen and (max-width: 768px) {
    .nav-links {
        position: absolute;
        left: 0;
        height: 92vh;
        top: 8vh;
        background-color: rgba(10, 10, 26, 0.9);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 50%;
        transform: translateX(-100%);
        transition: transform 0.5s ease-in;
    }

    .nav-links.nav-active {
        transform: translateX(0%);
    }

    .burger {
        display: block;
    }

    .image-container {
        flex-direction: column;
    }

    .image-item {
        margin-bottom: 2rem;
        width: 100%;
    }
}

.nav-active {
    transform: translateX(0%) !important;
}

.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}