@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;
}

/* CSS especial para arduino comienza */
.lines {
    margin: auto;
    height: 100vh;
    width: 100vw;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: -1;
}

.line {
    position: absolute;
    width: 1px;
    height: 100%;
    top: 0;
    left: 50%;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.line::after {
    content: '';
    display: block;
    position: absolute;
    height: 15vh;
    width: 100%;
    top: -50%;
    left: 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #ffffff 75%, #ffffff 100%);
    animation: drop 7s 0s infinite;
    animation-fill-mode: forwards;
    animation-timing-function: cubic-bezier(0.4, 0.26, 0, 0.97);
}

.line:nth-child(1) {
    margin-left: -21%;
}

.line:nth-child(1)::after {
    animation-delay: 2.1s;
}

.line:nth-child(3) {
    margin-left: 21%;
}

.line:nth-child(3)::after {
    animation-delay: 3.4s;
}

@keyframes drop {
    0% {
        top: -50%
    }
    100% {
        top: 110%
    }
}
/* CSS especial para arduino termina */

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;
}

.buttons-arduino 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-arduino button:hover {
    border-radius: 12px;
    border-color: rgb(53, 21, 93);
    color: rgb(53, 21, 93);
    background-color: aliceblue;
}

video {
    margin: 21px auto;
    width: 89%;
    height: auto;
}

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

.vertical {
    height: 100%;
    aspect-ratio: 0.8;
    width: auto;
    object-fit: contain;
}

.hidden-video {
    display: none;
    visibility: hidden;
}

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;
        font-size: small;
    }

    h2 {
        font-size: 1.17em;
    }

    p {
        font-size: small;
    }

    video, .vertical {
        width: 100%;
        justify-content: end;
    }

    .youtube {
        width: 100%;
    }

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

    .button-example {
        width: 100vw;
    }
}
