@font-face {
    font-family: 'poppins';
    src: url(../font/poppins.ttf) format(truetype);
}

* {
    box-sizing: border-box;
}

body {
    width: 100vw;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background-color: rgb(53, 21, 93);
    font-family: 'poppins', sans-serif;
    color: aliceblue;
}

/* Comienza animación VI */
.geometric-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.shape {
    position: absolute;
    opacity: 0.3;
    transform-origin: center;
}

.square {
    width: 89px;
    height: 89px;
    background: #f72585;
    animation: rotate 20s infinite alternate;
}

.circle {
    width: 89px;
    height: 89px;
    border-radius: 50%;
    background: #4cc9f0;
    animation: pulse 15s infinite alternate;
}

.triangle {
    width: 89px;
    height: 89px;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-bottom: 50px solid #7209b7;
    animation: float 12s infinite alternate;
}

.rectangle {
    width: 89px;
    height: 55px;
    background: #4361ee;
    animation: slide 18s infinite alternate;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.1;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.3;
    }
    100% {
        transform: scale(1);
        opacity: 0.1;
    }
}

@keyframes float {
    0% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) translateX(20px) rotate(180deg);
    }
    100% {
        transform: translateY(0px) translateX(0px) rotate(360deg);
    }
}

@keyframes slide {
    0% {
        transform: translateX(-100px) rotate(0deg);
    }
    50% {
        transform: translateX(100px) rotate(180deg);
    }
    100% {
        transform: translateX(-100px) rotate(360deg);
    }
}
/*Termina animación VI*/

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8vw;
}

h1 {
    margin: 0;
    padding: 0;
}

h1.hide {
    display: none;
}

h1 a {
    text-decoration: none;
    color: aliceblue;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
}

ul {
    width: auto;
    list-style: none;
    display: flex;
    justify-content: space-between;
}

ul.show {
    width: auto;
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
}

li {
    padding-left: 21px;

}

nav a {
    color: aliceblue;
    text-decoration: none;
}

nav a::after {
    content: "";
    display: block;
    height: 3px;
    background-color: aliceblue;
    transform: scale(0,1);
    transform-origin: center;
    transition: transform 0.3s;
}

nav a:hover::after {
    transform: scale(1,1);
}

button.hamburger {
    position: relative;
    display: none;
}

main {
    padding: 0 8vw;
}

p {
    text-align: justify;
}

.examples {
    margin-bottom: 12px;
    width: 100%;
    text-align: center;
}

.youtube {
    display: block;
    margin: 12px auto;
    width: 89%;
    aspect-ratio: 16 / 9;
    border: none;
  }

/* nuevo */
.buttons-control button {
    margin: 13px 13px 13px 0;
    width: auto;
    height: 34px;
    border: 3px solid aliceblue;
    border-radius: 3%;
    font-family: 'poppins', sans-serif;
    font-size: 1em;
    text-align: center;
    color: aliceblue;
    background-color: rgb(53, 21, 93);
    transition: 0.7s ease-in-out;
}

.buttons-control button:hover {
    border-radius: 12px;
    border-color: rgb(53, 21, 93);
    color: rgb(53, 21, 93);
    background-color: aliceblue;
}

.hidden-video {
    display: none;
    visibility: hidden;
}
/* termina nuevo */

.buttons-vi {
    margin: 13px 13px 13px 0;
    width: auto;
    height: 34px;
    border: 3px solid aliceblue;
    border-radius: 3%;
    font-family: 'poppins', sans-serif;
    font-size: 1em;
    text-align: center;
    background-color: rgb(53, 21, 93);
    transition: 0.7s ease-in-out;
}

.buttons-vi:hover {
    border-radius: 12px;
    border-color: rgb(53, 21, 93);
    background-color: aliceblue;
}

.buttons-vi a {
    text-decoration: none;
    color: aliceblue;
    transition: 0.7s ease-in-out;
}

.buttons-vi a:hover {
    text-decoration: none;
    color: rgb(53, 21, 93);
}

footer {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}

footer a {
    text-decoration: none;
    color: aliceblue;
    padding: 12px;
    font-size: xx-large;
    transition: 0.7s ease-in-out;
}

footer a:hover {
    transform: scale(1.3);
}

/* start screen fit */
@media only screen and (min-width: 1597px) {
    body {
        font-size: 1.5em;
    }

    nav>ul>li {
        font-size: 0.7em;
    }
}

@media only screen and (max-width: 650px) {
    h1 {
        font-size: 1.2em;
    }

    button.hamburger {
        display: block;
        padding: 20px 0;
        border: 0;
        background-color: transparent;
        color: aliceblue;
        font-size: 27px;
    }

    nav {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        width: auto;
    }

    ul {
        display: none;
        justify-content: flex-start;
        width: 100%;
        padding: 0;
    }

    li {
        margin: 0;
        padding: 0 12px; /* aquí */
        font-size: small;
    }

    h2 {
        font-size: 1.17em;
    }

    p {
        font-size: small;
    }

    .youtube {
        width: 100%;
    }

    .buttons-control {
        display: flex;
        flex-direction: column;
    }

    .button-example {
        width: 100vw;
    }

    .buttons-vi {
        width: 100%;
        justify-content: end;
    }
}
