main {
    border-left: var(--delimit-line);
    border-right: var(--delimit-line);
    background-color: var(--backgroundColor);
}

.rimage-ltext {
    display: grid;
    grid-template-columns: 1fr 250px;
    gap: 20px;
    padding: 30px;
    border-bottom: var(--delimit-line);
    background-image: url(https://cdn.nasfurui.es/ec3f713fd8c0af1e33301f176bc35a4f.webp);
    color: white;
}

.left-rimage-ltext,
.right-rimage-ltext {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.left-rimage-ltext {
    position: relative;
}

.rimage-ltext h2 {
    margin: 0;
    font-size: clamp(28px, 3.8vw, 46px);
    text-transform: uppercase;
    background-color: var(--title-colors);
    width: fit-content;
    border-radius: 10px;
    padding: 5px 20px;
}

.left-rimage-ltext p,
.right-rimage-ltext p {
    margin-top: 3px;
    text-align: justify;
    line-height: 1.5;
    font-size: 20px;
    background-color: var(--title-colors);
    border-radius: 10px;
    padding: 20px;
}

.right-rimage-ltext img {
    width: 100%;
    height: auto;
}

.doublegrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background-image: url("https://cdn.nasfurui.es/a0b7406b30608bae4ea7d8f1356b8431.webp");
}

.leftpart-dg,
.rightpart-dg {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: var(--doublegridPadding);
}

.leftpart-dg {
    border-right: var(--delimit-line);
    margin-right: 0;
    padding-right: 15px;
}

.rightpart-dg {
    border-left: var(--delimit-line);
    margin-left: 0;
    padding-right: 15px;
}

.window {
    background-color: var(--window-bg);
    padding: 10px;
    border: 2px solid black;
    display: flex;
    flex-direction: column;
    padding: 0;
    height: 200px;
    margin-inline: 20px;
    position: relative;
}

.windowbuttons {
    background-color: white;
    padding: 6px 10px;
    display: flex;
    justify-content: flex-start;
    /* Show it on the left */
    gap: 6px;
    border-bottom: 2px solid black;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;

    .windowbuttons-close,
    .windowbuttons-maximize,
    .windowbuttons-minimize {
        width: 14px;
        height: 14px;
        box-sizing: border-box;
        border: 1px solid black;
        background-color: white;
        background-position: center;
        background-repeat: no-repeat;
        cursor: pointer;
        transition: background-color 0.15s ease;
    }

    .windowbuttons-close:hover,
    .windowbuttons-maximize:hover,
    .windowbuttons-minimize:hover {
        background-color: var(--btn-hover-bg);
    }

    .windowbuttons-close {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cpath d='M1.5 1.5L6.5 6.5M6.5 1.5L1.5 6.5' stroke='black' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
    }

    .windowbuttons-maximize {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Crect x='1.5' y='1.5' width='5' height='5' fill='none' stroke='black' stroke-width='1.3'/%3E%3C/svg%3E");
    }

    .windowbuttons-minimize {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cline x1='1.5' y1='6' x2='6.5' y2='6' stroke='black' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
    }
}

.window h3 {
    font-size: 25px;
    margin-top: 5px;
    padding: 0 10px;
    margin-bottom: 0;
}

.window p {
    padding: 0 10px;
}

.doublegrid h2 {
    margin: 0 auto;
    margin-top: 3px;
    font-size: clamp(24px, 3.2vw, 38px);
    text-transform: uppercase;
    background-color: var(--title-colors);
    width: fit-content;
    border-radius: 10px;
    padding: 5px 20px;
    color: white;
    text-align: center;
}

.img-enmarked {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background-color: white;
    padding: 10px;
    padding-bottom: 30px;
    border: 1px solid var(--polaroid-border);
    box-shadow: 2px 3px 6px rgb(0, 0, 0);
}

.img-enmarked img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    display: block;
    border: 1px solid var(--polaroid-border);
}

#img-enmarked-1 {
    transform: rotate(10deg);
}

#img-enmarked-2 {
    transform: rotate(-10deg);
}

#img-enmarked-3 {
    transform: rotate(10deg);
}

#musicwindow p {
    margin-top: 4px;
    margin-bottom: 6px;
    max-width: calc(100% - 125px);
}

#musicEmbed {
    box-sizing: border-box;
    width: calc(100% - 125px);
    margin: 0 0 10px 10px;
    position: relative;
}

#musicEmbed iframe {
    width: 100%;
    height: 80px;
    border: none;
    display: block;
}

.projects {
    border-top: var(--delimit-line);
    width: 100%;
    box-sizing: border-box;
    color: white;
    border-bottom: var(--delimit-line);
    background-image: url("https://cdn.nasfurui.es/8949e4d2a7705ca9f96d5eba6f112483.webp");
    background-size: cover;
}

.pj-upperpart {
    margin-top: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding-inline: 20px;
}

.pj-upperpart-leftimg img {
    width: min(400px, 100%);
    margin-top: -100px;
    object-fit: cover;
}

.pj-upperpart-righttext p {
    margin-top: 3px;
    text-align: justify;
    line-height: 1.5;
    font-size: 20px;
    background-color: var(--title-colors);
    border-radius: 10px;
    padding: 20px;
}

.pj-upperpart-righttext h2 {
    margin: 0;
    font-size: clamp(26px, 3.5vw, 42px);
    text-transform: uppercase;
    background-color: var(--title-colors);
    width: fit-content;
    border-radius: 10px;
    padding: 5px 20px;
}

.pj-lowerpart {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    padding-inline: 20px;
    margin-top: -30px;
}

.pj-lowerpart a,
.pj-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pj-lowerpart a:hover,
.pj-link:hover {
    text-decoration: none;
    color: inherit;
}

.pj-link-disabled {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pj-entry {
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
    gap: 12px;
    height: 100%;
}

.pj-entry-window {
    background-color: var(--project-window-bg);
    border: 2px solid black;
    border-radius: 6px 6px 0 0;
    padding: 4px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.pj-windowbuttons {
    background-color: var(--project-window-bg);
    padding: 6px 10px;
    display: flex;
    justify-content: flex-start;
    /* Show it on the left */
    gap: 6px;
    border-bottom: 2px solid black;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

.pj-windowbuttons-close,
.pj-windowbuttons-maximize,
.pj-windowbuttons-minimize {
    width: 14px;
    height: 14px;
    box-sizing: border-box;
    border: 1px solid black;
    background-color: white;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.pj-windowbuttons-close:hover,
.pj-windowbuttons-maximize:hover,
.pj-windowbuttons-minimize:hover {
    background-color: var(--btn-hover-bg);
}

.pj-windowbuttons-close {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cpath d='M1.5 1.5L6.5 6.5M6.5 1.5L1.5 6.5' stroke='black' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
}

.pj-windowbuttons-maximize {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Crect x='1.5' y='1.5' width='5' height='5' fill='none' stroke='black' stroke-width='1.3'/%3E%3C/svg%3E");
}

.pj-windowbuttons-minimize {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cline x1='1.5' y1='6' x2='6.5' y2='6' stroke='black' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
}

.pj-window-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.pj-entry-text {
    margin-top: 3px;
    line-height: 1.5;
    font-size: 20px;
    background-color: var(--title-colors);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-sizing: border-box;
    flex-grow: 1;
}

.pj-entry-text h3,
.pj-entry-text p {
    margin: 0;
}

.seemore {
    text-align: center;
    margin-top: 10px;
    font-size: 20px;
}

.seemore a {
    text-decoration: none;
    padding: 5px 20px;
    color: white;
}

.labexp {
    width: 100%;
    border-bottom: var(--delimit-line);
    padding-bottom: 40px;
    box-sizing: border-box;
    background-image: url("https://cdn.nasfurui.es/e0c0b3844eba5a2bb59df93c10738807.webp");
    padding-top: 20px;
    position: relative;
}

.labexp h2 {
    color: white;
    margin-left: 20px;
    margin-top: 0px;
    font-size: clamp(28px, 4vw, 46px);
    text-transform: uppercase;
    background-color: var(--title-colors);
    width: fit-content;
    border-radius: 10px;
    padding: 5px 20px;
}

.exp-bubble {
    background-color: white;
    border: 7px solid var(--bubble-border);
    border-radius: 25px;
    margin-inline: 40px;
    margin-bottom: 35px;
    position: relative;
    box-sizing: border-box;
}

.exp-bubble::before {
    content: "";
    position: absolute;
    bottom: -22px;
    left: 40px;
    width: 0;
    height: 0;
    border-width: 22px 18px 0 0;
    border-style: solid;
    border-color: var(--bubble-border) transparent transparent transparent;
    display: block;
}

.exp-bubble-uppertext {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 15px 20px 8px 20px;
}

.exp-bubble-uppertext h3 {
    font-size: 22px;
    margin: 0;
}

.exp-bubble-uppertext h3:last-child {
    text-align: right;
    font-size: 18px;
    color: var(--text-secondary);
}

.typecontrato {
    text-align: center;
    font-size: 16px !important;
}

.exp-bubble-lowertext {
    padding: 10px;
}

.exp-bubble-lowertext p {
    margin: 0;
    text-align: justify;
    font-size: 18px;
    line-height: 1.5;
    font-size: 20px;
}

/* Corrections for the ado photo */
#adopod {
    position: absolute;
    bottom: -170px;
    left: -70px;
    width: 350px;
    object-fit: cover;
    pointer-events: none;
    z-index: 2;
}

#adoh3,
#adop {
    margin-left: 110px;
}

/* Corrections for the pokemon photo */
#pokemon {
    position: absolute;
    bottom: 70px;
    right: -50px;
    width: 200px;
    object-fit: cover;
    pointer-events: none;
    z-index: 3;
}

/* Corrections for teh butterfly */
#butterfly {
    width: 170px;
    position: absolute;
    bottom: -100px;
    left: -112px;
    rotate: -35deg;
    z-index: 4;
}

/* MY FIHHHHH */
#fih {
    width: 300px;
    position: absolute;
    top: -180px;
    rotate: 25deg;
}

/* Content adaptation */
@media screen and (max-width: 800px) {

    /* Presentation on 1 column */
    .rimage-ltext {
        grid-template-columns: 1fr;
        padding: 20px 15px;
        gap: 20px;
    }

    .right-rimage-ltext {
        max-width: 280px;
        margin: 0 auto;
    }

    #butterfly {
        width: 85px;
        left: -15px;
        bottom: -25px;
    }

    /* Change columns on the double grid to be only a grid*/
    .doublegrid {
        grid-template-columns: 1fr;
    }

    .leftpart-dg {
        border-right: none;
        border-bottom: var(--delimit-line);
        padding-right: 0;
        padding-bottom: 30px;
    }

    .rightpart-dg {
        border-left: none;
        padding-right: 0;
        padding-bottom: 30px;
    }

    .window {
        margin-inline: 15px;
    }

    #adopod {
        width: 220px;
        bottom: -100px;
        left: -20px;
    }

    #pokemon {
        width: 140px;
        bottom: 40px;
        right: -15px;
    }

    #fih {
        width: 160px;
        top: -90px;
        right: 15px;
    }

    /* Projects */
    .pj-upperpart {
        grid-template-columns: 1fr;
        padding-inline: 15px;
    }

    .pj-upperpart-leftimg img {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        display: block;
    }

    .pj-lowerpart {
        grid-template-columns: 1fr;
        padding-inline: 15px;
        margin-top: 15px;
    }

    .pj-window-image img {
        height: 220px;
    }

    /* Site progress */
    .labexp h2 {
        margin-left: 15px;
    }

    .exp-bubble {
        margin-inline: 15px;
    }

    .exp-bubble-uppertext {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .exp-bubble-uppertext h3:last-child {
        text-align: left;
    }

    /* Make titles scalable */
    .rimage-ltext h2,
    .doublegrid h2,
    .pj-upperpart-righttext h2,
    .labexp h2 {
        font-size: clamp(24px, 6vw, 40px);
    }
}

@media screen and (max-width: 480px) {
    .img-enmarked {
        padding: 6px;
        padding-bottom: 20px;
        right: -10px;
        bottom: -15px;
    }

    .img-enmarked img {
        width: 90px;
        height: 90px;
    }

    #musicwindow p,
    #musicEmbed {
        width: calc(100% - 95px);
        max-width: calc(100% - 95px);
    }

    #adoh3,
    #adop {
        margin-left: 70px;
    }

    #adopod {
        width: 170px;
        bottom: -75px;
        left: -15px;
    }
}