/* =========================================================
   ROOT VARIABLES
   ========================================================= */
:root {
  --availability-neumo-shadow-offset: 6px;
  --availability-neumo-shadow-blur: 14px;
  --availability-neumo-light-shadow: rgba(255,255,255,0.85);
  --availability-neumo-dark-shadow: rgba(0,0,0,0.12);
  --availability-ping-animation-duration: 2.8s;
  --availability-crossfade-duration: 240ms; /* if you sync JS */

  font-weight: 200;
}

#bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("../images/Untitled design.png");
  background-size: cover;
  background-position: left;
  background-repeat: no-repeat;
  height: 100lvh;        /* keeps background full viewport */
  min-height: 100lvh;    /* progressive enhancement for browsers that support lvh */
}


/* subtle darkening overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0) 10%,
    rgba(0,0,0,0.07) 70%
  );
}

/* keep real content above effects */
header,
footer {
  position: relative;
}

#all-text {
  overscroll-behavior-x: contain;
}

.main-text-container {
  margin-left: 14px;
  margin-top: 170px;
  width: 90%;
  max-width: 500px;
  color:white;
  min-height: calc(100lvh - 60px - 20px - 170px);
  position: relative;
  z-index: 6;
}

.main-text-container h2 {
  font-size: 30px;
}

.main-text-container p {
  font-size: 18px;
}

.main-text-container p span {
  font-weight: 600;
}

.below-text-container {
  background-image: url("../images/Untitled design 2.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  width: 100%;
  overflow: visible;
  padding-top: 20px;
  display: inline-flex;
  flex-direction: column;
  padding-bottom: 10px;
}

#btc-row1 {
  width: 100%;
  display: inline-flex;
}

#bespoke-header-container {
  width: 70%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-items: center
}

#bespoke-header-container h2 {
  font-size: 75px;
  font-family: 'Trebuchet MS';
  color: rgb(39, 36, 36);
  text-align: center;
  margin: 0 10px;
  width: fit-content;
  display: inline-flex;
  cursor: default;
}

.sunrise-gradient {
  display: inline-block; /* ensure gradient paints behind the glyphs */
  color: #d83189; /* visible fallback for text-only/no-clip browsers */
  background-image: linear-gradient(to right, #d83189, #ff3131, #ff914d);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  margin: 0 10px;
}

@supports (-webkit-background-clip: text) or (background-clip: text) {
  .sunrise-gradient {
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;               /* expose the background gradient */
    -webkit-text-fill-color: transparent;
  }
}

#bespoke-header-container h2.sunrise-gradient {
  transform-origin: right;
  transition: all 0.5s ease-in-out;
}

#bespoke-header-container h2.sunrise-gradient:hover {
  transform: scale(1.1);
}

#btc-row2 {
  width: 100%;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin-top: 18px;
}

.option-box {
  width: 90%;
  border-radius: 5px;
  border-left: 1px solid rgb(167, 164, 157);
  border-top: 1px solid rgb(167, 164, 157);
  border-bottom: 1px solid rgb(167, 164, 157);
  margin: 5px auto;
  display: inline-flex;
  cursor: pointer;
  height: 86.4px;
  background: linear-gradient(145deg, #f0f0f0, #cacaca);
  box-shadow:  6px 6px 12px #c3c3c3,
              -6px -6px 12px #fdfdfd;
}

.option-box:hover {
    border-left: 3px solid transparent;
    border-top: 3px solid transparent;
    border-bottom: 3px solid transparent;
    border-right: 2px solid transparent;
    border-image: linear-gradient(
      to right,
    #d83189, #ff3131, #ff914d
    ) 1;
    margin: 3px auto;
    border-radius: 5px;
}

.option-left-section {
  width: 90%;
  display: inline-flex;
  flex-direction: column;
}

.option-box-header {
  display: inline-flex;
  flex-direction: row;
  margin: 20px 0 0 10px;
}

.option-box-header h4 {
  font-size: 20px;
  font-family: 'unageo';
  margin: 0px;
  width: 270px;
  max-width: 45%;
}


/* base neumorphic chip */
.availability-status {
  margin: -2px 0 0 10px;
  height: 18px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.04); /* subtle edge */
  /* soft raised look: light top-left, dark bottom-right */
  box-shadow:
    calc(var(--availability-neumo-shadow-offset) * -1) calc(var(--availability-neumo-shadow-offset) * -1) var(--availability-neumo-shadow-blur) var(--availability-neumo-light-shadow),
    var(--availability-neumo-shadow-offset) var(--availability-neumo-shadow-offset) var(--availability-neumo-shadow-blur) var(--availability-neumo-dark-shadow),
    inset 0 2px 6px rgba(0,0,0,0.1); /* gentle inset for depth */
  background-clip: padding-box; /* keep background inside rounded corners */
  transition: box-shadow 180ms ease, transform 180ms ease;
}

/* variant colors with subtle gradient + ping color variable */
.green-rectangle {
  --ping-color: #2ea044; /* used by ping and halo */
  background: linear-gradient(180deg, #4cc765 0%, #3db84f 100%);
  border-color: rgba(0,71,11,0.18);
  color: #04320a;
}

.orange-rectangle {
  --ping-color: #d39a2a;
  background: linear-gradient(180deg, #f0c05f 0%, #e3a93a 100%);
  border-color: rgba(183,98,0,0.18);
  color: #5a3c00;
}

.red-rectangle {
  --ping-color: #d23b3b;
  background: linear-gradient(180deg, #f06b6b 0%, #e04343 100%);
  border-color: rgba(158,0,0,0.18);
  color: #5a0404;
}

/* ping layout */
.ping-status-circle-container {
  height: 16px;
  width: 16px;
  margin: 0 3px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  position: relative; /* for halo pseudo-element */
}

/* small raised ping */
.ping-status-circle {
  height: 10px;
  width: 10px;
  border-radius: 50%;
  background: var(--ping-color);
  position: relative;
  z-index: 2;
  /* give it a soft 3D look: slight inner highlight and small shadow */
  box-shadow:
    0 2px 4px rgba(0,0,0,0.24);
  /* scale animation (syncs with halo) */
  animation: ping-scale var(--availability-ping-animation-duration) infinite ease-in-out;
  transform-origin: center;
}

/* halo that grows + fades */
.ping-status-circle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ping-color);
  z-index: 1;
  opacity: 0.9;
  filter: blur(6px);
  /* expand & fade */
  animation: ping-halo var(--availability-ping-animation-duration) infinite ease-in-out;
}

/* animations */
@keyframes ping-scale {
  0%   { transform: scale(0.6); }
  50%  { transform: scale(1); }
  100% { transform: scale(0.6); }
}

/* keep text aligned and tidy */
.availability-status p {
  margin: 0 6.5px 0 0;
  line-height: 1;
  white-space: nowrap;
}

/* optional smaller device tuning (less shadow so it looks crisper on small screens) */
@media (max-width: 420px) {
  :root {
    --availability-neumo-shadow-offset: 4px;
    --availability-neumo-shadow-blur: 10px;
  }
  .availability-status { border-radius: 10px; padding: 4px 8px; }
  .ping-status-circle-container { height: 14px; width: 14px; }
  .ping-status-circle { height: 8px; width: 8px; }
}


.option-right-section {
  width: 10%;
  height: 87.4px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
  background: 
    linear-gradient( to right, #d83189, #ff3131, #ff914d);
  margin: -0.5px 0px 0 0;
}


.option-box-right-arrow {
  display: inline-flex;
  width: 75%;
  filter: invert(97%) sepia(1%) saturate(2%) hue-rotate(264deg) brightness(105%) contrast(101%);
  height: 87.4px;
  transition: all 0.3s ease-in-out;
}

.option-box-right-arrow.hover-grow {
  transform: scale(1.15);
}

@keyframes rotate-down {
  0% {
    rotate: 0deg;
  }
  80% {
    rotate: 95deg;
  }
  90% {
    rotate: 80deg;
  }
  100% {
    rotate: 90deg;
  }
}

@keyframes rotate-right {
  0% {
    rotate: 90deg;
  }
  80% {
    rotate: -5deg;
  }
  90% {
    rotate: 10deg;
  }
  100% {
    rotate: 0deg;
  }
}

.down {
  animation: rotate-down 0.9s forwards;
}

.right {
  animation: rotate-right 0.9s forwards;
}

.option-message {
  margin: 5px 0 8px 10px;
  font-weight: 400;
}

.option-extended {
  min-height: 216px;
  height: auto;
}

.lower-option-message {
  margin: 2px 0 8px 10px;
}

.lower-section{
  display: inline-flex;
  flex-direction: row;
  height: 100%;
  align-items: center;
}

@keyframes slow-wobble {
  0% {
    transform: rotate(-12deg);
  }
  50% {
    transform: rotate(12deg);
  }
  100% {
    transform: rotate(-12deg);
  }
}

.ob-svg-container {
  height: 60px;
  width: 90px;
  flex-shrink: 0;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.lower-section svg {
  width: 60px;
  height: 60px;
  /* all colors should use the sunGradient */
  stroke: url(#sunGradient);
  fill: url(#sunGradient);
  animation: slow-wobble 3.8s infinite;
}

#lower-section-3 svg {
  width: 80px !important;
  height: 80px !important;
}

#lower-section-6 svg {
  width: 120px !important;
  height: 120px !important;
}

.lower-p-container {
  display: inline-flex;
  flex-direction: column;
}

#option-box6 {
  margin-bottom: 9lvh;
}

@media only screen and (max-width: 1100px) {
  .main-text-container {
    max-width: 400px;
  }
}

@media only screen and (max-width: 950px) {
  #btc-row1 {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .option-box {
    height: var(--option-box-auto-height, auto);
  }

  .option-right-section {
    height: auto;
  }
}

@media only screen and (max-width: 700px) {

  #bespoke-header-container h2 {
    font-size: 55px;
    margin: 0 5px;
  }

  .availability-status-container {
    align-items: center;
    display: inline-flex;
    width: 100%;
    justify-content: end;
  }

  .availability-status {
    margin-right: 10px;
  }

  .option-message {
    opacity: 0;
    width: 0;
    height:0;
  }
}

@media (max-width: 600px) and (pointer: coarse) {


  .main-text-container {
    margin-left: 5vw;
    margin-top:  calc(var(--vh) * 15);
    width: 90%;
    max-width: 90% !important;
    height: 500px;
    min-height: calc(var(--vh) * 60);
  }

  .main-text-container h2 {
    font-size: 27px;
  }

  .main-text-container p {
    font-size: 15px;
  }

  #bespoke-header-container h2 {
    font-size: 35px;
  }

  .option-box-header {
    flex-direction: column;
  }

  .option-box-header h4 {
    width: 100%;
    max-width: 100%
  }

  .availability-status-container {
    justify-content: start;
    margin: 5px 0;
  }

  .availability-status {
    margin: 0;
  }
}

/* Horizontal mobile phone */
@media (max-height: 440px) and (pointer: coarse) {
  .main-text-container {
    margin-top: 30px;
  }
}