body {
    text-align: center;
    background-color: rgb(243, 239, 236);
    margin: 0 auto;
    font-family: "lora", monospace;
}

main {
    margin: 0 auto;
    padding-top: 50px;
    padding-bottom: 150px;
    max-width: 1200px;
}


/* Welcome page styling */

/* testing fade in */
.fade-in {
    animation: fadeIn 1s ease-in 0.125s;
    animation-fill-mode: both;
}

@keyframes fadeIn{
    from { opacity: 0; transform: translateX(-50px);}
    to { opacity: 1; transform: translateX(0);}
}

.fade-in-right {
    animation: fadeInRight 1s ease-in 0.125s;
    animation-fill-mode: both;
}

@keyframes fadeInRight{
    from { opacity: 0; transform: translateX(50px);}
    to { opacity: 1; transform: translateX(0);}
}

.heading-name {
    font-family: 'playfair display', serif;
    letter-spacing: 0.25em;
    font-size: 38px;
}

a {
    cursor: pointer;
}

#href {
    text-decoration: none;
    color: black;
    transition: color 0.2s ease;
}

#href:hover {
    color: rgb(180, 175, 175);
}


.heading-subtitle {
    font-family: 'playfair display', serif;
    letter-spacing: 0.18em;
    font-size: 22px;
    margin-top: -10px;
    color: gray
}

.nav-link {
    font-family: "playfair display", monospace;
    text-decoration: none;
    color: black;
    font-size: 15px;
    margin: 0 15px;
    padding-top: 30px;
    display: inline-block;
    letter-spacing: 0.15em;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: rgb(180, 175, 175);
}

.active-nav-link {
   color: gray;
}

nav ul li {
    display: inline;
}

.nav-link:active {
    color: rgb(162, 125, 125);
}

/* Mobile nav toggle button */
.nav-toggle {
    display: none;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    margin: 10px auto 0;
}

.nav-current-label {
    font-family: "lora", monospace;
    font-size: 15px;
    letter-spacing: 0.15em;
    color: #2c2c2c;
}

.nav-arrow {
    width: 7px;
    height: 7px;
    border-right: 2px solid #2c2c2c;
    border-bottom: 2px solid #2c2c2c;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    flex-shrink: 0;
    position: relative;
    top: -3px;
}

.nav-toggle.open .nav-arrow {
    transform: rotate(225deg);
    top: 1px;
}



.intro-image {
    width: 250px;
    height: auto;
    border-radius: 10px;
    margin-right: 20px;
    margin-bottom: 20px;
    float: left;
}

.intro {
    margin: 40px auto;
    width: 70%;
    font-family: "lora", monospace;
    font-size: 16px;
    line-height: 1.8;
    text-align: left;
}

.to-top {
    color: black;
    margin: auto;
    font-family: "lora", monospace;
    font-size: 16px;
    transition: color 0.2s ease;
}

.to-top:hover {
    color: #9f5204;
}

.books-intro {
    font-family: "Lora", monospace;
    font-style: italic;
    font-weight: normal;
    font-size: 16px;
    margin-top: 45px;
    letter-spacing: 0.1em;
}

/* Books Page Styles */

.cover-container {
    max-width: 1000px;
    margin: 0 auto;
}

.cover-container img {
    width: 175px;
    height: 230px;
    margin: 15px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.book-cover {
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.cover-container a {
    display: inline-block;
}

.cover-container a:hover .book-cover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

#href:active {
    color: rgb(162, 125, 125);
}

/* Articles Page Styles */

/* testing scrolling transition */

.reveal {
  opacity: 0;
  transform: translateX(-150px);
  transition: opacity 1s ease-out 0.125s, transform 1s ease-out 0.125s;
}

.reveal.visible {
  opacity: 1;
  transform: translateX(0);
}

/* end test */
.article-name {
    margin: 15px auto;
    font-family: "lora", monospace;
    font-size: 16px;
    line-height: 1.8;
    text-align: left;
    max-width: 600px;
}

.article-source {
    font-family: "lora", monospace;
    font-size: 16px;
    margin: 0px auto 20px auto;
    max-width: 600px;
    text-align: left;
    font-weight: 500;
}

.article-list {
    list-style: none;
    margin-top: 50px;
}

li.has-image {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  max-width: 600px;
  margin: 0 auto;
}

.article-image {
  width: 100px;
  height: auto;
  border-radius: 10px;
  flex-shrink: 0;
}

li.has-image > div {
  flex: 1;
}

li.has-image h4,
li.has-image h5 {
  width: auto;
  margin: 0;
  max-width: none;
}

li.has-image h5 {
  margin-top: 5px;
}
/* Events Page Styles */

.event-year {
    font-family: "lora", monospace;
    font-size: 2em;
    margin: 40px auto 20px auto;
    max-width: 600px;
    font-weight: 700;
}

.event-card {
    padding: 5px;
    margin: 20px auto;
    max-width: 700px;
    text-align: left;
    line-height: 1.5em;
}

.event-date {
    font-family: "lora", monospace;
    font-size: 16px;
    margin: 0px auto 20px auto;
    max-width: 600px;
    text-align: left;
    font-weight: 700;
}

.event-title {
    font-family: "lora", monospace;
    font-size: 16px;
    margin: 0px auto 20px auto;
    max-width: 600px;
    text-align: left;
    font-weight: 350;
}

.event-description {
    font-family: "lora", monospace;
    font-size: 16px;
    margin: 0px auto 20px auto;
    max-width: 600px;
    text-align: left;
}

.event-image {
    width: 80%;
    height: auto;
    display: block;
    margin: 20px auto;
}

.podcast-btn {
    display: block;
    width: fit-content;
    padding: 20px 30px;
    background-color: rgb(51, 49, 49);
    color: white;
    text-decoration: none;
    font-family: "lora", monospace;
    font-size: 16px;
    margin: 20px auto;
}

.podcast-btn:hover {
    background-color: #555;
}

/* Multimedia Page Styles */

.multimedia-item {
    padding: 20px;
    margin: 20px auto;
    max-width: 700px;
    text-align: left;
    line-height: 1.5em;
}

.multimedia-link {
    color: white;
    padding: 20px 30px;
    background-color: rgb(51, 49, 49);
    text-decoration: none;
    font-family: "lora", monospace;
    font-size: 16px;
    margin: 10px auto;
    display: block;
    width: fit-content;
    text-align: center;
}

.buy-book {
    color: white;
    padding: 15px 20px;
    background-color: rgb(51, 49, 49);
    text-decoration: none;
    font-family: "lora", monospace;
    font-size: 16px;
    margin: 10px auto;
    min-width: 150px;
    text-align: center;
}

.pattersons-amazon {
    margin: 50px;
}

.multimedia-link:hover {
    background-color: #555;
}

.multi-description-link {
    color: black;
    text-decoration: underline;
    margin: auto;
    text-align: center;
    transition: color 0.2s ease;
}

.multi-description-link:hover {
    color: #9f5204
}

.multi-image-container {
    overflow: hidden;
}

.multimedia-image {
    width: 35%;
    margin: 10px;
    float: right;
}

/* about page styling */

.about {
    width: 70%;
    margin: auto;    
    overflow: hidden;
    text-align: left;
    line-height: 1.6em;
}

.michael-and-colefax {
    float: right;
    margin: 0 0 10px 10px;
    width: 35%;
}

/* Contact page styling */

.contact-cta {
    max-width: 700px;
    margin: 20px auto;
    text-align: left;
}

.contact-message {
    max-width: 700px;
    margin: 10px auto;
    text-align: left;
}

/* contact form page styling */

form {
    max-width: 500px;
    margin: 30px auto;
    text-align: left;
    font-size: 1.2em;
}

.field {
    display: flex;
    flex-direction: column;
    text-align: left;
    flex: 1;
    padding: 5px;
}

.name-row {
    display: flex;
    gap: 20px;    
}

#first-name, #last-name {
    width: 100%;
}

input {
    height: 30px;
    width: 50%;
    box-sizing: border-box;

}

label {
    text-align: left;
}

textarea {
  width: 100%;
  height: 150px;
  resize: vertical;
  box-sizing: border-box;
}

button[type="submit"] {
  background-color: #2c2c2c;
  color: #fff;
  border: none;
  padding: 12px 30px;
  font-size: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 10px;
  transition: background-color 0.2s ease;
  margin: 5px auto;
  display: block;
}

button[type="submit"]:hover {
  background-color: #555;
}

/* books sub-pages styling */

.book-copy {
    max-width: 800px;
    margin: 40px auto;
    text-align: left;
    line-height: 1.8em;

}

.book-copy img {
    float: left;
    width: 200px;
    margin: 0 25px 10px 0;
}

.clear {
    clear: both;
    padding-top: 30px;
    font-weight: 500;
}

.back-to-books {
    display: inline-block;
    margin-top: 40px;
    font-size: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #2c2c2c;
    text-decoration: none;
    border-bottom: 1px solid #2c2c2c;
    padding-bottom: 2px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.back-to-books:hover {
    color: #555;
    border-color: #555;
}

.discussion-guide {
    text-align: left;
    max-width: 800px;
    margin: auto;
}

.discussion {
    text-decoration: underline;
    font-weight: 100;
}

ol li{
    margin-bottom: 30px;  
    line-height: 1.6em;
    padding-left: 30px;  
}

.book-for-sale {
    display: flex;
    max-width: 600px;
    margin: 10px auto;
    justify-content: center;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.reviews {
    text-align: left;
    max-width: 800px;
    margin: 30px auto;
    line-height: 1.8em;
}
.reviews p {
    margin-bottom: 30px;
}

hr {
  border: none;
  border-top: 1px solid #2c2c2c;
  width: 60px;
  margin: 30px auto;
}

.section-divider {
    border: none;
    height: 1px;
    width: 60%;
    margin: 10px auto;
    background: linear-gradient(to right, transparent, #2c2c2c, transparent);
    clear: both;
}

/* Mobile Responsive Styles */

@media (max-width: 768px) {
    body {
        max-width: 100%;
        padding: 0 15px;
    }

    .intro {
        width: 100%;
    }

    .about {
        width: 100%;
    }

    .michael-and-colefax {
        width: 100%;
        float: none;
        margin: 20px 0;
    }

    .intro-image {
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }

    .book-copy img {
        width: 150px;
        margin: 0 15px 10px 0;
    }

    .multimedia-image {
        width: 100%;
        float: none;
        margin: 10px 0;
    }

    .cover-container img {
        width: 120px;
        height: 160px;
        margin: 10px;
    }

    input {
        width: 100%;
    }

    /* Hamburger menu */
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        display: flex;
        flex-direction: column;
        align-items: center;
        list-style: none;
        padding: 0;
        margin: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        border-bottom: 1px solid rgba(44, 44, 44, 0.15);
        transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.25s ease;
    }

    .nav-menu.open {
        max-height: 300px;
        padding: 10px 0 20px;
        opacity: 1;
    }

    nav ul li {
        display: block;
    }

    .nav-link {
        font-size: 15px;
        margin: 0;
        padding: 10px 0;
        display: block;
        letter-spacing: 0.15em;
    }

}
