body {
  margin: 0px;
  background-color: #b1cff0;
}

#page {
  min-height: 100vh;
  width: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  align-content: center;
  margin-bottom: 0px;
  padding-bottom: 0px;
}

#game {
  display: none;
}

#board,
.boardInfo {
  max-width: 100vw;
}

#board {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  background-color: #456990;
}

#start .boardeInfo {
  font-size: 25px;
}

@keyframes pulseOut {
  0% {
    width: 100px;
    height: 100px;
  }
  100% {
    width: 150px;
    height: 150px;
  }
}

@keyframes pulseIn {
  0% {
    width: 60px;
    height: 60px;
  }
  100% {
    width: 100px;
    height: 100px;
  }
}

#startOut {
  background-color: #7a7a7aa8;
  height: 100px;
  width: 100px;
  animation: 1s infinite normal pulseOut;
  -webkit-box-shadow: 10px 10px 58px 14px #7a7a7aa8;
  -moz-box-shadow: 10px 10px 58px 14px #7a7a7aa8;
  box-shadow: 10px 10px 58px 14px #7a7a7aa8;
}

#startIn {
  background-color: #4b4a4a67;
  height: 60px;
  width: 60px;
  animation-delay: 0.5s;
  animation: 1s infinite normal pulseIn;
}

#startOut,
#startIn {
  border-radius: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  align-content: center;
}

#gameOver {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  align-content: center;
}

.highScore {
  color: #5c5c5c;
}

#conteo {
  display: none;
  position: absolute;
  font-size: 2em;
  color: white;
}

.boardInfo {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

#start {
  background-color: transparent;
  transform: scale(3);
  border: none;
  color: white;
}

#start:hover {
  cursor: pointer;
}

#scoreBoard {
  display: inline-flex;
}

.square {
  aspect-ratio: 1;
  height: 8vh;
  width: auto;
}

.emptySquare {
  background-color: transparent;
}

.snakeSquare {
  background-color: #4b2626;
  background-image: url("../img//patron-costuras-piel-serpiente-uselo-papel-tapiz-papel-regalo-tela-ilustracion-vectorial_508684-180.jpg");
  background-size: cover;
}

.scalex2 {
  transform: scale(2);
}

.snakeSquareHead {
  background-image: url("../img/cabeza.png");
  background-size: contain;
}

.snakeSquareHeadOpen {
  background-image: url("../img/cabeza-boca-abierta.png");
  background-size: contain;
}

.movementHeadRight {
  transform: rotate(90deg);
}

.movementHeadLeft {
  transform: rotate(270deg);
}

.movementHeadDown {
  transform: rotate(180deg);
}

.snakeSquareTail {
  background-color: black;
}

.movementTailRight {
  border-color: green;
  border-radius: 50% 0 0 50%;
}

.movementTailLeft {
  border-color: green;
  border-radius: 0 50% 50% 0;
}

.movementTailUp {
  border-color: green;
  border-radius: 0 0 50% 50%;
}

.movementTailDown {
  border-color: green;
  border-radius: 50% 50% 0 0;
}

.foodSquare {
  background-color: transparent;
  background-image: url("../img/58660f657d90850fc3ce2a41.png");
  background-size: contain;
}

.movementSquareRightUp {
  border-radius: 0 0 50% 0 !important;
}

.movementSquareRightDown {
  border-radius: 0 50% 0 0;
}

.movementSquareLeftUp {
  border-radius: 0 0 0 50%;
}

.movementSquareLeftDown {
  border-radius: 50% 0 0 0;
}

.movementSquareUpRight {
  border-radius: 50% 0 0 0;
}

.movementSquareUpLeft {
  border-radius: 0 50% 0 0;
}

.movementSquareDownRight {
  border-radius: 0 0 0 50%;
}

.movementSquareDownLeft {
  border-radius: 0 0 50% 0;
}

.bg {
  animation: slide 3s ease-in-out infinite alternate;
  background-image: linear-gradient(45deg, rgb(255, 255, 255) 50%, #b1cff0 50%);
  bottom: 0;
  left: -50%;
  opacity: 0.5;
  position: fixed;
  right: -50%;
  top: 0;
  z-index: -1;
}

.bg2 {
  animation-direction: alternate-reverse;
  animation-duration: 4s;
}

.bg3 {
  animation-duration: 5s;
}

@keyframes slide {
  0% {
    transform: translateX(-25%);
  }
  100% {
    transform: translateX(25%);
  }
}

#playAgainButton {
  -webkit-border-radius: 28;
  -moz-border-radius: 28;
  border-radius: 28px;
  font-family: Arial;
  color: #fafafa;
  font-size: 20px;
  background: #85bbf2;
  padding: 10px 20px 10px 20px;
  text-decoration: none;
}

#playAgainButton:hover {
  background: #3cb0fd;
  background-image: -webkit-linear-gradient(top, #3cb0fd, #3498db);
  background-image: -moz-linear-gradient(top, #3cb0fd, #3498db);
  background-image: -ms-linear-gradient(top, #3cb0fd, #3498db);
  background-image: -o-linear-gradient(top, #3cb0fd, #3498db);
  background-image: linear-gradient(to bottom, #3cb0fd, #3498db);
  text-decoration: none;
}

#controlsLeft,
#controlsRight {
  display: none;
}

#controlsLeft svg,
#controlsRight svg {
  height: 4em;
  width: auto;
  color: #35537275;
}

#controlsLeft svg:active,
#controlsRight svg:active {
  color: #355372;
}

#aviso-movil-horizontal {
  display: none;
}

@media only screen and (orientation: portrait) {
  #startWelcome,
  #startButton,
  #game,
  #gameOver,
  #conteo,
  #controlsLeft,
  #controlsRight {
    display: none;
  }

  #aviso-movil-horizontal {
    display: block;
  }
}

@media only screen and (orientation: landscape) {
  #aviso-movil-horizontal {
    display: none;
  }

  #startWelcome {
    min-height: 10vh;
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: center;
    margin-top: 0px;
  }

  #startButton {
    min-height: 30vh;
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: center;
  }
}

footer {
  position: absolute;
  bottom: 0px;
  width: 100vw;
  align-items: center;
  align-content: center;
  justify-content: center;
  text-align: center;
  font-size: 0.8em;
  padding-bottom: 0px;
  margin-bottom: 0px;
}

footer p{
  margin-bottom: 3px;
  color: #5c5c5c;
}

footer p a{
  color: #3d3d3d;
  text-decoration: wavy;
}
