:root {
    --primary-color: #0EB1D2E6;
    --secondary-color: rgb(235, 235, 235, 0.8);
    --animac-color: #C52A72E6;
    --twist-color: #9147FFE6;
    --urano-color: #00B2A9E6;
    --logos-color: #F29F38E6;
    --packaging-color: #FFCD00E6;
    --varios-color: #58656DE6;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    display: flex;
    margin: 0 auto;
    text-align: center;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    min-height: 100vh;
}

h1 {
    display: none;
}

/* .static-elements {
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    flex-direction: column;
    justify-content: space-between;
    height: 100vh;
    width: 100vw;
} */

header {
    z-index: 999;
    display: flex;
    width: 100vw;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    padding: 20px 30px;
}

header img {
    width: 100px;
    height: 75.71px;
    cursor: pointer;
}

nav ul {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background-color: transparent;
    list-style: none;
    font-weight: 500;
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: white;
    background-color: rgb(235, 235, 235, 0.8);
    border-radius: 30px;
    padding: 13px 18px;
    transition: all 0.3s ease 0s;
}

nav ul li a:hover {
    background-color: #0EB1D2E6;
    padding: 13px 18px;
    border-radius: 30px;
    color: white;
}

.burger-nav-open,
.burger-nav-close,
.burger-buttons {
    display: none;
}

footer {
    z-index: 1;
    display: flex;
    align-items: center;
    position: absolute;
    width: 100%;
    bottom: 0;
    left: 0;
    padding: 30px;
}

footer ul {
    display: flex;
    flex: 1;
    justify-content: flex-end;
    list-style: none;
    font-weight: bold;
    gap: 20px;
}

footer a {
    font-weight: normal;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease 0s;
}

footer p {
    display: flex;
    flex: 1;
    color: white;
    font-weight: 300;
    text-align: left;
}

footer ul li a:hover {
    color: #0EB1D2E6;
}

footer .navigation {
    display: flex;
    flex: 1;
    justify-content: center;
}

footer .navigation .btn {
    background-color: rgb(235, 235, 235, 0.8);
    width: 12px;
    height: 12px;
    margin: 10px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s ease;
}

footer .navigation .btn.active {
    background-color: #0EB1D2E6;
}

footer .navigation .btn:hover {
    background-color: #0EB1D2E6;
    transform: scale(1.2);
}

.img-slider {
    position: absolute;
    top: 0;
    left: 0;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
}

.img-slider .slide {
    z-index: 1;
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    opacity: 0.95;
}

.slide.unactive {
    display: none;
}

.text-webfolio {
    margin-left: -120px;
}

.project {
    z-index: 1;
    width: 770px;
    height: 70px;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -70px;
    margin-left: -380px;
    text-align: center;
    text-shadow: 2px 2px 4px black;
}

.project a {
    font-size: 120px;
    text-decoration: none;
    color: white;
    font-weight: 800;
}

.project.unactive {
    display: none;
}

.works-grid {
    display: grid;
    width: 80vw;
    height: 76vh;
    margin-top: 30px;
}

.gridOne {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.gridTwo {
    display: grid;
    grid-template-columns: 1fr 3fr 2fr;
}

.gridThree {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr 1fr;
}

.item {
    position: relative;
    margin: 10px 10px;
}

.projectimg {
    width: 100%;
    height: 184px;
    border-radius: 16px;
}

.projectinfo {
    display: flex;
    flex-direction: column;
    color: white;
    position: absolute;
    z-index: 3;
    transform: translateY(-50%);
    top: 50%;
    left: 50%;
    margin-left: -42px;
    opacity: 0;
    transition: all 0.3s ease 0;
}

.projectinfo:hover {
    opacity: 1;
    transition: all 0.3s ease 0;
}

.projectinfo:hover+.projectimg {
    filter: brightness(0.7);
}

.juguetes,
.twitch,
.animac,
.kyoyu {
    margin-left: -50px;
}

.packaging,
.logofolio,
.tripticos {
    margin-left: -60px;
}

.tuproyecto {
    margin-left: -80px;
}

.about-container {
    margin-top: 72px;
    width: 100vw;
    height: 80vh;
    overflow: auto;
}

.about-container::-webkit-scrollbar {
    display: none;
}

table {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.skill-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.skill {
    width: 150px;
    height: 20px;
    background-color: #ddd;
    position: relative;
    border-radius: 50px;
}

.filled {
    height: 100%;
    background-color: #0EB1D2;
    transition: width 0.3s ease;
    border-radius: 50px;
}

.filled-90 {
    width: 90%;
}

.filled-80 {
    width: 80%;
}

.filled-60 {
    width: 60%;
}

.filled-40 {
    width: 40%;
}

.h2-contact {
    font-size: 40px;
    margin-top: 20px;
    color: var(--primary-color);
}

.contact-text {
    font-size: 18px;
}

.contact-container {
    margin-bottom: 30px;
}

.contact-form {
    display: flex;
    justify-content: center;
    align-items: center;
}

.cvitae {
    margin-bottom: 45px;
    color: white;
    background-color: rgb(235, 235, 235, 0.8);
    border-radius: 30px;
    padding: 13px 24px;
    transition: all 0.3s ease 0s;
    border: none;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
}

.cvitae:hover {
    background-color: #0EB1D2E6;
    padding: 13px 24px;
    border-radius: 30px;
    color: white;
}

input {
    font-size: 16px;
    width: 352px;
    padding: 12px 12px 12px 12px;
    border-radius: 8px;
    border: 1px solid lightgray;
    margin: 10px;
}

input:focus {
    outline: 2px solid #0EB1D2E6;
}

input:valid {
    outline: 2px solid limegreen;
}

#email {
    width: 729px;
}

#message {
    font-size: 16px;
    width: 729px;
    height: 250px;
    padding: 12px 12px 12px 12px;
    border-radius: 8px;
    border: 1px solid lightgray;
    margin: 10px;
    resize: none;
}

#message:focus {
    outline: 2px solid #0EB1D2E6;
}

#message:valid {
    outline: 2px solid limegreen;
}

[type="submit"] {
    color: white;
    background-color: rgb(235, 235, 235, 0.8);
    border-radius: 30px;
    padding: 13px 24px;
    transition: all 0.3s ease 0s;
    border: none;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
}

[type="submit"]:hover {
    background-color: #0EB1D2E6;
    padding: 13px 24px;
    border-radius: 30px;
    color: white;
}

.project-container {
    background-image: url("/img/project1.png");
    width: 100vw;
    height: 100%;
    overflow: auto;
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
}

.projectTitle {
    z-index: 1;
    width: 770px;
    height: 70px;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -70px;
    margin-left: -380px;
    text-align: center;
}

@media screen and (min-width: 768px) and (max-width: 1500px) {
    
    .img-slider {
        text-align: center;
    }

    .img-slider .slide {
        width: 100%;
        height: 100%;
        transform: unset;
    }
}

@media screen and (max-width: 768px) {

    .burger-nav-open,
    .burger-nav-close,
    .burger-buttons {
        display: block;
    }

    /*.burger-nav-close {
        margin-top: -70px;
    }*/

    .burger-nav-open {
        display: block;
        height: 26px;
        width: 32px;
        position: absolute;
        top: 40px;
        right: 30px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .line-burger {
        display: block;
        height: 4px;
        width: 100%;
        border-radius: 10px;
        background: white;
    }

    .line1 {
        transform-origin: 0% 0%;
        transition: transform 0.4s ease-in-out;
    }

    .line2 {
        transition: transform 0.2s ease-in-out;
    }

    .line3 {
        transform-origin: 0% 100%;
        transition: transform 0.4s ease-in-out;
    }

    .burger-nav-close {
        display: block;
        height: 26px;
        width: 33px;
        position: absolute;
        top: 40px;
        right: 30px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .ex-burger {
        display: block;
        height: 4px;
        width: 100%;
        border-radius: 10px;
        background: var(--primary-color);
    }

    .ex-burger.line1 {
        transform: rotate(45deg);
    }

    .ex-burger.line2 {
        transform: scaleY(0);
    }

    .ex-burger.line3 {
        transform: rotate(-45deg);
    }

    .navbar {
        opacity: 0;
        visibility: hidden;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        gap: 410px;
        position: absolute;
        top: 0;
        right: -1px;
        bottom: 0;
        background-color: white;
        padding: 120px 25px 820px 25px;
        box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.7);
        transition: ease-in-out 0.4s;
    }

    .navbar.visible {
        opacity: 1;
        visibility: visible;
        width: 101vw;
    }

    .nav-buttons {
        flex-direction: column;
        align-items: center;
        gap: 60px;
        margin-top: 50px;
    }

    nav a {
        padding: 0;
        border-radius: 0;
        background-color: white;
        color: var(--primary-color);
        font-size: 24px;
    }

    .burger-menu {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .burger-buttons {
        position: absolute;
        bottom: 20%;
        left: 7%;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 50px;
        color: black;
    }

    .burger-buttons p {
        width: 150px;
        font-size: 18px;
    }

    footer p {
        display: none;
    }

    .navigation {
        position: absolute;
        left: 35%;
    }

    footer li {
        display: none;
    }

    .img-slider {
        text-align: center;
    }

    .img-slider .slide {
        width: auto;
        height: 100%;
        transform: translateX(-39%);
    }

    .text-webfolio {
        margin-left: 0px;
    }

    .project {
        margin-top: -40px;
    }

    .project a {
        font-size: 40px;
    }

}