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

body {
    overflow: hidden;
    height: 100vh;
    margin: 0;
    text-align: center;
}

.container {
  border: 8px solid black;
  box-shadow: 0 19px 38px rgb(0, 0, 0, 0.55), 0 15px 12px rgb(0, 0, 0, 0.60);
  background: linear-gradient(160deg, #ffffffff, #22fc51ff, #1acbe9ff, #282829ff);
  max-width: 420px;
  height: 100vh;
  max-height: 745px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  text-align: center;
  justify-content: space-between;
  position: absolute;
  z-index: 1;
}

h1{
  font-size: 35px;
  text-shadow: 2px 2px 8px rgb(39, 38, 38);
}

h2{
  font-size: 28px;
  margin-top: 10px;
}

#maquina-img{
  border: 2px solid black;
  width: 120px;
  height: 120px;
  display: flex;
  align-self: center;
}

#user-img{
  border: 2px solid black;
  width: 120px;
  height: 120px;
  display: flex;
  align-self: center;
}

.botones-container{
  display: flex;
  justify-content: center;
  align-content: center;
  margin-top: 30px;
}

.boton{
  background-color: transparent;
  border: 2px solid black;
  margin-right: 20px;
  max-width: 150px;
  height: auto;
}

.boton img{
  width: 100%;
  height: 100%;
  cursor: pointer;
}

#resultado{
  width: 50%;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: rgb(237, 6, 6);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 30px;
  font-weight: 900;
  padding: 5px 0px;
  margin: 20px auto;
  /* border-bottom: 8px rgb(250, 6, 6) dotted; */
}

.numero-1{
  background: rgb(238, 7, 7);
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;

  animation-name: loader;
  animation-duration: 2s;
  animation-delay: 4s;
  animation-timing-function: ease-in-out;
  animation-fill-mode: forwards;
}

.numero-2{
  background: rgb(33, 234, 7);
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;

  animation-name: loader;
  animation-duration: 2s;
  animation-delay: 2s;
  animation-timing-function: ease-in-out;
  animation-fill-mode: forwards;
}

.numero-3{
  background: rgb(232, 90, 1);
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;

  animation-name: loader;
  animation-duration: 2s;
  animation-timing-function: ease-in-out;
  animation-fill-mode: forwards;
}

@keyframes loader {
  0%{
      opacity:  1;
      visibility: visible;
  }

  95%{
      opacity: 1;
      visibility: visible;
  }

  100%{
      opacity: 0;
      visibility: hidden;
  }
}

.loader img{
  width: 300px;
  height: 300px;
  border-radius: 50%;
  margin: 10px;

  transform: scale(0);

  animation: scaling 2s ease-in-out infinite;
}

/* .loader div:nth-child(1){
  animation-delay: 0.2s;
}

.loader div:nth-child(2){
  animation-delay: 0.4s;
}

.loader div:nth-child(3){
  animation-delay: 0.6s;
} */

@keyframes scaling {
  0%, 100%{
      transform: scale(0.2);
  }

  40%{
      transform: scale(1);
  }

  50%{
      transform: scale(1);
  }
}
