body{
  position: relative;
  padding-left: 35px;
  padding-right: 35px;
  background-color: #f0f0f0;
  font-family: "router", sans-serif;
  font-weight: 400;
  font-style: normal; 
  color: black;
  font-size: 15px;
  margin: 0;
  padding-bottom: 25px;
}


.header-section{
  padding-right: 70px;
  height: auto;
  width: 100%;
  background: linear-gradient(180deg, rgba(240,240,240,1) 0%, rgba(240,240,240,0.9) 70%, rgba(240,240,240,0) 100%);
  padding-top: 25px;
  padding-bottom: 15px;
  position: fixed;
  box-sizing: border-box; 
  z-index: 99;
  overflow-y: auto;
}

.top-header{
  display: flex;
  justify-content: space-between;
}

.header-container{
  margin-top: 2px;
}

.log-button{
  text-decoration: none;
  cursor: pointer;
}

.log-button a{
  text-decoration: none;
  transition: background-color 0.2s ease-in, color 0.2s ease-in;
  color: black;
}

.log-button a:hover {
  background-color: #9747FF;
  color: #F0F0F0;
}

.more-button {
  margin-left: 5px;
  font-family: "router", sans-serif;
  font-weight: 400;
  font-style: normal; 
  color: black;
  font-size: 15px;
  text-decoration: none;
  transition: background-color 0.2s ease-in, color 0.2s ease-in;
  cursor: cell;
  display: inline-block;
}

.more-button:hover {
  background-color: #9747FF;
  color: #F0F0F0;
}

.more-text {
  padding-left: 15%;
  margin-top: 20px;
  width: 50%;
  line-height: 19px;
  display: none;
  transition: opacity 0.3s ease, max-height 0.3s ease;
}
.more-text.show {
  display: block;
  opacity: 1;
  max-height: 500px; /* Adjust height as needed */
}

.evenmore-button {
  white-space: nowrap; /* Prevents button from wrapping to the next line */
  transition: background-color 0.2s ease-in, color 0.2s ease-in;
  cursor: cell;
  width: auto;
  display: inline;
  margin-left: 5px;

}
.evenmore-button:hover {
  background-color: #9747FF;
  color: #F0F0F0;
}

.even-more-text{
  display: none;
}
.even-more-text.show {
  display: block;
}

.close-button{
  padding-top: 2px;
  padding-bottom: 2px;
  margin-top: 15px;
  color: black;
  display: inline-block;
  width: auto;
  transition: background-color 0.2s ease-in, color 0.2s ease-in;
  cursor: pointer;
}

.close-button:hover{
  background-color: #9747FF;
  color: #F0F0F0;
}

.main-section{
  padding-top: 100px;
}

.project-index{
  display: flex;
  flex-direction: column-reverse;
  margin-top: 10px;
  gap: 20px;
}

.misc-index{
  display: flex;
  flex-direction: column-reverse;
  margin-top: 40px;
  gap: 20px;
}

.index-title{
  padding-left: 40px;
  cursor: pointer;
  color: black;
  transition: color 0.2s ease-in; 
}

.index-title.active {
  color: #9747FF; /* Purple color for the entire index-title div */
}


.title{
  font-size: 20px;
  position: relative;
  transition: transform 0.3s ease-in-out;
}
.index-title:hover .title {
  transform: translateX(20px);
}


.socials{
  margin-top: 15px;
  margin-bottom: 15px;
  transition: background-color 0.2s ease-in, color 0.2s ease-in;
}

.socials :hover{
  background-color: #9747FF;
  color: #F0F0F0;

}
.socials a{
  color: black;
  text-decoration: none;
}

/* Modal styles */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1000;
  right: 0;
  top: 0;
  width: 60%;
  height: 100vh;
  overflow: auto;
}

@media (max-width: 768px) {
  body{
    padding-left: 20px;
    padding-right: 20px;
  }

  .main-section{
    position: fixed;
    margin-top: 10px;
    width: 100%;
    min-height: 100vh;
    max-height: 100vh;
    overflow-y: scroll;
    overflow-x: hidden;
  }

  .modal {
    width: 100%;
    position: absolute;
    background-color: #F0F0F0;
  }

  .modal-content{
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  #modal-title{
    width: 75% !important;
  }

  #modal-description{
    width: 90% !important;
    margin-top: 40px !important;
  }


  .header-section{
    background: linear-gradient(180deg, rgba(240,240,240,1) 0%, rgba(240,240,240,0.9) 95%, rgba(240,240,240,0) 100%);
    padding-right: 40px;
  }

  .header-container{
    width: 85%;
    margin-top: 5px;
  }

  .header-modal{
    margin-top: 30px !important;
  }


  .more-text{
    padding-left: 5%;
    width: 90%;
  }

  .more-button{
    margin-left: 0px;
  }
}

.modal-content {
  background: linear-gradient(90deg, rgba(240,240,240,0) 0%, rgba(240,240,240,1) 9%, rgba(240,240,240,1) 41%, rgba(240,240,240,1) 100%);
  margin-left: auto;
  padding-left: 35px;
  padding-right: 35px;
  padding-top: 25px;
  width: 100%;
  text-align: right;
  position: relative;
}

.close-modal {
  display: inline-block;
  width: auto;
  padding-top: 2px;
  padding-bottom: 2px;
  cursor: pointer;
  transition: background-color 0.2s ease-in, color 0.2s ease-in;
}

.close-modal:hover,
.close-modal:focus {
  background-color: #9747FF;
  color: #F0F0F0;
  text-decoration: none;
  cursor: pointer;
}

#modal-title {
  font-size: 20px;  /* Set title size */
  line-height: 24px;
  text-align: left; /* Center-align the title */
  width: 60%;
  word-wrap: break-word; /* Prevent words from breaking in the middle */
  overflow-wrap: break-word; /* Same effect, ensure long words wrap */
}

.header-modal {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 55px; /* Add space below the title */
  margin-bottom: 30px; /* Add space below the title */

}

#modal-header-media img,
#modal-header-media video {
  width: 100%;
  border-radius: 5px;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 10px;
  margin-top: 20px;
  padding-bottom: 35px;
}

.image-grid img {
  width: 100%;
  height: auto;
  border-radius: 2px;
}

#modal-description {
  width: 80%;
  margin-top: 20px;
  padding-top: 5px;
  text-align: left;
  line-height: 19px;
  padding-bottom: 15px;
}

.modal-link {
  width: 130px;
  text-align: left;
  margin-top: 10px;
  color: black;
  text-decoration: none;
  transition: background-color 0.2s ease-in, color 0.2s ease-in;
}

.modal-link:hover {
  background-color: #9747FF;
  color: #F0F0F0;
}
