html {height: 100%; scroll-behavior: smooth;}

* {
    margin: 0%;
    padding: 0%;
    box-sizing: border-box;
}

body {
    background: radial-gradient(rgba(45, 51, 56, 0.747), rgba(20, 24, 2, 0.753));
    background-size:cover;
    min-height: 100%;
}

a {
    font-size: 1.4em;
    margin: auto;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.849);
}

#github {position: absolute; width: 200px; height: auto; animation: animate 3s ease-in-out infinite;}

@keyframes animate {
    50% {transform: scale(1.2);}
}

.contactoss {
    display: flex;
    width: 50%;
    margin: auto;
    margin-top: 50px;
    margin-bottom: 50px;
}

.contactoss #insta {
    position: relative;
}

.contactoss img {
    width: 6rem;
}

.contactoss .pri-ws {
    width: 6.4rem;
    animation: rebota 3s ease-in infinite;
}

.contactoss > a:nth-child(2) {animation: rebota 4s ease-in infinite;}

.contactoss > a:nth-child(3) {animation: rebota 5s ease-in infinite;}

@keyframes rebota {
    0%{position: relative; transform: translateY(0px);}
    50%{transform: translateY(25px);}
    100%{position: relative; transform: translateY(0px);}
}

form {
    margin: auto;
    position: relative;
    width: 330px;
    height: 400px;
    color: rgb(250, 233, 140);
    font-size: 18px;
    background: #5f56b452;
    border-radius: 15px;
    padding: 15px;
}

.tex1 {
    margin: auto auto 15px auto;
    width: 70%;
    color: yellow;
    font-size: 35px;
    box-shadow: 5px 6px 0px 0px;
    border-radius: 10px;
    text-align: center;
}

#correo {
    position: relative;
    top: 1.2rem;
}

.correo {
    position: relative;
    top: 0.98rem;
}

#nombre, #correo, #mensaje {
    outline: none;
    padding: 5px;
    width: 95%;
    border-radius: 5px;
    border: 3px solid black;
    color: blue;
}

#mensaje {
    position: relative;
    top: 2.2rem;
    font-family:cursive;
    resize: none;
    height: 5rem;
    text-align: justify;
}

.mensaje {
    position: relative;
    top: 2.1rem;
}

#enviar {
    width: 95%;
    height: 1.9rem;
    color: rgb(40, 20, 220);
    top: 3.7rem;
    position: relative;
    border: 2px solid black;
    border-radius: 2px;
}

#enviar:hover {
    background: blue;
    color: aqua;
    cursor: pointer;
}

.pie {
    bottom: 0px;
    color: white;
    background: #0000009d;
    display: grid;
    justify-items: center;
    position: fixed;
    width: 100%;
}

.contactos {font-size: 18px;}

.pie ul li {list-style: none;}
.pie ul li a {font-size: 15px;}

@media screen and (max-width:450px) {
    .contactoss {width: 90%;}
}

/*De aqui para abajo esta el codigo para el menu*/

.abrir_menu {display: none;}

.navegador1 {
    position: relative;
    top: 1em;
    display: grid;
    justify-items: center;
}

.navegador2 {
    height: 3em;
    width: 70%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.inicio, .sobre_mi, .contacto, .proyectos {
    display: inline-block;
    text-align: center;
    cursor: pointer;
}

.inicio:hover:before, .sobre_mi:hover:before, .contacto:hover:before, .proyectos:hover:before {
    scale: 1;
    transition: 0.65s;
}

.inicio:before, .sobre_mi:before, .contacto:before, .proyectos:before {
    content: "";
    margin-top: 26px;
    position: absolute;
    height: 2px;
    background: white;
    transition: 0.65s;
    scale: 0;
    z-index: 1;
}

.inicio:before {width: 3.3rem;}
.sobre_mi:before {width: 5.2rem;}
.contacto:before {width: 5.1rem;} 
.proyectos:before {width: 5.65rem; background-color: white;}


@media screen and (max-width: 720px) {
    body {min-width: 360px;}

    #github {
        z-index: 1;
        left: -300px;
        top: 275px;
        width: 150px;
        transition: 0.75s;
    }
    #github.activa{transition: 0.75s; left: 2px;}

    /*de aqui para abajo estoy modificando el nav (El menu)*/
    .abrir_menu {
        display: block;
        width: 2.7rem;
        background: transparent;
        height: 2rem;
        position: fixed;
        border: none;
        top: 5px;
        left: 15px;
        z-index: 2;
    }
    .abrir_menu .bar, .bar1, .bar2 {
        display: block;
        position: relative;
        height: 4px;
        width: 2em;
        background: rgb(181, 247, 0);
        margin: 4.5px;
        transition: 0.75s;
    }
    .bar1.cambio {
        position: absolute;
        transform:rotate(-50deg);
        transition: 0.75s;
    }
    .bar2.cambio2 {
        top: 9px;
        bottom: 0px;
        position: absolute;
        transform:rotate(50deg);
        transition: 0.75s;
    }
    
    .navegador1 {top:0px; left: -300px; transition: 0.75s; display: block;}
    .navegador1.SDM {display:block; left: 0px; transition: 0.75s;}

    .abrir_menu:active {scale: 1.1;}

    .navegador2 {
        padding-top: 3rem;
        width: 10rem;
        display: block;
        position: fixed;
        z-index: 1;
        min-height: 100vmax;
        background: purple;
        border-radius: 5px;
        top: 0px;
    }
    .navegador2 li  {
        position: relative;
        display: block;
        padding: 15px;
        z-index: 1;
        text-align: start;
        font-size: 12px;
    }
   
} 
/*aqui finaliza el menu*/

