/* Google fonts import */

@import url("https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap");

/* Asterisk wildcard selector to override default styles added by the browser */

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

/*General styles*/
body {
  background-color: #edeae5c4;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* Generic project styles */
  color: #3a3a3a;
  font-family: "Lato", sans-serif;
}

h1,
h2,
h3 {
  font-family: "Lato", sans-serif;
  letter-spacing: 2px;
  color: #3a3a3a;
  font-size: 100%;
}

/*Header*/

header {
  background-color: #0a7b79;
  padding: 2rem;
  position: fixed;
  z-index: 80;
  width: 100%;
  box-shadow: 0 2px 2px #3a3a3a;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  min-height: 5vh;
}

#logo {
  font-size: 150%;
  color: #d3f2e9;
}

header a {
  text-decoration: none;
  color: #ffffff;
}

#menu {
  font-size: 110%;
  list-style-type: none;
}

#menu > li {
  margin-bottom: 1em;
}

/* Navbar styles with dropdown toggle */

nav {
  position: absolute;
  background-color: #0a7b79;
  width: 100%;
  left: 0;
  padding: 0 1rem;
  box-shadow: 0 2px 2px #3a3a3a;
  display: none;
  top: 100%;
}

/* Nav toggle */
#nav-toggle:checked ~ nav {
  display: block;
}

#nav-toggle {
  display: none;
}

.nav-toggle-label {
  font-size: 2rem;
  cursor: pointer;
}

/*Body and main content*/

main {
  /* Make main element take up any surplus space to push footer down */
  flex: 1 0 auto;
  margin-top: 92px;
  line-height: 1.8;
}

/* Front image */

#front-image {
  height: 600px;
  width: 100%;
  background: url("assets/images/fabio-comparelli-uq2E2V4LhCY-unsplash.jpg")
    no-repeat center center/cover;
  position: relative;
}

#cover-text {
  font-size: 95%;
  position: absolute;
  bottom: 60px;
  min-height: 140px;
  padding-top: 10px;
  padding-left: 10px;
  padding-bottom: 10px;
  width: 90%;
  background-color: #042322de;
  margin: 0;
  text-align: justify;
}

#cover-text > h2 {
  font-size: 150%;
}

#cover-text > h2,
#cover-text > h3 {
  color: #d3f2e9;
  text-align: left;
  line-height: 1.2;
}

#purpose {
  margin: 60px auto;
  width: 90%;
}

#purpose h2 {
  font-weight: 900;
  text-align: center;
  font-size: 220%;
}

#purpose p {
  font-size: 120%;
  text-align: center;
  line-height: 1.5;
}

/* Resources */

#resources {
  margin: 20px auto;
  width: 90%;
  font-size: 120%;
}

/* Careers */

#careers {
  scroll-margin-top: 200px;
}

#careers > h3 {
  background-color: #026670;
  font-size: 140%;
  padding: 0.5rem;
  margin-bottom: 2rem;
  text-align: center;
  color: #ffffff;
}

.careers-box > h2 {
  font-weight: bold;
  font-size: 180%;
  margin-bottom: 2%;
  text-align: center;
}

ul {
  list-style-type: none;
  font-size: 160%;
  line-height: 2.5;
}

#biotech-industry {
  background-color: #fce18189;
}

#IT {
  background-color: #02667089;
  position: relative;
  z-index: 1;
}

#business {
  background-color: #029dab89;
}

.careers-box {
  width: 100%; /* Make each box take 30% of the container */
  background-color: #f5f5f5;
  padding: 1rem;
  text-align: center;
  font-size: 60%;
  margin-bottom: 2rem;
  gap: 1rem;
}

.careers-box i {
  font-size: 120%;
  padding: 5%;
}

/* Testimonials */

#testimonials {
  padding: 0 0 2rem 0;
  background: url("assets/images/testimonial-image.jpg") center center / cover
    no-repeat fixed;
  margin-bottom: 2rem;
  scroll-margin-top: 200px;
}

#testimonials > h3 {
  background-color: #026670;
  font-size: 140%;
  padding: 0.5rem;
  margin-bottom: 2rem;
  text-align: center;
  color: #ffffff;
}

.testimonials-box {
  line-height: 20px;
  margin-bottom: 2rem;
  background-color: #dbf1f3e4;
}

.testimonials-box > h2 {
  padding: 10px 20px;
  font-size: 120%;
  line-height: 1.5;
}

.testimonials-box p {
  padding: 10px 20px;
  font-size: 110%;
  line-height: 1.5;
  text-align: justify;
}

.testimonials-box hr {
  border-top: 1px solid #3a3a3a;
}

/* Support */

#support > h3 {
  background-color: #026670;
  font-size: 140%;
  padding: 0.5rem;
  margin-bottom: 2rem;
  text-align: center;
  color: #ffffff;
}

#support-description p {
  padding: 10px 20px;
  font-size: 90%;
  line-height: 1.5;
  text-align: center;
  margin-bottom: 2rem;
}

#proteintech-img {
  background: url("assets/images/Proteintech-Group .jpg") no-repeat center
    center/cover;
}

#singular-img {
  background: url("assets/images/singular.png") no-repeat center center/cover;
}

#ukri-img {
  background: url("assets/images/UKRI_8364f70b77.png") no-repeat center
    center/cover;
}

.support-material {
  flex: 1; /* Each section takes one-third of the container width */
  box-sizing: border-box;
  text-align: center;
}

.support-material a {
  text-decoration: none;
  color: #026670;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}
.support-material a:hover {
  text-decoration: underline;
  color: #000000;
}

#proteintech-mat,
#singular-mat,
#ukri-mat {
  text-align: center;
  padding: 10px;
  font-size: 90%;
  text-decoration: none;
  color: #3a3a3a;
}

#proteintech-img,
#singular-img,
#ukri-img {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 150px;
  width: 70%;
  position: relative;
  margin-left: 40px;
}

#support-material-box {
  justify-content: space-between;
  gap: 1rem;
}

/* Footer */

footer {
  background-color: #0a7b79;
}

#social-network {
  text-align: center;
  padding: 20px 0;
  display: flex;
  justify-content: space-evenly;
  list-style-type: none;
}

#social-network i {
  font-size: 160%;
  padding: 5%;
  color: #ffffff;
}

/*Form*/

#signup {
  background-image: url("assets/images/signup-adventure-begin.jpg");
  background-size: cover;
  background-position: 75%;
  background-position: 30%;
  padding: 40% 20% 40% 10%;
  flex-grow: 1;
}

#signup-form {
  color: #ffffff;
  background-color: rgba(60, 60, 60, 0.85);
  padding: 30px;
  width: 120%;
}

#signup-form > h3 {
  color: #fafafa;
  margin-bottom: 20px;
  font-size: 110%;
}

#signup-form > h2 {
  color: #fafafa;
  font-size: 140%;
}

.text-input {
  background: transparent;
  color: #fafafa;
  width: 100%;
  height: 30px;
  margin: 5px 0 20px 0;
  border: 1px solid #fafafa;
  border-radius: 2px;
  padding: 0 5px;
}
.radio-buttons {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.join-button {
  margin-top: 20px;
  border-radius: 2px;
  padding: 15px 32px;
  font-size: 100%;
  background-color: #454b1b;
  color: #fafafa;
}

/*Submit form*/

#submit {
  background-image: url("assets/images/signup-adventure-begin.jpg");
  background-size: cover;
  background-position: center center;
  min-height: 100vh;
  padding: 20% 10% 40% 10%;
  flex-grow: 1;
  align-items: center;
  justify-content: center;
}

#submit-form {
  color: #fafafa;
  font-size: 140%;
  text-align: center;
  background-color: rgba(60, 60, 60, 0.85);
}

#submit-form > h2 {
  color: #fafafa;
}

#submit-form-button {
  display: flex;
  justify-content: center;
  align-items: center;
}

#submit-form-button .join-button {
  display: inline-block;
  padding: 5px 75px;
  font-size: 100%;
  background-color: #454b1b;
  color: #fafafa;
  text-align: center;
  border-radius: 2px;
  border: none;
}

#submit-form-button .join-button:hover {
  background-color: #fafafa;
  color: #454b1b;
}

/* Media query: tablets and larger (768px and up) */

@media screen and (min-width: 768px) {
  /* Header */
  nav {
    display: block;
    position: relative;
    box-shadow: none;
    width: fit-content;
    padding-right: 1rem;
    background-color: #0a7b79;
  }

  #menu {
    display: flex;
  }

  #menu > li {
    padding-left: 1rem;
    font-size: 110%;
  }

  .nav-toggle-label {
    display: none;
  }

  #logo {
    font-size: 190%;
    line-height: 75px;
    margin: 0 0.5rem;
  }

  /* Main content */

  #front-image {
    height: 600px;
    width: 100%;
  }

  main {
    /* Push main content down to accommodate larger header */
    margin-top: 79px;
  }

  /* Front-image */
  #cover-text {
    font-size: 140%;
    left: 40px;
    position: absolute;
    bottom: 60px;
    min-height: 200px;
    padding-top: 40px;
    padding-left: 10px;
    width: 55%;
  }

  /* Resources */
  .careers-box {
    display: inline-block;
    width: 32%; /*WANT TO ASK HOW TO EDIT*/
    margin-top: 10px;
  }

  /* Testimonials */
  #testimonial-andrew,
  #testimonial-zara,
  #testimonial-ron {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  #testimonial-zara {
    text-align: end;
    align-self: flex-end;
  }

  /* Support */

  .support-material {
    flex: 1 1 100%;
  }

  #proteintech-mat,
  #singular-mat,
  #ukri-mat {
    text-align: center;
  }

  #support-material-box {
    display: flex;
  }

  #signup {
    background-position: center;
    position: relative;
    margin-top: 40px;
    padding: 40% 20% 70% 10%;
  }

  #signup-form {
    max-width: 600px;
    position: absolute;
    left: 10%;
    top: 150px;
    font-size: 110%;
  }

  #signup-form > h2,
  #signup-form > h3 {
    font-size: 160%;
  }

  #signup-form > h3 {
    padding-bottom: 20px;
  }

  .text-input:hover {
    border-color: #f16c6b;
    font-size: 100%;
  }

  .join-button:hover {
    background-color: #fafafa;
    color: #454b1b;
  }

  #submit-form-button .join-button {
    font-size: 200%;
  }
}

@media screen and (min-width: 1024px) {
  #front-image {
    height: 800px;
  }

  #logo {
    font-size: 260%;
  }

  #menu > li {
    padding-left: 1rem;
    font-size: 140%;
  }

  #signup {
    background-position: center;
    background-size: cover;
    background-position: center center;
    min-height: 100vh;
  }

  #signup-form {
    max-width: 800px;
    position: absolute;
    left: 10%;
    top: 150px;
    font-size: 200%;
  }

  #submit-form {
    font-size: 400%;
  }

  #submit-form-button .join-button {
    font-size: 300%;
  }
}
