/* Font imports */
@font-face {
    font-family: 'Typefesse_Claire-Obscure';
    src: url('../fonts/Typefesse_Claire-Obscure.woff2') format('woff2');
}
@font-face {
    font-family: 'Typefesse_Pleine';
    src: url('../fonts/Typefesse_Pleine.woff2') format('woff2');
}
@font-face {
    font-family: 'Pilowlava-Atome';
    src: url('../fonts/Pilowlava-Atome.woff2') format('woff2');
}
@font-face {
    font-family: 'Pilowlava-Regular';
    src: url('../fonts/Pilowlava-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}
/* Base styles */
body {
    font-family: "Roboto Mono", monospace;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: 1rem;
    line-height: 1.6;
    color: #F9DBBD;
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
    background-color: #303036;
}
h1, h2, h3, h4 {
    max-width: 100%;
    overflow-wrap: break-word;
    hyphens: auto;
    margin: 0;
}
h1 {
    font-family: "Pilowlava-Atome", monospace;
    text-align: center;
    font-weight: normal;
    font-size: 4rem;
}
h2 {
    font-family: "Roboto Mono", monospace;
    text-align: center;
    font-weight: normal;
    font-size: 4rem;
}
h3 {
    font-family: "Typefesse_Claire-Obscure", monospace;
    text-align: center;
    font-weight: normal;
    font-size: 4rem;
}
h4 {
    font-family: "Typefesse_Pleine", monospace;
    text-align: center;
    font-weight: normal;
    font-size: 4rem;
}

.writer-heading {
    font-family: 'Special Elite', cursive;
    /* Any other styles for this specific h2 */
}

.art-heading {
    font-family: 'Pilowlava-Atome', sans-serif;
}

.about-heading {
    font-family: 'Yet Another Font', serif;
}

/* Header styles */
header {
    text-align: center;
}
hr {
    max-width: 50%;
}
nav {
    max-width: 80%; /* Adjust the maximum width as needed */
    margin: 0 auto; /* Center the navigation */
    margin-top: 2rem;
  }
  
  nav ul {
    display: flex;
    flex-wrap: wrap; /* Allow the list items to wrap to a new line */
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  nav ul li {
    margin: 0 15px;
  }
  
  nav ul a {
    text-decoration: none;
    color: #F9DBBD;
    padding: .5rem;
  }

/* Article styles */
.article-title {
    background-color: #A690A4;
    color: #303036;
    cursor: pointer;
    margin-bottom: 0px;
    text-align: center;
    padding: .625rem;
}
.article-content {
    max-width: 100%;
    background-color: #A690A4;
    color: #303036;
    display: none;
    padding: 20px;
    padding-bottom: 0px;
    border: 1px solid #A690A4;
    border-top: 0px;
    text-align: center;
}
.article-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: cover;
    border: 1px solid #303036;
    margin-bottom: 1rem;
}
.image-caption {
    font-style: italic;
    margin-top: -1rem;
    margin-bottom: 2rem;
}
/* Footer styles */
footer {
    font-size: .8rem;
    text-align: center;
}
/* Responsive styles */

#menuLink {
    display: block; /* Make it a block element for centering */
    font-family: 'Typefesse_Pleine', sans-serif;
    font-style: normal;
    text-align: center;
    color: #F9DBBD; /* Change the color as needed */
    font-size: 3rem; /* Adjust the font size */
    cursor: pointer; /* Make it clickable */
  }

/* Gallery  Images */
.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.gallery-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    cursor: pointer;
    margin: 1rem;
}
  
  /* Style the modal */
  .modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    max-height: 80vh;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}  
  .close {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
  }
  
  .close:hover, .close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
  }

  /* end gallery images css */


@media (max-width: 600px) {
    h1 {
        font-size: 2.5rem;
        line-height: 1.2;
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
    }
    h2 {
        font-size: 2rem;
        line-height: 1.2;
    }
    h3 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    h4 {
        font-size: 5rem;
        line-height: 5rem;
    }
    body {
        padding: 20px;
    }
    nav ul li {
        margin: 10px 0;
    }
    .gallery-image {
        width: 80%;
        height: max-content;
    }
}

/* New media query for 393px viewport width */
@media (max-width: 393px) {
    body {
        font-size: 0.9rem;
        padding: 0.75rem;
    }
    h1 {
        font-size: 2rem;
        line-height: 1.1;
    }
    h2 {
        font-size: 1.75rem;
        line-height: 1.1;
    }
    h3 {
        font-size: 1.5rem;
        line-height: 1.2;
    }
    h4 {
        font-size: 4rem;
        line-height: 4rem;
    }
    .article-title {
        padding: 0.5rem;
    }
    .article-content {
        padding: 15px;
    }
    nav ul li {
        margin: 8px 0;
    }
    footer {
        font-size: 0.7rem;
    }
    .gallery-image {
        width: 80%;
        height: max-content;
    }
}