@keyframes backgroundScroll {
  /* snow falling top to bottom */
  0% {
    background-position: bottom center;
  }
  100% {
    background-position: top center;
  }
}

.header-promo.promo-active {
  display: flex;
}

.header-promo {
  position: relative;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 0rem 1rem;
  width: 100%;
  height: var(--promo-height);
  background-color: #191b28;
  overflow: hidden;
  font-size: clamp(12px, 1.75vw, 14px);
  white-space: nowrap;

  img {
    display: none;
  }

  .header-promo-inner {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    flex: 1;
    justify-content: space-between;
    max-width: 1000px;
  }

  strong {
    display: inline-block;
    font-weight: 600 !important;

    i {
      margin-right: .125rem;
      color: #fe5555; 
    }
  }

  p {
    font-weight: 450;
  }

  .countdown {
    display: flex;
    align-items: center;
    gap: .75rem;

    p {
      white-space: wrap;
      font-size: clamp(12px, 1.25vw, 14px);
      color: var(--color-quiver-white);
    }
    
    .countdown-timer {
      min-width: 130px;
      width: 130px;
      font-weight: 450;
      font-size: clamp(14px, 1.75vw, 15px);
      font-family: "Roboto", sans-serif;
      letter-spacing: 1px;
      color: var(--color-quiver-white-light);
    }
  }

  .promo-code {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .25rem;
    font-weight: 350;
    color: var(--color-quiver-white-2);

    p {
      font-size: clamp(12px, 1.5vw, 13px);
    }

    span {
      color: var(--color-quiver-white-light);
      font-weight: 600;
      font-family: "Roboto", sans-serif;
      letter-spacing: 1px;
    }
  }

  .promo-link {
    border-radius: 9999px;
    padding: .3rem 1rem;
    background-color: #4343bf;
    font-weight: 600;
    font-size: clamp(12px, 1.75vw, 15px);
  }

  .promo-overlay-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
  }

  &.header-promo-nye {
    background: #3b3ba321;
  
    &::before {
      content: "";
      background-image: url('/static/img/snow-black-bg.jpg');
      background-size: 400px auto;
      background-repeat: repeat-x;
      background-position: top center;
      position: absolute;
      top: 0;
      right: 0;
      bottom: 0;
      left: 0;
      opacity: 0.4;
      z-index: -1;
  
      animation: backgroundScroll 25s linear infinite;
    }
  
    strong {
      i.fa-snowflake {
        color: var(--color-dataset-ci);
      }
    }
    
    img.header-promo-tree {
      width: 125px;
      margin-top: 1rem;
      margin-left: -4.5rem;
      opacity: .85;
  
      &.right-img-2 {
        margin-left: unset;
        margin-right: -4.5rem;
      }
    }

    .promo-text {
      display: flex;
      flex-direction: row;
      align-items: center;
      gap: 2.5rem;
    }
  }
}


@media screen and (max-width: 1024px) {
  .header-promo {
    .header-promo-inner {
      gap: 1.25rem;
      max-width: 600px;
    }

    .promo-code {
      flex-direction: column;
      gap: .05rem;

      p {
        white-space: nowrap;
        font-size: clamp(11px, 1.25vw, 12px);
        color: var(--color-quiver-white-4);
      }
    }

    .countdown {
      p {
        font-weight: 500;
        color: var(--color-quiver-white-4);
      }

      .countdown-timer {
        display: none;
      }
    }

    &.header-promo-nye {
      .promo-text {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 1px;
      }
    }
  }
}

@media screen and (min-width: 650px) {
  .header-promo {
    justify-content: space-between;

    img {
      display: block;
      
      &.header-promo-snow-bg {
        display: none;
      }
    }
  }
}

@media screen and (max-width: 550px) {
  .header-promo {
    strong {
      display: none;
    }

    .countdown {
      p {
        color: var(--color-quiver-white);
        font-weight: 450;
        
        span {
          font-weight: 600;
          color: var(--color-quiver-white-light);
        }
      }
    }
  }
}

@media screen and (max-width: 400px) {
  .header-promo {
    .countdown {
      p {
        text-wrap: balance;
      }
    }

    .promo-code {
      display: none;
    }
  }
}