.rain {
    width: 100%;
    height: calc(100vh - 56px);
    background-color: #b3dee5;
    background-size: cover;
    background-position: center;
    position: relative;
}

.rain img {
    position: absolute;
    bottom: 0;
    max-width: 100%;
}

.river-text-container {
    width: 100%;
    min-height: fit-content;
    background-color: #FAE8B9;
    background-size: cover;
    background-position: center;
    position: relative;
}

.text {
    color: #31525B;
    padding: 2% 10%;
}

/* River number 1 */

.river01 {
    background-color: #FAE8B9;
    object-fit: cover;
    position: relative;
}

.river01 img[alt="pan pop-up"] {
    width: 20%;
    position: absolute;
    top: 30%;
    left: 5%;
    transform: rotate(10deg) scaleX(-1);
}

.river01 img[alt="pan pop-up"]:hover{
    animation: none;
    transform: scale(1.1) rotate(10deg) scaleX(-1);
}

.river01 img[alt="PFOA pop-up"] {
    width: 20%;
    position: absolute;
    top: 60%;
    left: 75%;
    transform: scaleY(-1);
    display: flex;
}

.river01 img[alt="PFOA pop-up"]:hover{
    animation: none;
    transform: scale(1.1) scaleY(-1);
}

/* River number 2 */

.river02 {
    background-color: #FAE8B9;
    object-fit: cover;
    position: relative;
}

.river02 img[alt="raincoat pop-up"] {
    width: 20%;
    position: absolute;
    top: 30%;
    left: 40%;
}

.river02 img[alt="raincoat pop-up"]:hover{
    animation: none;
    transform: scale(1.1);
}

/*-------------Modals-----------*/
/* The modal container */

.modal {
    display: none;
    position: fixed;
    z-index: 10;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    }

  /* Modal content */
.modal-content {
    background-color: #FAE8B9 !important;
    padding: 5%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    max-width: 50vw;
    max-height: 50vh;
    overflow-y: scroll; /* Enable vertical scrolling */
    transition: all 1s ease;
}


@media screen and (max-width: 800px) {
    .modal-content {
        max-width: 80vw;
        max-height: 70vh;
    }
}

.modal-content::-webkit-scrollbar {
    display: none;
}

/* Images in modals */

img[alt="fire-ext in modal"] {
    width: 20%;
    height: auto;   
    float: left;
    margin-left: 5%;
}

/* Pop-up images pulsing */
@keyframes pulse {
    0% {
      transform: scale(1);
    }
    40% {
        transform: scale(1);
      }
    50% {
      transform: scale(1.1);
    }
    60% {
        transform: scale(1);
      }
    100% {
      transform: scale(1);
    }
  }

@keyframes pulsePan {
    0% {
        transform: scale(1) rotate(10deg) scaleX(-1);
      }
      40% {
          transform: scale(1) rotate(10deg) scaleX(-1);
        }
      50% {
        transform: scale(1.1) rotate(10deg) scaleX(-1);
      }
      60% {
          transform: scale(1) rotate(10deg) scaleX(-1);
        }
      100% {
        transform: scale(1) rotate(10deg) scaleX(-1);
      }
}

@keyframes pulsePFOA {
    0% {
        transform: scale(1) scaleY(-1);
    }
    40% {
        transform: scale(1) scaleY(-1);
    }
    50% {
    transform: scale(1.1) scaleY(-1);
    }
    60% {
        transform: scale(1) scaleY(-1);
    }
    100% {
    transform: scale(1) scaleY(-1);
    }
}

img[alt="raincoat pop-up"],
img[alt="fire-ext pop-up"],
img[alt="factory pop-up"],
img[alt="fish pop-up"] {
    animation: pulse 5s ease-in-out infinite;
}

img[alt="pan pop-up"] {
    animation: pulsePan 5s ease-in-out infinite;
}

img[alt="PFOA pop-up"] {
    animation: pulsePFOA 5s ease-in-out infinite;
}



.facts {
    border: 3px solid #FFA101;
    background-color: #f9e2a6;
    border-radius: 10px;
    padding: 2%;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.facts li {
    font-size: 18px;
}

@media screen and (max-width: 800px) {
    .facts h4 {
        font-size: 16px;
    }
}

.a-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}