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

body {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  margin: 0;
  background: linear-gradient(to bottom, #aaaaaa, #eeeeee);
}

#spin_the_wheel {
  display: inline-block;
  position: relative;
  overflow: hidden;
  width: min(98vmin, 900px);
}

#wheel {
  display: block;
  width: 100%;
  height: auto;
}

#spin {
  font:
    1.5em/0 "Lato",
    sans-serif;
  /* 3% of wheel width (min(98vmin, 900px)) */
  font-size: min(2.94vmin, 27px);
  font-weight: bold;
  user-select: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30%;
  height: 30%;
  margin: -15%;
  background: #fff;
  color: #fff;
  box-shadow:
    0 0 0 8px currentColor,
    0 0px 15px 5px rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  transition: 0.8s;
}

.row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  width: 100%;
}

.column {
  display: flex;
  flex-direction: column;
  flex-basis: 100%;
  flex: 1;
}

#note {
  font-family: Lato, sans-serif;
  font-size: 18px;
  line-height: 1.5;
  border-bottom-right-radius: 30px;
  position: absolute;
  top: 0;
  left: 0;
  width: 455px;
  background: white;
  padding: 10px;
}

#note h1 {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 12px;
}

#botinok {
  position: absolute;
  width: 250px;
  bottom: 0;
  right: 0;
}

#home {
  background: #eee;
  padding: 2px 5px 4px;
  border-radius: 4px;
  position: fixed;
  bottom: 4px;
  left: 6px;
  font-family: Lato, sans-serif;
  font-size: 16px;
  color: black;
  text-decoration: none;
  text-shadow:
    -1px -1px 2px white,
     1px -1px 2px white,
    -1px  1px 2px white,
     1px  1px 2px white;

}

#home:hover {
  text-decoration: underline;
}

#arrow {
  height: 7.5%;
  position: absolute;
  left: 65%;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 700px) {
  body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
  }

  #note {
    position: static;
    order: -1;
    width: 100%;
    border-radius: 0;
    padding: 14px 16px;
    font-size: 16px;
  }

  #note h1 {
    font-size: 19px;
    margin-bottom: 8px;
  }

  #spin_the_wheel {
    width: min(98vw, 98vmin);
    margin-block: auto;
  }

  #botinok {
    position: fixed;
    width: 140px;
    pointer-events: none;
  }
}

/* Portrait tablets: the note is a full-width square banner, the rest is desktop-size */
@media (min-width: 701px) and (orientation: portrait) {
  body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  #note {
    position: static;
    order: -1;
    width: 100%;
    border-radius: 0;
    padding: 14px 16px;
  }

  #spin_the_wheel {
    margin-block: auto;
  }
}

/* Portrait phones: blow the wheel up and hang it to the left */
@media (max-width: 700px) and (orientation: portrait) {
  body {
    overflow-x: hidden;
  }

  #spin_the_wheel {
    width: min(142vw, 92vh);
    align-self: flex-end;
  }

  /* keep the label at 3% of the enlarged wheel width */
  #spin {
    font-size: min(4.26vw, 2.76vh);
  }
}
