
    
body {
    background-image: url("/images/beachreadsbglight.png");
    background-size: cover; 
    background-position: center center; 
    background-repeat: no-repeat; 
    background-attachment: fixed; 
    width: 100%;
    height: 100vh; 
    background-color: #cccccc;
    transition: background-image 1s ease, background-color 1s ease, color 0.5s ease;
    margin: 0;
    padding: 0;
}


  body.night-mode {
    background-image: url("/images/beachreadsbgdark.png"); 
    background-color: #222222;
  }


@font-face {
  font-family: 'GlossyDisplay-LightCondensedItalic';
  src: url('fonts/GlossyDisplay-LightCondensedItalic.woff2') format('woff2');
  font-weight: 100;
  font-style: normal;
            letter-spacing: -5x;

}


.header {
    background: rgba(255, 255, 255, 0.8);
    text-align: left;
    padding: 20px 30px;
    width: 45%; /* Adjust width to 80% for more flexibility */
    max-width: 1000px; 
    margin: 0px auto; 
    transition: background 0.5s ease;
}

body.night-mode .header {
  background: rgba(0, 0, 0, 0.702);
}

body.night-mode h1,
body.night-mode h2,
body.night-mode h3 {
  color: #948979;
}

#modeToggle img:hover {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

      h1 {
  font-size: 100px;
  font-family: "Old Standard TT", serif;
  font-weight: 700;
        font-optical-sizing: auto;
          letter-spacing: -12px;
text-align: center;
line-height: 85%;
      }
h2 {
        font-size: 20px;
  font-family: "Urbanist", sans-serif;
    font-weight: 400;
          font-optical-sizing: none;
      }

      h3 {
        font-size: 50px;
        font-family: 'GlossyDisplay-LightCondensedItalic', serif;
          font-optical-sizing: none;
      }


a {
    color: #0077cc; 
    text-decoration: none; /
    transition: color 0.3s ease, transform 0.3s ease; 
}

a:hover {
    color: #FF8579; 
}

a:focus {
    outline: 3px solid #ffaa00; 
    outline-offset: 2px; 
}

a:visited {
    color: #FF8579; 
}

a:active {
    color: #ff6347; 
}


footer a {
    color: #B5D5FF; 
}

footer a:hover {
    color: #FF8579; 
}

.header a {
    font-size: 13px; 
    color: #333333; 
    text-decoration: none; 
}

.header a:hover {
    color: #FF8579; 
}

      /* Default appearance (day mode) */
#modeToggle img {
  filter: brightness(0) contrast(9);
  transition: filter 0.3s ease;
}

/* Night mode tweaks for visibility */
body.night-mode #modeToggle img {
  filter: brightness(9); /* Makes them brighter & more vibrant */
}

/* Optional: different filter per icon */
body.night-mode #dayModeIcon {
  filter: brightness(9);
}

body.night-mode #nightModeIcon {
  filter: brightness(0);
}


.book-entry {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 40px;
}

.book-entry img {
  width: 155px;
  height: auto;
  border-radius: 5px;
  object-fit: cover;
}

.book-media {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.book-media > img {
  width: 120px;
  border-radius: 6px;
  object-fit: cover;
}

.book-text h3 {
  margin: 0 0 10px;
  font-size: 44px; 
}

.book-text h2 {
  font-size: 18px;
  margin: 0;
  line-height: 1.4;
}

.image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; 
  gap: 2px;
}

.image-grid img {
  width: 60px;
  height: 100px;
  border-radius: 4px;
  object-fit: cover;
}

.expandable-img {
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  transform-origin: center center;
  border-radius: 4px;
}

.expandable-img.expanded {
  transform: scale(7);
  z-index: 999;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  position: relative;
}


  footer {
        text-align: center;
        margin: 10px 0;
        font-size: 12px;
  font-family: "Urbanist", sans-serif;
    font-weight: 400;
      }

      body.night-mode footer {
    color: #222222; 
}
/* Media Queries for Mobile Responsiveness */

/* Mobile and smaller devices */
@media (max-width: 768px) {
    .header {
        width: 90%; 
        padding: 20px 15px; 
        margin: 20px auto; 
    }

    h1 {
        font-size: 55px;
        letter-spacing: -7px;
    }

    h2 {
        font-size: 20px; 
        text-align: center;
    }

    .book-entry {
        display: flex;
        flex-direction: column; 
        align-items: left; 
        margin-bottom: 20px; 
        width: 100%; 
        box-sizing: border-box; 
    }

    .book-entry img {
        width: 155px; 
        height: 240px; 
        object-fit: cover; 
        margin-bottom: 10px; 
    }

    .book-media {
        display: flex;
        flex-direction: column;
        align-items: left; 
        gap: 16px;
    }

    .book-text h3 {
        margin: 0 0 10px;
        font-size: 42px; 
    }

    .book-text h2 {
        font-size: 16px; 
        margin: 0;
        line-height: 1.4;
        text-align: left; 
    }

    .image-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px; 
        width: 100%; 
        box-sizing: border-box; 
    }

    .image-grid img {
        width: 100%; 
        height: 140px; 
        object-fit: cover; 
        border-radius: 5px;
    }

    .expandable-img {
        width: 100%;
        max-width: 120px; 
        height: auto;
    }

    footer {
        font-size: 10px; 
    }
}

/* Tablets and medium screens */
@media (max-width: 1024px) {
    .header {
        width: 85%;
    }

    h1 {
        font-size: 85px;
        letter-spacing: -8px;
    }

    .book-entry {
        flex-direction: row; 
    }
}

/* Night Mode Icon Styles */
#modeToggle img {
    width: 32px;
    height: 32px;
    cursor: pointer;
    opacity: 1;
    transition: transform 0.3s ease;
}

#modeToggle img:hover {
    transform: scale(1.1);
}

/* Other styles (expandable images, etc.) */
.expandable-img {
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border-radius: 4px;
}

.expandable-img.expanded {
    transform: scale(7);
    z-index: 999;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    position: relative;
}

