*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --text-color: rgb(53, 53, 53);
  --background-sq-size: 3.5em;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: monospace;
}

.background-pattern {
  background-color: #e5e5f7;
  opacity: 1;
  background-image: linear-gradient(#3a3a3a 1px, transparent 1px), linear-gradient(to right, #121213 1px, #e4e4e4 1px);
  animation: backgroundStart 0.5s ease 0s 1 forwards;
  width: 100vw;
  height: 100vh;
  position: absolute;
  z-index: -1;
  filter: blur(1px);
}

.glass-effect {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  box-shadow: inset 0 0 2000px rgba(255, 255, 255, 0.9);
  filter: blur(10px);
  z-index: -1;
}

section.game {
  display: flex;
  flex-direction: column;
  padding-top: 2.5rem;
}
section.game .score-container {
  display: flex;
  position: relative;
  gap: 20px;
  font-size: 2em;
  justify-content: space-between;
  padding: 10px 20px;
  color: #141414;
  text-shadow: 1px 1px 2px gray;
  background-color: rgba(253, 253, 253, 0.4);
  border: 1px solid black;
  border-radius: 3px;
}
section.game .g2048 {
  box-shadow: 2px 2px 5px gray;
  border-radius: 3px;
  height: 400px;
  width: 400px;
  padding: 20px;
  margin: 10px 0px;
  border: 1px solid black;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 10px;
  background-color: white;
}
section.game .g2048 .square {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2em;
  border-radius: 3px;
  border: 1px solid #3b3b3b;
  background-color: white;
  background-color: #ef9b4e;
  color: #444444;
  box-shadow: 1px 1px 5px gray;
}
section.game .g2048 div.message {
  grid-area: 2/1/4/5;
  z-index: 2;
  background-color: white;
  border: 3px solid #3a3a3a;
  border-radius: 6px;
  opacity: 0;
  display: flex;
  font-size: 2em;
  justify-content: center;
  align-items: center;
  justify-self: center;
  align-self: center;
  width: 0%;
  height: 0%;
  transition: opacity, width, height;
  transition-timing-function: cubic-bezier(0.64, 0.57, 0.67, 1.33);
  transition-duration: 0.5s;
}
section.game .bottom-msg {
  font-size: 1.5em;
  position: relative;
}

@keyframes moveup {
  from {
    padding-bottom: 1.5em;
  }
  to {
    padding-bottom: 0;
  }
}
@keyframes movedown {
  from {
    padding-top: 1.5em;
  }
  to {
    padding-top: 0;
  }
}
@keyframes moveright {
  from {
    padding-left: 1.5em;
  }
  to {
    padding-left: 0;
  }
}
@keyframes moveleft {
  from {
    padding-right: 1.5em;
  }
  to {
    padding-right: 0;
  }
}
@keyframes backgroundStart {
  from {
    background-size: 10px 10px;
  }
  to {
    background-size: var(--background-sq-size) var(--background-sq-size);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@media screen and (max-width: 900px) {
  section.game {
    padding-top: 0;
    height: 100%;
    overflow: hidden;
    justify-content: center;
  }
  section.game .g2048 {
    width: 340px;
    height: 340px;
  }
}

/*# sourceMappingURL=style.css.map */
