@font-face {
  font-family: "Algol Regular";
  src: url("./Algol\ Regular.ttf");
}
@font-face {
  font-family: "Good Timing";
  src: url("./good\ timing\ bd.otf");
}
* {
  cursor: url("./icons/cursor.png") 16 16,
    auto;
}
body {
  background-image: url("./backgrounds/fondo2.jpg");
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: 100vw 100vh;
  background-position: center;
  background-size: cover;
}

a {
  cursor: url("./icons/pointer.png")
      16 16,
    pointer;
  color: pink;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px;
}

h1 {
  font-family: "Good Timing";
  font-size: clamp(60px, 5vw, 180px);
  color: rgb(255, 255, 255);
  margin: 0;
  opacity: 0;
  animation: aparecer 1s ease forwards;
}

#menu {
  font-family: "Algol Regular";
  font-size: 20px;
  display: flex;
  flex-direction: column; 
  align-items: flex-end; 
  flex-wrap: wrap;
  justify-content: center; 
  gap: 10px; 
  opacity: 0;
  animation: aparecer 1s ease forwards;
  animation-delay: 1s;
}
/*links a secciones*/
#menu a {
  width: 100px;
  display: flex;
  flex-direction: column;
  color: pink;
  text-decoration: none;
  align-items: center;
  transition: transform 0.2s ease;
}
/*iconos*/
#menu a img {
  width: 64px;
  height: 64px;
  image-rendering: pixelated;
  margin-bottom: 8px;
}

#menu a:hover {
  transform: scale(1.1);
  filter: brightness(1.3);
}

/*animaciones*/

@keyframes aparecer {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes bounce {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(5%);
  }
  100% {
    transform: translateY(0);
  }
}

footer {
  color: white;
}

#welcome-msj {
  display: inline-block;
  margin: 50px auto;
  font-family: "Algol Regular";
  font-size: 20px;
  padding-right: 3px;
  opacity: 0;
  animation: aparecer 1s ease forwards, bounce ease-in-out 2s infinite;
  animation-delay: 2s;
  position: relative;
  margin-top: -40%;
  margin-left: 30%;
  max-width: 90vw;
}

main .ventana {
  width: 90%;
  height: auto;
  display: block;
}

main p {
  z-index: 1;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  padding: 10px;
  text-align: left;
  line-height: 1.4;
  margin-right: 0;
  color: rgb(0, 0, 0);
  text-shadow: 0 0 5px #000;
  overflow: hidden;
  font-size: clamp(14px, 2vw, 29.5px);
}

/* modal para login */

#login-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
}

.msn-window {
  position: relative;
  font-family: "Algol Regular";
  background: linear-gradient(180deg, #94b7eb 0%, #e6edf7 100%);
  width: 340px;
  border-radius: 10px;
  margin: 1%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  border: 1px solid #94b7eb;
  animation: aparecer 0.5s ease forwards;
}

.msn-header {
  font-family: "Algol Regular";
  background: #8eb6e5;
  color: #003366;
  font-weight: bold;
  padding: 8px 12px;
  font-size: 14px;
  border-bottom: 1px solid #a4bfe2;
}

.msn-content {
  padding: 20%;
  text-align: center;
}

.msn-logo {
  width: 80px;
  margin-bottom: 15px;
  border-radius: 5%;
}

.msn-form input #form-login input {
  font-family: "Algol Regular";
  width: 100%;
  padding: 8px;
  margin: 6px;
  border: 1px solid #aebed8;
  border-radius: 5px;
  font-size: 18px;
  color: rgb(20, 20, 20);
  box-sizing: border-box;
}

#login-btn {
  background-color: rgb(211, 211, 211);
  padding: 8px 20px;
  width: fit-content;
  display: block;
  margin: 15px auto;
  cursor: url("./icons/Pinky-Pixel--pointer--SweezyCurs.png") 16 16,
    pointer;
}

#login-btn:hover {
  background-color: rgb(145, 145, 145);
}

#close-login {
  position: flex-end;
  top: 10px;
  right: 15px;
  font-size: 20px;
  cursor: pointer;
  color: #555;
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 10px;
  border: none;
  font-size: 20px;
  font-weight: bold;
  cursor: url("./icons/pointer.png") 16 16,
    pointer;
  color: #003366;
  padding: 5px 10px;
}

.close-modal:hover {
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}
