.header{
    background: linear-gradient(to top, #3b709f97, #3b709f97), url("https://static.igem.wiki/teams/5311/header-videos/engineering.webp") no-repeat center/cover;
}

.cycle-container {
    display: flex;
    justify-content: space-around;
    text-align: center;
    padding-top:20px;
    padding-bottom:20px;

}

.cycle {
    display: flex;           
    justify-content: center; 
    align-items: center;     
    flex: 1;
}

.image-wrapper {
    position: relative;
    width: 60%; /* Adjust based on your design */
}

.image-wrapper img {
    width: 100%;
    height: auto; /* Maintains aspect ratio */
}

.number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2em; /* Adjust size as needed */
    padding: 0.5em; /* Optional: padding for better aesthetics */
    border-radius: 50%; /* Optional: rounded background */
    font-weight: bold;
    color:#3b719f;
}



.rotate {
    animation: rotation 8s infinite linear;
  }
  
  
  @keyframes rotation {
    from {
      transform: rotate(0deg);
    }
    to {
      transform: rotate(359deg);
    }
  }


.background-cycle {
    position: absolute; /* Position the cycle element absolutely */
    right: 0; /* Align it to the right */
    transform: translate(25%, -50%); /* Center it vertically */
    width: 20%; /* Adjust width as needed */
    overflow: hidden; /* Ensure the clipped part of the image is not visible */
    opacity: 0.5; /* Set transparency */
    transition:top 1s;
    z-index: -1;
}
.background-cycle.fixed {
    position: fixed; /* Fixed position when scrolled */
    top: 0; /* Adjust top if needed */
    transform: translate(25%, 50px);
}

.background-cycle .image-wrapper {
    position: relative;
    width: 100%;
    height: auto; 
    clip-path: inset(0 25% 0 0); /* Show only 3/4 of the image */
}

.background-cycle .image-wrapper img {
    width: 100%;
    height: auto; /* Maintains aspect ratio */
    display: block;
}

.background-cycle .number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2em; /* Adjust size as needed */
    padding: 0.5em; /* Optional: padding for better aesthetics */
    border-radius: 50%; /* Optional: rounded background */
    font-weight: bold;
    color: #3b719f;
}

.image-right{
    float:right;
    height:200px;
    padding-left:10px;
}
.image-right img, .image-left img, .image-center img, .image-center-big img{
    object-fit: contain;
    width: 100%;
    height: 100%;
}

.image-left{
    float:left;
    height:200px;
    padding-right:10px;
}
.image-center{
    height:200px;
    padding-right:10px;
    text-align: center;
}
.image-center-big{
    height:100%;
    padding-right:10px;
    text-align: center;
}




@media (max-width: 768px) {
    .image-right {
        float: none; /* Remove float to make the image stack below the text */
        height: 150px; /* Allow height to adjust based on image content */
        width: 100%; /* Ensure the image takes full width */
        margin: 20px 0; /* Add margin above and below the image */
    }
    .image-left{
        float: none; /* Remove float to make the image stack below the text */
        height: 150px; /* Allow height to adjust based on image content */
        width: 100%; /* Ensure the image takes full width */
        margin: 20px 0; /* Add margin above and below the image */
    }
}


/*for the list*/
.list-container {
    display: flex;
    align-items: stretch; /* Ensures both children stretch to fill the container */
    justify-content: center;
    min-height: 300px; /* Set a minimum height to ensure visibility */
}

.image-list {
    flex: 1;
    max-width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.image-list img {
    max-width: 80%;
    max-height: 100%;
    object-fit: contain;
}

.list-container ul {
    flex: 1;
    list-style-type: "\2192";
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0;
}

.list-container li {
    margin-bottom: 15px;
    padding-left: 10px;
}

@media (max-width: 768px) {
    .list-container {
        flex-direction: column;
    }

    .image-list {
        max-width: 100%;
        margin-bottom: 20px;
    }

    .list-container ul {
        padding: 0 20px;
    }
}



/**/

.content-wrapper {
  display: flex;
  align-items: stretch;
  max-width: 1200px;
  margin: 0 auto;
}

.side-image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.side-image img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.text-content {
  flex: 4;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}


@media (max-width: 768px) {
  .content-wrapper {
    flex-direction: column;
  }

  .side-image {
    display: none;
  }

  .text-content {
    flex: 1;
  }
}


/*BOXES*/
.engineering-container{
    display:flex;
    justify-content:space-around;
    flex-wrap: wrap;
    padding: 0;
}

.engineering-box{
    border: solid;
    border-width: 5px;
    border-radius: 20px;
    padding:1em;
    margin:1em;
    width: 100%;
}
.blue-box{
    color:#3b719f
}

.gray-box{
    color:#cdb997;
}

.gray-box .special-bold{
    color:#cdb997;
}

.third-box .special-bold{
    color: black;
}

.engineering-container-horizontal{
    display:flex;
    justify-content:space-around;
    padding: 0;
}

.third-box{
    border: solid;
    border-width: 5px;
    border-radius: 20px;
    padding:1em;
    margin:1em;
    width: 100%;
}

.engineering-box img{
    object-fit: contain;
    height:125px;
    display: block;
    margin: auto;
    padding-top: 10px;
}

@media(min-width: 800px){
    .engineering-box{
        width: calc(50% - 2em);
    }
}

.image-center-block {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.image-center-block img {
    max-width: 60%;
    height: auto;
}

@media (max-width: 768px) {
    .engineering-box {
        padding: 15px;
    }
}

.arrow ul {
    list-style-type: '\2192';
    padding: 20px;
    justify-content: center;
    margin: 0;
}

.arrow li {
    margin-bottom: 15px;
    padding-left: 10px;
}

.objective-box {
    padding: 1em;
    margin: 1em;
    width: 100%;
    border-radius: 20px;
    background-color:#3b709f;
    color:white;
}

