@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

html, body {
    padding: 0;
    margin: 0;
    scroll-behavior: smooth;
    font-family: "Roboto", sans-serif;
}

@media screen and (min-width: 420px) {
    .texto {
        color: rgb(23, 0, 116);
        font-size: 15px;
        text-align: left;
        position: center;
        margin-top: 135px;
        font-family: 'Times New Roman', Times, serif;
    }
}

#floating-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #37329c;
    border-radius: 50%;
    padding: 10px;
}

#floating-button a {
    color: white;
    font-size: 24px;
    text-decoration: none;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
}

header, nav, main, footer {
    padding: 5px;
    text-align: center;
}

nav a {
    margin: 5px;
    text-decoration: none;
}

.galeria, .mosaico {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.mosaico .foto img {
    width: 100%;
    max-width: 150px;
    margin: 5px;
    cursor: pointer;
}

.galeria {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

.modal img {
    margin: auto;
    display: block;
    width: 40%;
    height: auto;
}

@media (max-width: 600px) {
    nav a {
        display: block;
        margin: 5px 0;
    }
    .galeria img, .mosaico .foto img {
        max-width: 100px;
    }
}

header {
    position: fixed;
    left: 0vw;
    top: 0vh;
    width: 100vw;
    height: 15vh;
    background-color: rgb(91, 115, 197);
    color: rgb(47, 71, 119);
    text-align: center;
    font-family: 'Times New Roman', Times, serif;
    font-weight: 400;
    font-style: normal;
    font-size: 70px;
    line-height: 10vh;
    background-image: url('https://64.media.tumblr.com/225fbdb4e0a4c95f2ba59153dfa0adc8/5916f80e81fc8570-3b/s400x600/8a3f863fdb95215d8b4d7e009be14ab530b898ab.gifv'), url('https://64.media.tumblr.com/225fbdb4e0a4c95f2ba59153dfa0adc8/5916f80e81fc8570-3b/s400x600/8a3f863fdb95215d8b4d7e009be14ab530b898ab.gifv');
    background-position: bottom center, top center;
    background-repeat: repeat no-repeat, repeat no-repeat;
    background-size: 200px, 200px;
} 

nav {
    position: fixed;
    left: 0vw;
    top: 15vh;
    width: 100vw;
    height: 6vh;
    background-color: rgb(39, 86, 163);
    color: black;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    z-index: 999;
} 

nav a {
    text-decoration: none;
    color: rgb(255, 255, 255);
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    border: rgb(10, 54, 129) solid 1px;
    border-radius: 5px;
    display: block;
    padding: 10px;
    height: 5vh;
    line-height: 5vh;
    background-image: url(https://i.pinimg.com/originals/45/c1/fc/45c1fcf4aaae94a8ab0015e186070d22.gif);
    background-size: cover;
    background-position: center;
} 

nav a:hover {
    background-color: rgb(199, 199, 218);
    padding: 20px;
    filter: none;
}

main {
    padding-top: calc(10vh + 10vh);
}

section {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
} 

#perfil {  
    background-color: rgb(140, 175, 240);
} 
.galeria {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 18px;
}

.galeria img {
    width: 100%;
    cursor: pointer;
    transition: transform 0.3s;
}

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

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-contenido {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
}

.cerrar {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

#paso {
    background-color: rgb(189, 221, 247);
} 

.mosaico {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    max-width: 900px;
    width: 100%;
}

.foto {
    position: center;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.foto img {
    width: 100%;
    border-radius: 8px;
    transition: transform 0.3s;
}

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

.foto:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

#futuro {
    background-color: rgb(140, 175, 240);
    .carousel {
        position: relative;
        max-width: 100%;
        overflow: hidden;
        margin: 20px auto;
    }
    
    .carousel-images {
        display: flex;
        transition: transform 0.5s ease;
    }
    
    .carousel img {
        width: 100%;
        max-width: 600px;
        border-radius: 8px; 
    }
    
    .carousel-button {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background-color: rgba(255, 255, 255, 0.8);
        border: none;
        font-size: 24px;
        cursor: pointer;
        padding: 10px;
        border-radius: 5px;
        z-index: 10; 
    }
    
    .carousel-button.prev {
        left: 10px;
    }
    
    .carousel-button.next {
        right: 10px;
    }
    
    @media (max-width: 600px) {
        .carousel img {
            max-width: 100%;
        }
    
        .carousel-button {
            font-size: 18px; 
            padding: 8px;
        }
    }
} 

#random {
    background-color: rgb(189, 221, 247);
    .grid-gallery {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 10px; 
        margin: 20px 0;
    }
    
    .grid-gallery img {
        width: 30%;
        border-radius: 8px; 
        transition: transform 0.3s;
    }
    
    .grid-gallery img:hover {
        transform: scale(1.5); 
    }
    
} 


#botonRandom::content {
    background-image: url(https://i.pinimg.com/originals/45/c1/fc/45c1fcf4aaae94a8ab0015e186070d22.gif);
} 