/* Yleiset asetukset ja oletusteema (vaalea, fallback) */
body {
  font-family: "Arial", "Helvetica Neue", Helvetica, sans-serif;
  font-size: 1px;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0;
  padding: 0;
  background-color: white;
  color: black;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  -webkit-animation: a 3s ease;
  animation: a 3s ease;
}

a, a:visited {
  color: black;
  text-decoration: none;
}

a:hover, a:active, a:focus {
  color: black;
  text-decoration: none;
  outline: none;
}

h1, h2 {
  text-align: center;
  margin: 0;
  padding: 0;
  font-family: "Arial", "Helvetica Neue", Helvetica, sans-serif;
  font-size: 1px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 10em;
  animation: a 3s ease;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

#result {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: "Arial", "Helvetica Neue", Helvetica, sans-serif;
  font-size: 27px;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0;
  padding: 0;
  animation: a 3s ease;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

@media screen and (max-width: 450px) {
  #result {
    font-size: 1rem;
  }
}

.isDisabled {
  color: currentColor;
  cursor: not-allowed;
  opacity: 0.5;
  text-decoration: none;
}

.btn .btn-light .btn-lg .btn-block {
  text-decoration: none !important;
}

.animate__animated.animate__fadeIn {
  --animate-duration: 1s;
}

.spikes,
.spikesy {
  position: relative;
  background: #f5f5f5;
  height: 20px;
}

.spikes::after,
.spikesy::after {
  content: '';
  position: absolute;
  right: 0;
  left: -0%;
  top: 100%;
  z-index: 10;
  display: block;
  height: 10px;
  background-size: 10px 100%;
  background-image:
    linear-gradient(135deg, #f5f5f5 25%, transparent 25%),
    linear-gradient(225deg, #f5f5f5 25%, transparent 25%);
  background-position: 0 0;
}

.spikesy {
  transform: rotate(180deg);
}

#tausta {
  background: #f5f5f5;
  padding: 2rem;
}

/* Tumma teema (esim. laitteen yötila) */
@media (prefers-color-scheme: dark) {
  body {
    background-color: black;
    color: white;
  }

  a, a:visited, a:hover, a:active, a:focus {
    color: white !important;
  }

  h1, h2, #result {
    color: white;
  }
}

/* Vaalea teema */
@media (prefers-color-scheme: light) {
  body {
    background-color: white;
    color: black;
  }

  a, a:visited, a:hover, a:active, a:focus {
    color: black !important;
  }

  h1, h2, #result {
    color: black;
  }
}
