@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@100;300&family=Roboto:wght@300&family=Saira:ital,wght@0,100..900;1,100..900&family=Slabo+13px&display=swap");

html{
  overflow: auto;
}

body {
  opacity: 0; /* Comienza invisible */
  transition: opacity 1s ease-in-out; /* Transición suave de opacidad */
  display: flex;
  justify-content: center; /* Centra horizontalmente */
  flex-direction: column; /* Alinea elementos verticalmente */
  align-items: center; /* Centra verticalmente */
  margin: 0; /* Evita márgenes por defecto */
  background-image: url("/img/img_bg2.jpg");
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  font-family: "Saira", serif;
  overflow: auto;
}

#landing {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: left;
  padding: 40px;
  color: #fff;
  font-family: "Saira", serif;
  font-optical-sizing: auto;
  font-weight: weight;
  font-style: normal;
}

#landing img {
  width: 100%;
  max-width: 300px;
  height: auto;
}

#workouts {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#workout-list {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0s 0.5s;
  list-style-type: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding-bottom: 150px;
}

#workout-list.visible {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease, visibility 0s 0s;
  list-style-type: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding-bottom: 150px;
}

.workout-item {
  cursor: pointer;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s;
  transition: opacity 0.5s ease, visibility 0s 0.5s;
}

.workout-item:hover {
  background-color: #bebebe;
}

#workout-detail {
  flex-direction: column;
  align-items: center;
  padding: 20px;
  margin-bottom: 7rem;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  transition: opacity 0.5s ease, visibility 0s 0s;
}

button {
  background-color: #dc3545;
  color: white;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease; /* Transición suave */
}

button:hover {
  background-color: #2c2c2c;
}

footer {
  display: flex;
  flex-direction: column;
  color: #fff;
  text-align: center;
  padding: 10px;
  margin-top: 20px;
  bottom: 0;
  width: 100%;
  position: fixed;
}

a {
  color: #fff;
  text-decoration: none;
}

#social-media i {
  font-size: 20px;
  cursor: pointer;
}

#social-media i:hover {
  color: #dc3545;
}
