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

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

h1 {
    margin: 0;
    padding: 0;
}

h1.hide {
    display: none;
}

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: 12px;

}

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

main hr {
    margin-bottom: 0;
    padding-bottom: 0;
}

#main-section {
    margin-top: 0;
    padding-top: 0;
    background-image: url("../media/fabianindex.jpeg");
    background-size: cover;
    background-position: top center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#main-section h2, #main-section p {
    width: 89%;
    margin: 0;
    padding: 0 12px;
    justify-content: center;
    align-items: center;
    background-color: rgba(53, 21, 93, 0.5);
}

#main-section h2 {
    margin-top: 233px;
}

p {
    text-align: justify;
}

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

.examples h2 {
    text-align: left;
}

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

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

footer {
    padding: 0 8vw;
}

footer p {
    width: 100%;
    text-align: center;
}

main a, footer a {
    color: aliceblue;
    transition: ease-in-out 0.7s;
}

main a:hover, footer a:hover {
    background-color: aliceblue;
    color: rgb(53, 21, 93);
}

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

.footer a {
    padding-bottom: 12px;
    font-size: xx-large;
}

.footer a:hover {
    transform: scale(1.3);
    background-color: transparent;
    color: aliceblue;
}

/* 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 3px;
        font-size: small;
    }

    #main-section h2, #main-section p {
        width: 100%;
        padding: 12px;
    }

    h2 {
        font-size: 1.17em;
    }

    p {
        font-size: small;
    }

    .youtube {
        width: 100%;
    }

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

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