  /* Pantalla de carga */
  #loadingScreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; 
    z-index: 1000;
}

/* Animación del texto */
#loadingText {
    color: red;
    font-size: 89em; 
    white-space: nowrap; 
    animation: moveText 12s linear forwards; 
}


@keyframes moveText {
    0% {
        transform: translateX(65%); 
    }
    100% {
        transform: translateX(-190%); 
    }
}
body {
    display: flex;
    flex-direction: column;
    align-content: center;
    background-color: aqua;
    margin: 0;
    min-height: 100vh;
}

.sticky-navbar {
    position: sticky;
    top: 0;
    background-color: yellow;
    padding-top:8px;
    width: 100%;
    z-index: 1000;
    border: 2px solid blue;
    box-sizing: border-box;/*para que el padding no desborde la pagina*/
}
.sticky-navbar ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between; 
}


.sticky-navbar a {
    margin-bottom: 2px;
    text-decoration: none; 
    padding: 5px;
    color: blue; 
}

.title {
    background-color:yellow;
    width:auto;
    height:auto;
    padding: 5px;
    text-align: center;
    
    margin: 0 auto;
    margin-top: 5%;
    border: 4px solid blue;
} 

.title p {
    color: blue;
    font-size: 165px;
    margin: 5px;
}

.title em {
    color: red;
    font-size:50px;
}



.contenedorGeneral {
    text-align:center;
    
}

.contenedorGeneral img {
    margin-top:50px;
    border:15px solid yellow;
    
}

.trans {
    position:relative;
    
    width: 100%;
}

.trans img {
    position:absolute;
    bottom: 0px;
    right:10px;
    width:15%;
    height:auto;
    
    transition: transform 1s ease;	
}

.trans img:hover {
    transform: scale(2);
}

.menu {
    display: flex;
    flex-direction: column;
    width: auto;
    list-style-type: none;
    text-align: center;
}

.menu li {
    margin-top: 45px; 
    text-decoration: none;
}

.menu a {
background-color: yellow;
text-decoration: none;
font-size: 25px;
color: blue;
padding: 10px;
border: 1px solid blue;
border-radius: 5px; 
display: inline-block; 
transition: all 0.3s ease; 
box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2); 
}


.menu a:hover {
background-color: blue; 
color: white; 
transform: translateY(-4px); 
box-shadow: 0px 8px 12px rgba(0, 0, 0, 0.3);
}


/*footer*/

footer {
    background-color: yellow;
    width:100%;
    padding: 10px 0;
    text-align: right;
    margin-top:auto;
}
footer a {
    color:blue;
    font-size:40px;
    margin:0;
    text-decoration: none;
}

#cookie-banner {
    position: fixed; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    background-color: rgb(180, 180, 180);
    padding: 20px 0;
    text-align: center;
    align-content:center;
    width: 20%;
    height: 15%; 
    z-index: 10000; 
    border: 8px solid blue;
}



#cookie-banner {
    color:blue;
    font-size: 25px;
    padding: 10px;

}


#cookie-banner button,
#cookie-banner input {

background-color: black;
text-decoration: none;
font-size: 15px;
color: blue;
padding: 10px;
border: 3px solid blue;
border-radius: 5px; 
display: inline-block; 
transition: all 0.3s ease; 
box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2); 


}

#cookie-banner button:hover,
#cookie-banner input:hover {

    background-color: gray; 
    color: aquamarine; 
    border: 3px solid aquamarine;
    transform: translateY(-4px); 
    box-shadow: 0px 8px 12px rgba(0, 0, 0, 0.3);


}





/*errors*/

.body-errors404 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-image: url('../images/c9605ecdefa34c09.jpg');
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat;
}

.body-errors401 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-image: url('../images/8b24d70034bbd585.jpg');
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat;
}

.body-errors403 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-image: url('../images/36882148942b809a.jpg');
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat;
}



.errors {
    width: auto;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
   
}

.errors h1 {
    color: yellow;
    font-size: 150px;
}


#button-volver a {
    background-color: darkgray;
    text-decoration: none;
    font-size: 25px;
    color: yellow;
    padding: 10px;
    margin-bottom: 15%;
    border: 6px solid yellow;
    border-radius: 5px; 
    display: inline-block; 
    transition: all 0.3s ease; 
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2); 
}

#button-volver a:hover {
    background-color: black; 
    color: white; 
    transform: translateY(-4px); 
    box-shadow: 0px 8px 12px rgba(0, 0, 0, 0.3);
}





/*sube imagenes*/


.body-subeImagen {
    display: flex;
    flex-direction: column;
    flex-direction: column;
    align-items: center;
    background-color: aqua;
    font-family: Arial, sans-serif;
    margin: 0;
    min-height: 100vh;
    font-size:30px;
    color:blue;

}


.body-subeImagen h1 {
    text-align: center;
    color: blue;
    margin-bottom: 20px;
    font-size:80px;
}


.from-subeImagen {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
    width: 100%;
    max-width: 600px;
    background-color: yellow;
    padding: 20px;
    border:15px solid blue;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}


.from-subeImagen input[type="file"],
.from-subeImagen input[type="text"] {
    width: 100%;
    max-width: 500px;
    padding: 10px;
    margin: 10px 0;
    border: 4px solid blue;
    border-radius: 4px;
    font-size: 16px;
}

.from-subeImagen input[type="submit"] {
    background-color: blue;
    text-decoration: none;
    font-size: 25px;
    color: yellow;
    padding: 10px;
    border: 1px solid blue;
    border-radius: 5px; 
    display: inline-block; 
    transition: all 0.3s ease; 
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2); 
}

.from-subeImagen input[type="submit"]:hover {
    background-color: blue; 
    color: white; 
    transform: translateY(-4px); 
    box-shadow: 0px 8px 12px rgba(0, 0, 0, 0.3);
}


.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 30px;
}

.gallery img {
    width: 400px;
    height: 400px;
    margin: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery img:hover {
    transform: scale(1.1);
}


.gallery video {
    width: 400px;
    height: auto;
    margin: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.gallery video:hover {
    transform: scale(1.1);
}



/*eliminar imagenes y videos*/


.body-deleter {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: aqua;
    font-family: Arial, sans-serif;
    margin: 0;
    min-height: 100vh;
    font-size:30px;
    color:blue;

}

.body-deleter h1 {
    font-size:80px;
}
.body-deleter img {
    width: 300px;
    height: 300px;
    margin: 10px;
    border: 1px solid #ccc;
}
.body-deleter video {
    width: 300px;
    margin: 10px;
}
.file-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}
.file-item {
    margin-right: 20px;
    text-align: center;
}
.delete-btn {
    display: block;
    margin-top: 5px;
    padding: 5px;
    background-color: yellow;
    color: blue;
    text-decoration: none;
    border-radius: 3px;
}
.delete-btn:hover {
    background-color: blue;
    color:white;
}



/*Enviar Mail*/

.body-mail {
    display: flex;
    flex-direction: column;
    flex-direction: column;
    align-items: center;
    background-color: aqua;
    font-family: Arial, sans-serif;
    margin: 0;
    min-height: 100vh;
    font-size:30px;
    color:blue;

}

/* Estilo del título */
.body-mail h1 {
    text-align: center;
    color: blue;
    margin-bottom: 20px;
    font-size:80px;
}

/* Estilo del formulario */
.form-mail {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
    width: 70%;
    max-width: 600px;
    background-color: yellow;
    padding: 20px;
    border:15px solid blue;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-mail input[type="text"],
.form-mail input[type="email"] {
    
    width: 50%;
    max-width: 500px;
    padding: 10px;
    margin: 10px 0;
    border: 4px solid blue;
    border-radius: 4px;
    font-size: 16px;
}

#mensaje {
    width: 100%;
    max-width: 500px;
    padding: 10px;
    margin: 10px 0;
    border: 4px solid blue;
    border-radius: 4px;
    font-size: 16px;

}

.form-mail input[type="submit"] {
    background-color: blue;
    text-decoration: none;
    font-size: 25px;
    color: yellow;
    padding: 10px;
    border: 1px solid blue;
    border-radius: 5px; 
    display: inline-block; 
    transition: all 0.3s ease; 
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2); 
}

.form-mail input[type="submit"]:hover {
    background-color: rgb(2, 2, 129); 
    color: white; 
    transform: translateY(-4px); 
    box-shadow: 0px 8px 12px rgba(0, 0, 0, 0.3);
}

.volver {
    background-color: blue;
    text-decoration: none;
    font-size: 25px;
    color: yellow;
    padding: 10px;
    border: 1px solid blue;
    border-radius: 5px; 
    display: inline-block; 
    transition: all 0.3s ease; 
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2); 

}

.volver:hover {
    background-color: blue; 
    color: white; 
    transform: translateY(-4px); 
    box-shadow: 0px 8px 12px rgba(0, 0, 0, 0.3);
}


/*Pag. Nasa*/

.bodi-nasa {
    display:flex;
    flex-direction: column;
    align-items:center;
   
    background-image: url('../images/79a5b8a922f28434.jpg');
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat;
}

.fieldset-nasa {
    margin-top: 5%;
    width: 50%;
    height: 50%;
    background-color: aqua;
    color: yellow;
    font-size:55px;
    border: 6px solid blue;
    border-radius: 4px;
}

.legend-nasa {
    background-color: yellow;
    color:blue;
    border: 4px solid blue;
    border-radius: 4px;

}

.label-input {
    font-size:30px;
    color:black;
    

}



.fieldset-nasa input[type="text"] {
    width: 100%;
    max-width: 500px;
    padding: 10px;
    margin: 10px 0;
    border: 4px solid blue;
    border-radius: 4px;
    font-size: 16px;
}

.fieldset-nasa input[type="button"] {
    background-color: blue;
    text-decoration: none;
    font-size: 25px;
    color: yellow;
    padding: 10px;
    border: 1px solid blue;
    border-radius: 5px; 
    display: inline-block; 
    transition: all 0.3s ease; 
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2); 
}

.fieldset-nasa input[type="button"]:hover {
    background-color: blue; 
    color: white; 
    transform: translateY(-4px); 
    box-shadow: 0px 8px 12px rgba(0, 0, 0, 0.3);
}



#apod-description {
   
    background-color: aqua;
    border: 6px solid blue;
    padding: 15px;
    font-size: 22px;
    color: black;
    border-radius: 10px;
    margin-top: 20px;
    width: 80%;
    max-width: 700px;
    text-align: justify;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    margin-bottom: 10px;
    display: none;
}


#apod-image {
    margin-top: 20px;
    max-width: 100%;
    height: auto;
    display: none;
}


#apod-video {
    display: inline-block;
    margin-top: 20px;
    font-size: 20px;
    color: blue;
    text-decoration: none;
    transition: color 0.3s;
}

#apod-video:hover {
    color: darkblue;
}

#resultado {
    font-size: 30px;
    color: yellow;
}


/*pag. barça*/

.body-barça {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between; /* Ajuste para asegurarse de que los elementos estén distribuidos */
    height: 100vh;
    background-image: url('../images/631bc138e440612c.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#barça-volver {
    margin-top: auto; /* Este es el cambio importante */
}

#barça-volver a {
    
    background-color: darkgray;
    text-decoration: none;
    font-size: 25px;
    color: yellow;
    padding: 10px;
    margin-bottom: 15%;
    border: 6px solid yellow;
    border-radius: 5px; 
    display: inline-block; 
    transition: all 0.3s ease; 
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2); 
}

#barça-volver a:hover {
    background-color: black; 
    color: white; 
    transform: translateY(-4px); 
    box-shadow: 0px 8px 12px rgba(0, 0, 0, 0.3);
}