html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}


/* animations */
@keyframes flyFromRight {
    0% {
        opacity: 0;
        transform: translateX(100%);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes flyFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-100%);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes flyFromTop {
    0% {
        opacity: 0;
        transform: translateY(-100%);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes flyFromDown {
    0% {
        opacity: 0;
        transform: translateY(+100%);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes onEnter {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}


.onEnterClass {
    animation: onEnter 1000ms ease-in-out;
}


.flyFromRightClass {
    animation: flyFromRight 2s forwards;
}

.flyFromLeftClass {
    animation: flyFromLeft 2s forwards;
    opacity: 0;
    transform: translateX(-100%);
}

.flyFromTopClass {
    animation: flyFromTop 2s forwards;
    opacity: 0;
    transform: translateY(-100%);
}

.flyFromDownClass {
    animation: flyFromDown 2s forwards;
    opacity: 0;
    transform: translateY(100%);
}

.forAnimationSelector {
    opacity: 0;
}



/*opcenito*/
* {
    margin: 0;
    padding: 0;
}

/* header */
header {
    background-color: white;
    width: 100%;
    border-bottom: 1px solid white;
}

header>ul {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;

    width: 100%;

    list-style: none;

    margin: 0;
    padding: 0;
}

header>ul li {
    margin: 15px 0px;
    padding: 5px;
    width: max-content;
    transition: font-size 1 ease-in-out;
}

header>ul li:hover a {
    font-size: 1.3rem;
}

@media (max-width: 600px) {
    header>ul a {
        font-size: 0.8rem;
    }

    header>ul li:hover a {
        font-size: 0.8rem;
    }
}

header a {
    text-decoration: none;
    color: black;

}

.homeLink {
    background-color: orange;
    border-radius: 7px;
    width: 4rem;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0xp 2px;
}

.homeLink a {
    color: black;
}

/*Hero*/
#hero {
    width: 100%;
    background-color: #343a40;
    border-bottom: 1px solid white;
}

.nameH1 {
    color: white;
}

/*skills*/
.skills {
    border-bottom: 1px solid black;
}

/*projects*/
#projects {
    background-color: #343a40;

}


/*about*/
#about {
    background-color: white;

    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.aboutMeInfo {
    width: 40%;
    margin: 0 2rem;
}

.aboutMeInfo h1 {
    text-align: center;
    color: black;
    margin-bottom: 2rem;
}

.aboutMeInfo p {
    color: black;
    font-size: 1rem;
    float: left;
}

@media (max-width: 1000px) {

    #about {
        flex-direction: column;
    }


}

@media (max-width: 600px) {


    .carousel-caption h5 {
        font-size: 0.9rem;
    }

    .carousel-caption p{
        font-size: 0.5rem;
        background-color: rgba(0, 0, 0, 0.4);
    }


    .aboutMeInfo {
        width: 80%;
    }



}

/*contact*/
#contact a {
    text-decoration: none;
    color: white;
}


/**/
#contact h1 {
    font-size: 5rem;
}