/* CSS is how you can add style to your website, such as colors, fonts, and positioning of your
   HTML content. To learn how to do something, just try searching Google for questions like
   "how to change link color." */

body {
  background-color: #D3D4D9;
  color: #243119;
  font-family: "Bitcount Grid Single", system-ui;
}

#container {
  display: flex;
  flex-direction: row;
  align-items: flex-start;   /* Align items to the top */
  justify-content: center;
  padding: 2rem 1rem;        /* Add some spacing around */
  gap: 2rem;                 /* Space between logo and text */
  box-sizing: border-box;
  width: 100%;
}

/* Logo */
#logo {
  width: 30vw;
  max-width: 200px;
  height: auto;
}

/* Text block next to logo */
.text-block {
  text-align: left;
  max-width: 90vw;
}

/* Logo */
#reading-img {
  width: 30vw;
  max-width: 200px;
  height: auto;
}

/* Text block next to logo */
.currently-reading {
  text-align: left;
  max-width: 90vw;
}

/* Title: single line */
#titleimg {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 3vw;
  max-width: 100%;
  margin: 0;
}

/* Subtitle */
#subtitle {
  font-size: 2vw;
  margin-top: 0.5rem;
}

#content-box {
  margin-top: 1rem;
  padding: 1rem;
  background-color: #629460; /* Change this to fit your theme */
  border: 2px dashed #243119;
  border-radius: 10px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  text-align: left;
  cursor: pointer;
}

/* Layout for the reading section */
.currently-reading {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 1rem;
}


    /* Modal base styles */
    .modal {
      display: none;
      position: fixed;
      top: 0; left: 0;
      width: 100%; height: 100%;
      background-color: rgba(0, 0, 0, 0.6);
      z-index: 1000;
      align-items: center;
      justify-content: center;
    }

    .modal-content {
      background: white;
      padding: 30px;
      border-radius: 10px;
      width: 90%;
      max-width: 500px;
      text-align: left;
    }

    .close {
      float: right;
      font-size: 24px;
      cursor: pointer;
    }

/* Image styles */
#reading-img {
  width: 120px;
  height: auto;
  border-radius: 8px;
  display: flex;
  align-items: center;
}

/* Text next to the image */
#reading-text {
  font-size: 1rem;
  color: #243119;
}


#reading-text p {
  white-space: normal;   /* Allow normal wrapping */
  word-wrap: break-word; /* Break long words if needed */
  overflow-wrap: break-word; /* For better browser support */
  margin: 0;             /* Optional, to control spacing */
  max-width: 600px;
}


/* Mobile responsive layout */
@media (max-width: 768px) {
  #container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  #logo {
    width: 40vw;
    margin-bottom: 1rem;
  }

  #titleimg {
    font-size: 5vw;
  }

  #subtitle {
    font-size: 4.5vw;
  }
  
    .currently-reading {
    flex-direction: row;
    align-items: flex-start;
  }

  #reading-img {
    width: 100px;
  }

  #reading-text {
    font-size: 3.5vw;
  }
}

