* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Libre Baskerville", serif;
  background-color: #ddd862;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 50px;
}

.rng-form label,
.rng-form input {
  color: #4a2011;
  font-size: 40px;
}

.rng-form input {
  background-color: #e6dbc2;
  width: 160px;
  border: none;
  box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.25);
  margin-left: 18px;
  outline: none;
  text-align: center;
}

.rng-form label:not(:first-child) {
  margin-left: 32px;
}

.dart-board {
  position: relative;
  display: flex;
  width: fit-content;
  height: fit-content;
  margin-top: 50px;
}

.board {
  filter: drop-shadow(0px 10px 4px rgba(0, 0, 0, 0.25));
  max-width: 100%;
  height: auto;
}

#marker {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  visibility: hidden;
  display: flex;
}

.tooltip {
  position: absolute;
  left: 125%;
  bottom: 100%;
  border-radius: 40px;
  border: 12px solid #4a2011;
  background-color: #ddd862;
  width: 208px;
  line-height: 60px;
  text-align: center;
  font-size: 40px;
  color: #4a2011;
  visibility: hidden;
  min-width: min-content;
  padding: 0 15px;
}

.tooltip-right {
  left: unset;
  right: 125%;
}

.pick-button {
  background: #8f3124;
  box-shadow: 0px 10px 4px rgba(0, 0, 0, 0.25);
  border-radius: 20px;
  font-size: 40px;
  line-height: 50px;
  color: #e6dbc2;
  width: 170px;
  height: 68px;
  border: none;
  outline: none;
  margin-top: 75px;
}

.error {
  color: #8F3124;
  font-weight: bold;
  visibility: hidden;
  font-size: 18px;
}

.error.show {
  visibility: visible;
}

/* media queries */


@media screen and (max-width: 767.99px){

  .min-max {
    width:50%;
  }

  .marker-img {
    width: 15px;
    height: 15px;
  }

  .rng-form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .rng-form input, .rng-form label {
    margin: 0;
  }
  .rng-form label:not(:first-child) {
    margin: 0;
    margin-top: 10px;
  }
  .pick-button {
    margin-top: 50px;
  }
}

@media (max-width: 575.98px) {

  .min-max {
    width:50%;
  }
  
  .main-content {
    margin: 50px 20px;
  }
  .marker-img {
    width: 10px;
    height: 10px;
  }
  .rng-form label, .rng-form input {
    font-size: 32px;
  }
  .pick-button {
    margin-top: 32px;
    font-size: 32px;
    height: 48px;
    width: 140px;
    line-height: unset;
  }

  #tooltip {
    width: 120px;
    line-height: 40px;
    font-size: 20px;
    border-width: 6px;
  }
  .error {
    font-size: 12px;
  }
}