form {
  padding: 1.5rem;
  background-color: rgb(25, 25, 25);
  border-radius: 0.5rem;
}

fieldset {
  border-color: var(--accent-color);
  border-width: 3px;
  border-style: solid;
  border-image: initial;
  padding: 1em;
}

legend {
  border: 3px solid var(--accent-color);
  border-radius: 1em;
  padding: 0.2em 0.5em;
  font-weight: 700;
}

fieldset .checkboxes > * + * {
  margin-top: 0.5rem;
}

form > * + * {
  margin-top: 1.5rem;
}

input[type="checkbox"] {
  width: 1.5em;
  height: 1.5em;
  margin-right: 0.65rem;
}

.checkboxes label {
  display: inline-block;
  padding-right: 10px;
  white-space: nowrap;
}
.checkboxes input {
  vertical-align: middle;
}
.checkboxes label span {
  vertical-align: middle;
}

.smallFieldset{
  border-color: var(--accent-color-second);
  border-style: none none none solid;
  border-width: 2px;
  border-image: initial;
  padding: .5em;
  margin-bottom: 1em;
}

.smallFieldset legend{
  border: 2px solid var(--accent-color-second);
  border-radius: 0;
  padding: 0.1em 0.25em;
  font-weight: 500;
}

/* The switch - the box around the slider */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: var(--text-color);
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: var(--accent-color);
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

hr {
  border-top: 2px solid var(--accent-color);
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type=number] {
  margin: 8px 0;
  box-sizing: border-box;
  border: 3px solid var(--accent-color);
  -webkit-transition: 0.5s;
  transition: 0.5s;
  outline: none;
  padding: 7px 0 5px 6px;
  -moz-appearance: textfield;
}

input:focus{
  border: 3px solid var(--accent-color-dark);
}

#highScores{
  color: var(--accent-color-second);
}

#highScores:hover{
  color: var(--text-color);
  text-decoration: underline;
}

#highScores:active{
  color: var(--accent-color-second);
  text-decoration: underline;
}

#modalText{
  display: flex;
  align-items: center;
  align-content: center;
  justify-content: center;
}

.highScoresTable{
  border-collapse: collapse;
  width: 15em;
  margin: 0;
  text-align: left;
}

table thead tr th + th,
table tbody tr td + td {
  text-align: right;
}

@media only screen and (min-width: 60em) {
  .content{
    width: 50em;
    margin: auto;
  }

  .highScoresTable{
    width: 20em;
  }
}
