@media only screen and (max-width: 576px) {
    .engineering-banner {
        height: 23vh;
    }
    .engineering-banner .engineering-title {
        font-size: 18px;
    }
    .engineering-banner .ocean {
        height: 30px;
    }
    .references-button-wrapper .references-button {
        font-size: 1em;
    }
}
@media only screen and (min-width: 576px) {
    .engineering-banner {
        height: 40vh;
    }
    .engineering-banner .engineering-title {
        font-size: 20px;
    }
}
@media only screen and (min-width: 768px) {
    .engineering-banner {
        height: 47vh;
    }
    .engineering-banner .engineering-title {
        font-size: 30px;
    }
}
@media only screen and (max-width: 768px) {
    .engineering-phase-component .engineering-component-title{
        display: flex;
        flex-wrap: wrap;
    }
    .engineering-phase-component .engineering-component-title>div{
        white-space: normal;
    }
    .engineering-phase-component .engineering-component-title div:nth-child(1) {
        animation: none;
    }
    .engineering-phase-component .engineering-component-title div:nth-child(2) {
        animation: none;
        width: auto;
    }
    .engineering-phase-component .engineering-component-title div:nth-child(2) span {
        animation: none;
        margin-left: 1px;
    }
}
@media only screen and (min-width: 992px) {
    .engineering-banner {
        height: 55vh;
    }
    .engineering-banner .engineering-title {
        font-size: 50px;
    }
}
@media only screen and (min-width: 1200px) {
    .engineering-banner {
        height: 66vh;
    }
}
@media only screen and (min-width: 1400px) {
    .engineering-banner {
        height: 70vh;
    }
}
.upper-divider-banner {
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
  }
  
  .upper-divider-banner svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 46px;
  }
  
  .upper-divider-banner .shape-fill {
    fill: rgb(10, 10, 17);
  }
.engineering-banner {
    background: url('https://static.igem.wiki/teams/4810/wiki/background-banner-engineering.webp');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 1;
    margin-top: 100px;
    margin-bottom: 0px;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
    align-items: center;
    padding-left: 0%;
    padding-right: 0%;
}
.engineering-title {
    margin: auto;
    font-size: 50px;
    width: 40%;
    color: white;
    text-align: center;
    background-color: rgba(21, 21, 30, 0.7);
    padding-top: 5px;
    padding-bottom: 5px;
    border-radius: 50px;
    border-bottom: 5px solid #37aac7 !important;
    border-top: 5px solid #37aac7;
    border-left: 5px solid #37aac7;
    border-right: 5px solid #37aac7;
}
/*------------------ Wave Animation */
.ocean {
    height: 100px;
    width: 100%;
    position: relative;
    bottom: 0;
    left: 0;
    right: 0;
    overflow-x: hidden;
}
.wave {
    background: url('https://static.igem.wiki/teams/4810/wiki/waves.svg') !important;
    position: absolute;
    width: 200%;
    height: 100%;
    animation: wave 10s -3s linear infinite;
    transform: translate3d(0, 0, 0);
    opacity: 0.8;
}
.wave:nth-of-type(2) {
    bottom: 0;
    animation: wave 18s linear reverse infinite;
    opacity: 0.5;
}
.wave:nth-of-type(3) {
    bottom: 0;
    animation: wave 20s -1s linear infinite;
    opacity: 0.5;
}
@keyframes wave {
    0% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(-25%);
    }

    100% {
        transform: translateX(-50%);
    }
}
/* -----------Engineering Cycle */
.engineering-section-row{
    margin-top: 50px;
    margin-bottom: 100px;
}
.engineering-section-cycle-title{
    text-align: center;
    margin-bottom: 60px;
    margin-top: 60px;
    background-image: linear-gradient(to bottom right, #5b66bb, #25cfb2);
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
}
.engineering-cycle-img{
    width: 100%;
}
.engineering-cycle-content{
    box-shadow: 2px 2px 10px 10px rgba(163, 177, 198, 0.6); 
    padding: 5% 5% 5% 5%; 
    margin-top: 20px;
    color: white;    
    font-size: 120%;
    letter-spacing: .04rem;
    border-radius: 16px;
    text-align: justify;
}
.engineering-cycle-content-title{
    background-image: linear-gradient(to bottom right, #f07f4f, #f3af5d);
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    text-align: center;
}

.engineering-sidebar-menu{
    position: sticky;
    top: 30%;
    border-left-style: dotted;
    padding-left: 5%;
    margin-bottom: 10%;
    margin-top: 30%;
  }
  .engineering-sidebar-menu a{
    color: #ffffff;
    text-decoration: none;
    letter-spacing: .1rem;
  }
  .engineering-sidebar-menu li{
    margin-bottom: 30px; 
  }
  .engineering-sidebar-menu-title{
    margin-bottom: 30px;
    color: white;
  }

  .list-item-menu-engineering{
    width: fit-content;
  }
  .engineering-sidebar-menu-icon{
    display: inline-block;
  }

.engineering-image-container-side-by-side-phase {
    display: flex; 
}

.engineering-image-container-side-by-side-phase img {
    flex: 1;
    width: 100%;
}
.engineering-component-text{
    text-align: justify;
}
.engineering-phase-component{
    color: white;
    border-radius: 16px;
    padding: 3%;
}
#engineering-phase-component-1{
    border: 2px solid #e6a5f6;
    background-color: #e6a5f6;
}
#engineering-phase-component-2{
    border: 2px solid #5cb49a;
    background-color: #5cb49a;
}
#engineering-phase-component-3{
    border: 2px solid #007dcd;
    background-color: #007dcd;
}
#engineering-phase-component-4{
    border: 2px solid #90061f;
    background-color: #90061f;
}
#engineering-phase-component-5{
    border: 2px solid #f67905;
    background-color: #f67905;
}
#engineering-phase-component-6{
    border: 2px solid #024b98;
    background-color: #024b98;
}
#engineering-phase-component-7{
    border: 2px solid #8815ae;
    background-color: #8815ae;
}
.engineering-phase-component-img-wrapper{
    margin: auto;
}
.engineering-phase-component-img{
    width: 100%;
    height: auto;
}
.engineering-component-title-bold {
    font-weight: 800;
    font-size: 170%;
    font-family: 'Times New Roman';
}
.engineering-component-title {
    /* display: flex;
    flex-wrap: wrap; */
    overflow: hidden;
    padding-top: 3%;
}
.engineering-component-title>div {
    overflow: hidden;
    white-space: nowrap;
}
.engineering-component-title div:nth-child(1) {
    animation: categoryDisplay 10s;
}
.engineering-component-title div:nth-child(2) {
    animation: questionDisplay 8s infinite;
    width: 0px;
}
.engineering-component-title div:nth-child(2) span {
    animation: questionSlide 8s infinite;
    margin-left: -440px;
}
@keyframes categoryDisplay {
    0% {
        opacity: 0;
    }

    25% {
        opacity: 1;
    }

    70% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@keyframes questionSlide {
    0% {
        margin-left: -600px;
    }

    25% {
        margin-left: -600px;
    }

    40% {
        margin-left: 0px;
    }

    100% {
        margin-left: 0px;
    }
}

@keyframes questionDisplay {
    0% {
        width: 0px;
        opacity: 0;
    }

    25% {
        width: 0px;
        opacity: 1;
    }

    40% {
        width: auto;
    }

    70% {
        opacity: 1;
    }

    100% {
        width: auto;
        opacity: 0;
    }
}
.engineering-component-arrow-wrapper{
    text-align: center;
    margin-top: -130px;
}
.engineering-component-arrows path {
    animation: engineeringComponentArrowAnimation 2s infinite;
	stroke-width: 2px;		
    /* stroke: white;
	fill: transparent; */
}
@keyframes engineeringComponentArrowAnimation
{
    0%{
        opacity:0
    }
    40%{
        opacity:1
    }
    80%{
        opacity:0
    }
    100%{
        opacity:0
    }
}
.engineering-component-arrows path.first-arrow{
	animation-delay:-1s;
}
.engineering-component-arrows path.second-arrow {
	animation-delay:-0.5s;
}
.engineering-component-arrows path.third-arrow {	
	animation-delay:0s;
}
.icon-engineering-sidebar{
    animation-name: spin;
    animation-timing-function: linear; 
    animation-duration: 6000ms;
    animation-iteration-count: infinite;
  }
@keyframes spin {
    from {
        transform:rotate(0deg);
    }
    to {
        transform:rotate(360deg);
    }
}
#engineering-cycle1,
#engineering-cycle2,
#engineering-cycle3,
#engineering-cycle4
{
    padding-top: 100px;
    margin-top: -100px;
} 
.engineering-references-container {
    margin-bottom: 50px;
}
.engineering-references-container .list-of-references .list-group-item {
    background-color: #193158;
    color: white;
}
.references-button {
    background: none;
    color: #37aac7;
    border: 0.17em solid #37aac7;
    letter-spacing: 0.4em;
    font-weight: 700;
    font-size: 2.2em;
    animation: button-border-animation 3s linear infinite;
    position: relative;
    box-shadow: inset 0px 0px 0.8em 0px #37aac7, 0px 0px 0.8em 0px #37aac7;
    padding: 0.25em 0.8em;
    perspective: 2.4em;
    border-radius: 0.34em;
    cursor: pointer;
}
.references-button::before {
    pointer-events: none;
    background-color: #37aac7;
    opacity: 0.8;
    transform: translateY(114%) rotateX(85deg) scale(1, 0.29);
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    filter: blur(1.2em);
    content: "";
}
.references-button::after {
    z-index: -3;
    background-color: #37aac7;
    opacity: 0;
    transition: opacity 230ms linear;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    content: "";
    box-shadow: 0 0 3em 0.3em #37aac7;
}
.references-button:hover {
    animation: none;
    color: black;
    text-shadow: none;
}
.references-button:hover:before {
    opacity: 1;
    filter: blur(1.7em);
}
.references-button:hover:after {
    opacity: 1;
}
.references-button:hover .references-text-button {
    animation: none;
}
.references-text-button {
    animation: word-animation-start-pause 3s linear infinite;
    margin-left: 0.5em;
    float: left;
    text-shadow: 0 0 0.200em rgba(55, 170, 199, 0.3), 0 0 0.35em #37aac7;
}
@keyframes button-border-animation {
    0% {opacity: 0.3;}
    2% {opacity: 1.0;}
    5% {opacity: 0.3;}
    20% {opacity: 1.0;}
    75% {opacity: 0.8;}
    100% {opacity: 1.0;}
}
@keyframes word-animation-start-pause {
    0% {opacity: 0.3;}
    2% {opacity: 1.0;}
    5% {opacity: 0.3;}
    8% {opacity: 1.0;}
    15% {opacity: 0.3;}
    20% {opacity: 1.0;}
    25% {opacity: 0.3;}
    30% {opacity: 1.0;}
    70% {opacity: 0.8;}
    75% {opacity: 0.8;}
    100% {opacity: 0.8;}
}