/* Universal Styles */

html,
body {
  font-size: 16px;
  font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
  margin: 0;
  padding: 0;
  text-align: center;
}

li {
  list-style: none;
}

ul {
  padding-left: 0;
}

a {
  text-decoration: none;
}

h2 {
  font-family: "Shadows Into Light", monospace;
  font-size: 2rem;
  margin: 1.25rem;
  letter-spacing: 0.125rem;
}

/* KEYFRAMES */

@keyframes gray-to-color {
  0% {
    color: gray;
  }

  100% {
  }
}

@keyframes gray-to-color-background {
  0% {
    filter: grayscale(100%);
  }

  100% {
    filter: grayscale(0%);
  }
}

@keyframes transparent {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

/* Header */

header {
  background-color: #fbda03;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4.5rem;
  padding: 0 2rem 0 1rem;
}

.logo {
  color: #12296c;
  font-family: "Shadows Into Light", monospace;
  display: flex;
}

.logo .material-symbols-outlined {
  align-self: center;
  margin-right: 0.5rem;
}

.navigation ul {
  display: flex;
}

.navigation li {
  margin-left: 1.75rem;
  font-size: 1.25rem;
}

.navigation a {
  color: #12296c;
  transition: all ease-in-out 200ms;
}

.navigation a:hover {
  color: #12296c69;
}

.navigation-icons {
  display: none;
}

/* Page Hero */

.page-hero {
  height: 45rem;
  background-image: url("./images/page-hero-1.jpg");
  background-size: 90rem;
  background-repeat: no-repeat;
  background-position: 55% 50%;
  animation: gray-to-color-background 5s;
}

.page-hero-message {
  margin: 0;
  padding: 6.5rem 5rem;
  text-align: center;
  color: #12296c;
  font-family: "Quicksand", sans-serif;
  font-size: 3rem;
  font-weight: 600;
}

.page-hero .word-color {
  animation: transparent 3s;
}

.red {
  color: red;
  animation: gray-to-color 5s;
}

.orange {
  color: orange;
  animation: gray-to-color 5s;
}

.yellow {
  color: yellow;
  animation: gray-to-color 5s;
}

.green {
  color: green;
  animation: gray-to-color 5s;
}

.blue {
  color: blue;
  animation: gray-to-color 5s;
}

/* About us */

.about-us {
  padding: 1rem 4.5rem 2rem;
  background-color: #027a79;
  color: #fff;
}

.about-us h2 {
  color: #fbda03;
}

.about-us p {
  font-size: 1.25rem;
}

/* Gallery  */

.gallery h2 {
  color: #12296c;
  margin: 2rem 0rem;
}

.grid-gallery {
  margin: 0 auto;
  width: 80vw;
  height: auto;
  display: grid;
  gap: 0.625rem;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: auto;
  grid-auto-flow: dense;
}

.grid-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.grid-gallery .horizontal {
  grid-column: span 2 / auto;
}

/* Quote */

.quote {
  display: flex;
  margin: 2rem 0rem 0rem;
  padding: 2rem;
  background-color: #027a79;
  justify-content: center;
  align-items: center;
}

.quote-img {
  height: 25rem;
  object-fit: cover;
}

.quote-text {
  margin-left: 3rem;
  font-size: 2rem;
  width: 50%;
  color: #fff;
}

.quote-name {
  color: #fbda03;
  display: flex;
  flex-direction: column;
}

.quote-subname {
  font-size: 1rem;
}

/* Join Us */

.join-us {
  margin: 2rem auto 0 auto;
  padding: 2rem 2rem 3rem 2rem;
  height: 65rem;
  background-image: url("./images/Join-us-img-1.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  width: 80vw;
  display: flex;
  color: #12296c;
  justify-content: center;
}

.join-us-text {
  flex-basis: 50rem;
  font-size: 1.35rem;
}

.join-us h2 {
  color: #027a79;
  font-weight: 900;
  text-shadow: 3px 3px #fbda03;
}

.join-us button {
  font-size: 1.25rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  border-style: solid;
  border-width: 1.5px;
  color: #12296c;
  border-color: #12296c;
  font-weight: 900;
  background-color: #fef48a;
  transition: all ease-in 200ms;
}

.join-us button:hover {
  background-color: #fbda03d4;
}

.join-us button:active {
  background-color: #cdb308;
}

/* Footer */

footer {
  background-color: #12296c;
  color: #d0e1e8;
  padding: 1rem 0.75rem 0.5rem;
  display: flex;
  flex-direction: column;
}

footer h4 {
  margin-bottom: 0;
  font-size: 1.25rem;
}

footer .contact-us {
  font-size: 1.15rem;
}

footer .contact-us,
footer .about-project {
  margin-bottom: 0;
}

footer .email {
  font-weight: 900;
  color: #fbda03;
}

footer .socials img {
  margin-top: 1rem;
  margin-bottom: 0rem;
  max-width: 2rem;
  transition: all ease-in-out 250ms;
}

footer .socials img:hover {
  filter: brightness(75%);
}

.back-to-top {
  text-decoration: underline;
  color: #027a79;
  margin-right: 1rem;
  font-size: 1.15rem;
  align-self: flex-end;
  transition: all ease-in-out 250ms;
}

.back-to-top:hover {
  color: #07caca;
}

/* Media Queries */

@media only screen and (max-width: 990px) {
  .page-hero-message {
    padding: 5.5rem 5rem;
  }
}

@media only screen and (max-width: 780px) {
  .grid-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media only screen and (max-width: 630px) {
  .navigation {
    display: none;
  }

  .navigation-icons {
    display: contents;
  }

  .navigation-icons ul {
    display: flex;
    align-items: center;
  }

  .navigation-icons li {
    margin-left: 1.5rem;
    font-size: 1.25rem;
  }

  .navigation-icons .material-symbols-outlined {
    color: #12296c;
    font-size: 2rem;
    transition: all ease-in-out 200ms;
  }

  .navigation-icons .material-symbols-outlined:hover {
    filter: brightness(20%);
  }

  .navigation-icons button {
    font-size: 0.825rem;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    border-style: solid;
    border-width: 1.5px;
    color: #fff;
    border-style: none;
    font-weight: 600;
    background-color: #027a79;
    transition: all ease-in 200ms;
    min-width: 4.75rem;
  }

  .navigation-icons button:hover {
    background-color: #026262;
  }

  .navigation-icons button:active {
    background-color: #12b8b8;
  }

  .page-hero {
    height: 40rem;
    background-size: 60rem;
  }

  .page-hero-message {
    padding: 4.5rem 5rem;
    font-size: 2.75rem;
  }

  .quote-img {
    height: 20rem;
  }

  .quote-text {
    font-size: 1.25rem;
  }

  .quote-subname {
    font-size: 0.75rem;
  }
}

@media only screen and (max-width: 580px) {
  h2 {
    font-size: 1.5rem;
  }

  header {
    padding: 0 1rem;
  }

  .navigation-icons li {
    margin-left: 1rem;
  }

  .page-hero-message {
    padding: 4.5rem 3.75rem;
  }

  .join-us-text {
    font-size: 1.15rem;
  }

  .join-us h2 {
    margin: 0.5rem;
  }

  .about-us p {
    font-size: 1rem;
  }

  .quote-text {
    width: 85%;
  }

  footer h4 {
    margin-bottom: 0;
    font-size: 1.15rem;
  }

  footer .contact-us {
    font-size: 1rem;
  }

  .back-to-top {
    font-size: 1rem;
  }
}

@media only screen and (max-width: 525px) {
  .logo {
    max-width: 12rem;
  }

  .logo h1 {
    line-height: 1.75rem;
  }

  .page-hero-message {
    padding: 4rem 3.25rem;
    font-size: 2.5rem;
  }
}

@media only screen and (max-width: 450px) {
  .logo {
    font-size: 0.8rem;
    max-width: 10rem;
  }

  .logo h1 {
    line-height: 1.5rem;
  }

  .navigation-icons li {
    margin-left: 0.75rem;
  }

  .page-hero-message {
    padding: 3rem 3.75rem;
  }

  .about-us {
    padding: 1rem 3rem 2rem;
  }

  .grid-gallery {
    grid-template-columns: repeat(1, 1fr);
  }

  .grid-gallery .horizontal {
    grid-column: span 1 / auto;
  }

  .quote {
    flex-direction: column-reverse;
    padding: 1rem 2rem 3rem;
  }

  .quote-text {
    margin-left: 0;
    width: 85%;
  }

  .quote-img {
    height: 12rem;
    width: 16rem;
    object-fit: cover;
  }

  .join-us {
    padding: 1.5rem;
  }

  .join-us-text {
    font-size: 1rem;
  }

  footer h4 {
    font-size: 1rem;
  }

  footer .contact-us,
  footer .about-project {
    font-size: 0.85rem;
  }

  footer .socials img {
    max-width: 1.75rem;
  }
}

@media only screen and (max-width: 385px) {
  header {
    padding: 0rem 0.5rem 0rem 1rem;
  }

  .logo {
    font-size: 0.65rem;
    max-width: 8rem;
  }

  .logo h1 {
    line-height: 1.25rem;
  }

  .navigation-icons .material-symbols-outlined {
    font-size: 1.5rem;
  }

  .navigation-icons button {
    font-size: 0.7rem;
    padding: 0.5rem 0.3rem;
  }

  .page-hero {
    background-size: 50rem;
  }

  .page-hero-message {
    padding: 3rem;
    font-size: 2.25rem;
  }
}
