@charset "utf-8";
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700');

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

body {
    font-family: "Roboto", sans-serif;
    font-variant: 500;
    background-color: snow;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

ul { 
    list-style: none; 
}


header{
    background-color: #8165a2;
    
    padding: .5em;
    
    display: flex;
    
    justify-content: space-between;
    
    align-items: center;
    
    position: fixed;
    width: 100%;
    
}

#logo {
    display: block;
    width: 7em;
}

header > ul {

    display: flex;
}

header > ul > li {
    width: 2em;
    height: 2em;
    margin-left: .25em;
    display: flex;

}

header > ul > li > a {
    width: 100%;
    height: 100%;
    background-color: #8165a2;
    color: white;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    

}

header nav {
    background-color: rgba(129, 101, 162, 0.52);
    color: white;
    position: fixed;
    right: -50vw;
    top: 0;
    height: 100vh;
    min-width: 48vw;
    transition: all .6s ease;
    width: 50vw;
    height: inherit;
    padding: .5em;
    margin-top: .5em;
     
}

header nav:target {
    right: 0;

}

header nav a {
    color: seashell;
    display: block;
    padding: .5em 1em 0 .5em;
        text-decoration: none;
    background-color: rgba(0, 0, 0, 0)
}

header nav a:hover {
    color: paleturquoise;
}

#x {    
    position: absolute;
    right: 0;
    top: 0;
}

h3 { padding: .25em;
    margin-left: .5em;
    font-family: "Roboto", sans-serif;
    font-size: 1em;
    }
h1 a{
   text-decoration: none;
    color: paleturquoise;
    background-color: black;
   display: flex;
    justify-content: center;          
}

h2 {
    font-weight: 500;
    color: #431457;
    padding: .8em .5em .2em;
    font-size: 1.8 em;
}

div a {
    text-decoration: none;
    color: dimgray;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    background-color: rgba(127, 255, 212, 0.51)
       }

a:hover {
    color:rgba(129, 101, 162); 
    background-color: mistyrose
}

main {
    margin-top: 3em;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.galeria {
    padding-bottom: 1em;
    max-width: 75em;
    margin-left: .5em;
    margin-right: .5em;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
}


.galeria figure {
    width: 45vmin;
    margin: .125em;
    position: relative;
    overflow: hidden;
   
    
}

.galeria img {
    display: block;
}

.galeria figcaption {
    background-color: rgba(255, 255, 255, 0.52);
    color: #431457;
    padding: .5em;
    line-height: 1em;
    position: absolute;
    height: 100%;
    top: calc(100% - 2em);
    transition: all .5s ease;
    font-size: .70em;
    width: 100%;
}


.galeria figure:hover figcaption {
    background-color: snow;
    top: 0;
    transition: all .5s ease;
}

.secundario {
    font-size: .8em;
}

article {
    padding:.5em;
    max-width: 40em;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1em;
}

p {
    margin: .5em;
    color: #431457;
    font-weight: 400; 
    
}



footer {
    font-size: .65em;
    padding: 1em;
    max-width: 40rem;
   background-color:rgba(129, 101, 162, 0.61);
    font-weight: 400;
}





#fondo {
    background-color: rgba(127, 255, 212, 0.65);
}

#logogrande {
    width: 50%;
    margin: 1em 25% .5em 25%;
}

#fondeado {
    background-color: black;
}
    

