@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&display=swap");

:root {
    --index-color: #3d84b8;
    --about-color: #583d72;
    --contact-color: #f21170;
    --cv-color: #f39189;
    --form-color: #810000;
    --interest-color: #3a6351;
    --portfolio-color: #d97642;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Roboto", sans-serif;
}

.x {
    font-weight: bold;
    font-size: 3em;
    /* position: absolute; */
    z-index: 200;
    bottom: 60px;
    left: 10px;
    display: none;
    cursor: pointer;
    color: var(--index-color);
    position: fixed;
}

.navegacion {
    background-color: #000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
}

.navegacion span a {
    text-decoration: none;
    color: #fff;
    margin-left: 1em;
    font-weight: bold;
    letter-spacing: 5px;
}

.navegacion span a span:nth-child(1) {
    color: var(--index-color);
}

.navegacion span a span:nth-child(2) {
    color: var(--index-color);
}

.navegacion span a span:nth-child(3) {
    color: var(--about-color);
}

.navegacion span a span:nth-child(4) {
    color: var(--portfolio-color);
}

.navegacion span a span:nth-child(5) {
    color: var(--contact-color);
}

.navegacion span a span:nth-child(6) {
    color: var(--cv-color);
}

.navegacion span a span:nth-child(7) {
    color: var(--interest-color);
}

.navegacion span a span:nth-child(8) {
    color: var(--form-color);
}

.navegacion ul {
    display: flex;
}

.navegacion ul li {
    list-style: none;
    display: flex;
    margin-right: 1em;
}

.navegacion ul li a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    transition: all 0.5s;
}

.navegacion ul li:hover {
    opacity: 0.7;
}

.navegacion ul li:nth-child(1) a {
    color: var(--index-color);
}

.navegacion ul li:nth-child(2) a {
    color: var(--about-color);
}

.navegacion ul li:nth-child(3) a {
    color: var(--portfolio-color);
}

.navegacion ul li:nth-child(4) a {
    color: var(--contact-color);
}

.navegacion ul li:nth-child(5) a {
    color: var(--cv-color);
}

.navegacion ul li:nth-child(6) a {
    color: var(--interest-color);
}

.navegacion ul li:nth-child(7) a {
    color: var(--form-color);
}

.index {
    min-height: calc(100vh - 100px - 50px);
    color: var(--index-color);
}

.index-banner {
    height: 300px;
    background-color: var(--index-color);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.index-banner h1 {
    color: #fff;
    letter-spacing: 5px;
}

.wave {
    position: absolute;
    bottom: 0;
    width: 100%;
}

.index-container-content {
    width: 90%;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    min-height: calc(100vh - 50px - 100px - 300px);
    justify-content: center;
    align-items: center;
}

.index-container-content .principal {
    width: 60%;
    font-size: 1.5em;
}

.index-container-content .imgBox {
    width: 40%;
}

.imgBox img {
    width: 100%;
    min-width: 400px;
}

footer {
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: black;
}

footer small {
    font-weight: 500;
    letter-spacing: 1px;
    color: #fff;
}

@media (max-width: 940px) {
    .index-container-content {
        grid-template-columns: 1fr;
    }

    .index-container-content .principal {
        width: 100%;
    }

    .index-container-content .imgBox {
        width: 100%;
    }

    .imgBox img {
        width: 100%;
        min-width: 200px;
    }

    .index-container-content .principal {
        font-size: 1em;
    }
}

@media (max-width: 720px) {
    .navegacion {
        flex-direction: column;
        opacity: 0.9;
        height: 100vh;
        width: 100%;
        justify-content: space-around;
        z-index: 100;
        position: fixed;
    }

    .index {
        min-height: calc(100vh - 50px);
    }

    .navegacion span a {
        font-size: 2em;
    }

    .navegacion ul {
        flex-direction: column;
    }

    .navegacion ul li {
        flex-direction: column;
        margin: 0;
        margin-top: 2em;
    }

    .navegacion ul li a {
        font-weight: bold;
        font-size: 1.5em;
    }

    .active {
        display: none;
    }

    .x {
        display: block;
    }
}
