/*=============== GOOGLE FONTS ===============*/
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700;900&family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 1.5rem;
  
  /*========== Colors ==========*/
  --first-color: hsl(270,48%,33%);
  --first-color-alt: hsl(58,83%,49%);
  --first-color-lighter: hsl(270, 41%, 57%);
  --footer-color-lighter: hsl(270, 40%, 64%);
  --black-color: hsl(206, 12%, 12%);
  --card-color: hsl(0, 0%, 90%);
  --title-color: hsl(270,48%,33%);
  --text-color: hsl(285, 67%, 4%);
  --text-color-light: hsl(0, 0%, 100%);
  --body-color: hsl(0, 0%, 100%);
  --container-color: #fff;

  /*========== Font and typography ==========*/
  --body-font: 'Lato', sans-serif;
  --biggest-font-size: 3.5rem;
  --h1-font-size: 2.75rem;
  --h2-font-size: 2.25rem;
  --h3-font-size: 1.5rem;
  --h4-font-size: 1rem;
  --h5-font-size: .75;
  --h6-font-size: .5rem;
  --normal-font-size: .938rem;
  --small-font-size: .75rem;
  --smaller-font-size: .6rem;
  --smallest-font-size: .33rem

  /*========== Font weight ==========*/
  --font-bolder: 900;
  --font-bold: 700;
  --font-normal: 400;
  --font-light: 300;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

@media screen and (max-width: 900px) {
  :root {
    --biggest-font-size: 2.5rem;
    --h1-font-size: 2rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    --smaller-font-size: .813rem;
    --smallest-font-size: .5rem;
  }
}

@media screen and (max-width: 1290px) {
  :root {
    --biggest-font-size: 3rem;
    --h1-font-size: 2.5rem;
    --h2-font-size: 2rem;
    --h3-font-size: 1.75rem;
    --h4-font-size: 1.5rem;
    --h5-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .85rem;
    --smaller-font-size: .713rem;
    --smallest-font-size: .5rem;
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  margin: 0;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
}

h1,
h2,
h3 {
  color: var(--title-color);
  font-weight: var(--font-bold);
}

h1,
h2,
h3,
p {
  line-height: 140%;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

.row {
  display: flex;
}

#btn-link {
  color: var(--container-color);
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 90%;
  margin: 0 auto;
}

.grid {
  display: grid;
  /* grid-template-rows: repeat(1fr 3); */
  gap: .5rem;
}

.section {
  padding: 4.5rem 0 2rem;
}

.section__title {
  position: relative;
  font-size: var(--h2-font-size);
  font-weight: var(--font-bold);
  padding-left: 1.25rem;
  margin-bottom: 2.5rem;
}

.section__title::before {
  content: '';
  position: absolute;
  top: 7px;
  left: 0;
  width: 3px;
  height: 25px;
  background-color: var(--first-color);
}

/*==================== HEADER ====================*/
header {
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem 0;
}

header a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}

.nav__logo {
  display: flex;
  align-items: center;
  column-gap: .5rem;
  text-decoration: none;
  font-weight: var(--font-bold-1);
  font-size: var(--biggest-font-size);
}

.nav__text {
  position: relative;
  color: var(--first-color);
  margin-right: 0.75rem;
}

/* .nav__text::after {
  content: ' ';
  position: absolute;
  top: 2px;
  left: 1;
  width: 3px;
  height: 50px;
  z-index: 100;
  background-color: var(--first-color);
} */

.nav__logo--img {
  max-width: 350px;
  padding-top: 3px;
}

nav ul {
  gap: 2rem;
  align-items: center;
}

nav a {
  font-weight: var(--font-bolder);
  color: var(--first-color);
  font-size: var(--normal-font-size);
  transition: 0.3s ease-in-out;
}

nav a::after {
  display: block;
  content: '';
  width: 0;
  height: 2px;
  margin: 10px 20px;
  background-color: var(--first-color);
  border-radius: 15px;
  transition: 0.3s ease-in-out;
  -webkit-border-radius: 15px;
  -moz-border-radius: 15px;
  -ms-border-radius: 15px;
  -o-border-radius: 15px;
}

nav li:nth-of-type(2)a::after {
  all: unset;
}

nav a:hover::after {
  width: 10px;
}

.nav__link {
  font-size: var(--h3-font-size)
}

/*==================== HERO ====================*/
.home {
  gap: 2rem;
  flex-wrap: wrap-reverse;
  align-items: center;
  min-height: calc(100vh - 283.6px);
}

.home > * {
  flex: 1 1 0.5rem;
}

h2.home__title {
  font-size: var(--h2-font-size);
}

.home h1 {
  font-weight: var(--font-bolder);
  font-size: clamp(15px, 100vw, 37px);
  line-height: 1;
}

.home p {
  font-weight: var(--font-normal);
  font-size: var(--normal-font-size);
  padding: 1rem 0;
}

p.home__description {
  padding-bottom: 2rem;
}

.home a {
  font-weight: var(--font-normal);
  font-size: 20px;
  padding: 0.75rem 1rem;
  background: linear-gradient(    110deg,    var(--first-color) 3%,    hsl(285, 67%, 4%) 134%  );
  border-radius: 5px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  -ms-border-radius: 5px;
  -o-border-radius: 5px;
}

.home a:hover {
  background: linear-gradient(    90deg,    var(--first-color-alt) 3%,    hsl(58, 83%, 37%) 134%  );
  color: var(--first-color);
}

.home__data{
  padding-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 1.5rem;
}

.home__data-number{
  color: var(--first-color);
  font-size: var(--h1-font-size);
  padding-bottom: .8rem;
}

.home__data-title{
  font-size: var(--h3-font-size);
  color: var(--text-color);
}

.home__data-description{
  color: var(--first-color);
  padding: 0 !important;

}

/*==================== SUBMISSIONS ====================*/
.accordion__container {
  max-width: 100vw;
  margin-top: 1rem;
  padding-bottom: 1rem;
  cursor: pointer;
  border-radius: 5px;
}

.accordion {
  margin-bottom: .75rem;
}

.accordion__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(120deg, var(--first-color) 15%, hsl(285, 47%, 4%) 164%);
  cursor: pointer;
  padding: 12px;
  border-radius: 7px;
}

.accordion__header h3 {
  font-size: 1rem;
  color: #fff;
}

.accordion__body {
  max-height: 0;
  overflow: hidden;
  background-color: var(--card-color);
  border-radius: 0 0 8px 8px;
  transition: max-height ease;
  -webkit-transition: max-height ease;
  -moz-transition: max-height ease;
  -ms-transition: max-height ease;
  -o-transition: max-height ease;
}

.accordion__body a {
  padding: 1rem;
  line-height: 1.6;
  font-size: var(--h5-font-size);
  color: var(--first-color);
  font-weight: var(--font-bolder);
  background-color: var(--card-color);
}

.accordion__header.active {
  border-radius: 8px 8px 0 0;
  background: linear-gradient(90deg, var(--first-color-alt) 3%, hsl(58, 83%, 37%) 134%) !important;
}

.accordion__body.active {
  max-height: 300px;
  padding: 1rem;
  background-color: var(--card-color);
  border-radius: 0 0 8px 8px;
  animation: fade 1s ease-in-out;
  -webkit-animation: fade 1s ease-in-out;
}

.accordion__body.active a {
  font-size: var(--h5-font-size);
  color: var(--first-color);
  font-weight: var(--font-bolder);
}

.accordion__header.active svg {
  transform: rotate(180deg);
}

svg {
  transition: transform 0.5s ease-in;
}

@keyframes fade {
  from {
    opacity: 1;
    transform: translateY(-3px);
}
  to {
    opacity: 1;
    transform: translateY(0px);
    -webkit-transform: translateY(0px);
    -moz-transform: translateY(0px);
    -ms-transform: translateY(0px);
    -o-transform: translateY(0px);
}
}

.pagination__container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-evenly;
}

.pagination__container ul {
  padding-inline-start: 0;
}

.pagination__container ul li {
  display: inline-block;
  margin: 0 0.5rem;
}

.page__button:disabled {
  background: linear-gradient(    70deg,    hsl(0, 0%, 83%) 0%,    hsl(0, 0%, 41%) 164%  );
}

.page__item.active {
  background: linear-gradient(90deg, var(--first-color-alt) 3%, hsl(58, 83%, 37%) 134%) !important;
}

.page__button, .page__item {
  font-weight: var(--font-normal);
  color: var(--card-color);
  font-size: 21px;
  cursor: pointer;
  padding: 0.5rem 1rem;
  background: linear-gradient(    70deg,    var(--first-color) 0%,    hsl(285, 67%, 4%) 164%  );
  border-radius: 5px;
  border: none;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  -ms-border-radius: 5px;
  -o-border-radius: 5px;
}

/*==================== FOOTER ====================*/
footer {
  font-family: 'Poppins' sans-serif;
}

.footer {
  padding-top: 2rem;
}

.footer__container, .gallery-grid {
  grid-template-columns: repeat(2, 1fr);
  justify-content: space-between;
}

.footer__img {
  max-width: 250px;
}

.footer__bg {
  background-color: var(--title-color);
  padding: 2rem 0 3rem;
}

.footer__title {
  font-size: var(--h2-font-size);
  margin-bottom: var(--mb-0-25);
  color: var(--first-color-lighter) !important;
}

.footer__subtitle {
  font-size: var(--h3-font-size);
  font-weight: var(--font-bold);
  font-variant: small-caps;
  color: var(--body-color) !important;
}

.footer__nav {
  display: flex;
  flex-direction: column-reverse;
}

.footer__links {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  color: var(--first-color-lighter);
  font-weight: var(--font-bold);
}

.footer__link {
  align-self: flex-end;
  font-size: var(--h3-font-size);
}

.footer__link:hover {
  color: var(--first-color-alt);
}

.footer__copy {
  font-size: var(--normal-font-size);
  text-align: center;
  color: #fff;
  margin-top: var(--mb-3);
}

.footer__copy a {
  font-size: var(--normal-font-size);
  font-weight: var(--font-bold);
  color: var(--footer-color-lighter);
}

.footer__title,
.footer__subtitle,
.footer__link {
  color: #fff;
}

@media screen and (max-width: 900px) {
  .toggle__menu {
    position: absolute;
    right: 5%;
    filter: invert(21%) sepia(33%) saturate(2228%) hue-rotate(240deg) brightness(95%) contrast(98%);
    background-image: url(open.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 30px;
    max-width: 30px;
    height: 30px;
    padding: 2rem;
    z-index: 1000;
    transition: background-size 0.3s ease-in-out;
}

  .toggle__menu.active {
    position: fixed;
    background-image: url(close.svg);
    background-size: 25px;
  }

  .nav__menu {
    justify-content: center;
    align-items: center;
    flex-direction: column;
    max-height: 0;
    opacity: 0;
    transform-origin: top;
    transform: scale(1, 0);
  }

  .nav__menu.active {
    position: absolute;
    inset: 1;
    margin: auto;
    max-height: 100%;
    opacity: 1;
    justify-content: space-between;
    flex-direction: row;
    background-color: var(--first-color);
    transform: scale(1, 1);
}

  .nav__menu.active ul li a{
    color: var(--container-color) !important;
    font-size: var(--small-font-size);
    padding: 2px !important;
  }

  .nav__text {
    font-size: var(--h3-font-size);
    font-weight: var(--font-bold);
  }

  .nav__logo--img {
    max-width: 200px;
    transition: 0.5s ease;
    -webkit-transition: 0.5s ease;
    -moz-transition: 0.5s ease;
    -ms-transition: 0.5s ease;
    -o-transition: 0.5s ease;
  }

  h3{
    font-size: var(--h3-font-size);
  }

  .section {
    padding-top: 2.5rem !important;
    padding: .5rem 0 2rem;
}

  .section__title {
    font-size: var(--h3-font-size);
    font-weight: var(--font-bold);
    padding-left: 0.5rem;
  }

  .section__title::before {
    top: 3px;
    left: 0;
    width: 2px;
    height: 14px;
  }

  .grid {
    gap: 0.25rem;
  }

  .home {
    min-height: calc(100vh - 403.6px);
  }

  .home__title {
    font-size: var(--h2-font-size) !important;
    
  }

  .home a {
    padding: .4rem .6rem;
    font-size: var(--normal-font-size);
  }

  .home__data-number{
    font-size: var(--h2-font-size);
    font-weight: var(--font-bold) !important;
  }

  .home__data-title {
    font-size: var(--normal-font-size) !important;
    color: var(--text-color);
  }

  .home__data-description {
    font-size: var(--small-font-size);
    font-weight: var(--font-normal);
  }

  .accordion__header {
    padding: 8px;
    border-radius: 0.33rem;
  }

  .accordion__header h3 {
    font-size: var(--small-font-size) !important;
    font-weight: normal;
  }

  .accordion__body.active {
    padding: 0.5rem 0rem 0.75rem;
  }

  .accordion__body a {
    font-size: var(--small-font-size) !important;
  }

  .pagination__container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }

  .pagination__container ul li {
    margin: 0 0.2rem;
  }

  .pagination__container button {
    margin: 0.2rem;
  }

  .page__button, .page__item {
    font-size: 0.75rem;
    padding: 0.15rem 0.3rem;
  }

  .footer__img {
    max-width: 190px;
  }

  .footer__title {
    font-size: 0.85rem;
  }

  .footer__subtitle, .footer__link {
    font-variant: small-caps;
    font-size: 0.5rem;
  }

  .footer__copy, .footer__copy a {
    font-weight: var(--font-bold);
  }

  .footer__copy, .footer__copy a {
    font-size: var(--smaller-font-size);
  }
}

@media screen and (max-width: 1290px) {
  .home {
    min-height: calc(80vh - 483.6px);
  }
}

