/* import font(s) */
@import url("https://fonts.googleapis.com/css?family=Alegreya+Sans+SC:400,900");

/* detail root variables
--color-theme cascades to most html elements, and will be later updated in JavaScript
*/
/* :root {
  --font: "Alegreya Sans SC", sans-serif;
  --color-bg: #000b14;
  --color-theme: #70a9fe;
} */

/* * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
} */

.dual-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
}

.wheel-of-fortune-container {
  /* display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start; */
  
  background: rgba(0, 0, 0, 0.92);
}

#wheel-of-fortune-close-btn {
  position: absolute;
  top: 2em;
  right: 2em;
  cursor: pointer;
}

#wheel-of-fortune-email-input {
  color: black !important;
  width: 250px;
  height: 30px;
  margin: 1em 0;
  border-radius: 0.5em;
  padding: 0.5em;

}
  #wheel-of-fortune-email-input:focus {
    color: black !important;
  }

/* body {
  height: 100vh;
  background: var(--color-bg);
  color: var(--color-theme);
  font-family: var(--font);
} */
/* heading centered atop the page */
h1 {
  text-align: center;
  margin: 1rem 0 0;
  font-size: 3rem;
  transition: all 0.25s ease-in-out;
}
/* shown/hidden through an dedicated class */
h1.isHidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-1rem) scale(0);
}

/* wheel positioned to the left of the page, and occupying 50% of whichever dimension is the biggest */
svg#wheel {
  position: absolute;
  left: 10%;
  top: 50%;
  transform: translateY(-50%);
  width: 33vmax;
  height: 33vmax;
}

/* arrow positioned to the right of the wheel, and pointing at the very middle section */
svg#pin {
  position: absolute;
  left: 45vmax;
  width: calc(50vmax / 25);
  height: calc(50vmax / 25);
  top: 50%;
  transform: translateY(-50%);
  fill: var(--color-theme);
}

#wheel-of-fortune-error-output {
  color: red !important;
}

/* instructions displayed on the right side, in a single column layout */
.instructions {
  min-height: 100vh;
  width: 70%;
  margin: 0 auto;
  color: var(--color-theme);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
  text-align: left;
}
  .wheel-of-fortune-text {
    display: flex;    
    flex-direction: column;
    align-items: flex-end;
  }
  .instructions h1, .instructions h2 {
    font-size: 3rem;
    text-align: right;
    font-weight: 700;
  }
  .instructions h2 {
    font-size: 2rem;
    letter-spacing: 0.1rem;
    position: relative;
  }

/* @media only screen and (max-width: 1150px) {
  .dual-container {
    flex-direction: row;
    align-items: center;
  }
  svg#wheel {
    top: 30%;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
  }
  svg#pin {
    top: 30%;
    left: 68%;
  }
  .instructions {
    align-items: center;
    min-height: 100vh;
    width: 55%;
    padding-top: 20em;
  }
    .instructions h1, .instructions h2 {
      text-align: center;
    }
    .instructions h1 {
      font-size: 1.6em;
      text-align: right;
      width: 100%;
    }
    .instructions h2 {
      font-size: 1.3em;
      width: 300px;
      text-align: right;
    }
} */

/* @media only screen and (max-width: 700px) {
  svg#wheel {
    top: 24%;
  }
  svg#pin {
    top: 24%;
    left: 73%;
  }
  .dual-container {
    flex-direction: column;
  }
  .dual-container > div {
    align-items: center;
  }

  .instructions {
    padding-top: 15em;
  }
    .instructions h1 {
      text-align: center;
      font-size: 140%;
    }
    .instructions h2 {
      text-align: center;
    }
}
@media only screen and (max-width: 650px) {
  
}
@media only screen and (max-width: 550px) {
  svg#pin {
    left: 80%;
  }
} */

/* @media only screen and (max-width: 430px) {
  svg#pin {
    top: 20%;
    left: 90% !important;
  }
  svg#wheel {
    top: 20%;
  }
  .instructions {
    width: 100%;
    padding-left: 2em;
    padding-right: 2em;
    padding-top: 12em;
    align-items: center;
  }
  .instructions h1 {
    text-align: center;
    font-size: 140%;
  }
  #wheel-of-fortune-close-btn {
    top: 0.2em;
    right: 0.2em;
  }
} */

/* beside a silly exclamation point add a simple word in the middle of the sentence hinting at the innocent nature of the project */
/* .instructions h2:after {
  content: "!";
}
.instructions h2:before {
  position: absolute;
  content: "suspicious";
  font-size: 0.75rem;
  opacity: 0.6;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) rotate(-12deg);
} */

.instructions button {
  margin-top: 1rem;
  padding: 0.25rem 0.75rem;
  font-size: 1.55rem;
  font-family: inherit;
  color: inherit;
  border: none;
  border-radius: 10px;
  box-shadow: 0 0 0 2px currentColor;
  background: var(--color-bg);
  /* transition for a simple hover and active state */
  transition: all 0.5s ease-out;
}
.instructions button:hover {
  box-shadow: 0 0 0 1px var(--color-bg), 0 0 0 3px currentColor,
    0 0 0 5px var(--color-bg), 0 0 0 7px currentColor;
}
.instructions button:active {
  box-shadow: 0 0 0 2px currentColor, 0 0 0 4px var(--color-bg),
    0 0 0 6px currentColor;
  transform: scale(0.95) translateY(0.1rem);
}
/* cursor customized to grab, and not allowed when the wheel is spinning (class added in JS) */
.instructions button,
svg#pin {
  cursor: grab;
}
.instructions button.isSpinning,
svg#pin.isSpinning {
  cursor: not-allowed;
}
/*
animation for the pin, to have it soundly move up and down alongside the spinning wheel
the duration of the animation is customized in JS to have it run a certain number of times
*/
@keyframes pinWheel {
  33% {
    transform: translateY(-50%) rotate(-10deg);
  }
  67% {
    transform: translateY(-50%) rotate(10deg);
  }
}

/* on smaller viewports position the instructions in the bottom center (as they would otherwise overlap with the wheel) */
/* @media (max-width: 600px) {
  .instructions {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 1rem;
    transition: transform 0.5s ease-out;
    text-align: center;
  }
} */