* {margin: 0;
    padding: 0; 
    box-sizing:content-box;
    text-decoration: none;
    color:gray;}

body {
    font-family: 'Alegreya','Helvetica', 'Sans serif';
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    }

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


ul { list-style: none; }

header,
footer {
    background-color: darkred;
    padding: .25em;
}


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


header > ul {
    display: flex;
}

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

header > ul > li > a {
    width: 100%;
    height: 100%;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;}

header nav {
    background-color:rgba(100,100,100,.85);
    color: white;
    position: fixed;
    right: -50vw;
    top: 0;
    height: 43vh;
    min-width: 10vw;
    transition: all .6s ease;
    z-index: 999;}

header nav:target {
    right: 0;
    transition: all .5s ease;}


header nav a {
    color: rgba(255,255,255,.75);
    display: block;
    margin: 1em;
    padding: 0.5em 0.5em;
    text-align: center;
    text-decoration: none;
}

header nav a:hover {
    color: white;
}
.cancel-icon{
    float:right; 
    cursor:pointer;
    margin:0.5em;
}

/*
$('.cancel-icon').click(function () {
    //Close the popup  
});

*/

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




main {background-color: lightgray;
    color: gray;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    ;}
div {
  margin: 20px;
}
 
main ul {
  list-style-type: none;
  width:inherit;
}
 
main h3 {
  font: 20px/1.5 Alegreya, Verdana, sans-serif;
}
 
main li img {
  float: left;
  margin: 0 15px 0 0;
}
 
main li p {
  font: 200 12px/1.5 Helvetica, Verdana, sans-serif;
}
 
main li {
  padding: 10px;
  overflow: auto;
}
 
main li:hover {
  background: #eee;
  cursor: pointer;
}
main span {font-size: 0.75em;
            padding: 0.5em;}


