@font-face {
  font-family: "Pixelade";
  src: url("../fonts/PIXELADE.ttf") format("truetype");
}

body {
  opacity: 0;

  transition: opacity 0.7s ease-in-out;
  background-color: #030711;
}
body.fade-in {
  opacity: 1;
}

body.fade-out {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

body,
html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: "Pixelade";
  background: url("/images/fondo.png") no-repeat center center fixed;
  background-size: cover;
  overflow: hidden;
}

.container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 0;
}

header {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  margin-top: 5vw;
}

.ovni {
  width: 8vw;
  max-width: 10vw;
  animation: float 6s ease-in-out infinite;
}

#ovni2 {
  animation: reverseFloat 6s ease-in-out infinite;
}

#ovni3 {
  animation-delay: 1s;
}

#ovni4 {
  animation: float 6s ease-in-out infinite;
  width: 8vw;
  max-width: 10vw;
  text-align: center;
  position: absolute;
  top: 80%;
  left: 45%;
}

.header_img_b,
.footer_img_b {
  width: auto;
  height: 5vh;
  max-height: 50px;
}

.rules-box {
  display: none;
}

.rules-toggle-btn-desktop {
  display: block;
  position: fixed;
  top: 50%;
  left: 1%;
  width: 8vw;
  height: 4vw;
  font-family: "Pixelade";
  font-size: 1.6vw;
  background-color: #c51e32;
  border: none;
  border-radius: 25px;
  color: #ffffec;

  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  z-index: 200;
}

.rules-toggle-btn-desktop:hover {
  background-color: #008a85;
  color: #fcfc40;
}

.rules-box.visible {
  display: block;
  font-size: 1.2rem;
  position: absolute;
  top: 40%;
  left: 8%;
  max-width: 250px;
  background-color: #c51e32;
  border-radius: 20px;
  color: #ffffec;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  z-index: 100;
  padding: 2%;
}

.rules-box ul {
  padding-left: 2%;
}

.rules-box ul ul {
  list-style-type: disc;
  margin-left: 10%;
}

.logo {
  text-align: center;
  position: absolute;
  top: 18%;
  left: 50%;
  transform: translateX(-50%);
}

.logo img {
  width: 80vw;
  height: auto;
  max-width: 500px;
}

.buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translateX(-50%);
}

.btn-game {
  font-family: "Pixelade";
  font-size: 2vw;
  width: 16vw;
  max-width: 16vw;
  height: 4vw;
  background-color: #c51e32;
  border: none;
  border-radius: 25px;
  color: #ffffec;
  margin: 8px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s;
}

.btn-game:hover {
  background-color: #008a85;
  color: #fcfc40;
}

footer {
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #c51e32;
  color: #ffffec;
  padding: 15px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
  margin-top: 0.7%;
}

.footer-content {
  width: 100%;
  font-size: 3vh;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  text-align: center;
}

.footer-left {
  flex: 1;
  text-align: left;
}

.footer-center {
  flex: 2;
  text-align: center;
}

.footer-right {
  flex: 1;
  text-align: right;
}

.footer-logo {
  max-height: 40px;
  width: auto;
}

@keyframes float {
  0% {
    transform: translateY(0) translateX(0);
  }
  25% {
    transform: translateY(-10px) translateX(10px);
  }
  50% {
    transform: translateY(0) translateX(0px);
  }
  75% {
    transform: translateY(10px) translateX(10px);
  }
  100% {
    transform: translateY(0) translateX(0);
  }
}

@keyframes reverseFloat {
  0% {
    transform: translateY(0) translateX(0);
  }
  25% {
    transform: translateY(10px) translateX(10px);
  }
  50% {
    transform: translateY(0) translateX(0px);
  }
  75% {
    transform: translateY(-10px) translateX(10px);
  }
  100% {
    transform: translateY(0) translateX(0);
  }
}

.rules-toggle-btn-movil {
  display: none;
}

@media screen and (max-width: 700px) {
  .rules-toggle-btn-desktop {
    display: none;
  }

  .rules-box {
    display: none;
  }

  .rules-box.visible {
    display: block;
    left: 50%;
    top: 65%;
    transform: translateX(-50%);
    width: 100%;
    max-height: 25%;
    overflow-y: auto;
    padding: 20px 25px;

    background-color: #c51e32;
    border-radius: 15px;
    color: #ffffec;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    z-index: 150;
  }

  .rules-toggle-btn-movil {
    display: block;
    position: fixed;
    bottom: 0.5vw;
    left: 50%;
    transform: translateX(-50%);
    width: 16vw;
    height: 6vw;
    font-family: "Pixelade";
    font-size: 4vw;
    background-color: #c51e32;
    border: none;
    border-radius: 25px;
    color: #ffffec;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 200;
  }

  .rules-toggle-btn-movil:hover {
    background-color: #c51e32;
  }

  .logo {
    top: 25%;
  }

  .logo img {
    max-width: 400px;
  }

  .buttons {
    top: 48%;
  }

  .btn-game {
    font-size: 5vw;
    height: 10vw;
    width: 35vw;
    max-width: 35vw;
    border-radius: 20px;
  }

  .ovni {
    min-width: 12vw;
  }

  #ovni4 {
    left: 42%;
    min-width: 12vw;
  }

  footer {
    display: none;
  }
}
