/* Colors */

/* off-black: #29211F;
off-white: #F5F4EB;
beige: #C2BB8A;
burnt-orange: #C27D38;
greenish: #8D9876; */

/* ---------------------------- */
/* Basic Setup */
/* ---------------------------- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    background-color: #F5F4EB;
    
    color: #fff;
    font-family: "Roboto", "Arial", sans-serif;
    font-weight: 500;
    font-size: 20px;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

body {
    background-color: #0b1820;
    color: #e0f8d0;
}

/* clearfix for fixing float/ul spacing */
.clearfix { zoom: 1; }
.clearfix:after {
    content: '.';
    clear: both;
    display: block;
    height: 0;
    visibility: hidden;
}

/* ---------------------------- */
/* Reusable objects */
/* ---------------------------- */

.row {
    max-width: 1140px;
    margin: 0 auto;
}

/* ---------------------------- */
/* Headings */
/* ---------------------------- */


.header-font {
    font-family: "Shrikhand", serif;
    font-weight: 400;
    font-style: normal;
  }

.square-img {
    aspect-ratio: 1 / 1; /* keeps each image square */
    object-fit: cover;
    width: 100%;
}

h1 {
    color: #C27D38;
}

h2 {
    color: #0096a9;
    margin: 60px 0;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 200%;
    font-weight: 300;
}

h2::after {
    height: 2px;
    width: 50px;
    background-color: black;
}

h3, h4, h5 {
    color: #29211F;
}

h4 {
    font-size: 85%;
}

h5 {
    font-size: 80%;
}

/* ---------------------------- */
/* Header */
/* ---------------------------- */

.header {
    background-color: #29211F;
}

.main-nav {
    float: right;
    list-style: none;
    margin: 35px 0px;
    display: block;
}

.main-nav li {
    display: inline-block;
    font-size: 90%;
    font-family: "Balsamiq Sans", "Arial", sans-serif;
}

.main-nav li:first-child { margin-left: 0px; }

.nav-other:link,
.nav-other:visited,
.nav-focus {
    display: block;
    margin-left: 15px;
    padding: 7px 5px;
    letter-spacing: 3px;
    font-size: 65%;
    text-decoration: none;
    text-transform: uppercase;
    color: #C2BB8A;
    border-bottom: 2px solid transparent; 
    transition: all 0.2s;
}

.nav-focus {
    border-bottom: 2px solid #C2BB8A; 
}

.nav-other:hover,
.nav-other:active,
.nav-focus:hover,
.nav-focus:active {
    opacity: 70%;
    border-bottom: 2px solid #C2BB8A; 
}

.page-strip {
    height: 10px;
    background-color: #88C070;
    width: 100%;
  }

/* ---------------------------- */
/* Navigation */
/* ---------------------------- */

.nav-list {
    list-style-type: none;
    margin: 0 auto;
    padding: 0;
    padding-right: 0; /* Remove extra padding */
    display: flex;
    justify-content: center; /* Ensure proper centering */
    align-items: center;
    gap: 24px; /* Ensure even spacing between items */
    font-size: 0;

    width: auto; /* Maintain aspect ratio */
    max-width: 100%;
}

/* Ensure list items are properly aligned */
.nav-list li {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Default image styling */
.nav-list img {
    display: block;
    width: auto;
    height: 55px; 
    max-width: 100%;
}

/* Hover effect */
.nav-list a:hover {
    color: #88C070;
}

/* MONTH DISPLAY */

.month-large-display {
    display: flex;  /* Default display */
}

.month-small-display {
    display: none;  /* Hide small display by default */
}

@media (max-width: 900px) {
    .month-large-display {
        display: none; /* Hide the large display */
    }

    .month-small-display {
        display: flex; /* Show the small display */
    }
}



/* Increase spacing and size on smaller screens */
@media (max-width: 768px) { 
    .nav-list {
        flex-wrap: wrap; /* Allow items to wrap for small screens */
        justify-content: center;
        gap: 32px; /* Increase spacing */
        border-width: 4px; /* Adjust border for mobile */
    }
    
    .nav-list img {
        height: 50px; /* Make images bigger */
    }
}

@media (max-width: 480px) {
    .nav-list {
        width: 100%;
        gap: 10px; /* More spacing on small screens */

        
    }
    
    .nav-list img {
        height: 50px; /* Increase size for small screens */
    }
}


.month-nav {
    list-style-type: none; 
    margin: 0 auto; 
    padding: 0;
    justify-content: space-between; /* Space out items */
    align-items: center; /* Align vertically */
    max-width: 100%;
    width: 100%;
}

.month-nav li{
    font-size: x-large;
}

.month-nav a{
    text-decoration: none;
    color: inherit;

}

.month-nav a:hover{
    color: #88C070;

}

/* Hover effect */
.month-list a:hover {
    color: #88C070;
}

/* ---------------------------- */
/* Content */
/* ---------------------------- */


.comic-box a {
    text-decoration: none;
}


.comic-box:hover {
    color: #346856;
}

.comic-title {
    color: #e0f8d0;
    transition: color 0.2s ease; /* Short fade effect on color change */
}

a:hover .comic-title {
    color: #346856;
  }


.content {
    background-color: #0b1820;
}

.text-justify {
    text-align: justify;
}

/* ---------------------------- */
/* Newsletter */
/* ---------------------------- */

a.no-style {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease; /* Short fade effect on color change */
  }
  
  a.no-style:hover {
    color: #88C070;
  }

.newsletter {
    font-family: "Inter", sans-serif;
    font-weight: 400;
    font-size:large;
    background-color: white;  
    color: #585E5C;      
    border-radius: 8px; /* Adjust this value as needed */
  }

  .newsletter-list {
padding: 20px;
}

  .newsletter-item {
    list-style-type: none;
    background-color: white;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
  }

  .newsletter-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 20px;
  }

  .newsletter-title {
    font-size: 130%; /* Scales based on parent font size */
    text-decoration: underline;
    color: #3d6756;
    transition: color 0.3s ease; /* Short fade effect on color change */
  }
  
  .newsletter-title:hover {
    color: #29211F;
  }

  .newsletter-description {
    font-size: 80%; /* Matches parent font size */
    font-style: italic;
    color: #3d6756;
    margin: 10px 0;
    line-height: 140%;
  }

  .newsletter-date {
    font-size: 80%; /* Slightly larger than body text */
    font-weight: bold;
    color: #3d6756;
    color: #555;
  }

  @media (max-width: 768px) {
    .newsletter-title {
      font-size: 120%; /* Reduce font size on mobile */
    }

    .newsletter-description {
      font-size: 90%; /* Slightly smaller for mobile readability */
    }

    .newsletter-date {
      font-size: 70%; /* Match normal text size on smaller screens */
    }
  }

.publication {
    font-size: small;
    font-style: italic;
}

/* ---------------------------- */
/* Footer */
/* ---------------------------- */

footer {
    padding-top: 20px;
    padding-bottom: 50px;
    background-color: #0b1820;
}

footer p {
    font-size: 120%;
    text-align: center;
    color: #C2BB8A;
    word-spacing: 3px;
    letter-spacing: 0.5px;
    font-weight: 900;
    transform: scale(1.1, 1);
}

footer p span {
    font-size: 80%;
}

.social-links {
    float: right;
    list-style: none;
}

.social-links li {
    display: inline-block;
    font-size: 170%;
}

.social-links li a:link,
.social-links li a:visited {
    margin-left: 15px;
    color: #8D9876;
    transition: opacity 0.2s;
}

.social-links li a:hover,
.social-links li a:active {
    opacity: 60%;
}

/* ---------------------------- */
/* Miscellaneous */
/* ---------------------------- */

p {
    color: #29211F;
    font-size: 70%;
}

.about {
    color: #e0f8d0;
    font-size: x-large;
}

.about a {
        color: orange;
}

.about a:hover {
        color: orangered;
}


.about b{
            color: orange;
}

.btn:focus {
    outline: none;
}

ion-icon {
    color: #e0f8d0;
    font-size: 200%;
}

.pixel-art {
    width: 300%; 
    height: auto; 
    image-rendering: crisp-edges; 
    image-rendering: pixelated;
}