  .container-essf-research {
      width: 100%;
      height: 15vh;
      background-color: whitesmoke;
      color: black;
      padding: 2vw 5vw;
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 1vh;
  }

  .container-essf-research img {
      height: 15vh;
  }

  .container-essf-research ul li {
      font-family: "Source Sans Pro", Arial, "Helvetica Neue", Helvetica, "sans-serif";
      font-style: normal;
      font-weight: 700;
      font-size: 1.5em;
      list-style-type: none;
      display: inline-block;
      margin: 0 2vw 0 0vw;
      padding-right: 2vw;
      border-right: 1px solid gray;
      color: black;
  }

  .container-essf-research ul li:last-child {
      border-right: none;
      /* Remove border from the last list item */
  }

  .container-essf-research ul li a {
      text-decoration: none;
      color: black;
  }

  .container-essf-research ul li a:hover {
      border-bottom: 5px solid red;
  }

  .essf-logo-moto {
      display: flex;
  }

  .essf-logo-moto p {
      margin-top: 9vh;
      margin-left: 0.5vw;
  }
 
  /* Mobile phones - max 600px */
  @media (max-width: 600px) {
      .container-essf-research {
          flex-direction: row;
          justify-content: space-between;
          align-items: flex-start;
          height: auto;
          padding: 2vh 4vw;
      }

      .container-essf-research ul li {
        border-right: none;
      }

      .essf-logo-moto {
          display: none;
          /* Hide ESSF logo and motto */
      }

      .rali-logo {
          height: 8vh;
          align-self: flex-start;
      }

      .nav-links {
          display: flex;
          flex-direction: column;
          gap: 1vh;
          width: 65%;
          padding-top: 0.5vh;
      }

      .nav-links li {
          display: block;
          width: 100%;
          text-align: left;
          border: none;
          margin: 0;
      }

      .nav-links li a {
          display: block;
          padding: 1vh;
          font-size: 1.1em;
          text-decoration: none;
          color: black;
          border-bottom: 1px solid lightgray;
      }

      .nav-links li:last-child a {
          border-bottom: none;
      }

      .nav-links li a:hover {
          background-color: #f3f3f3;
          border-bottom: 2px solid red;
      }
  }

  /* Tablets and big phones - 601px to 1024px */
  @media (min-width: 601px) and (max-width: 1024px) {
      .container-essf-research {
          flex-direction: row;
          align-items: center;
          justify-content: space-between;
          padding: 2vh 4vw;
          height: auto;
          flex-wrap: wrap;
      }

          .container-essf-research ul li {
              border-right: none;
          }

      .essf-logo-moto {
          flex-direction: column;
          align-items: center;
          width: 25%;
      }

      .essf-logo-moto p {
          display: none;
          /* Remove motto for space */
      }

      .rali-logo {
          height: 10vh;
          width: auto;
      }

      .nav-links {
          display: flex;
          flex-direction: column;
          justify-content: center;
          width: 40%;
          padding: 0;
          margin: 0 auto;
      }

      .nav-links li {
          display: block;
          margin: 1vh 0;
          text-align: center;
      }

      .nav-links li a {
          font-size: 1.2em;
          text-decoration: none;
          color: black;
          border-bottom: 1px solid lightgray;
          padding-bottom: 0.5vh;
      }

      .nav-links li:last-child a {
          border-bottom: none;
      }

      .nav-links li a:hover {
          border-bottom: 2px solid red;
      }
  }
  /**********************************/


  section {
      margin-top: 2vh;
      margin-left: 10vw;
      margin-right: 10vw;
      column-gap: 10vw;
  }

  .main-image-about-research {
      border: thin #c0c0c0 solid;
      display: flex;
      flex-flow: column;
      margin: auto;
      padding: 0.5vw;
      margin-bottom: 1vh;
  }

  .main-image-about-research figcaption {
      background-color: #222;
      color: #fff;
      font: smaller sans-serif;
      padding: 0.5vw;
      text-align: center;
  }

  .main-title-about-research {
      font-family: vestula, arial, sans-serif;
      font-weight: 700;
      font-style: normal;
      color: rgb(51, 51, 51);
      font-size: 3em;
  }

  .main-text-about-research {
      font-family: georgia, serif;
      font-weight: 400;
      font-style: normal;
      color: rgb(102, 102, 102);
      font-size: 1.5rem;
      text-align: justify;
      margin-bottom: 1vh;
      margin-top: 1vh;
      line-height: 1.5em;
      padding: 1vw;
  }

  .image-literary-cultural {
      margin-bottom: 10vh;
  }

  .image-literary-cultural figcaption {
      background-color: #222;
      color: #fff;
      font: smaller sans-serif;
      padding: 0.5vw;
      text-align: center;
  }

  /* Cards for mailing list*/
  .supportResearch {
      background-color: rgb(28, 36, 155);
      width: 100%;
      height: auto;
      padding: 1vw;
      color: white;
  }

  .support h6 {
      padding: 1vw;
  }

  .buttons-supportResearch {
      display: flex;
      flex-direction: row;
      justify-content: center;
      align-items: center;
      padding: 1vw;
      gap: 1vw;
  }

  .buttons-supportResearch button {
      background-color: white;
      color: black;
      border: none;
      width: 21vw;
      text-align: center;
      font-size: large;
      font-weight: 500;
  }


  /*Researcher cards! These cards describe the researchers and their roles.*/

  .researcher img {
      max-width: 100%;
      height: auto;
      border-radius: 5px;
  }

  .researcher-details {
      flex-grow: 1;
  }

  .researcher-details h2 {
      margin: 0;
      font-size: 1.5rem;
  }

  .researcher-details p {
      margin: 1vw 0;
  }

  .researcher-details button:hover {
      background-color: #0056b3;
  }


  /* Modal Styles */
  .modal {
      display: none;
      position: fixed;
      z-index: 1000;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.5);
  }

  .modal-content {
      background-color: white;
      margin: 10% auto;
      padding: 20px;
      border-radius: 10px;
      width: 90%;
      max-width: 400px;
      box-shadow: 0px 0px 10px gray;
      text-align: center;
  }

  .modal h2 {
      margin-bottom: 10px;
  }

  .close {
      float: right;
      font-size: 24px;
      cursor: pointer;
  }

  .form-group {
      margin: 10px 0;
      text-align: left;
  }

  label {
      display: block;
      font-weight: bold;
  }

  input {
      width: 100%;
      padding: 8px;
      margin-top: 5px;
      border: 1px solid gray;
      border-radius: 5px;
  }

  .error {
      color: red;
      font-size: 12px;
      display: none;
  }

  .submit-btn {
      background-color: black;
      color: white;
      padding: 10px 15px;
      border: none;
      cursor: pointer;
      border-radius: 5px;
      margin-top: 10px;
  }

  .submit-btn:hover {
      background-color: gray;
  }

  .legend {
      font-size: 12px;
      margin-top: 10px;
      color: red;
  }