

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

nav{
    background-color: rgb(103, 28, 149);
    padding: 15px 0;
}

.menu{
    display: flex;
    justify-content: center;
    list-style: none;
    flex-wrap: wrap;
}

.menu li{
    margin: 10px 20px;
}

.menu a{
    text-decoration: none;
    color: rgb(0, 0, 0);
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-weight: bold;
}

.menu a:hover{
    color: rgb(43, 67, 226);
}

header{
    background-image: url('../img/espaci.jpeg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

header .astro{
    padding: 1em;
    text-align: center;
}

header section{
    background-color: rgba(145, 107, 202, 0.681);
}

.astro{
    width: 50%;
    background-color: rgba(192, 190, 190, 0.681);
    margin: 0 auto;
    border-radius: 20px;
    padding: 15px;
}

section{
    width: 80%;
    margin: 3em auto;
    box-shadow: 0px 10px 20px 20px rgb(53, 50, 108);
    padding: 2em;
    border-radius: 30px;
}

.st figure{
    display: flex;
    gap: 1em;
    align-items: center;
}

.st figure img{
    width: 35%;
    height: auto;
}

a{
    text-decoration: none;
}

.video-espacio{
    width: 50%;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: center;
}

video{
    width: 100%;
    height: auto;
}

p{
    text-align: justify;
    line-height: 1.6;
}

h2{
    text-align: center;
    margin-bottom: 1em;
}

@media (max-width: 1025px){

    .astro{
        width: 70%;
    }

    .video-espacio{
        width: 80%;
    }

    section{
        width: 90%;
    }
}

@media (max-width: 500px){

    .menu{
        flex-direction: column;
        align-items: center;
    }

    .astro{
        width: 95%;
    }

    .video-espacio{
        width: 100%;
        padding: 10px;
    }

    .st figure{
        flex-direction: column;
        text-align: center;
    }

    .st figure img{
        width: 100%;
        max-width: 300px;
    }

    section{
        width: 95%;
        padding: 1em;
    }

    h1{
        font-size: 1.8rem;
    }

    h2{
        font-size: 1.3rem;
    }
}
