@import url('https://fonts.googleapis.com/css2?family=Indie+Flower&family=Roboto+Mono:ital,wght@0,200;0,300;1,200;1,300&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;1,100;1,300;1,400;1,500;1,700&display=swap');

* {
    font-family: 'Roboto', sans-serif;
    color-scheme: dark;
    user-select: none;
}

::view-transition-old(main),
::view-transition-new(main) {
    animation-duration: 0.7s;
}

.monospace {
    font-family: 'Roboto Mono', monospace;
    font-weight: 500;
    color: darkorange;
}

header {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
}

h1 {
    font-size: 4rem;
}

h2 {
    font-size: 3rem;
}

h3 {
    font-size: 2.5rem;
}

h4 {
    font-size: 2rem;
}

h5 {
    font-size: 1.5rem;
}

p, span, strong, em, li {
    font-size: 1.75rem;
}

progress {
    width: 100%;
}

.error-404 {
    margin-top: 60px;
    color: lightcoral;
    text-align: center;

    & a {
        font-size: 1.75rem;
    }
}

.under-construction {
    margin-top: 60px;
    color: lightblue;
    text-align: center;

    & a {
        color: whitesmoke;
        font-size: 1.75rem;
        text-decoration: none;
    } 

    & :hover {
        text-decoration: underline;
    }

    & :visited {
        text-decoration: none;
        color: yellow;
    }
}

.aside-menu {
    z-index: 9999;
    background-color: black;
    cursor: pointer;
    position: fixed;
    width: 0px;
    left: 0;
    top: 0;
    bottom: 0;
    margin: 0;
    padding: 0px;
    box-sizing: border-box;
    transition: width 0.5s ease-in-out;
    box-shadow: 4px 4px 8px rgb(170, 170, 170);

    & .menu-items {
        margin-top: 60px;
        padding: 6px;
        display: block;

        & p.item-menu {
            padding: 10px;
            font-size: 0.9rem;
        }

        & p.item-menu:hover {
            background-color: black;
            color: yellow;
        }

        & p.item-menu:active {
            filter: invert(100%);
        }
    }

    & .menu-icon-close {
        padding-top: 36px;
        padding-right: 10px;
        cursor: pointer;
        float: right;
        filter: invert(80%);
    
        & img {
            width: 18px;
            height: 18px;
        }
    }
}

.menu-icon {
    padding-top: 18px;
    position: fixed;
    cursor: pointer;
    float: left;
    filter: invert(80%);

    & img {
        width: 20px;
        height: 20px;
    }
}

.hide-section {
    transition: 1s ease-out;
    display: none;
}

.hide-menu-items {
    transition: width 1s ease-out;
    display: none;
}

.aside-menu-expanded {
    transition: width 0.5s ease-in;
    width: 180px;
}

.logo {
    position: fixed;
    top: 0;
    right: 0;
    padding: 10px;
    font-family: 'Indie Flower', cursive;
    font-weight: 500;
    font-size: 3rem;
}

main {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    max-width: 100%;
}

footer {
    text-align: center;
    position: fixed;
    bottom: 0;
    width: 100%;
    padding: 4px;
    background-color: #121212;
    opacity: 0.8;

    & p, span {
        font-size: 0.8rem;
    }
}

.dialog {
    position: fixed;
    width: 90%;
    height: 90%;
    top: 15px;
    right: 15px;
    bottom: 15px;
    left: 15px;
    background-color: #121212;
    z-index: 9999;
    overflow-y: auto;

    & .modal-icon-close {
        padding-top: 10px;
        padding-right: 10px;
        cursor: pointer;
        float: right;
    
        & img {
            filter: invert(100%);
            width: 18px;
            height: 18px;
        }

        & img:active {
            filter: grayscale(50%);
        }
    }

    & .modal-content {
        display: flex;
        flex-direction: column;
        align-items: start;
        justify-content: flex-start;
    }

    & .green-span-tag {
        font-size: 1rem;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding-top: 6px;
        padding-bottom: 6px;
        padding-left: 12px;
        padding-right: 12px;
        margin-right: 10px;
        border-radius: 10px;
        background-color: rgb(0, 154, 0);
    }
}

dialog::backdrop {
    background: rgba(0, 0, 0, 0.9);
}

.slide-up {
    animation: slideUp 1s ease-in-out;
}
  
.fade-in {
    animation: fadeIn 1s ease-in-out;
}

.fade-out {
    animation: fadeOut 1s ease-in-out;
}

.color-change-text:hover {
    animation: colorChange 4s ease;
}

/* SECCIÓN BOOKS */
.books {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 700px;
}

.books-container {
    display: flex;
    flex-direction: row;
    padding-bottom: 40px;

    & img {
        background-color: whitesmoke;
        width: 216px;
        height: 307px;
        filter: grayscale(100%);
    }

    & img:hover {
        filter: none;
    }

    & p {
        font-size: 1.5rem;
    }
}

.book-detail {
    padding-left: 40px;
    
    & p {
        text-transform: uppercase;
        font-size: 1.2rem;
    }

    & p:hover {
        cursor: pointer;
        color: lightblue;
    }
}

/* SECCIÓN HOME */
.home {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 700px;

    & .me img {
        width: 252px;
        height: 235px;
        border-radius: 50%;
        filter: grayscale(100%);
    }

    & img:hover {
        transition: filter 1s ease-in-out;
        filter: none;
    }

    & .intro {
        text-align: center;
    }

    & .intro p {
        margin-bottom: 10px;
        letter-spacing: 2px;
    }
}

/* SECCIÓN CERTIFICATIONS */

.certificates {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 760px;
}

.certifications {
    display: flex;
    flex-direction: row;
    justify-content: center;

    & h2 {
        letter-spacing: 2px;
    }
}

.certifications-container {
    display: flex;
    flex-direction: row;
    padding-bottom: 40px;
    /* max-width: 760px;
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 30px; */
}

.certifications {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    text-align: center;
    padding-bottom: 20px;

    & span {
        font-size: 1rem;
        padding: 8px;
        border: 1px solid whitesmoke;
        width: 80px;
        cursor: pointer;
    }

    & span:hover {
        background-color: rgb(25, 129, 170);
    }
}

iframe {
    border: none;
    padding-top: 30px;
    width: 760px !important;
    height: 490px !important;
    scroll-behavior: auto;
}

/* SECCIÓN KICKOFF*/
.kickoff {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 700px;

    & h2 {
        letter-spacing: 2px;
    }
}

/* SECCIÓN PROFESSIONAL LIFE */
.professional {
    text-align: center;
    margin: 0 auto;
    margin-top: 60px;
    max-width: 1200px;
}

.card-container {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    align-items: center;
    padding: 20px;
    gap: 30px;
}

.card-prof-wide {
    max-width: 780px;
    height: auto;
    padding: 20px;
    line-height: 20px;
    word-spacing: 1px;

    & h4 {
        text-transform: uppercase;
    }

    & ul {
        line-height: 30px;
    }
}

.card-prof {
    cursor: pointer;
    width: 300px;
    height: 400px;
    border-radius: 4px;
    padding-top: 14px;
    border: 1px solid black;
    box-shadow: 0px 4px 10px rgb(65, 65, 65);

    & img {
        max-width: 300px;
        height: auto;
        filter: grayscale();
        transition: filter 0.3s ease, grayscale 0.3s ease;
    }

    & img:hover {
        filter: none;
    }

    & h3 {
        font-weight: 300;
    }
}

/* SECCIÓN PROFICENCIES */
.proficencies {
    margin-top: 100px;
    padding-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: flex-start;
    align-items: center;
    max-width: 1200px;

    & h2 {
        margin: 0 auto;
    }

    & .list-of-prof {
        row-gap: 20px;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
        justify-content: center;
        flex-wrap: wrap;
            
    }

    & p {
        font-weight: 100;
    }
    
    & .span-tag {
        font-size: 1.3rem;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding-top: 6px;
        padding-bottom: 6px;
        padding-left: 12px;
        padding-right: 12px;
        margin-right: 20px;
        border-radius: 10px;
        background-color: rgb(255, 98, 0);
    }
}

/* SECCIÓN CONTACTING ME*/
.write-me {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 760px;
}

.container-contact {
    display: flex;
    flex-direction: column;
    gap: 20px;

    & a {
        text-decoration: none;
        color: white;
    }

    & a:hover {
        color: yellow;
    }
}

.contacting-me {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center; 
    padding: 20px;
    border: 1px solid black;
    box-shadow: 1px 2px 10px gray;

    & img {
        display: inline;
        width: 32px;
        height: 32px;
        padding: 10px;
        animation: girar 0.8s ease-in;
    }

    & p, em {
        display: inline;
        font-size: 1rem;
    }
}

.contacting-me:hover {
    box-shadow: 2px 4px 20px gray;
}


/* SECCIÓN ACADEMIC */
.academic {
    text-align: center;
    margin: 0 auto;
    margin-top: 60px;
    max-width: 1200px;
}

.academic-card-container {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    align-items: center;
    padding: 20px;
    gap: 30px;
}

.academic-card-prof-wide {
    max-width: 780px;
    height: auto;
    padding: 20px;
    line-height: 20px;
    word-spacing: 1px;

    & h3 {
        text-transform: uppercase;
    }
}

.academic-card-prof {
    width: 300px;
    height: 340px;
    border-radius: 4px;
    padding-top: 14px;
    padding-right: 20px;
    padding-left: 20px;
    border: 1px solid black;
    box-shadow: 0px 4px 10px rgb(65, 65, 65);

    & img {
        padding-top: 14px;
        max-width: 300px;
        height: auto;
        filter: grayscale();
        transition: filter 0.3s ease, grayscale 0.3s ease;
    }

    & img:hover {
        filter: none;
    }

    & h3 {
        padding-top: 14px;
        font-size: 1.7rem;
        font-weight: 300;
        text-transform: uppercase;
    }
}

@media screen and (width <= 760px) {
    h1 {
        font-size: 3.5rem;
    }
    
    h2 {
        font-size: 2.5rem;
    }
    
    h3 {
        font-size: 2rem;
    }
    
    h4 {
        font-size: 1.5rem;
    }

    h5 {
        font-size: 1rem;
    }
    
    p, span, strong, em, li {
        font-size: 1.25rem;
    }

    main {
        padding-left: 10px;
        padding-right: 10px;
    }

    .error-404 {
        margin-top: 60px;
        color: lightcoral;
        text-align: center;
    
        & a {
            font-size: 1rem;
        }
    }
    
    .under-construction {
        margin-top: 60px;
        color: lightblue;
        text-align: center;
    
        & a {
            font-size: 1rem;
        }
    }

    .books-container {
        display: flex;
        flex-direction: row;
    
        & img {
            margin-top: 20px;
            background-color: whitesmoke;
            width: 162px;
            height: 231px;
            filter: grayscale(100%);
        }
    }

    .book-detail {
        padding-left: 20px;
        
        & p {
            text-transform: none;
            font-size: 1rem;
        }
    }

    .proficencies {
        & .list-of-prof {
            row-gap: 10px;
        }

        & .span-tag {
                font-size: 0.8rem;
                padding-left: 8px;
                padding-right: 8px;
            }
    }
    .card-prof {
        width: 300px;
        height: 340px;
        border-radius: 6px;
        padding-top: 0;
    }    

    .certifications {
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: 760px;
    
        & h2 {
            letter-spacing: 2px;
        }
    }

    .certificates {
        margin-top: 60px;
        display: flex;
        flex-direction: column;
        align-items: center;
        max-width: 760px;
    
    }
    
    .certifications-container {
        max-width: 760px;
        margin-top: 30px;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-evenly;
        gap: 30px;
    }
    
    .certifications {
        display: flex;
        flex-direction: row;
        align-content: space-between;
        flex-wrap: wrap;
        gap: 8px;
        text-align: center;
        padding-bottom: 20px;
    
        & span {
            font-size: 1rem;
            padding: 8px;
            border: 1px solid whitesmoke;
            width: 80px;
            cursor: pointer;
        }
    
        & span:hover {
            background-color: rgb(25, 129, 170);
        }
    }
    
    iframe {
        border: none;
        padding-top: 30px;
        max-width: auto;
        height: 490px !important;
        scroll-behavior: auto;
    }
}

@media screen and (width <= 480px) {
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    h4 {
        font-size: 1rem;
    }

    h5 {
        font-size: 0.8rem;
    }
    
    p, span, strong, em, li {
        font-size: 1rem;
    }    

    main {
        padding-left: 14px;
        padding-right: 14px;
    }

    .card-prof {
        max-width: 300px;
        height: 300px;

        & img {
            max-width: 300px;
        }
    }

    .books {
        max-width: 100%;
    }

    .books-container {
        display: flex;
        flex-direction: column;
        align-items: center;
            
        & img {
            background-color: whitesmoke;
            width: 200px;
            height: auto;
        }
    }

    .book-detail {
        margin-top: 10px;
        text-align: center;
    }

    .proficencies {
        & .list-of-prof {
            row-gap: 8px;
        }

        & .span-tag {
                font-size: 0.8rem;
                padding-left: 6px;
                padding-right: 6px;
            }
        }
}


/* ANIMACIONES */
@keyframes colorChange {
    0% {
        color: lightblue;
    }
    10% {
        color: darkorange;
    }
    22% {
        color: yellow;
    }
    29% {
        color: lightblue;
    }
    36% {
        color: darkorange;
    }
    48% {
        color: yellow;
    }
    60% {
        color: lightblue;
    }
    70% {
        color: darkorange;
    }
    74% {
        color: yellow;
    }
    76% {
        color: darkorange;
    }
    78% {
        color: yellow;
    }
    80% {
        color: darkorange;
    }
    84% {
        color: yellow;
    }
    88% {
        color: lightblue;
    }
    94% {
        color: darkorange;
    }
    100% {
        color: yellow;
    }
}

@keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
}

@keyframes fadeOut {
    from {
      opacity: 1;
    }
    to {
      opacity: 0;
    }
}

@keyframes slideUp {
    from {
      transform: translateY(0);
      opacity: 1;
    }
    to {
      transform: translateY(-100%);
      opacity: 0;
    }
}

@keyframes girar {
    0% {
        transform: rotate(0deg);
    }
    35% {
        transform: rotate(180deg);
    }
    70% {
        transform: rotate(360deg);
    }
    85% {
        transform: rotate(920deg);
    }
    90% {
        transform: rotate(980deg);
    }
    95% {
        transform: rotate(1020deg);
    }
    100% {
        transform: rotate(1080deg);
    }
}