:root {
  --guestName: calc(0.25rem + 2dvw);
  --date: calc(0.25rem + 1.25dvw);
  --featuredTopBottom: #2e5c93;
  --featuredMain: #921888;
  --midFlex: #1a2130;
  --midTextColor: #fff0d1;
  --pastGrid: #000000e7;
}

body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Kanit", sans-serif;
  font-weight: 300;
  font-style: normal;
  color: antiquewhite;
}

a {
  text-decoration: none;
}

/* ---------------------------------------------------------------------------------------------- */

/* Landing */

.main-grid {
  box-sizing: border-box;
  display: grid;
  grid-template-areas:
    ". . ."
    ". c ."
    ". . .";
  grid-template-columns: 0.25fr 4.5fr 5fr;
  grid-template-rows: 0.5fr 4fr 0.35fr;
  height: 100dvh;
  width: 100%;
  background: url("./media/mic2.webp");
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

.hero-flex {
  grid-area: c;
  place-self: end stretch;
  display: flex;
  flex-direction: column;
  flex-flow: 1 1 auto;
  justify-content: center;
  gap: calc(0.35rem + 2dvh);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: opacity(0.75) blur(22px);
  border-radius: 1.5%;
  background-color: rgba(214, 214, 62, 0.12);
  -o-object-fit: cover;
  object-fit: cover;
  min-height: -webkit-fit-content;
  min-height: -moz-fit-content;
  min-height: fit-content;
  max-width: 100%;
  max-height: 100%;
  padding-top: 3.5dvh;
  padding-bottom: 3.5dvh;
  padding-left: 1.5dvw;
  padding-right: 1.5dvw;
}

.hero-flex > h1 {
  margin: 0;
  padding: 0;
  font-size: calc(1.65rem + 1dvw);
  font-weight: bolder;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  height: -webkit-fit-content;
  height: -moz-fit-content;
  height: fit-content;
}

.hero-flex > div:nth-child(2) {
  font-size: calc(1.15rem + 0.85dvw);
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  height: -webkit-fit-content;
  height: -moz-fit-content;
  height: fit-content;
}

.hero-flex > div:nth-child(3) {
  font-size: calc(1rem + 0.7dvw);
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
}

.btn-flex {
  display: flex;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  gap: calc(3px + 1dvw);
  align-items: center;
}

.btn-flex > button {
  font-size: calc(0.75em + 1dvw);
  padding-top: calc(2px + 1dvw);
  padding-bottom: calc(2px + 1dvw);
  padding-left: calc(1px + 2dvw);
  padding-right: calc(1px + 2dvw);
  border-radius: 2.75%;
  border: none;
}

.btn-flex > button:nth-child(1) {
  background-color: rgb(31, 230, 31);
}

.btn-flex > button:nth-child(2) {
  background-color: rgb(34, 156, 255);
}

/* ---------------------------------------------------------------------------------------------- */

/* Mid section rewrite, using only flexbox */

.mid-flex {
  box-sizing: border-box;
  padding-top: 7dvh;
  display: flex;
  flex-flow: column nowrap;
  flex: 1 1 0;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 105dvh;
  background-color: var(--midFlex);
}

.mid-flex > div > h3 {
  margin: 0;
  padding: 0;
  font-weight: bolder;
  font-size: clamp(3%, 4rem, 4vw);
  text-align: center;
  color: var(--midTextColor);
}

.guests-flex {
  display: flex;
  flex-flow: row nowrap;
  flex: 1 1 0;
  justify-content: center;
  align-items: center;
  gap: 3%;
}

/* Guest Items for image and text */
.guests-flex > div {
  display: flex;
  flex-flow: column nowrap;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  max-width: 25%;
  max-height: 60%;
  border-radius: 2.5%;
  padding-top: 2.5%;
  padding-bottom: 3%;
  text-align: center;
  background-color: #83b5ff9e;
  color: var(--midTextColor);
  gap: 3dvh;
}

/* Only guest image items */
.guests-flex img {
  border-radius: 5%;
  max-width: 45%;
  max-height: 55%;
  transition: transform 0.3s ease-in-out;
}

/* Hover animation for guest images */
.guests-flex div > img:hover {
  transform: scale(1.2);
}

/* Names */
.guests-flex div > div:nth-child(1) {
  font-size: var(--guestName);
}

/* Dates */
.guests-flex div > div:nth-child(2) {
  font-size: var(--date);
}

/* ---------------------------------------------------------------------------------------------- */

/* Past Guests section */

/* Grid container */
.past-guest-grid {
  position: relative;
  display: grid;
  grid-template-areas:
    "h h h h"
    ". c c ."
    ". . . .";
  grid-template-rows: 0.25fr 4fr 0.15fr;
  grid-template-columns: 4fr 3fr 2fr 0.15fr;
  -moz-column-gap: 2%;
  column-gap: 2%;
  height: 100dvh;
  width: 100%;
  background-color: var(--pastGrid);
}

/* Grid background image  */

.past-grid-bg {
  position: relative;
  grid-row: 2 / -2;
  grid-column: 1 / -1;
  width: 100%;
  height: 100%;
  background-image: url("./media/past_shows/default_bg.webp");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  opacity: 0;
  z-index: 1;
}

.past-grid-bg.show {
  -webkit-animation: fadeIn2s 2s;
  animation: fadeIn2s 2s;
  -webkit-animation-fill-mode: forwards;
  animation-fill-mode: forwards;
}

.past-grid-bg.fadeOut {
  -webkit-animation: fadeOut 1s;
  animation: fadeOut 800ms;
  -webkit-animation-fill-mode: forwards;
  animation-fill-mode: forwards;
}

.past-grid-bg.fadeIn {
  -webkit-animation: fadeIn 1s;
  animation: fadeIn 600ms;
  -webkit-animation-fill-mode: forwards;
  animation-fill-mode: forwards;
}

@-webkit-keyframes fadeIn2s {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeIn2s {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@-webkit-keyframes fadeIn {
  from {
    opacity: 0.65;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0.65;
  }
  to {
    opacity: 1;
  }
}

@-webkit-keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0.55;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0.55;
  }
}

@-webkit-keyframes fadeOutTile {
  from {
    opacity: 1;
  }
  to {
    opacity: 0.75;
  }
}

@keyframes fadeOutTile {
  from {
    opacity: 1;
  }
  to {
    opacity: 0.75;
  }
}

@-webkit-keyframes fadeInTile {
  from {
    opacity: 0.75;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInTile {
  from {
    opacity: 0.75;
  }
  to {
    opacity: 1;
  }
}

.past-text-flex {
  position: relative;
  grid-area: h;
  display: flex;
  flex: 1 1 auto;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: opacity(0.65) blur(8px);
  z-index: 2;
}

.past-text-flex > h2 {
  margin: 0;
  padding: 0;
  font-weight: lighter;
  word-spacing: 2dvw;
  font-size: calc(0.75rem + 4vmin);
  max-width: -webkit-fit-content;
  max-width: -moz-fit-content;
  max-width: fit-content;
  max-height: -webkit-fit-content;
  max-height: -moz-fit-content;
  max-height: fit-content;
}

/* This section is under the Past Shows text */
.past-guest-flex {
  grid-area: c;
  place-self: center;
  display: flex;
  flex-flow: row wrap;
  flex: 1 1 auto;
  justify-content: center;
  align-items: center;
  -moz-column-gap: 5vmin;
  column-gap: 5vmin;
  row-gap: 4vmin;
  height: 75%;
  width: 85%;
  padding-top: 2.75vmin;
  padding-bottom: 2.75vmin;
  border-radius: 2.5%;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.69) rgba(255, 166, 0, 0);
  -ms-scroll-chaining: none;
  overscroll-behavior: contain;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: opacity(0.9) blur(12px);
  box-shadow: 0 0 1.25dvw 1.25dvw rgba(0, 0, 0, 0.552);
  z-index: 3;
}

/* Flex items within above grid, becomes containers for each card/tile */
.past-guest-flex > div {
  display: flex;
  flex-flow: column nowrap;
  justify-content: flex-end;
  align-items: center;
  height: 11vmax;
  width: 11vmax;
  border-radius: 2.5%;
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

.past-guest-flex > div.fadeOutTile {
  -webkit-animation: fadeOutTile 400ms;
  animation: fadeOutTile 400ms;
  -webkit-animation-fill-mode: forwards;
  animation-fill-mode: forwards;
}

.past-guest-flex > div.fadeInTile {
  -webkit-animation: fadeInTile 400ms;
  animation: fadeInTile 400ms;
  -webkit-animation-fill-mode: forwards;
  animation-fill-mode: forwards;
}

.past-guest-flex > div > div {
  display: flex;
  flex-flow: row nowrap;
  justify-content: center;
  align-items: center;
  height: 15%;
  width: 99.8%;
  border-bottom-left-radius: 2.5%;
  border-bottom-right-radius: 2.5%;
  background-color: rgba(54, 54, 54, 0.349);
}

.past-guest-flex img {
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  height: 80%;
}
