:root {
  --glow-rgb: 245 245 245;

  --light-gold-rgb: 249 181 51;
  --dark-gold-rgb: 215 147 23;

  --primary-stripe-rgb: 230 230 230;
  --secondary-stripe-rgb: 240 240 240;
}

html {
  min-height: 100vh;
  background-color: linear-gradient(
    to bottom right,
    45deg,
    red,
    orange,
    yellow,
    green,
    blue,
    indigo,
    violet,
    red
  );
}

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

@keyframes pan {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 100% 0%;
  }
}

#app {
  height: 100vh;
  overflow: hidden;
  position: relative;
}

#star-container {
  background: radial-gradient(
    rgb(var(--light-gold-rgb)),
    rgb(var(--dark-gold-rgb))
  );
  height: 100%;
  overflow: hidden;
  position: relative;
}

#star-pattern {
  background-image: url("https://assets.codepen.io/1468070/Star+Pattern+3.svg");
  background-size: 10%;
  position: absolute;
  left: 50%;
  top: 0px;
  translate: -50% 0%;
  z-index: 1;
  height: 100%;
  width: 100%;
  min-width: 1200px;
  opacity: 0.1;
  animation: pan 180s linear infinite;
  will-change: background-position;
}

#star-gradient-overlay {
  background: radial-gradient(
    circle,
    transparent 75%,
    rgb(var(--dark-gold-rgb))
  );
  position: absolute;
  left: 0px;
  top: 0px;
  width: 100%;
  height: 100%;
  opacity: 0.9;
  z-index: 2;
}

#stripe-container {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 0px;
  translate: -50% 0%;
  height: 28vh;
  min-height: 240px;
  width: 100%;
  min-width: 2000px;
  background-color: rgb(var(--stripe-primary-rgb));

  clip-path: polygon(
    0% 5%,
    1.25% 0%,
    2.5% 5%,
    3.75% 0%,
    5% 5%,
    6.25% 0%,
    7.5% 5%,
    8.75% 0%,
    10% 5%,
    11.25% 0%,
    12.5% 5%,
    13.75% 0%,
    15% 5%,
    16.25% 0%,
    17.5% 5%,
    18.75% 0%,
    20% 5%,
    21.25% 0%,
    22.5% 5%,
    23.75% 0%,
    25% 5%,
    26.25% 0%,
    27.5% 5%,
    28.75% 0%,
    30% 5%,
    31.25% 0%,
    32.5% 5%,
    33.75% 0%,
    35% 5%,
    36.25% 0%,
    37.5% 5%,
    38.75% 0%,
    40% 5%,
    41.25% 0%,
    42.5% 5%,
    43.75% 0%,
    45% 5%,
    46.25% 0%,
    47.5% 5%,
    48.75% 0%,
    50% 5%,
    51.25% 0%,
    52.5% 5%,
    53.75% 0%,
    55% 5%,
    56.25% 0%,
    57.5% 5%,
    58.75% 0%,
    60% 5%,
    61.25% 0%,
    62.5% 5%,
    63.75% 0%,
    65% 5%,
    66.25% 0%,
    67.5% 5%,
    68.75% 0%,
    70% 5%,
    71.25% 0%,
    72.5% 5%,
    73.75% 0%,
    75% 5%,
    76.25% 0%,
    77.5% 5%,
    78.75% 0%,
    80% 5%,
    81.25% 0%,
    82.5% 5%,
    83.75% 0%,
    85% 5%,
    86.25% 0%,
    87.5% 5%,
    88.75% 0%,
    90% 5%,
    91.25% 0%,
    92.5% 5%,
    93.75% 0%,
    95% 5%,
    96.25% 0%,
    97.5% 5%,
    98.75% 0%,
    100% 5%,
    100% 100%,
    0% 100%
  );
}

#stripe-pattern {
  height: 100%;
  width: 100%;
  background-size: 18px 18px;
  background-image: linear-gradient(
    -45deg,
    rgb(var(--primary-stripe-rgb)) 25%,
    rgb(var(--secondary-stripe-rgb)) 25%,
    rgb(var(--secondary-stripe-rgb)) 50%,
    rgb(var(--primary-stripe-rgb)) 50%,
    rgb(var(--primary-stripe-rgb)) 75%,
    rgb(var(--secondary-stripe-rgb)) 75%,
    rgb(var(--secondary-stripe-rgb)) 100%
  );
  box-shadow: inset 0rem 0.5rem 2rem 0.25rem rgb(0 0 0 / 40%);
  animation: pan 360s linear infinite;
}

/* -- Modal -- */

.sixty-four-font {
  font-family: "Sixtyfour", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "BLED" 0, "SCAN" 0;
  color: white;
}

.inter-font {
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
  font-variation-settings: "slnt" 0;
}

#modal-wrapper {
  width: 100%;
  height: 80%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 0px;
  top: 0px;
  z-index: 10;
  padding: 2rem;
}

@media (max-height: 1000px) {
  #modal-wrapper {
    height: 100vh;
  }
}

#modal {
  display: flex;
  width: 50rem;
  aspect-ratio: 5 / 3;
  position: relative;
  background-color: rgb(50 50 50);
  border: 0.5rem solid rgb(30 30 30);
  border-top-right-radius: 5rem;
  border-bottom-left-radius: 5rem;
  overflow: hidden;
  box-shadow: 12px 25px 50px 12px rgb(0 0 0 / 0.5);
}

@media (max-width: 1024px) {
  #modal {
    aspect-ratio: auto;
    min-height: 500px;
    width: 100%;
    border-top-right-radius: 3rem;
    border-bottom-left-radius: 3rem;
  }
}

@media (max-width: 728px) {
  #modal {
    min-height: 400px;
  }
}

#modal-background {
  position: absolute;
  left: 0px;
  top: 0px;
  z-index: 1;
  height: 100%;
  width: 100%;
  background-image: url("https://assets.codepen.io/1468070/Repeatable+Pattern+-+Wavy+Lines.png?format=auto&quality=80");
  background-size: 200%;
  opacity: 0.3;
  animation: move-background 50s linear infinite;
}

#modal-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 0;
  position: relative;
  z-index: 2;
}

#modal-message {
  justify-content: center;
  align-items: center;
  flex-grow: 1;
}

#modal-message p {
  color: white;
  font-size: 1.5rem;
  text-align: center;
  text-shadow: 0px 0px 8px rgb(0 0 0 / 50%);
}

@media (max-width: 1024px) {
  #modal-actions {
    align-items: center;
    flex-direction: column-reverse;
  }
}

@media (max-width: 1024px) {
  .modal-action {
    width: 100%;
    max-width: 400px;
  }
}

body {
  min-width: 100vw;
  background-color: black;
  overflow: hidden;
}

#chart {
  position: relative;
  width: 552px;
  height: 420px;
  margin-left: auto;
  margin-right: auto;
  background-color: white;
}

header {
  text-align: center;
  font-family: sans-serif;
  margin-bottom: .25em;
}

#pig {
  width: 420px;
  height: 420px;
  background-image: url("pig-svgrepo-com.svg");
  background-size: 420px 420px;
  position: relative;
  left: 50%;
  margin-left: -210px;
  bottom: 0;
  z-index: 42;
}

#colors {
  position: absolute;
  bottom: 0;
}

#m1k3y,
#nekochris,
#flyx,
#julesalex {
  box-sizing: border-box;
  padding-left: 0.5em;
  padding-right: 0.5em;
  width: 552px;
  font-family: monospace;
}

.percentage {
  float: right;
}

canvas {
    position: absolute;
    top: 10;
    left: 0;
    right: 0;
    z-index: 50;
}
