:root {
  --color-1: #4ed47d;
  --color-2: #fbaa34;
  --color-3: #f84e2a;
  --color-4: #bf8bf0;
  --color-5: #75adf2;
}

* {
  box-sizing: border-box;
}

.body {
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 100vh;
  background-color: black;
}

.container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 66vh;
  min-height: 400px;
}

.text {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 48px;
  text-align: center;
  color: white;
  max-width: 840px;
  width: 100%;
  margin: auto;
  text-decoration: none;
}

#changingWord {
  transition: color 0.25s ease;
}

/* Cards Section */
.cards-section {
  padding: 0 24px 48px;
  width: 100%;
}

.masonry-grid {
  max-width: 1600px;
  margin: 0 auto;
}

.grid-sizer,
.card {
  width: calc(33.333% - 14px);
}

.card {
  margin-bottom: 20px;
  border-radius: 24px;
  overflow: hidden;
  display: block;
  text-decoration: none;
  cursor: pointer;
}

/* Image cards */
.card--image {
  padding: 0;
  overflow: hidden;
}

.card__image-wrapper {
  overflow: hidden;
  position: relative;
}

.card__image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card--image:hover .card__image {
  transform: scale(1.08);
}

.card--image .card__pill {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
}

/* Cycling image cards */
.card--cycling .card__image-wrapper {
  position: relative;
  background-color: #fff;
}

.card--cycling .card__image {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card--cycling .card__image:first-of-type {
  position: relative;
}

.card--cycling .card__image.active {
  opacity: 1;
}

/* Pill button */
.card__pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 50px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #fff;
  background-color: transparent;
  border: 2px solid #fff;
}

.card__pill--dark {
  color: #000;
  border-color: #000;
}

/* Shape Logo Section */
.shape-section {
  padding: 48px 24px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  width: 100%;
}

.shape-logos {
  display: flex;
  align-items: center;
  gap: 2vw;
  width: 100%;
}

#shape-logo {
  flex: 160.8;
  height: auto;
}

#shape-word {
  flex: 629;
  height: auto;
  fill: #fff;
}

#shape-logo .shape {
  transition: fill 0.25s ease;
  cursor: pointer;
}

/* Responsive */
@media only screen and (max-width: 1100px) {
  .grid-sizer,
  .card {
    width: calc(50% - 10px);
  }
}

@media only screen and (max-width: 700px) {
  .grid-sizer,
  .card {
    width: 100%;
  }

  .cards-section {
    padding: 0 16px 32px;
  }

  .text {
    font-size: 36px;
    width: 85%;
  }
}
