html {
  overflow: auto; /* hidden for not moving screen*/
  height: 100%;
  margin: 0px;
}
body {
  background-color: #f7f7f7;
  overflow: auto; /* hidden for not moving screen*/
  margin: 0px;
  font-family: Arial, sans-serif;
  min-height: 100vh;
}

/* header styles */
header {
  background-color: #007bff;
  color: #fff;
  padding: 20px;
}
header * {
  margin: 0px;
}
h1, h2 {
  margin: 0;
}
h1 > a {
  font-size: 1em !important;
  border: 0px !important;
  padding: 0px !important;
  margin: 0px !important;
  text-decoration: none !important;
  color: white !important;
}
main {
  margin: 0 auto;
  padding: 20px;
}
p {
  font-size: 1.2rem;
  text-align:justify;  
  text-justify: auto;
}
p > a {
  font-size: 1.2rem !important;
}
/* Flip Button Styling */
.flip-btn {
  /*animation: scale 0.3s ease-in-out;*/
  font-size: 2em;
  margin: 10px;
  /*width: min(90vw, 72vh);*/
  width: 90%;
  background-color: #dcdcdc;
  color: #000;
  padding: 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
.flip-btn.scale {
  animation: scale 0.3s ease-in-out;
}

/* Game Info Styling */
.game-info {
  animation: scale 0.3s ease-in-out;
  /*display: flex;*/
  /*flex-wrap: wrap;*/
  justify-content: center;
  margin-top: 10px;
  margin: 5px;
/*width: min(100vw, 80vh);*/
}

.game-info-label {
  font-size: 1.5em;
  margin-right: 10px;
  font-weight: bold;
}

.game-info-item {
  font-size: 1.2em;
  margin-bottom: 10px;
}

/* Responsive Styling */
/*@media only screen and (max-width: 768px) {
  .board {
    width: 80vw;

  }
}*/

/* Animations */
.board {
  margin: none;
  padding: none;
  margin-top: 1px;
  animation: scale 0.3s ease-in-out;
}
@keyframes scale {
  0% {
    transform: scale(0.0);
  }
  100% {
    transform: scale(1);
  }
}

.flip-btn {

  transition: transform 0.5s ease-in-out;
}

.flip-btn.pop {
  animation: pop 0.4s ease-in-out;
}

@keyframes pop {
  0% {
    transform: scale(1);
  }
  33% {
    transform: scale(0.7);
  }
  67% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

.container {
  margin: none;
  display: grid;
  grid-template-areas:
    'board other'; /*ordenador*/
  /*grid-template-areas:
    'board'
    'other';*/ /*movil*/

    /*OJO ESTA ABAJO EN SCRIPT*/
  gap: 5px;
  padding: 0px;
  padding-top: 5px;
  width: 100vw;
  margin: 0px;

}

/*CSS for checkbox*/
.check {
  cursor: pointer;
  position: relative;
  margin: auto;
  width: 18px;
  height: 18px;
  -webkit-tap-highlight-color: transparent;
  transform: translate3d(0, 0, 0);
}

.check:before {
  content: "";
  position: absolute;
  top: -15px;
  left: -15px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(34,50,84,0.03);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.check svg {
  position: relative;
  z-index: 1;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke: #c8ccd4;
  stroke-width: 1.5;
  transform: translate3d(0, 0, 0);
  transition: all 0.2s ease;
}

.check svg path {
  stroke-dasharray: 60;
  stroke-dashoffset: 0;
}

.check svg polyline {
  stroke-dasharray: 22;
  stroke-dashoffset: 66;
}

.check:hover:before {
  opacity: 1;
}

.check:hover svg {
  stroke: #4285f4;
}

#auto-flip:checked + .check svg {
  stroke: #4285f4;
}

#auto-flip:checked + .check svg path {
  stroke-dashoffset: 60;
  transition: all 0.3s linear;
}

#auto-flip:checked + .check svg polyline {
  stroke-dashoffset: 42;
  transition: all 0.2s linear;
  transition-delay: 0.15s;
}


/*background-shapes*/
@keyframes circle {
  from {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
  }
  to {
    transform: translate(-50%, -50%) scale(10);
    opacity: 1;
  }
}

@keyframes rect {
  from {
    transform: translate(-50%, -50%) scale(0) rotate(0);
    opacity: 0;
  }
  to {
    transform: translate(-50%, -50%) scale(10) rotate(360deg);
    opacity: 1;
  }
}

.background-shapes {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}

.background-shapes__circle {
  position: absolute;
  top: 20%;
  left: 30%;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(255, 180, 0, 0.2);
  animation: circle 10s linear infinite alternate;
}

.background-shapes__rect {
  position: absolute;
  top: 60%;
  left: 80%;
  width: 50px;
  height: 50px;
  background-color: rgba(10, 200, 20, 0.1);
  animation: rect 20s linear infinite alternate;
}

.background-shapes__rect:nth-child(even) {
  animation-duration: 15s;
}

.background-shapes__rect:nth-child(3n) {
  top:  80%;
  left: 15%;
  animation-direction: reverse infinite alternate;
}