*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --ff-primary: 'Lato', sans-serif;
  --ff-secondary: 'cocogoose', monospace;
  --fw-reg: 300;
  --fw-bold: 900;
  --clr-light: #eaeaea;
  --clr-dark: #272a31;
  --clr-accent: #db372a;
  --clr-light2: #eaeaeac2;
  --fs-h1: 3rem;
  --fs-h2: 2.25rem;
  --fs-h3: 1.25rem;
  --fs-body: 1rem;
  --fa-style-family-classic: "Font Awesome 6 Free";
  --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Free";
  --bs:
    0.25em 0.25em 0.75em rgba(0, 0, 0, 0.25),
    0.125em 0.125em 0.25em rgba(0, 0, 0, 0.15);

  scroll-behavior: smooth;
}

@font-face {
  font-family: 'Lato', sans-serif;
  src: url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700;900&display=swap');
}

.btn {
  display: inline-block;
  padding: 0.5em 2.5em;
  cursor: pointer;
  font-size: 0.8rem;
  letter-spacing: 2px;
  font-weight: var(--fw-bold);
  transition: transform 200ms ease-in-out;
}

.btn:hover {
  transform: scale(1.1);
  background-color: var(--clr-light2);
  color: var(--clr-accent);
  text-decoration: none;
}

.nav__link:hover,
.social__link:hover {
  color: var(--clr-accent);
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--ff-primary);
  line-height: 1.6;
}

.nav-toggle {
  font-size: 1.5rem;
  color: var(--clr-dark);
  width: 100vw;
  padding: 1rem 1.25rem;
}

.main {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.main-intro {
  background: var(--clr-light) url('./assets/logos/logo-30anniv-2c-uai-516x470.png') no-repeat top;
  height: 100%;
  width: 100%;
  background-blend-mode: overlay;
  padding: 30px 10px;
}

.intro-greeting,
.intro-title {
  color: var(--clr-accent);
}

.intro-greeting {
  font-size: 1.5rem;
}

.intro-title {
  font-weight: var(--fw-bold);
  font-size: var(--fs-h1);
  line-height: normal;
  margin: 0;
}

.intro-description {
  border: 3px solid white;
  background-color: var(--clr-light2);
}

.main-events {
  background: var(--clr-dark) url('./assets/hitmar-resized.png');
  color: var(--clr-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 2rem 1rem;
  gap: 10px;
}

.events-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.events-card {
  display: grid;
  grid-template-columns: 1fr 2fr 3fr;
  align-items: center;
  padding: 0.5rem;
  background-color: rgba(120, 121, 133, 0.199);
  gap: 0.5rem;
}

.events-card:hover {
  border: 2px solid white;
}

.more-info {
  color: var(--clr-light);
  background-color: var(--clr-accent);
  border-radius: 0.25rem;
  text-decoration: none;
  text-align: center;
  padding: 1rem;
  width: 250px;
  margin-top: 20px;
}

.events-icon {
  width: 5rem;
}

.events-title,
.featured-title {
  margin-bottom: 0;
}

.events__card-title {
  color: var(--clr-accent);
  text-align: center;
}

hr {
  width: 10%;
  border: 1px solid var(--clr-accent);
}

.featured-artist {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 2rem 1.5rem;
}

.featured-artist-container {
  display: grid;
  margin: 2rem 0;
  gap: 3rem;
}

.featured-card {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.featured-image {
  width: 8rem;
  height: 8rem;
}

.featured-text-info {
  display: flex;
  flex-direction: column;
}

.featured-text-info > * {
  margin: 0;
}

.feature-card__category {
  color: var(--clr-accent);
  font-weight: 600;
  font-size: 1rem;
  font-style: italic;
}

.featured-description {
  font-size: 0.75rem;
}

.card-hr {
  border: 1px solid var(--clr-light);
}

.more {
  color: var(--clr-dark);
  border: 1px solid var(--clr-dark);
  border-radius: 3px;
  text-decoration: none;
  text-align: center;
  padding: 1rem;
  width: 300px;
  margin-top: 20px;
}

.more .fa-angle-down {
  color: var(--clr-accent);
}

.main-sponsors {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  background-color: var(--clr-dark);
  color: white;
}

.sponsors-list {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  list-style: none;
  gap: 10px;
  padding: 0 20px;
}

.sponsors-item img {
  width: 8rem;
  height: 5rem;
  mix-blend-mode: overlay;
  filter: grayscale(100%) contrast(30%);
}

footer {
  padding: 10px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

footer p {
  text-align: center;
}

.footer-logo,
.logo {
  width: 5rem;
  padding: 0 5px;
}

.footer-logo {
  opacity: 0.7;
}

.featured-image:hover {
  transform: scale(1.1);
  opacity: 0.5;
  transition: transform 200ms ease-in-out;
}

/* about page styles */

.main-intro.about {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.image1 {
  background-image: url('./assets/images/sumfest1.jpg');
  background-size: cover;
  width: 18rem;
  height: 10rem;
}

.image2 {
  background-image: url('./assets/images/reggaesumfest22.jpeg');
  background-size: cover;
  width: 18rem;
  height: 10rem;
}

.events-card:hover,
.image1:hover,
.image2:hover {
  transform: scale(1.01);
  opacity: 0.7;
}

.intro-title.about {
  margin: 10px 0;
}

.intro-greeting.about {
  font-size: 1.5rem;
}

.intro-description.about {
  background-color: white;
}

.main-intro.about p strong {
  text-decoration: underline;
}

.main-details {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem 1rem;
  gap: 10px;
}

p.description {
  width: 80%;
}

.main-details img {
  width: 60%;
  border: 2px solid var(--clr-light);
  margin-top: 3rem;
}

h2.details-title {
  margin: 5px 0;
}

.main-history {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.history-image-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin: 2rem 0;
}

.history-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-size: 100%;
  background-repeat: no-repeat;
  width: 20rem;
  height: 13.5rem;
  color: #fff;
  background-color: var(--clr-accent);
  background-blend-mode: multiply;
}

.history-heading {
  font-size: 2.5rem;
  margin: 0;
}

i.fa-solid.fa-chevron-down {
  color: var(--clr-accent);
}

.history-text {
  margin: 0;
}

.hidden {
  display: none;
}

@media screen and (max-width: 767px) {
  .nav,
  .nav__logo,
  .nav-top,
  .program {
    display: none;
  }

  .mobile-menu {
    list-style: none;
    width: 100%;
    height: 100vh;
    padding: 20px;
    position: fixed;
    overflow: hidden;
    overscroll-behavior: none;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    color: #fff;
    background: var(--clr-dark);
    font-size: var(--fw-bold);
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .nav__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 40px;
  }

  .nav__link {
    text-decoration: none;
    font-size: 3rem;
  }

  i.fa-solid.fa-xmark,
  .nav__link,
  a.nav__button {
    color: #fff;
  }

  .nav-toggle {
    border: none;
    background-color: var(--clr-light);
  }

  i.fa-solid.fa-bars {
    margin-right: 90%;
  }

  #menu-open {
    font-size: 2rem;
    margin-right: 90%;
  }

  .featured-description {
    font-size: 0.75rem;
  }
}

@media screen and (min-width: 768px) {
  #menu-open,
  .nav-toggle,
  .more-info,
  .intro-greeting.about,
  .main-sponsors.about,
  .more {
    display: none;
  }

  .page-heading {
    display: flex;
    flex-direction: column;
  }

  .nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 50px 0;
  }

  .nav__list {
    display: flex;
    gap: 10px;
    padding: 0;
    list-style: none;
    cursor: pointer;
  }

  .nav__item > * {
    text-decoration: none;
    color: var(--clr-dark);
  }

  .nav-top {
    padding: 0 50px 0;
    width: 100%;
    background-color: var(--clr-dark);
    color: #fff;
  }

  .social__list {
    font-size: 1rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    list-style: none;
    gap: 10px;
  }

  .social__link {
    text-decoration: none;
    color: var(--clr-light2);
  }

  .active {
    color: var(--clr-accent);
  }

  a.nav__button {
    border: 3px solid var(--clr-accent);
    padding: 0 5px;
    text-decoration: none;
    color: var(--clr-accent);
  }

  .intro-container {
    width: 70%;
    margin: 0 auto;
  }

  .main-details img {
    margin: 0;
  }

  .featured-artist {
    padding: 3rem 9rem;
  }

  .history-image-container {
    flex-direction: row;
  }

  .image1,
  .image2 {
    width: 20rem;
  }

  .events-cards {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    margin: 30px 0;
  }

  .events-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 12rem;
    padding: 1rem 0.5rem;
  }

  .events-card > * {
    margin: 0;
  }

  .featured-artist-container {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    grid-gap: 10px;
  }

  .program {
    color: var(--clr-light2);
    margin: 20px 0;
  }

  .sponsors-list {
    margin: 40px 0;
  }

  footer {
    margin: 20px;
  }

  footer.about {
    background-color: var(--clr-dark);
    color: #fff;
    margin: 0;
  }
}
