@import "config";

body {
  font-size: 2.8vh;
  font-family: sans-serif;
  text-align: center;
  user-select: none;
  margin: 0;
  width: 100vw;
  height: 100vh;
  background: #ffc9a3 url("/background.jpg") fixed center top;
  background-size: cover;
}

input, select, button {
  all: unset;
  font-size: inherit;
}

div {
  box-sizing: border-box;
}

.coloredText {
  color: white;
  text-shadow: 0 0 0.5em @magenta, 0 0 0.5em @magenta, 0 0 0.5em @magenta;
}

.button {
  display: inline-block;
  padding: @space;
  margin-bottom: @space;
  cursor: pointer;
  background: linear-gradient(145deg, #fff4c2 0%, #ffd700 40%, #e6ac00 100%);
  color: #3b2900;
  font-weight: bold;
  border: none;
  border-radius: 0.5em;
  box-shadow: inset 0 0.1em 0 rgba(255, 255, 255, 0.6), 0 0.2em 0.4em rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease-in-out;
  position: relative;
  overflow: hidden;
}

.button:not(.buttonDisabled):hover {
  filter: brightness(1.1);
  box-shadow: inset 0 0.1em 0 rgba(255, 255, 255, 0.5), 0 0.25em 0.5em rgba(0, 0, 0, 0.4);
  transform: translateY(-0.1em);
}

.button:not(.buttonDisabled):active {
  transform: translateY(0.1em);
  box-shadow: inset 0 0.2em 0.5em rgba(0, 0, 0, 0.4), 0 0.2em 0.2em rgba(0, 0, 0, 0.2);
}

.button:not(.buttonDisabled):before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg,
  rgba(255, 255, 255, 0.0) 0%,
  rgba(255, 255, 255, 0.6) 50%,
  rgba(255, 255, 255, 0.0) 100%);
  transform: skewX(-25deg);
  transition: all 0.3s ease;
  pointer-events: none;
}

.button:not(.buttonDisabled):hover::before {
  left: 125%;
  transition: left 0.75s ease-out;
}

.buttonGoTo {
  background-color: @magenta;
}

.buttonDisabled {
  filter: grayscale(100%);
}

.buttonError {
  background: red !important;
}

.hidden {
  display: none;
}
