* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Code Pro', monospace;
    font-size: 18px;
    overflow-x: hidden;

}

h1,h2,h3,h4 {
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
}

.presentation {
    background-color: #000000;
    background-image: url("../images/presentation.webp");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: left;

}

.technologies {
    z-index: 2000;
    background-color: white;

}

.box-technologies {
    gap: 0.5rem;
}

.projects {
    background-color: #9cf1de;
    z-index: 3000;
}

.presentation, .technologies, .projects, .contact, .companies, .draw-css {
    padding: 100px 0;
    width: 100vw;
    min-height: 100vh;
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: start;
    overflow: hidden;
}

.project {
    width: 100%;
}

.project {
    position: relative;
    width: 100%; /* ajusta el ancho según sea necesario */
    height: auto; /* ajusta la altura según sea necesario */
    overflow: hidden;
}

.project img:first-child {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.project img:hover {
    opacity: 0;
}


.message {

    background-color: #e88338;
    overflow-x: hidden;
}

input.form-text {
    font-size: 1.4rem;
    padding: 10px 20px;
    min-height: 60px;
    font-weight: bold;
    color: black;
    border-radius: 0;
    border: 2px solid black;
}

input.form-text::placeholder {
    font-weight: lighter;
}

textarea.form-text {
    font-size: 1.4rem;
    padding: 10px 20px;
    min-height: 60px;
    border: 2px solid black;
    font-weight: bold;
    color: black;
    border-radius: 0;

}

textarea.form-text::placeholder {
    font-weight: lighter;
}

form button {
    border-radius: 0;
    min-height: 60px;
}

button {
    border-radius: 0;
    border: 2px solid black;
}

.world {
    position: absolute;
    top: 85%;
    right: 20%;
    transform: translate(50%, -35%);
    z-index: 1;
    animation: 30s rotateWorld linear infinite;
}

.mars {
    position: absolute;
    top: 85%;
    right: 80%;
    transform: translate(50%, -35%);
    z-index: 1;
    animation: 30s rotateMars linear infinite;
}

.jupiter {
    position: absolute;
    top: 15%;
    right: 92%;
    transform: translate(50%, -50%);
    z-index: 1;
    animation: 120s rotateJupiter linear infinite;
}

.saturno {
    position: absolute;
    top: 50%;
    right: 23%;
    transform: translate(50%, -50%);
    z-index: -1;
    animation: 60s rotateSaturno linear infinite;
    width: 1200px;
}

.moon {
    position: absolute;
    top: 50%;
    right: 70%;
    transform: translate(50%, -50%);
    z-index: -1;
    animation: 70s rotateMoon linear infinite;
    width: 1000px;
}

.astronaut {
    position: fixed;
    top: 10%;
    right: 10%;
    transform: translate(50%, -50%);
    animation: movimientoAstronaut 30s linear infinite, rotateMars 30s linear infinite;
    z-index: 9999;
    display: none;
    width: 75px;
}

.astronaut-footer {
    position: absolute;
    bottom: 0;
    right: 50px;
    transform: rotate(-15deg) translateY(100px);
}

.nave {
    position: absolute;
    top: 20%;
    right: 20%;
    transform: translate(50%, -50%);
    z-index: -1;
    animation: 7s movimientoPlatillo linear infinite;
    width: 200px;
}


.world, .mars, .jupiter, .moon {
    width: 400px;
    transition: all 0.3s ease-in;
}

.planet_ofcanvas {
    position: absolute;
    top: 100px;
    right: 100px;
    width: 700px;
    animation: 57s rotateMoon linear infinite;
}

.world, jupiter, mars, saturno, moon, .astronaut, .nave, .alien, .planet_ofcanvas {
    user-select: none;
}


.z-index-1000 {
    z-index: 1000;
}

.z-index-4000 {
    z-index: 4000;
}

.btn-html {
    background-color: #E44D26;
}

.btn-css {
     background-color: #2965F1;
}

.btn-sass {
    background-color: #CC6699;
}

.btn-javascript {
    background-color: #F7DF1E;
}

.btn-php {
    background-color: #4F5D95;
}

.btn-symfony {
    background-color: #000000;
}

.btn-sql {
    background-color: #FFCC29;
}

.btn-wordpress {
    background-color: #21759B;
}

.btn-analytics {
    background-color: #E37400;
}

.btn-tag {
    background-color: #4285F4;
}

.btn-figma {
    background-color: #0ACF83;
}

a.button {
    cursor: pointer;
}

.button {
    cursor: pointer;
}

.offcanvas {
    z-index: 9999;
    overflow: hidden;

}

.offcanvas .alien {
    position: absolute;
    top: 50%;
    right: 50%;
    transform: translate(54%, -30%);
    width: 600px;
    z-index: 1;
    animation: moveAlien 2s ease-in 2s;
    transition: all 0.3s ease-in
}

.offcanvas .alien:hover{
    transform: translate(54%, -10%) rotate(-20deg);
}

.offcanvas .alien.rotate {
    transform: translate(54%, -12%) rotate(-15deg); /* Rotación completa */
}

.btn-close {
    z-index: 5000;
}

@keyframes movimientoBoy {
    0%, 100% {
        transform: rotate(0);
    }
    50% {
        transform: rotate(360deg);
    }
}

@keyframes movimientoBaby {
    0%, 100% {
        transform: rotate(0) translate(20%, -50%);
    }
    50% {
        transform: rotate(-360deg);
    }
}

.offcanvas-body {
    display: flex;
    flex-flow: column;
    align-items: flex-end;
    padding: 0 20px;

}

.offcanvas__link {
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 2.5rem;
    color: white;
    border: 3px solid transparent;
    padding: 5px 10px;
    z-index: 2000;
    text-shadow: -5px 5px black;
}



.menu {
    position: fixed;
    top: 10px;
    right: 10px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    background-color: black;
    z-index: 7000;
}

@keyframes rotateWorld {
    from {
        transform: translate(50%, -35%) rotate(0deg);
    }
    to {
        transform: translate(50%, -35%) rotate(360deg);
    }
}

@keyframes rotateMars {
    from {
        transform: translate(50%, -35%) rotate(0deg);
    }
    to {
        transform: translate(50%, -35%) rotate(360deg);
    }
}


@keyframes rotateJupiter {
    from {
        transform: translate(50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(50%, -50%) rotate(360deg);
    }
}

@keyframes rotateSaturno {
    from {
        transform: translate(50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(50%, -50%) rotate(360deg);
    }
}

@keyframes rotateMoon {
    from {
        transform: translate(50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(50%, -50%) rotate(360deg);
    }
}

@keyframes movimientoPlatillo {
    0% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(200px, -80px);
    }
    50% {
        transform: translate(400px, 0);
    }
    75% {
        transform: translate(200px, 80px);
    }
    100% {
        transform: translate(0, 0);
    }
}

@keyframes movimientoAstronaut {
    0%, 100% {
        transform: translate(50%, -50%);
    }
    50% {
        transform: translate(50%, 50%);
    }
}



@media(min-width: 768px) {
    .presentation {
        background-attachment: fixed;

    }
}

@media(min-width: 992px) {

    body {
        font-size: 22px;
    }
    .box-technologies {
        gap: 1.5rem;

    }
    .world, .mars, .jupiter, .moon {
        width: 800px;
        user-select: none;
    }
    .presentation, .technologies, .projects, .contact, .companies, .draw-css {
        padding: 200px 0;
    }
    .astronaut {
        display: block;
    }

    .project img {
        transition: opacity 0.5s;
    }
}

* {
    scrollbar-width: thin;
    scrollbar-color: #B50D87 #ffe9fc;
}


/* Chrome, Edge and Safari */
*::-webkit-scrollbar {
    width: 15px;
}
*::-webkit-scrollbar-track {
    border-radius: 0;
    background-color: #ffe7c0;
}

*::-webkit-scrollbar-track:hover {
    background-color: #ffe7c0;
}

*::-webkit-scrollbar-track:active {
    background-color: #ffe7c0;
}

*::-webkit-scrollbar-thumb {
    background-color: #834f00;
}

*::-webkit-scrollbar-thumb:hover {
    background-color: #834f00;
}

*::-webkit-scrollbar-thumb:active {
    background-color: #834f00;
}

.btn-space {
    background-color: white;
    color: black;
}


/* disquete */
#draw-css {
    .myCard {
        width: 300px;
        height: 300px;
        background-image: linear-gradient(to right bottom, #252324, #292728, #2d2c2d, #313031, #353535);
        position: relative;
        border-radius: 5px;
        box-shadow: 7px 7px 10px rgba(0, 0, 0, 0.307);
    }

    .top {
        position: absolute;
        width: 65%;
        height: 37%;
        top: 0;
        left: 37px;
        background-image: linear-gradient(to right bottom, #202020, #222222, #232323, #252525, #272727);
        z-index: 500;
        border-top: 4px solid #e8e8e8;
        border-right: 3px solid #121212;
        border-bottom: 3px solid #121212;
        border-left: 3px solid #121212;
        border-bottom-left-radius: 10px;
        border-bottom-right-radius: 10px;
    }

    .plastic {
        position: absolute;
        top: 0;
        right: 60px;
        width: 60px;
        background-color: black;
        height: 100%;
        z-index: 1000;
        border-top: 25px solid white;
    }

    .bottom {
        z-index: 1000;
        position: absolute;
        bottom: 1px;
        right: 50%;
        transform: translate(50%,0);
        width: 75%;
        height: 52%;
        background-color: #ecebe0;
        border-top-left-radius: 5px;
        border-top-right-radius: 5px;
        border-top: 3px solid #121212;
        border-left: 3px solid #121212;
        border-right: 3px solid #121212;
        border-radius: 10px;
    }

    .metal {
        z-index: 2000;
        position: absolute;
        top: -3px;
        right: 0;
        width: 77%;
        height: 103%;
        background-image: linear-gradient(to right bottom, #bdbdbd, #cacaca, #d7d7d7, #e5e5e5, #f2f2f2);
        border-bottom-left-radius: 10px;
        border-bottom-right-radius: 10px;
        transition: transform 0.2s ease-in;
        clip-path: polygon(0% 0%, 0% 100%, 60% 100%, 60% 18%, 85% 18%, 85% 93%, 25% 93%, 25% 100%, 100% 100%, 100% 0%);
    }

    .cuadro-metal {
        position: absolute;
        top: 15px;
        right: 45px;
        width: 40px;
        transform: translate(50%,0);
        height: 80px;
        background-color: #252324;
        z-index: 2000;
        transition: transform 0.2s ease-in;
        border-radius: 3px;
    }

    .myCard:hover .metal {
        transform: translateX(-44px);
    }

    .myCard:hover .cuadro-metal {
        transform: translateX(-30px);
    }

    .minicuadro1 {
        bottom: 25px;
        right: 12px;
        position: absolute;
        width: 17px;
        height: 17px;
        background-color: #d7d7d7;
        border: 2px solid #191919;
    }

    .minicuadro2 {
        bottom: 25px;
        left: 12px;
        position: absolute;
        width: 17px;
        height: 17px;
        background-image: linear-gradient(to right bottom, #191919, #202020, #272727, #2e2e2e, #353535);
        border: 2px solid #191919;
    }

    .yellow {
        position: absolute;
        bottom: 0;
        width: 100%;
        height: 23px;
        background-color: rgb(255, 157, 0);
    }

    .line1 {
        position: absolute;
        bottom: 42px;
        right: 61.5%;
        transform: translate(50%,0);
        width: 125px;
        height: 2px;
        background-color: rgb(192, 33, 33);
    }

    .line2 {
        position: absolute;
        bottom: 64px;
        right: 50%;
        transform: translate(50%,0);
        width: 175px;
        height: 2px;
        background-color: rgb(192, 33, 33);
        z-index: 2000;
    }

    .line3 {
        position: absolute;
        bottom: 86px;
        right: 50%;
        transform: translate(50%,0);
        width: 175px;
        height: 2px;
        background-color: rgb(192, 33, 33);
        z-index: 2000;
    }

    .line4 {
        position: absolute;
        bottom: 108px;
        right: 50%;
        transform: translate(50%,0);
        width: 175px;
        height: 2px;
        background-color: rgb(192, 33, 33);
        z-index: 2000;
    }

    .line5 {
        position: absolute;
        bottom: 130px;
        right: 50%;
        transform: translate(50%,0);
        width: 175px;
        height: 2px;
        background-color: rgb(192, 33, 33);
        z-index: 2000;
    }

    .index {
        position: absolute;
        bottom: 22px;
        right: 62px;
        font-size: 11px;
        font-weight: bold;
        text-transform: uppercase;
        color: rgb(192, 33, 33);
        z-index: 2000;
    }

    .mobileCard {
        width: 210px;
        height: 400px;
        background: black;
        border-radius: 35px;
        border: 2px solid rgb(40, 40, 40);
        padding: 7px;
        position: relative;
        box-shadow: 2px 5px 15px rgba(0, 0, 0, 0.486);
    }

    .mobileCard-int {
        background-image: linear-gradient(to right bottom, #ff0000, #ff0045, #ff0078, #ea00aa, #b81cd7, #8a3ad6, #5746cf, #004ac2, #003d94, #002e66, #001d3a, #020812);
        background-size: 200% 200%;
        background-position: 0% 0%;
        height: 100%;
        border-radius: 25px;
        transition: all 0.6s ease-out;
        overflow: hidden;
    }

    .mobileCard:hover .mobileCard-int {
        background-position: 100% 100%;
    }

    .mobileTop {
        position: absolute;
        top: 0px;
        right: 50%;
        transform: translate(50%, 0%);
        width: 35%;
        height: 18px;
        background-color: black;
        border-bottom-left-radius: 10px;
        border-bottom-right-radius: 10px;
    }

    .speaker {
        position: absolute;
        top: 2px;
        right: 50%;
        transform: translate(50%, 0%);
        width: 40%;
        height: 2px;
        border-radius: 2px;
        background-color: rgb(20, 20, 20);
    }

    .camera {
        position: absolute;
        top: 6px;
        right: 84%;
        transform: translate(50%, 0%);
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.048);
    }

    .int {
        position: absolute;
        width: 3px;
        height: 3px;
        border-radius: 50%;
        top: 50%;
        right: 50%;
        transform: translate(50%, -50%);
        background-color: rgba(0, 0, 255, 0.212);
    }

    .btn1, .btn2, .btn3, .btn4 {
        position: absolute;
        width: 2px;
    }

    .btn1, .btn2, .btn3 {
        height: 45px;
        top: 30%;
        right: -4px;
        background-image: linear-gradient(to right, #111111, #222222, #333333, #464646, #595959);
    }

    .btn2, .btn3 {
        transform: scale(-1);
        left: -4px;
    }

    .btn2, .btn3 {
        transform: scale(-1);
        height: 30px;
    }

    .btn2 {
        top: 26%
    }

    .btn3 {
        top: 36%
    }

    .hello {
        display: flex;
        flex-flow: column;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 2rem;
        font-weight: bold;
        text-align: center;
        line-height: 35px;
        height: 100%;
        transition: 0.5s ease-in-out;
    }

    .hidden {
        display: block;
        opacity: 0;
        transition: all 0.3s ease-in;
    }

    .mobileCard:hover .hidden {
        opacity: 1;
    }

    .mobileCard:hover .hello {
        transform: translateY(-20px);
    }





}