@charset "utf-8";

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

body {
    background-color: #1d1d1d;
    color: #f0f0f0;
    font-family: 'Nanum Gothic Coding', monospace;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

img {
    max-width: 40%;
    height: auto;
}

ul {
    list-style: none;
}

header,
footer { 
    background-color: #191818; 
    color: #f0f0f0;
    align-self: flex-end;
    margin-top: 2rem;
}


.material-icons {
 
    padding-right: .25em;
}

#llamamenu .material-icons,
#ocultamenu .material-icons {
        color: rgb(71, 224, 135);
    padding-right: 0;
}

h4,
.subir {
    display: flex;
    align-items: center;
}

.contenedor {
    max-width: 40rem;
    margin: 0 auto;
    padding: 1em;
}

header .contenedor { 
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header nav,
header nav ul {
    background-color: rgba(0,0,0,0.5);
    color: white;
}

header nav a,
header nav label {
    color: rgba(255, 255, 255, 0.87);
    padding: .5em 1em;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

header nav a:hover,
header nav label:hover {
    background-color: rgba(0,0,0,0.5);
    color: white;
}

[type="checkbox"]:not(:checked), [type="checkbox"]:checked {
    display: none;
}

header nav label {
    cursor: pointer;
    padding: .5em;
    position: relative;
    z-index: 9999;
}

#menu-toggle:not(:checked) + #llamamenu,
#menu-toggle:checked + #llamamenu + #ocultamenu {
    display: flex;
}

#menu-toggle:checked + #llamamenu,
#menu-toggle:not(:checked) + #llamamenu + #ocultamenu {
    display: none;
}

header nav ul {
    position: fixed;;
    left: 100%;
    top: 0;
    height: 100vh;
    width: 50%;
    z-index: 9990;
    padding-top: 5em;
    transition: all .5s ease;
}

#menu-toggle:checked + #llamamenu + #ocultamenu + ul {

    left: 50%;
    transition: all .50s ease;
}


main {

    flex-grow: 1;
}

figure {
    align-content: center;
}

.textos > *,
.textos p:not(:last-child) {
    margin-bottom: 1em;
}

.textos article {
    border: solid 1px rgba(0, 0, 0, 0.25);
    padding: 1em;
    padding-top: 0;
    margin-bottom: 1em;
}

.textos article h4 {
    
    background-color: rgb(71, 224, 142);
    border-bottom: solid 1px rgba(0, 0, 0, 0.25);
    padding: 1em 0 .5em 0;
    margin-bottom: 1em;
    position: sticky;
    top: 0;
}

.subir {
    text-decoration: none;
    color: darkcyan;
    font-weight: bold;
}

.subir:hover {
    text-decoration: underline;
}



footer {
    background-color: rgb(71, 224, 135);
    font-family: 'Open Sans', sans-serif;
    font-size: .8em;
    padding: 1em;
    padding-top: 0;
    margin-bottom: 1em;
}

footer div h4 {
    text-align: center; 
    padding: 1.5em 0 0.5em 0;
    font-size: 1em;
    display: flex;
}

footer p { 
    color: #f0f0f0;
    font-size: 0.6rem;
    padding: 1rem;
    
    
}
.redes {
    color: gray;
    display: flex;
    margin: auto; 
    justify-content: center; 
}
.redes img {
     height: auto;
    width: 2em;
    margin: 0 1em; 
}


    



