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

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;
     background-color:#9a9a9b;
    color: white;
}


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: darkred;
    color: lightgray;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;}

main span {color: darkred;
            }
main div a {display: flex;
            flex-direction: row;}
main button {display: flex;
            background-color: darkred;
            color: white;
            height: 1.5em; 
            align-items: center;
            justify-content: space-around;}

aside {background-color: lightgray;
        display: flex;
        justify-content: center;
        align-items: flex-start;}
