:root {
  --cuadrado-tamanio: 60px;
}

html,
body {
  height: 100vh;
  overflow: hidden;
  margin: 0;
  font-family: 'Pacifico', sans-serif;
  color: #424242;
  text-shadow: 1px 1px #fafafa, 1px -1px #fafafa, -1px -1px #fafafa,
    -1px 1px #fafafa;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  /* background: linear-gradient(to bottom, #c2185b, #e0e0e0, #fafafa, #fff); */
  background-image: url('2-02.svg');
  background-size: cover;
  background-position-y: 50%;
  padding: 0 10px;
  user-select: none;
}

p {
  margin: 0;
}

i {
  color: #fafafa;
  text-shadow: 1px 1px #424242, 1px -1px #424242, -1px -1px #424242,
    -1px 1px #424242;
}

.titulo {
  text-align: center;
  font-size: 45px;
  margin-top: 0;
  font-weight: 800;
  color: #d81b60;
  margin-bottom: 60px;
}

.contenedor {
  max-width: 500px;
  width: 500px;
}

.contenedor-grilla {
  width: 100%;
  border-radius: 10px;
  padding: 10px;
  box-sizing: border-box;
  border: 3px solid #fafafa;
  background: rgb(0 0 0 / 73%);
}

#grilla {
  position: relative;
  width: 100%;
  height: 500px;
}

.control {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;

  background-color: #d81b60;
  padding: 5px 10px;
  border-radius: 8px;
  border: 3px solid #fafafa;
  color: #fafafa;
  text-shadow: 1px 1px #424242, 1px -1px #424242, -1px -1px #424242,
    -1px 1px #424242;
  box-shadow: 0px 0px 5px 4px #00000021 inset;
}

.contenedor-puntaje {
  display: flex;
  align-items: center;
  font-size: 22px;
}

.contenedor-puntaje p {
  display: flex;
}

#combo {
  width: 20px;
  margin-right: 20px;
}

#puntaje {
  margin-left: 15px;
}

#boton-ayuda,
#boton-reiniciar {
  background-color: transparent;
  border: 0;
  padding: 5px;
  color: #424242;
  font-size: 20px;
  cursor: pointer;
}

#boton-reiniciar i {
  transform: rotate(0);
  transition: 0.2s;
}

#boton-reiniciar:focus-within i,
#boton-reiniciar:hover i {
  transform: rotate(-180deg);
}

.cuadrado {
  width: var(--cuadrado-tamanio);
  height: var(--cuadrado-tamanio);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 5px;
  position: absolute;
  cursor: pointer;
  transition: background-color 0.4s, top 0.4s, left 0.4s, bottom 0.4s,
    right 0.4s, transform 0.2s;
  font-size: 40px;
  border: 0;
  background: transparent;
  box-sizing: border-box;
  line-height: 1;
  padding: 7px;
  transform: scale(1);
}

.emoji {
  width: 100%;
  transform: scale(1);
  transition: 0.2s;
}

.cuadrado.nuevo {
  transform: scale(0.5);
}

.cuadrado.eliminado {
  transform: scale(0);
}

.cuadrado.seleccionado {
  border: 1px solid #fafafa;
}

.cuadrado.seleccionado .emoji {
  transform: scale(1.1);
}

.cuadrado.presionado {
  border-style: dashed;
}

.contenedor-tiempo {
  width: 110px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 25px;
  margin: 20px auto 0;

  background-color: #d81b60;
  padding: 10px 10px;
  border-radius: 8px;
  border: 3px solid #fafafa;
  color: #fafafa;
  text-shadow: 1px 1px #424242, 1px -1px #424242, -1px -1px #424242,
    -1px 1px #424242;
  box-shadow: 0px 0px 5px 4px #00000021 inset;
}

.tiempo-restante {
  margin: 0;
  margin-left: 10px;
  line-height: 1;
}

.overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  overflow-y: auto;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 10000;
  transition: opacity 0.3s;
}

.modal {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 478px;
  background-color: #fff;
  text-align: center;
  border-radius: 5px;
  margin: 20px auto;
  display: inline-block;
  vertical-align: middle;
  z-index: 10001;
  transform: translate(-50%, -50%);
  font-family: 'Montserrat', sans-serif;
  text-shadow: none;
  letter-spacing: -0.5px;
  line-height: 1.3;
  text-align: center;
}

#modal-bienvenida {
  text-align: left;
}

.modal-contenido {
  padding: 0 25px;
}

.modal-titulo {
  color: rgba(0, 0, 0, 0.65);
  font-weight: 600;
  text-transform: none;
  position: relative;
  display: block;
  padding: 13px 16px;
  font-size: 27px;
  line-height: normal;
  text-align: center;
}

.modal-texto {
  margin-bottom: 20px;
}

.boton {
  color: #fff;
  border: none;
  box-shadow: none;
  border-radius: 5px;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 24px;
  margin: 0;
  cursor: pointer;
  background-color: #d81b60;
  margin-left: 5px;
}

.modal-botones {
  text-align: right;
  padding-top: 13px;
  margin-top: 13px;
  padding: 13px 25px 18px;
  border-radius: inherit;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.boton:hover {
  background-color: #c2185b;
}

.boton-cancelar {
  background-color: #eeeeee;
  color: #000;
}

.boton-cancelar:hover {
  background-color: #e0e0e0;
}

.oculto {
  display: none;
}

@media (max-width: 500px) {
  .cuadrado {
    font-size: 35px;
  }
}
