/* Verical sizing */
#page {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    flex-grow: 1;
    -webkit-flex-grow: 1;
    -ms-flex-grow: 1;
}


/* Horizontal sizing */
#container {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
    flex-grow: 1;
    -webkit-flex-grow: 1;
    -ms-flex-grow: 1;
    flex-basis: 40%;
    overflow: hidden;
}

#left, #right, #leftcontainer, #rightcontainer {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    flex-grow: 1;
    -webkit-flex-grow: 1;
    -ms-flex-grow: 1;
    -webkit-flex-basis: 40%;
    -ms-flex-basis: 40%;
    flex-basis: 40%;
}

#top, #bottom, #topcontainer, #bottomcontainer {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
    flex-grow: 1;
    -webkit-flex-grow: 1;
    -ms-flex-grow: 1;
    -webkit-flex-basis: 40%;
    -ms-flex-basis: 40%;
    flex-basis: 40%;
    overflow: auto;
    transform: translateZ(0);
}

#containerfull, #left, #right {
    overflow: auto;
}

#container2, #containerfull {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    flex-grow: 1;
    -webkit-flex-grow: 1;
    -ms-flex-grow: 1;
    -webkit-flex-basis: 40%;
    -ms-flex-basis: 40%;
    flex-basis: 40%;
}

#topleft, #bottomright, #bottomleft, #topright {
    -webkit-flex-basis: 50%;
    -ms-flex-basis: 50%;
    flex-basis: 50%;
    flex-grow: 1;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-grow: 1;
    -ms-flex-grow: 1;
    border: solid 1px black;
    overflow: auto;
    padding: 4px;
    max-width: 50vw;
}

#left, #right {
    -webkit-flex-basis: 50%;
    -ms-flex-basis: 50%;
    flex-basis: 50%;
}

body {
    margin: 0px;
    overflow: hidden;
}

.fleximg {
    max-width: 50vh;
    max-height: 50vh;
}

img {
    vertical-align: middle;
}

#header, #footer {
    flex-grow: 0;
    -webkit-flex-grow: 0;
    -ms-flex-grow: 0;
    -webkit-flex-basis: 30px;
    -ms-flex-basis: 30px;
    flex-basis: 30px;
}

.imagesection {
    width: 100%;
    height: 100%;
    margin: auto;
}

#header {
    text-align: center;
    font-size: 1.2em;
    text-align: center;
}

#copyright {
    float: right;
}

#footerbutton {
    margin-top: 5px;
}

.cimg {
    text-align: center;
}

#homecontainer, #container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

#homecontent {
    overflow: auto;
    display: flex;
    position: relative;
    flex-grow: 1;
    -webkit-flex-grow: 1;
    -ms-flex-grow: 1;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
}

