body {
    background-color: #f8fcff !important;
    font-family: "Roboto", sans-serif;

}

.roboto-regular {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.image-container {
    position: relative;
    width: 100%;
    height: 100%;
  }
  
  .image-container img {
    display: block;
    width: 100%;
    height: auto;
    z-index: 10 !important;
  }
  
  .wave-svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
  }

  .background {
    position: relative;
    height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url('https://static.igem.wiki/teams/5310/human-practices/brainover.svg'); 
    background-size: 45%;
    background-position: center;
    background-repeat: no-repeat;
  }
  
  /* Glass effect container */
  .glass-effect {
    background: rgba(255, 255, 255, 0.3); 
    backdrop-filter: blur(5px); 
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1); 
    color: black;
    max-width: 800px;
    text-align: center;
  }
  
  h1{
    color:purple;
    text-align: center;
  }
  

 

/* Container for closing the loop */

.cont-1{
    width: 90vw; 
    margin: 0 auto; 
    border-radius: 25px;
    background-color: #fffaf3;
    box-shadow: 0 0 10px rgba(230, 144, 227, 0.5);
    border: 1px solid black;
}

/* Neuron Buttons */

.neuron-container {
    position: relative;
    width: 100vw;
    height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .neuron {
    width: 90vw;
    max-height: 90vh;
    object-fit: contain; 
    
  }
  
  @keyframes moveUpDown {
    0% {
      transform: translateY(0);
    }
    100% {
      transform: translateY(-10px);
    }
  }
  
  .button {
    position: absolute;
    width: 12vw;
    height: 5vw;
    background-color: rgb(111, 118, 211);
    box-shadow: 0 0 10px rgba(230, 144, 227, 0.5);
    border-radius: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    font-weight: bold;
    cursor: pointer;
    animation: moveUpDown 2s ease-in-out infinite alternate;
  }
  
  .button-1 { top: 15%; left: 20%; }
  .button-2 { top: 15%; right: 20%; }
  .button-3 { bottom: 2%; left: 45%; transform: translateX(-50%); }
  .button-4 { bottom: 25%; left: 17%; }
  .button-5 { bottom: 25%; right: 19%; }
  
  
  
  #content-1 {
    display: none; /* Hidden by default */
    margin-top: 20px;
    text-align: center;
    font-size: 1.2rem;
    background-color: white;
    padding: 10px;
    width: 90vw;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid purple;
    border-radius: 25px;
  }

  @media (max-width: 768px) {
    .button {
      width: 20vw; 
      height: 8vw; 
      font-size: 1rem; 
    }
  
    .button-1 { top: 20%; left: 15%; }
    .button-2 { top: 20%; right: 15%; }
    .button-3 { bottom: 5%; left: 50%; transform: translateX(-50%); }
    .button-4 { bottom: 30%; left: 12%; }
    .button-5 { bottom: 30%; right: 12%; }
  }
  
  @media (max-width: 480px) {
    .button {
      width: 30vw; 
      height: 10vw; 
      font-size: 0.9rem; 
    }
  
    /* Adjust positions for very small screens */
    .button-1 { top: 25%; left: 10%; }
    .button-2 { top: 25%; right: 10%; }
    .button-3 { bottom: 8%; left: 50%; transform: translateX(-50%); }
    .button-4 { bottom: 35%; left: 8%; }
    .button-5 { bottom: 35%; right: 8%; }
  }
  

  /* List Design */
  * {
    box-sizing: border-box;
  }
  
  .first body {
    --h: 212deg;
    --l: 43%;
    --brandColor: hsl(var(--h), 71%, var(--l));
    font-family: "Roboto", sans-serif;
    margin: 0;
    background-color: whitesmoke;
  }
  
  .first p {
    margin: 0;
    line-height: 1.6;
  }
  
  .first ol {
    list-style: none;
    counter-reset: list;
    padding: 0 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .first li {
    /* These variables should be defined once for the li */
    --stop: calc(100% / var(--length) * var(--i));
    --l: 62%;
    --l2: 88%;
    --h: calc((var(--i) - 1) * (180 / var(--length)));
  
    /* Purple for item 1, Dark Blue for item 2, Orange for item 3 */
    --c1: hsl(265, 80%, var(--l)); 
    --c2: hsl(265, 80%, var(--l2)); 
  
    position: relative;
    counter-increment: list;
    width: 85vw; 
    height: auto; 
    margin: 1rem; 
    padding: 1.5rem;
    box-shadow: 0.1rem 0.1rem 1.5rem rgba(0, 0, 0, 0.3);
    border-radius: 0.25rem;
    overflow: hidden;
    background-color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  .first li:nth-child(2) {
    /* Custom colors for the second item */
    --c1: hsl(230, 80%, var(--l)); 
    --c2: hsl(230, 80%, var(--l2)); 
  }
  
  li:nth-child(3) {
    /* Custom colors for the third item */
    --c1: hsl(30, 80%, var(--l)); 
    --c2: hsl(30, 80%, var(--l2)); 
  }
  
  .first li::before {
    content: '';
    display: block;
    width: 100%;
    height: 1rem;
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(to right, var(--c1) var(--stop), var(--c2) var(--stop));
  }
  
  .first .list h3 {
    display: flex;
    align-items: baseline;
    margin: 0 0 1rem;
    color: rgb(70 70 70);
  }
  
  .first .list h3::before {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 0 0 auto;
    margin-right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    content: counter(list);
    padding: 1rem;
    border-radius: 50%;
    background-color: #FFA500;
    color: white;
  }
  /* Media Query for larger screens */
  @media (min-width: 40em) {
    .first li {
      width: 30vw;
      margin: 2rem;
      padding: 1.5rem;
    }
  
    .first .list h3 {
      font-size: 1.75rem;
    }
  }

  .collapse-button {
    background-color: rgb(111, 118, 211);
    box-shadow: 0 0 10px rgba(230, 144, 227, 0.5);
    color: white;
    padding: 10px 20px;
    font-size: 18px;
    border: none;
    cursor: pointer;
    text-align: left;
    width: 100%;
    border-radius: 5px;
    position: relative;
    margin-bottom: 5vh;
}

.specdropdown {
    height: auto;
}

.collapse-content {
    display: none;
    padding: 10px;
    background-color: #fffaf3;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-top: 10px;
}

.collapse-button::after {
    content: '▼';
    position: absolute;
    right: 20px;
    font-size: 16px;
    transition: transform 0.3s;
}

.collapse-button.active::after {
    transform: rotate(180deg);
}



.left-aligned-list {
  text-align: left; 
  padding-left: 20px; 
  list-style-type: disc; 
}

.left-aligned-list ul {
  padding-left: 20px; 
}

.left-aligned-list li {
  margin-bottom: 10px; 
}
/* Wave containers */


.section:nth-child(odd) {
    background-color: #f3ecff;
}

.section:nth-child(even) {
    background-color: #fffaf3;
}

.section {
    color: black;
    font-size: 1.2rem;

    width: 100%;
    margin: 0;
    padding: 20px 0;  
    border-radius: 25px;
    position: relative;
    height: auto;
    /*display: flex;
    flex-direction: column;*/
    
}



.photos img {
  display: block; 
  width: 100%; 
  height: auto;
}

/* Heading styles */
.section h3 {
    text-align: center;
    margin-bottom: 20px;
}

/* Content styling */
.des-con {
    display: none; 
    margin-top: 20px;
    font-size: 1rem;
    background-color: white;
    padding: 0;
    width: 90vw;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid purple;
    border-radius: 25px;
    font-family: "Roboto", sans-serif;
}

.questions {
    color:#FFA500;
    font-size: 1.2rem;
}

.section p {
    text-align: justify;
}

a.hyperlink {
    color: purple; 
    text-decoration: underline; 
    transition: color 0.3s ease-in-out; 
}

a.hyperlink:hover {
    color: orange; 
    text-decoration-thickness: 2px;
}
 

.wavy {
    position: absolute;  
    width: auto; 
    height: auto; 
    z-index: 1;
    margin: 0 ;
    background: none;
    bottom: -35%;
}

.text-z p{
  z-index: 2;
  position: relative
}

.wavy2 {
  position: absolute;  
  width: auto; 
  height: auto; 
  z-index: 1;
  margin: 0 ;
  background: none;
  bottom: -35%;
  transform: scaleX(-1);;
}

/*Small screens */

@media only screen and (max-width: 600px) {
  /* Adjust layout for smaller screens */
  .container {
    flex-direction: column;
  }

  .section {
    height: auto;
  }

  .photos {
     flex-direction: column;
    align-items: center;
  }

  .photos img {
    margin-bottom: 10px;
    width: 100%; 
    height: auto; 
  }

  .text-z {
    text-align: center;
    z-index: 1;
  }

  /* Adjust wave position */
  #content-2 .wavy {
    width: 100%; 
    bottom: -5%; 
  }

  #contet-2 .wavy2 {
    width: 100%; 
    bottom: -8%;
  }

  #content-3 .wavy {
    width: 100%; 
    bottom: -8%; 
  }

  #contet-3 .wavy2 {
    width: 100%; 
    bottom: 20%;
  }
}