/* =========================
   Layout & General Wrappers
   ========================= */

.homepage {
  display:        flex;
  flex-direction: column;
  gap:            40px;
}

.homepage-sections-wrapper {
  /* Section wrapper for each homepage block */
  padding: 0;
}

.homepage-sections-wrapper-pad-40 {
  /* Extra padding for special sections */
  padding: 40px 0;
}

/* =========================
   Section Content & Containers
   ========================= */

.homepage-sections__section-content {
  /* General section content wrapper */
  display:        flex;
  flex-direction: column;
  max-width:      1200px;
  margin:         auto;
}

/* =========================
   Video Section
   ========================= */

.video-sections__section-content {
  /* Content wrapper for video section */
  max-width: 100%;
}

.video,
iframe {
  /* Make video and iframe responsive */
  width:  100%;
  height: 100%;
}

iframe {
  min-height: 300px;
  border:     none;
}

video-acdc-section {
  display: block;
}

.hero-video.desktop-height-fullscreen {
  /* Fullscreen video section */
  height:          100vh;
  display:         flex;
  flex-direction:  column;
  align-items:     center;
  justify-content: center;
}

.dspatches-rainbow-border {
  /* Rainbow border image */
  position:            relative;
  width:               100%;
  height:              12px;
  background:          url("https://supermixstudio.com/cdn/shop/files/sup-rainbow-border.png?v=1648051536");
  background-repeat:   no-repeat;
  background-size:     cover;
  background-position: center;
  margin-top:          -2px;
}

.hide {
  /* Utility to hide elements */
  display: none;
}

/* =========================
   All The Patches Section
   ========================= */

.all-the-patches__section-content {
  /* Row layout for patch categories */
  flex-direction: row;
  gap:            20px;
}

.all-the-patches__row {
  display: flex;
  gap:     20px;
}

.all-the-patches__img {
  /* Patch image styling */
  width: 100%;
  height: auto;
}

.image-bar--title {
  /* Patch category title */
  font-size:   18px;
  margin:      10px 0 0 0;
  font-weight: 700;
  text-align:  center;
}

/* =========================
   Drag n Drop Section
   ========================= */

.drag-n-drop__section-content {
  /* Layout for drag-n-drop section */
  display: flex;
  gap:     20px;
}

.drag-n-drop__column {
  width: 50%;
}

.drag-n-drop__patches-grid {
  /* Grid for drag-n-drop patch items */
  display:               grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap:            100px;
  row-gap:               80px;
}

.drag-n-drop__patch-item {
  width: 100%;
}

.drag-n-drop__patch-item img {
  aspect-ratio: 1/1;
  width:        100%;
}

.product-name {
  font-size: 18px;
  margin:    0;
  padding:   20px 0 0;
}

.drag-n-drop__side-img {
  /* Side image in drag-n-drop section */
  width: 100%;
  max-width: 400px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* =========================
   Section Titles
   ========================= */

.section-title {
  font-size:  36px;
  text-align: center;
}

.starry-section-title:before {
  /* Pink star before the section title */
  content:             "";
  height:              32px;
  width:               32px;
  background-image:    url("https://cdn.shopify.com/s/files/1/0563/2737/2823/files/pinkstar.svg?v=1649179037");
  background-size:     contain;
  background-position: center;
  background-repeat:   no-repeat;
  display:             inline-block;
  margin-right:        30px;
}

.starry-section-title:after {
  /* Yellow star after the section title */
  content:             "";
  height:              32px;
  width:               32px;
  background-image:    url("https://cdn.shopify.com/s/files/1/0563/2737/2823/files/yellowstar.svg?v=1649179032");
  background-size:     contain;
  background-position: center;
  background-repeat:   no-repeat;
  display:             inline-block;
  margin-left:         30px;
}

/* =========================
   Responsive Styles
   ========================= */

@media (max-width: 768px) {
  .homepage {
    gap: 20px;
  }
  .homepage-sections__section-content {
    padding: 0 10px;
  }
  .all-the-patches__row {
    flex-direction: column;
    gap:            10px;
  }
  .section-title {
    font-size:      24px;
    padding-bottom: 0;
  }
  .starry-section-title:before,
  .starry-section-title:after {
    width:  18px;
    height: 18px;
    margin: 0 5px;
  }
  .drag-n-drop__patches-grid {
    grid-template-columns: 1fr;
    column-gap:            20px;
    row-gap:               40px;
  }
  .drag-n-drop__side-img {
    max-width:  100%;
    margin-top: 20px;
  }
}

/* Large screen */
@media screen and (min-width:1024px) {
  .hero-video.desktop-height-fullscreen {
    height: 100vh;
  }
}
