* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

/*ANIMACIÓN CANICA.*/
.animacionDensidadCanica {
    margin-left: auto;
    margin-right: auto;
    position: relative;
    top: 120px;
    width: 900px;
    height: 1000px;
    padding: 5vh;
    border: solid 2px rgb(96, 163, 241);
}

.materialCanica {
    width: 200px;
    padding: 0.5vh;
    height: 240px;
    display: grid;
    justify-content: center;
    position: absolute;
    left: 350px;
    z-index: 1;
    background-color: rgb(96, 163, 241);
    color: white;
}

.nomSeccion {
    text-align: center;
}

.tipoLiquido {
    width: 250px;
    padding: 0.5vh;
    height: 240px;
    display: grid;
    justify-content: center;
    position: absolute;
    left: 580px;
    z-index: 1;
    background-color: rgb(96, 163, 241);
    color: white;
}

.elementoLiquido {
    width: 200px;
    height: 300px;
    border-bottom: solid 1px black;
    border-left: solid 1px black;
    border-right: solid 1px black;
    margin-top: 15vh;
    position: relative;
}

.canica {
    width: 80px;
    height: 80px;
    display: grid;
    justify-content: center;
    align-content: center;
    border-radius: 50%;
    border: solid 1px black;
    background-color: rgb(119, 255, 0);
    position: absolute;
    left: calc(50% - 40px);
    z-index: 2;
    cursor: pointer;
}

.canica:hover {
    background-color: rgb(122, 244, 15);
}

.fluido {
    width: 100%;
    height: 6cm;
    border-top: solid 1px black;
    position: absolute;
    bottom: 0;
    background-color: rgb(128, 184, 233);
    display: grid;
    align-content: center;
    justify-content: center;
}

.animacion {
    animation-name: mover;
    animation-timing-function: linear;
    animation-duration: 0.5s;
    animation-iteration-count: 1;
}

.resultado {
    width: 300px;
    height: 90px;
    background-color: rgb(96, 163, 241);
    position: absolute;
    top: 350px;
    left: 350px;
    color: white;
    text-align: center;
    display: grid;
    align-content: center;
    padding-left: 3vh;
    padding-right: 3vh;
    padding-top: 10px;
    padding-bottom: 10px;
}

.titilacion {
    animation-name: titilar;
    animation-duration: 1s;
    animation-iteration-count: 2;
}

.refrescar {
    width: 150px;
    height: 40px;
    position: absolute;
    top: 550px;
    left: 7vh;
    background-color: rgb(3, 126, 250);
    color: white;
    border: none;
    font-size: 17px;
    letter-spacing: 2px;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.2);
}

.refrescar:hover {
    transition: 0.4s;
    background-color: rgb(80, 136, 193);
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

@keyframes mover {
    0% {
        transform: translateY(1px);
    }

    50% {
        transform: translateY(5px);
    }

    100% {
        transform: translateY(10px);
    }
}

@keyframes titilar {
    0% {
        background-color: rgb(96, 163, 241);
    }

    50% {
        background-color: rgb(159, 165, 171);
        color: black;
    }

    100% {
        background-color: rgb(96, 163, 241);

    }
}

/*Graficos*/
.primero {
    border: solid 1px black;
    display: grid;
    align-content: center;
    justify-content: center;
    width: 400px;
    height: 400px;
    position: relative;
    left: 350px;
}

.contenido {
    width: 50px;
    height: 50px;
    border: solid 1px black;
}

.punto {
    border: solid 2px red;
    border-radius: 50%;
    position: absolute;
}

.numero {
    display: inline-block;
    position: absolute;
    text-align: center;
    height: 15px;
    font-size: 15px;
    top: calc(100% + 20px);
}

.y {
    position: absolute;
    left: -50px;
}

.ejex {
    position: absolute;
    width: 150px;
    text-align: center;
    top: calc(100% + 50px);
    left: 125px;
}

.ejey {
    transform: rotate(270deg);
    position: absolute;
    left: -150px;
    width: 150px;
    text-align: center;
    bottom: 200px;
}

/*Nuevo grafico.*/

.lienzo {
    width: 400px;
    height: 400px;
    border: solid 1px black;
    margin-top: 3vh;
    margin-bottom: 5vh;
    margin-left: 5vh;
}

/*ANIMACIÓN CUBO*/

.animacionCubo {
    margin-left: auto;
    margin-right: auto;
    position: relative;
    top: 200px;
    width: 900px;
    height: 1000px;
    border: solid rgb(70, 153, 230) 3px;
    padding: 5vh;
}

#contenedorCubo {
    perspective: 800px;
    margin: 0 auto;
    width: 500px;
    height: 420px;
    display: grid;
    align-content: center;
    justify-content: center;
}

#cubo {
    transform-style: preserve-3d;
    width: 200px;
    height: 200px;
    transform: rotateX(45deg) rotateZ(45deg);
}

.cara {
    position: absolute;
    height: 200px;
    width: 200px;
}


.enfrente {
    border: solid blue 2px;
    transform: translateZ(100px);
}

.atras {
    border: solid blue 2px;
    transform: translateZ(-100px);
}

.arriba {
    border: solid blue 2px;
    transform: translateY(-100px) rotateX(90deg);
}

.abajo {
    transform: translateY(100px) rotateX(90deg);
    border: solid blue 2px;
}

.izquierda {
    border: solid blue 2px;
    transform: translateX(100px) rotateY(90deg);
}

.derecha {
    border: solid blue 2px;
    transform: translateX(-100px) rotateY(90deg);
}

.seleccionMaterial {
    width: 200px;
    height: 250px;
    background-color: rgb(108, 176, 232);
    position: absolute;
    bottom: 250px;
}

/*Graficos*/
.primeroCubo {
    border: solid 1px black;
    display: grid;
    align-content: center;
    justify-content: center;
    width: 400px;
    height: 400px;
    padding: 3vh;
    margin-left: 15vh;
    position: absolute;
    left: 220px;
}

.contenido {
    width: 50px;
    height: 50px;
    border: solid 1px black;
}

.punto {
    border-radius: 50%;
    position: absolute;
}

.numeroCubo {
    display: inline-block;
    position: absolute;
    text-align: center;
    height: 15px;
    font-size: 15px;
    top: calc(100% + 20px);
}

.yCubo{
    position: absolute;
    left: -50px;
}

.ejexCubo {
    position: absolute;
    width: 150px;
    text-align: center;
    top: calc(100% + 50px);
    left: 125px;
}

.ejeyCubo {
    transform: rotate(270deg);
    position: absolute;
    left: -150px;
    width: 150px;
    text-align: center;
    bottom: 200px;
}


/*ANIMACIÓN PRENSA.*/
.contenedorPrensa {
    position: relative;
    margin-left: auto;
    margin-right: auto;
    top: 270px;
    width: 900px;
    height: 900px;
    border: solid 3px rgb(103, 161, 232);
}


.prensa {
    position: relative;
    height: 600px;
    width: 750px;
    margin-left: 15vh;
}

.cilindroUno, .comunicadorCilindro, .cilindoDos {
    display: inline-block;
    position: absolute;
}

.cilindroUno {
    width: 80px;
    height: 300px;
    border-left: solid 3px black;
    border-right: solid 3px black;
    border-bottom: solid 3px black;
    position: absolute;
    box-sizing: content-box;
    top: 240px;
}

.palancaUno {
    width: 20px;
    height: 120px;
    border: solid 2px rgb(215, 211, 211);
    border-radius: 30px;
    z-index: 1;
    position: relative;
    left: 30px;
    top: -25px;
    transition: 1s;
    box-sizing: content-box;
}

.img-flecha {
    transform: rotate(270deg);
    position: absolute;
    top: 157px;
    left: 20px;
    width: 50px;
    height: 70px;
    transition: 1s;
}

.fuerza {
    width: 60px;
    height: 23px;
    position: absolute;
    top: 120px;
    left: 10px;
    text-align: center;
    transition: 1s;
}

.fuerza::placeholder {
    text-align: center;
}

.fuerza:focus {
    text-align: center;
    outline: none;
}


.enboloUno {
    width: 80px;
    height: 30px;
    box-sizing: border-box;
    background-color: rgb(187, 181, 181);
    position: absolute;
    top: 70px;
    transition: 1s;
    box-sizing: content-box;
}

.fluidoUno {
    width: 80px;
    height: 200px;
    box-sizing: content-box;
    background-color: #6FCDFB;
    position: absolute;
    top: 100px;
    transition: 1s;
}

.comunicadorCilindro {
    width: 238px;
    height: 30px;
    border-top: solid 3px black;
    border-bottom: solid 3px black;
    box-sizing: content-box;
    left: 83px;
    top: 508px;
    z-index: 1;
}

.fluidoEntre {
    width: 285px;
    height: 30px;
    position: relative;
    right: 20px;
    background-color: #6FCDFB;
    z-index: 1;
}

.cilindoDos {
    width: 200px;
    height: 300px;
    border-left: solid 3px black;
    border-right: solid 3px black;
    border-bottom: solid 3px black;
    left: 320px;
    top: 240px;
    box-sizing: content-box;

}

.fluidoDos {
    width: 200px;
    height: 200px;
    box-sizing: border-box;
    background-color: #6FCDFB;
    position: absolute;
    top: 100px;
    transition: 1s;
}

.enboloDos {
    width: 200px;
    height: 30px;
    background-color: rgb(187, 181, 181);
    position: relative;
    top: 70px;
    transition: 1s;
}

.palancaTres {
    width: 30px;
    height: 150px;
    top: -50px;
    left: 85px;
    position: absolute;
    border-bottom: solid rgb(215, 211, 211) 2px;
    border-left: solid rgb(215, 211, 211) 2px;
    border-right: solid rgb(215, 211, 211) 2px;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
    z-index: 1;
    transition: 1s;
}

.plataformaDeElementos {
    width: 250px;
    height: 150px;
    border-left: 1px rgb(159, 159, 159) solid;
    border-top: 1px rgb(159, 159, 159) solid;
    border-right: 1px rgb(159, 159, 159) solid;
    border-bottom: 10px rgb(159, 159, 159) solid;
    transform: translateY(-230px) translateX(-25px);
    transition: 1s;
    align-content: center;
    text-align: center;
    font-size: 25px;
}


.diametros {
    display: grid;
    grid-template-columns: repeat(2, 250px);
    grid-template-rows: 1 250px;
    align-content: center;
    justify-content: center;
    width: 450px;
    height: 250px;
    position: relative;
    left: 120px;
    padding-top: 25px;
    padding-bottom: 25px;
    padding-left: 25px;
    padding-right: 25px;
    box-sizing: border-box;
}

.diametroUno {
    display: grid;
    align-content: center;
    justify-content: center;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: #c5c5c5;
    position: relative;
    border: solid 2px black;

}

.diametroDos {   
    display: grid;
    align-content: center;
    justify-content: center;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-color: #cbcecf;
    border: solid 2px black;
}

.entradaDiametro {
    width: 50px;
    height: 25px;
    text-align: center;
}

.entradaDiametro::placeholder {
    text-align: center;
}

.entradaDiametro:focus {
    outline: none;
}

.play {
    width: 150px;
    height: 30px;
    font-size: 18px;
    cursor: pointer;
    position: relative;
    left: 100px;
}

/*ANIMACIÓN DE CAUDAL*/
.animacion-caudal {
    border: solid 4px #6ba8e4;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 300px 400px;
    grid-row-gap: 10px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    padding-left: 50px;
    padding-top: 100px;
    margin-top: 40vh;
    width: 1000px;
    height: 1100px;
    position: relative;
}

.cambio {
    margin-top: 30vh;
}

.contenedor-tuberia {
    height: 350px;
    width: 16cm;
    display: grid;
    align-content: center;
    align-self: center;
    justify-self: center;
    position: relative;
}

.diametro-tubo {
    width: 2cm;
    height: 26px;
    background-color: rgb(234, 234, 234);
    box-shadow: 0 0 2px 2px rgb(208, 208, 208);
    position: absolute;
    top: 162px;
    left: 7cm;
    z-index: 1;
    text-align: center;
    display: grid;
    align-content: center;
}


.contenedor-diametro {
    justify-self: center;
    align-self: center;
}

.contenedor {
    display: inline-block;
}

.limitador-tuberia {
    width: 16cm;
    height: 150px;
    box-sizing: border-box;
    overflow: hidden;
}

.movedor-olas {
    position: relative;
    width: 100cm;
    border-top: solid 4px #808080b9;
    border-bottom: solid 4px #808080b9;
    box-sizing: border-box;
    height: 100%;
    
}

.comienzoAnimacionCaudal {
    animation-name: moverOlas;
    animation-duration: 20s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.olas {
    display: inline-block;
    position: absolute;
    width: 4cm;
    height: 100%;
    background: linear-gradient(to left, #1d87f0, #1d86f0d8);
}

.diametro-tuberia {
    width: 150px;
    height: 150px;
    background-color: #4084f1;
    border: solid 4px #b4b0b0bd;
    border-radius: 50%;
    display: grid;
    align-content: center;
    justify-content: center;
}


.dos {
    position: static;
    width: 30px;
    height: 26px;
    top: 62px;
    left: 40px;
}

.campos-entrada {
    background-color: #6ba8e4;
    width: 200px;
    height: 120px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    padding: 5vh;
    grid-column: 2 / 4;
    grid-row:  2 / 3;
    align-self: self-start;
    justify-self: self-start;
    grid-gap: 10px;
}

.grafico-caudal {
    grid-row:  2 / 3;
    grid-column: 1 / 2;
    justify-self: self-start;
    align-self: self-start;
    width: 400px;
    height: 300px;
    position: relative;
}

.ejes {
    position: absolute;
    width: 100px;
    height: 20px;
    text-decoration: underline;
}

.ejeX {
    right: 150px;
    top: 300px;
}

.ejeY {
    transform: rotate(270deg);
    left: -60px;
    top: 130px;
}

.lienzo {
    border: 1px solid black;
    box-sizing: border-box;
    transform: rotateX(-180deg);
    width: 400px;
    height: 300px;
}

.mas-caudal, .menos-caudal, .reset-caudal {
    background-color: #4084f1;
    box-shadow: 0px 0px 1px 1px #7e9fd4;
    cursor: pointer;
    border: none;
    color: white;
} 

.mas-caudal {
    grid-row: 1 / 2;
}

.menos-caudal {
    grid-row: 2 / 3;
    grid-column: 1 / 2;
}

.reset-caudal {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
}

/*Animaciones*/

@keyframes moverOlas {
    0% {
        transform: translate(0);
    }

    100% {
        transform: translate(-84cm);
    }
}

/* ANIMACIÓN PARTICULAS */
.animacion-particulas {
    width: 1000px;
    height: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 10vh;
    margin-bottom: 5vh;
    border: solid 4px #6ba8e4;
    box-sizing: border-box;
    padding-left: 15vh;
    padding-top: 5vh;
    position: relative;
}
/* CREACIÓN DEL TERMOMETRO */
.termometro {
    width: 22vh;
    border: solid 1px black;
    display: grid;
    justify-content: center;
    box-sizing: border-box;
    position: relative;
}

.termometro-titulo {
    height: 5vh;
    margin: 0;
    text-align: center;
}

.termometro-barra {
    height: 30vh;
    width: 3vh;
    border: solid black 1px;
    margin-left: auto;
    margin-right: auto;
    border-top-left-radius: 40%;
    border-top-right-radius: 40%;
    overflow: hidden;
}

.barra-mercurio {
    width: 100%;
    height: 30vh;
    background-color: red;
    transform: translateY(27vh);
}

.barra-numeros-par {
    position: absolute;
    left: 15vh;
    top: 4vh;
}

.numero-par {
    margin-bottom: 16px;
}

.termometro-base {
    width: 5vh;
    height: 5vh;
    margin-left: auto;
    margin-right: auto;
    border: solid 1px black;
    border-radius: 50%;
    position: relative;
    top: -2vh;
    background-color: red;
}
/* Propiedades compartidas por el cilindro y el termometro */
.cilindro, .termometro {
    float: left;
    height: 50vh;
    display: inline-block;
}

/* CILINDRO DE PARTICULAS */

.cilindro {
    width: 40vh;
    border: solid 1px black;
    display: grid;
    box-sizing: border-box;
    padding-top: 9vh;
    justify-content: center;
    align-content: center;
    position: relative;
}

.contenedor-globo {
    position: relative;
    transform: rotate(-45deg);
}

.contenedor-particulas {
    width: 25vh;
    height: 32vh;
    background-color: #cde8f7;
    box-sizing: border-box;
    position: relative;
    border: solid 1px black;
    overflow: hidden;
    border-radius: 50%;
}

.boquilla-globo {
    width: 40px;
    height: 10px;
    border-radius: 30%;
    border: solid 1px black;
    position: absolute;
    top: 31.8vh;
    left: 10vh;
    background-color: #cde8f7;
    z-index: 1;
}

.hilo-globo {
    width: 1px;
    height: 30px;
    border: solid 1px black;
    position: absolute;
    left: 13vh;
    top: calc(31.8vh + 10px);
}

/* PARTICULAS Y ANIMACIÓN DE ESTAS####################### */
.molecula {
    width: 11px;
    height: 26px;
    position: absolute;
    z-index: 2;
}

.bola {
    width: 2.5px;
    height: 2.5px;
    border: solid 0.5px black;
    border-radius: 50%;
    background-color: blue;
    z-index: 1;
}

.unidor {
    width: 1px;
    height: 5px;
    border: solid black 0.5px;
}

.bola-mayor, .unidor {
    position: relative;
    left: 3px;
}

.primer-unidor {
    transform: rotate(-45deg);
    top: 2px;
}

.segundo-unidor {
    transform: rotate(45deg);
    top: -2px;
}

.bola {
    position: relative;
}

.primer-bola {
    top: 4px;
}

.segunda-bola {
    top: -4px;
}

.bola-mayor {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    border: solid 0.5px black;
    background-color: red;
    z-index: 1;
}
/* ################################################## */

.extremo {
    width: 20vh;
    height: 10vh;
    position: relative;
    box-sizing: border-box;
    top: -5vh;
    border: solid black 1px;
    background-color: rgb(215, 215, 215);
    border-radius: 50%;
}

.extremo-inferior {
    top: -47vh;
}

.panel {
    width: 60px;
    height: 80px;
    border: solid 1px black;
    position: absolute;
    left: 78vh;
    display: grid;
    align-content: space-evenly;
    justify-content: space-evenly;
}

.boton {
    width: 30px;
    height: 30px;
    background-color: #7aafd3;
    border: none;
    font-size: 25px;
    cursor: pointer;
}

.secci-animaciones {
    width: 1000px;
    height: 1100px;
    padding-top: 60px;
    margin-bottom: 20vh;
    /* margin-top: -5vh; */
    box-sizing: border-box;
    position: relative;
    border: solid 3px #6ba8e4;
}

.titulo-animación {
    color: #6ba8e4;
    height: 30px;
    width: 400px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
    text-align: center;
    text-decoration: underline;
    
}

.titulo-animación-caudal {
    position: absolute;
    top: 80px;
    left: 350px;
    text-align: center;
    color: #6ba8e4;
    height: 30px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    text-decoration: underline;
}

.titulo-animación {
    cursor: pointer;
}

.titulo-animación:hover {
    color: #1d87f0;
}

.titulo-animación-caudal:hover {
    color: #1d87f0;
}

.animacionCubo {
    margin-top: -27vh;
    margin-bottom: 27vh;
    height: 1000px;
    display: block;
}

.contenedorPrensa {
    margin-top: -28vh;
    margin-bottom: 37vh;
    height: 1100px;
    display: block;
}

.animacion-caudal {
    margin-top: 7vh;
    margin-bottom: 10vh;
    height: 1100px;
    display: block;
}

/* Explicación de las animaciones */
        /* Estilos globales */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Arial', sans-serif;
        }

        body {
            background-color: #f5f5f5;
            margin-top: 60px;
        }

        /* Estilos para la sección de fenómenos */
        .fenomenos-container {
            max-width: 1200px;
            margin: 3rem auto;
            padding: 1rem;
        }

        .fenomeno {
            background: white;
            border-radius: 8px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            padding: 2rem;
            margin-bottom: 2rem;
        }

        .fenomeno h3 {
            color: #568fd9;
            margin-bottom: 1rem;
        }

        .fenomeno p {
            line-height: 1.6;
            margin-bottom: 1rem;
            color: #333;
        }

        .fenomeno .section-title {
            font-weight: bold;
            color: #568fd9;
            margin-top: 1rem;
        }

        .imagen-de-animación {
            width: 725px;
            height: 500px;
            margin-left: 200px;
        }

.titulo-descripcion-anima {
    color: #1d87f0;
    text-align: center;
    text-decoration: underline;
}
