@import url("https://fonts.googleapis.com/css2?family=Bangers&display=swap");

* {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Bangers", cursive;
  display: flex;
  justify-content: center;
  align-content: center;
  background: #f2f2f2;
}

h1 {
  font-size: 2.5em;
}
h2 {
  font-size: 1.5em;
}

.contenedor {
  position: relative;
  top: 0.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

.tablero {
  position: relative;
  top: 2em;
  display: flex;
  flex-direction: row;
  align-content: center;
  justify-content: space-around;
}

.contador {
  font-size: 1.2em;
  padding: 0.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin: -4em 0em 0em 0em;
}

.cuenta {
  width: 3em;
  height: 3em;
  border-radius: 15px;
  background: #000000c9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.5em;
  font-weight: bold;
  bottom: 40px;
  position: relative;
  margin: 2em 0em 0em 0em;
}

.botonera {
  display: flex;
  position: relative;
  flex-direction: column;
  top: 0px;
}
.fila {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-content: center;
}

.btn {
  font-family: "Bangers", cursive;
  border-radius: 15px;
  background: #22a6c3;
  border: none;
  outline: none;
  margin: 5px;
  cursor: pointer;
  transition: all 0.4s;
  color: #ffffff;
  font-size: 3em;
  width: 2em;
  height: 2em;
}

.btn:hover {
  background: #4eebaf;
  box-shadow: 0 0 15px #00000083;
}

.btn:disabled,
.btn[disabled] {
  background-color: #0b3746;
}

.reset {
  height: 1.75em;
  width: 1.75em;
  border-radius: 50%;
  margin-top: 0.25em;
  background: #e67676;
  line-height: 1.65em;
}

.sugerir {
  height: 2em;
  width: 2em;
  border-radius: 50%;
  margin-top: 0.2em;
  background: #0e8a37;
}

.estado {
  position: relative;
  top: 20px;

  display: flex;
  flex-direction: column;
}

.estado_vivo {
  font-size: 2em;
}

.reiniciar {
  position: relative;
  top: 10px;
  font-size: 16px;
  display: none;
}

.circle {
  padding: 5px;
  color: #ffffff;
  font-size: 14px;
  border-radius: 50px;
  background: #d30303;
}

.foot {
  margin: 5em;
}

.ganador {
  animation: text-shadow 1.5s ease-in-out infinite;
  font-size: 4em;
  font-weight: 900;
  line-height: 1;
}

.btn_ganador {
  animation: text-shadow 1.5s ease-in-out infinite;
  background-color: #0e8a37;
}

@keyframes text-shadow {
  0% {
    transform: translateY(0);
    text-shadow: 0 0 0 #0c2ffb, 0 0 0 #2cfcfd, 0 0 0 #fb203b, 0 0 0 #fefc4b;
  }

  20% {
    transform: translateX(-1em);
    text-shadow: 0 0.125em 0 #0c2ffb, 0 0.25em 0 #2cfcfd, 0 -0.125em 0 #fb203b,
      0 -0.25em 0 #fefc4b;
  }

  40% {
    transform: translateX(0.5em);
    text-shadow: 0 -0.0625em 0 #0c2ffb, 0 -0.125em 0 #2cfcfd,
      0 0.0625em 0 #fb203b, 0 0.125em 0 #fefc4b;
  }

  60% {
    transform: translateX(-0.25em);
    text-shadow: 0 0.03125em 0 #0c2ffb, 0 0.0625em 0 #2cfcfd,
      0 -0.03125em 0 #fb203b, 0 -0.0625em 0 #fefc4b;
  }

  80% {
    transform: translateX(0);
    text-shadow: 0 0 0 #0c2ffb, 0 0 0 #2cfcfd, 0 0 0 #fb203b, 0 0 0 #fefc4b;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

.toggle-button-cover {
  display: table-cell;
  position: relative;
  width: 200px;
  height: 140px;
  box-sizing: border-box;
}

.button-cover {
  height: 100px;
}

.button-cover:before {
  counter-increment: button-counter;
  content: counter(button-counter);
  position: absolute;
  right: 0;
  bottom: 0;
  color: #d7e3e3;
  font-size: 12px;
  line-height: 1;
  padding: 5px;
}

.button-cover,
.knobs,
.layer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.button {
  position: relative;
  top: 50%;
  width: 148px;
  height: 72px;
  margin: -30px auto 0 auto;
  overflow: hidden;
}

.button.r,
.button.r .layer {
  border-radius: 100px;
}

.button.b2 {
  border-radius: 2px;
}

.checkbox {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 3;
}

.knobs {
  z-index: 2;
}

.layer {
  width: 100%;
  background-color: #5d5d5d;
  transition: 0.3s ease all;
  z-index: 1;
}

/* Button 1 */
#button-1 .knobs:before {
  content: "NO";
  position: absolute;
  top: 8px;
  left: 8px;
  width: 50px;
  height: 40px;
  color: #fff;
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  line-height: 1;
  padding: 9px 4px;
  background-color: #d52424;
  border-radius: 50%;
  transition: 0.3s cubic-bezier(0.18, 0.89, 0.35, 1.15) all;
  -webkit-transition: 0.3s cubic-bezier(0.18, 0.89, 0.35, 1.15) all;
  -moz-transition: 0.3s cubic-bezier(0.18, 0.89, 0.35, 1.15) all;
  -ms-transition: 0.3s cubic-bezier(0.18, 0.89, 0.35, 1.15) all;
  -o-transition: 0.3s cubic-bezier(0.18, 0.89, 0.35, 1.15) all;
}

#button-1 .checkbox:checked + .knobs:before {
  content: "SI";
  left: 84px;
  background-color: #0e8a37;
}

#button-1 .checkbox:checked ~ .layer {
  background-color: #d2d2d2;
}

#button-1 .knobs,
#button-1 .knobs:before,
#button-1 .layer {
  transition: 0.3s ease all;
}
