:root {
  --white: #ffffff;
  --grey: #262626;
  --grey-accent: #333333;
  --grey-light: #e6e6e6;
  --green: #b8ef91;
}

*,
*:before,
*:after {
  box-sizing: border-box;
}

html {
  font-size: 10px;
}

body {
  margin: 0 1rem;
  padding: 4rem 0;
  color: var(--grey);
  font-size: 1.6rem;
  background: #000;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans',
    'Helvetica Neue', sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}

label {
  display: block;
}

input {
  width: 100%;
  font-size: 1.6rem;
}

input:not([type='range']) {
  padding: 0.8rem;
  border-radius: 4px;
  border: 1px solid #aaa;
}

.input-addon {
  position: relative;

  input {
  }

  span {
    position: absolute;
    top: 3px;
    right: 3px;
    height: calc(100% - 6px);
    display: flex;
    align-items: center;
    padding: 0 0.8rem;
    background: var(--grey-light);
    border-radius: 0 4px 4px 0;
  }
}

header.header {
  text-align: center;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.logo {
  width: 100px;

  path {
    fill: var(--white);
  }
}

.site-link {
  display: block;
  margin-top: 1.6rem;
  font-size: 1.4rem;
  color: var(--white);
  text-align: center;
  text-decoration: none;
}

.content-box {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 900px;
  margin-top: 2.4rem;
}

.content-box__arena,
.content-box__form {
  padding: 4rem;
}

.content-box__arena {
  text-align: center;
  background: var(--grey);
  border-radius: 24px 24px 0 0;
}

.content-box__form {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  background: var(--grey-light);
  border-radius: 0 0 24px 24px;
}

@media (900px <= width) {
  .content-box {
    flex-direction: row;
  }

  .content-box__arena,
  .content-box__form {
    flex: 1 50%;
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .content-box__arena {
    align-items: center;
    border-radius: 24px 0 0 24px;
  }

  .content-box__form {
    border-radius: 0 24px 24px 0;
  }
}

.slider-header {
  display: flex;
  justify-content: space-between;
}

#slider-value {
  /* font-size: 1.6rem; */
}

.results {
  padding: 3.2rem 1.2rem;
  background: var(--grey);
  color: var(--white);
  font-size: 2.4rem;
  font-weight: bold;
  text-align: center;
  border-radius: 12px;
}

.arena {
  position: relative;
  width: 100%;
  max-width: 360px;

  &.arena--horizontal {
  }

  &.arena--vertical {
    display: none;
  }
}

@media (900px <= width) {
  .arena {
    &.arena--horizontal {
      display: none;
    }

    &.arena--vertical {
      display: block;
    }
  }
}

.arena__outline {
  stroke: var(--grey-accent);
}

.arena__box {
  fill: var(--grey-accent);
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes show {
  to {
    opacity: 1;
  }
}

.arena__running-path {
  stroke: var(--green);
  stroke-dasharray: 1500px;
  stroke-dashoffset: 1500px;
  animation: draw 3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.arena__icon {
  font-size: 3.2rem;
}

.arena__icon--goal {
  opacity: 0;
  animation: show 0.2s 2.5s linear forwards;
}
