body {
    padding-left: 10%;
    padding-right: 10%;
    background-color: #05386B;
}

.wrapper {
    display: -webkit-flex;
    display: flex;  
    -webkit-flex-flow: row wrap;
    flex-flow: row wrap;
    text-align: center;
}

.wrapper > * {
    padding: 15px;
    -webkit-flex: 1 100%;
    flex: 1 100%;
}

header h1 {
    background: #05386B;
    color: white;
}

footer {
    background: #5CDB95;
    color: #05386B;
}

.main {
    padding-left: 5%;
    text-align: left;
    background: #EDF5E1;
}

.nav {
    background: #379683;
    width: 0%;
}

.nav ul {
    list-style-type: none;
    padding: 0;
}

.nav ul a {
    text-decoration: none;
}

table {
    border-collapse: collapse;
}

table, th, td {
    border: 1px solid black;
}

table tr td, th {
    padding: 10px 40px;
    font-size: 20px;
}

table.gallery td {
    border: 0;
}

table.gallery {
    border: 0;
}

#curtain{
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    position: fixed;
    background-color: rgba(0,0,0,0.4);
}

#light{
    max-width: 80%;
    max-height: 80%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    position: absolute;
    margin: auto;
}

#close{
    height: 50px;
    width: 50px;
    top:0;
    right: 0;
    position: absolute;
    z-index: 990;
}

h1 {
    font-family: Georgia, serif;
    color: #05386B;
    border-bottom: solid 1px #05386B;
}

p, ul li {
    font-family: Veranda;
    color: #05386B;
}

@media all and (min-width: 768px) {
    .nav {
        text-align:left;
        -webkit-flex: 1 auto;
        flex:1 auto;
        -webkit-order:1;
        order:1;
    }

    .main {
        -webkit-flex:5 0px;
        flex:5 0px;
        -webkit-order:2;
        order:2;
    }

    footer {
        -webkit-order:3;
        order:3;
    }
}