:root {
  /* Colors */
  --normal-color: #333333;
  --base-color: #f7f7f7;
  --primary-color: #123456;
}

/* Reset */
article,
aside,
figure,
footer,
header,
section {
  display: block;
}

body,
button,
input,
select,
textarea,
pre,
code {
  font-family: "Press Start 2P";
}

/* Button */
.button {
  cursor: pointer;
  outline: none;
  padding: 10px 12px;
  border: none;
  position: relative;
}
.button::before,
.button::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-style: solid;
  border-color: var(--normal-color);
  box-sizing: content-box;
}
.button::before {
  top: -3px;
  left: 0;
  border-left: 6px;
  border-right: 6px;
}
.button::after {
  top: 0;
  left: -3px;
  border-top: 6px;
  border-bottom: 6px
}

.button {
  background-color: var(--base-color);
  box-shadow: inset -4px -4px 0 0 #ADAFBC;
}
.button:hover {
  background-color: #e7e7e7;
  box-shadow: inset -6px -6px 0 0 #ADAFBC;
}
.button:active {
  box-shadow: inset 4px 4px 0 0 #ADAFBC;
}

.button.-primary {
  color: var(--base-color);
  background-color: #92CC41;
  box-shadow: inset -4px -4px 0 0 #4AA52E;
}
.button.-primary:hover {
  background-color: #76c442;
  box-shadow: inset -6px -6px 0 0 #4AA52E;
}
.button.-primary:active {
  box-shadow: inset 4px 4px 0 0 #4AA52E;
}

.button.-success {
  color: var(--base-color);
  background-color: #209cee;
  box-shadow: inset -4px -4px 0 0 #006bb3;
}
.button.-success:hover {
  background-color: #108de0;
  box-shadow: inset -6px -6px 0 0 #006bb3;
}
.button.-success:active {
  box-shadow: inset 4px 4px 0 0 #006bb3;
}

.button.-warning {
  color: var(--base-color);
  background-color: #F7D51D;
  box-shadow: inset -4px -4px 0 0 #E59400;
}
.button.-warning:hover {
  background-color: #F2C409;
  box-shadow: inset -6px -6px 0 0 #E59400;
}
.button.-warning:active {
  box-shadow: inset 4px 4px 0 0 #E59400;
}

.button.-error {
  color: var(--base-color);
  background-color: #E76E55;
  box-shadow: inset -4px -4px 0 0 #8C2022;
}
.button.-error:hover {
  background-color: #CE372B;
  box-shadow: inset -6px -6px 0 0 #8C2022;
}
.button.-error:active {
  box-shadow: inset 4px 4px 0 0 #8C2022;
}

/* Radios */
.radios {
  display: flex;
  flex-direction: column;
}
.radios .radio {
  cursor: pointer;
}
.radios input[type="radio"] {
  visibility: hidden;
}
.radios input[type="radio"]::before {
  visibility: visible;
  content: "";
  animation: blink 1s infinite steps(1);
}
.radios input[type="radio"]:checked::before {
  visibility: visible;
  content: "\203A";
}
._dark .radios input[type="radio"]:checked::before {
  color: var(--base-color);
}

/* Checkbox */
.checkbox {
  cursor: pointer;
}
.checkbox input[type="checkbox"] {
  visibility: hidden;
  position: relative;
}
.checkbox input[type="checkbox"]::before {
  visibility: visible;
  content: "";
  position: absolute;
  top: -12px;
  left: -12px;

  width: 2px;
  height: 2px;
  background: transparent;
}
.checkbox input[type="checkbox"]::before {
  box-shadow: 2px 2px 0 transparent, 4px 2px 0 transparent,
    6px 2px 0 transparent, 8px 2px 0 transparent, 10px 2px 0 transparent,
    12px 2px 0 transparent, 14px 2px 0 transparent, 16px 2px 0 transparent,
    18px 2px 0 transparent, 20px 2px 0 transparent, 22px 2px 0 transparent,
    24px 2px 0 transparent, 2px 4px 0 transparent, 4px 4px 0 transparent,
    6px 4px 0 transparent, 8px 4px 0 transparent, 10px 4px 0 transparent,
    12px 4px 0 transparent, 14px 4px 0 transparent, 16px 4px 0 transparent,
    18px 4px 0 transparent, 20px 4px 0 transparent, 22px 4px 0 transparent,
    24px 4px 0 transparent, 2px 6px 0 transparent, 4px 6px 0 transparent,
    6px 6px 0 var(--normal-color), 8px 6px 0 var(--normal-color), 10px 6px 0 var(--normal-color), 12px 6px 0 var(--normal-color),
    14px 6px 0 var(--normal-color), 16px 6px 0 var(--normal-color), 18px 6px 0 var(--normal-color),
    20px 6px 0 var(--normal-color), 22px 6px 0 transparent, 24px 6px 0 transparent,
    2px 8px 0 transparent, 4px 8px 0 transparent, 6px 8px 0 var(--normal-color),
    8px 8px 0 transparent, 10px 8px 0 transparent, 12px 8px 0 transparent,
    14px 8px 0 transparent, 16px 8px 0 transparent, 18px 8px 0 transparent,
    20px 8px 0 var(--normal-color), 22px 8px 0 transparent, 24px 8px 0 transparent,
    2px 10px 0 transparent, 4px 10px 0 transparent, 6px 10px 0 var(--normal-color),
    8px 10px 0 transparent, 10px 10px 0 transparent, 12px 10px 0 transparent,
    14px 10px 0 transparent, 16px 10px 0 transparent, 18px 10px 0 transparent,
    20px 10px 0 var(--normal-color), 22px 10px 0 transparent, 24px 10px 0 transparent,
    2px 12px 0 transparent, 4px 12px 0 transparent, 6px 12px 0 var(--normal-color),
    8px 12px 0 transparent, 10px 12px 0 transparent, 12px 12px 0 transparent,
    14px 12px 0 transparent, 16px 12px 0 transparent, 18px 12px 0 transparent,
    20px 12px 0 var(--normal-color), 22px 12px 0 transparent, 24px 12px 0 transparent,
    2px 14px 0 transparent, 4px 14px 0 transparent, 6px 14px 0 var(--normal-color),
    8px 14px 0 transparent, 10px 14px 0 transparent, 12px 14px 0 transparent,
    14px 14px 0 transparent, 16px 14px 0 transparent, 18px 14px 0 transparent,
    20px 14px 0 var(--normal-color), 22px 14px 0 transparent, 24px 14px 0 transparent,
    2px 16px 0 transparent, 4px 16px 0 transparent, 6px 16px 0 var(--normal-color),
    8px 16px 0 transparent, 10px 16px 0 transparent, 12px 16px 0 transparent,
    14px 16px 0 transparent, 16px 16px 0 transparent, 18px 16px 0 transparent,
    20px 16px 0 var(--normal-color), 22px 16px 0 transparent, 24px 16px 0 transparent,
    2px 18px 0 transparent, 4px 18px 0 transparent, 6px 18px 0 var(--normal-color),
    8px 18px 0 transparent, 10px 18px 0 transparent, 12px 18px 0 transparent,
    14px 18px 0 transparent, 16px 18px 0 transparent, 18px 18px 0 transparent,
    20px 18px 0 var(--normal-color), 22px 18px 0 transparent, 24px 18px 0 transparent,
    2px 20px 0 transparent, 4px 20px 0 transparent, 6px 20px 0 var(--normal-color),
    8px 20px 0 var(--normal-color), 10px 20px 0 var(--normal-color), 12px 20px 0 var(--normal-color),
    14px 20px 0 var(--normal-color), 16px 20px 0 var(--normal-color), 18px 20px 0 var(--normal-color),
    20px 20px 0 var(--normal-color), 22px 20px 0 transparent, 24px 20px 0 transparent,
    2px 22px 0 transparent, 4px 22px 0 transparent, 6px 22px 0 transparent,
    8px 22px 0 transparent, 10px 22px 0 transparent, 12px 22px 0 transparent,
    14px 22px 0 transparent, 16px 22px 0 transparent, 18px 22px 0 transparent,
    20px 22px 0 transparent, 22px 22px 0 transparent, 24px 22px 0 transparent,
    2px 24px 0 transparent, 4px 24px 0 transparent, 6px 24px 0 transparent,
    8px 24px 0 transparent, 10px 24px 0 transparent, 12px 24px 0 transparent,
    14px 24px 0 transparent, 16px 24px 0 transparent, 18px 24px 0 transparent,
    20px 24px 0 transparent, 22px 24px 0 transparent, 24px 24px 0 transparent;
}
.checkbox input[type="checkbox"]:checked::before {
  box-shadow: 2px 2px 0 transparent, 4px 2px 0 transparent,
    6px 2px 0 transparent, 8px 2px 0 transparent, 10px 2px 0 transparent,
    12px 2px 0 transparent, 14px 2px 0 transparent, 16px 2px 0 transparent,
    18px 2px 0 transparent, 20px 2px 0 transparent, 22px 2px 0 transparent,
    24px 2px 0 transparent, 2px 4px 0 transparent, 4px 4px 0 transparent,
    6px 4px 0 transparent, 8px 4px 0 transparent, 10px 4px 0 transparent,
    12px 4px 0 transparent, 14px 4px 0 transparent, 16px 4px 0 transparent,
    18px 4px 0 transparent, 20px 4px 0 transparent, 22px 4px 0 transparent,
    24px 4px 0 transparent, 2px 6px 0 transparent, 4px 6px 0 transparent,
    6px 6px 0 var(--normal-color), 8px 6px 0 var(--normal-color), 10px 6px 0 var(--normal-color), 12px 6px 0 var(--normal-color),
    14px 6px 0 var(--normal-color), 16px 6px 0 var(--normal-color), 18px 6px 0 var(--normal-color),
    20px 6px 0 transparent, 22px 6px 0 var(--normal-color), 24px 6px 0 var(--normal-color),
    2px 8px 0 transparent, 4px 8px 0 transparent, 6px 8px 0 var(--normal-color),
    8px 8px 0 transparent, 10px 8px 0 transparent, 12px 8px 0 transparent,
    14px 8px 0 transparent, 16px 8px 0 transparent, 18px 8px 0 transparent,
    20px 8px 0 var(--normal-color), 22px 8px 0 var(--normal-color), 24px 8px 0 var(--normal-color),
    2px 10px 0 transparent, 4px 10px 0 transparent, 6px 10px 0 var(--normal-color),
    8px 10px 0 transparent, 10px 10px 0 transparent, 12px 10px 0 transparent,
    14px 10px 0 transparent, 16px 10px 0 transparent, 18px 10px 0 var(--normal-color),
    20px 10px 0 var(--normal-color), 22px 10px 0 transparent, 24px 10px 0 transparent,
    2px 12px 0 transparent, 4px 12px 0 transparent, 6px 12px 0 var(--normal-color),
    8px 12px 0 var(--normal-color), 10px 12px 0 transparent, 12px 12px 0 transparent,
    14px 12px 0 transparent, 16px 12px 0 var(--normal-color), 18px 12px 0 var(--normal-color),
    20px 12px 0 transparent, 22px 12px 0 transparent, 24px 12px 0 transparent,
    2px 14px 0 transparent, 4px 14px 0 transparent, 6px 14px 0 var(--normal-color),
    8px 14px 0 var(--normal-color), 10px 14px 0 var(--normal-color), 12px 14px 0 transparent,
    14px 14px 0 var(--normal-color), 16px 14px 0 var(--normal-color), 18px 14px 0 transparent,
    20px 14px 0 var(--normal-color), 22px 14px 0 transparent, 24px 14px 0 transparent,
    2px 16px 0 transparent, 4px 16px 0 transparent, 6px 16px 0 var(--normal-color),
    8px 16px 0 transparent, 10px 16px 0 var(--normal-color), 12px 16px 0 var(--normal-color),
    14px 16px 0 var(--normal-color), 16px 16px 0 transparent, 18px 16px 0 transparent,
    20px 16px 0 var(--normal-color), 22px 16px 0 transparent, 24px 16px 0 transparent,
    2px 18px 0 transparent, 4px 18px 0 transparent, 6px 18px 0 var(--normal-color),
    8px 18px 0 transparent, 10px 18px 0 transparent, 12px 18px 0 var(--normal-color),
    14px 18px 0 transparent, 16px 18px 0 transparent, 18px 18px 0 transparent,
    20px 18px 0 var(--normal-color), 22px 18px 0 transparent, 24px 18px 0 transparent,
    2px 20px 0 transparent, 4px 20px 0 transparent, 6px 20px 0 var(--normal-color),
    8px 20px 0 var(--normal-color), 10px 20px 0 var(--normal-color), 12px 20px 0 var(--normal-color),
    14px 20px 0 var(--normal-color), 16px 20px 0 var(--normal-color), 18px 20px 0 var(--normal-color),
    20px 20px 0 var(--normal-color), 22px 20px 0 transparent, 24px 20px 0 transparent,
    2px 22px 0 transparent, 4px 22px 0 transparent, 6px 22px 0 transparent,
    8px 22px 0 transparent, 10px 22px 0 transparent, 12px 22px 0 transparent,
    14px 22px 0 transparent, 16px 22px 0 transparent, 18px 22px 0 transparent,
    20px 22px 0 transparent, 22px 22px 0 transparent, 24px 22px 0 transparent,
    2px 24px 0 transparent, 4px 24px 0 transparent, 6px 24px 0 transparent,
    8px 24px 0 transparent, 10px 24px 0 transparent, 12px 24px 0 transparent,
    14px 24px 0 transparent, 16px 24px 0 transparent, 18px 24px 0 transparent,
    20px 24px 0 transparent, 22px 24px 0 transparent, 24px 24px 0 transparent;
}

/* Containr */
.container {
  padding: 20px 30px;
  position: relative;
}
.container::before {
  content: "";
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 2px;
  right: 2px;
  border: 4px solid;
  border-radius: 4px;
  z-index: -1;
}
.container::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  border-radius: 4px;
  z-index: -2;
}
.container._dark {
  color: var(--base-color);
}
.container._dark::before {
  border-color: var(--base-color);
}
.container._dark::after {
  background-color: var(--normal-color);
}

.container.-title {
  padding-top: 30px;
}
.container > .title {
  position: absolute;
  font-size: 1rem;
  top: 0px;
  padding: 0 6px;
  color: inherit;
  background-color: var(--base-color);
  color: inherit;
}
.container._dark > .title {
  background-color: var(--normal-color);
}

/* Helper */
._space-updown {
  margin: 20px 0;
}

._center {
  display: flex;
  justify-content: center;
}

@keyframes blink {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}
