/* Styles for Projects page */

.hero {
    height: 56vh;
}


/*
.hero .container {
    height: auto;
}
*/

.hero__texts {
    margin-bottom: 10px;
}

.hero__subtitle {
    font-weight: 600;
}


/* MAIN - Projects */

main {
    display: flex;
    justify-content: center;
}

.info__main {
    margin: 20px;
    width: 70%;
    flex-direction: column;
}

article.project:not(:first-child) {
    margin-top: 48px;
}

section.info__main .project:first-child {
    margin-top: 8px;
}

article.project {
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 8px;
}

.project__container {
    display: flex;
    margin: 8px;
}

.project .project__title {
    margin-left: 16px;
    margin-bottom: 8px;
    width: 400px;
    display: flex;
    justify-content: space-around;
}

.project__title h2 {
    font-style: italic;
}

.project__title .btn__github {
    cursor: pointer;
    width: 120px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border-radius: 24px;
    border: 2px solid #06165d;
    transition-property: background-color;
    transition-duration: 0.25s;
    transition-timing-function: linear;
    /* transition-delay: 0.2s; */
}

i.fab.fa-github-square {
    font-size: 1.3rem;
    margin-top: 2px;
}

.project__title .btn__github .arrow {
    display: none;
}

.project__title .btn__github:hover {
    color: #fff;
    background-color: #06165d;
}

.project__title .btn__github a {
    text-decoration: none;
    font-weight: bold;
}

.project__title .btn__github:hover {
    justify-content: space-between;
}

.project__title .btn__github:hover a {
    color: #fff;
    text-decoration: none;
}

.project__title .btn__github:hover .icon {
    display: none;
}

.project__title .btn__github:hover .arrow {
    display: inline;
}

.project .project__details {
    margin-left: 16px;
    text-align: justify;
    width: 65%;
    padding: 12px;
}

ul.project__details__list {
    padding-left: 0;
}

ul.project__details__list li {
    margin-top: 8px;
}

.project__details img.icon {
    width: 1rem;
}

.project__img_border {
    border: 4px solid #06165d;
    border-radius: 24px;
}

.project__image img {
    width: 500px;
    border-radius: 18px;
}

.project__details__list {
    list-style-type: none;
}

.project hr {
    width: 100%;
    margin-left: 16px;
}

@media screen and (max-width:1200px) {
    .project__container {
        flex-direction: column;
        align-items: center;
    }
    .project__details {
        width: 100%!important;
        margin-left: 0px;
        margin-top: 16px;
    }
    .project__img_border {
        width: fit-content;
    }
}

@media screen and (max-width:1000px) {
    .hero__container {
        margin: 0 50px;
    }
}

@media screen and (max-width:720px) {
    .project__image img {
        width: 400px;
    }
    iframe {
        width: 400px!important;
    }
}

@media screen and (max-width:550px) {
    .info__main {
        margin: 0 auto !important;
        width: 100% !important;
    }
    .project__image img {
        width: 350px;
    }
    iframe {
        width: 280px!important;
    }
    .project .project__title {
        justify-content: center;
        width: 385px;
    }
    .btn__github {
        margin-left: 8px;
    }
    .project hr {
        width: 95%;
    }
}


/* Falla el responsive al reducir más de +/- 423px por culpa del main o alguna clase o todo a la vez*/

@media screen and (max-width:420px) {
    .project .project__title {
        width: 224px;
        flex-direction: column;
        align-items: center;
    }
}

@media screen and (max-width:420px) {
    .hero__container {
        margin: 0 20px;
    }
    .hero__subtitle {
        font-size: 1rem!important;
    }
    .project__image img {
        width: 210px;
    }
}

@media screen and (max-width:310px) {
    .hero__container {
        margin: 0 5px;
    }
    iframe {
        width: 210px!important;
    }
    .project__title h2 {
        margin-bottom: 8px;
    }
}

@media screen and (max-width:250px) {
    .project .project__title {
        width: 160px;
    }
    iframe {
        width: 180px!important;
    }
    .project__image img {
        width: 180px;
    }
}

@media screen and (max-height:550px) and (max-width:500px) {
    .hero__subtitle {
        font-size: 1rem!important;
    }
}