/* Header */
header {
    background-color: #2c3e50;
    background-image: url('book-background-banner.png'); /* Ensure the file path is correct */
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    color: white;
    padding: 20px;
    text-align: center;
    border-bottom: 4px solid #007BFF;
    box-shadow: 0px 1px 5px rgba(0, 0, 0, 0.2);
}

header #title h1 {
    margin: 0;
    font-size: 2.5em;
    font-family: 'Gabriola', serif;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    color: #FFFFFF;
}


header #title h2 {
    font-size: 1.2em;
    font-family: 'Segoe Script', cursive;
    color: #F0F0F0;
    max-width: 65%;
    justify-self: center;
  
    margin-top: 5px;
    background-color: rgba(29, 125, 221, 0.349);
    border-radius: 30%;
    
}

/* Navigation */
header nav {
    background-color: rgba(255, 97, 29, 0.417);
}
header nav ul {
    list-style: none;
    padding: 0;
    margin: 2em 0 0 0;
    display: flex;
    justify-content: center;
    gap: 2em;

}

header nav ul li {
    display: inline-block;
}

header nav ul li a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 1.1em;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

header nav ul li a:hover {
    background-color: #007BFF;
    color: white;
}
/* Main Content */


main {
    padding: 5%;
    max-width: 90%;
    margin: auto;
    background-color: rgb(249, 251, 216);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}
main dt{
    font-weight: bold;
    padding: bottom 0.8em;
    font-size: .89em;
}
main dd{
    padding-bottom: .2em;
    font-size: .82em;

}
main h5{
   font-style: italic; 
}
main  {
    margin-bottom: 2em;
}

main  h2 {
    color: #2c3e50;
    border-bottom: 2px solid #007BFF;
    padding-bottom: 5px;
    margin-bottom: 10px;

}

div#about-wrapper {
   display: flex;
}

div#about-wrapper img {
    float:right;
    max-width: 200px;
    height:100%;
    margin:10em 2em;
}
div#about-wrapper p{
    text-align:justify;
}
div#title-wrap {
    display: flex;
    margin: 1em 5em;
    align-items: center;
    justify-content: space-around;


 }
 
 div#title-wrap img {
     float:right;
     max-width: 200px;
     height:100%;
 }
 
h3#experience-title{

    border-bottom: 2px solid #007BFF;
    padding-top: .5em;
    padding-bottom: .3em;
    color: #2c3e50;

}

h3#evap {
    justify-self: center;
    color:#007BFF;
    font-style: italic;
    border-left:1px;
    border-right: 1px;
    border-color: #2c3e50;
}

div#book {
    display:inline-block;
}

div#novels p {
    margin: 10px 0; /* Ensures spacing between <dd> elements */
    margin-left: 75px;
  }

div#novels img{
    float:inline-start;
    border: 1px solid #ddd; /* Gray border */
    margin: 5px;
    border-radius: 4px;  /* Rounded border */
    padding: 5px; /* Some padding */
    width: 50px; /* Set a small width */
  }

  /* Add a hover effect (blue shadow) */
  div#novels img:hover {
    box-shadow: 0 0 2px 1px rgba(0, 140, 186, 0.5);
  }


/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 10px 0;
    border-top: 4px solid #007BFF;
}

footer p {
    margin: 0;
    font-size: 0.9rem;
}
/* Responsive Design */
@media (max-width: 768px) {
    html{
width: auto;
    }
    header #title h1 {
        font-size: 2rem;
    }

    header nav ul {
        flex-direction: column;
        gap: 10px;
    }

    main {
        padding: 15px;
        margin:auto;

    }
    div#about-wrapper {
        display: flex;
        flex-direction: column; /* Stack elements vertically */
        align-items: center; /* Center-align items */
        text-align: center; /* Center text */
    }

    div#about-wrapper img {
        float: none; /* Remove floating */
        margin: 20px 0; /* Add spacing above and below */
        max-width: 100%; /* Ensure the image scales properly */
        height: auto; /* Maintain aspect ratio */
    }

    div#about-wrapper p {
        margin-bottom: 15px; /* Add spacing below paragraphs */
    }
}


