* { box-sizing: border-box; } /* Switch to border-box for box-sizing. */

html {
    height: 100%;
}

body {
  margin: 0; /* Remove the tiny space around the edge of the page */
  min-height: 100%;
  height:100%;
}

img, video, canvas, audio, iframe, embed, object  {
  display: block; /* Switch display mode to block, since that's what we usually want for images. */
  vertical-align: middle;  /* If you override, and make an image inline, it's likely you'll want middle vertical alignment. */
}

a {
    text-decoration: none;
}

h2 {
    width: 200px;
    margin: 0px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1
}

#core {
    background-color: darkcyan;
}

#stats {
    background-color: darkgoldenrod;
}
#spells {
    background-color: darkorchid;
}
#equipment {
    background-color: darkolivegreen;
}
#notes {
    background-color: darkslateblue;
}
#backstory {
    background-color: darkred;
}

#data-options {
    display: flex;
    align-items: center;
    justify-content: center;
    border:1px solid green;
    flex-direction: column;
    width: 200px;
    min-height: 100%;
}

#main {
    position: fixed;
    margin-left: 200px;
    transition: margin-left .5s;
    background-color: #000;
    width: 100%;
    height: 100%;
    top: 0px;
}

.drawer {
    position: fixed;
    margin-left:200px;
    height: 100%;
    width: 0;
    z-index: 1;
    top: 0;
    left: 0;
    /* background-color: #333; */
    box-shadow: 0px -10px 5px black, -5px -10px 25px #8a4d0f inset;
    background: #FFFDEF;
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;
}

.drawer .closebtn {
    position: absolute;
    top: -69px;
    right: 23px;
    height: 45px;
    color: #5D5D5D;
    text-decoration: none;
    transition: text-decoration .25s;
    font-size: 44px;
}
.closebtn:hover {
    color: #000;
    text-decoration: underline;
}

.drawer .header {
    position: absolute;
    width: 100%;
    height: 45px;
    font-size: 42px;
    top: -38px;
    left: 7px;
}

.drawer .new {
    position: absolute;
    top: 6px;
    right: 85px;
    width: 65px;
    height: 25px;
    font-size: 36px;
    border-radius: 12px;
    color: white;
    padding-bottom: 40px;
    padding-left: 23px;
    background-color: #028253;
}

.drawer .new:hover {
    font-weight: bold;
    background-color: #04AA6D;
}

#notes-drawer .notes,
#backstory-drawer .notes {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: repeating-linear-gradient(#FFFDEF, #FFFDEF 31px, #4D4D4D 31px, #4D4D4D 32px);
    box-shadow: 0px -10px 5px black, -5px -10px 25px #67380a inset;
}

#notes-drawer .notes p,
#backstory-drawer .notes p {
    width: 95%;
    height: 100%;
    margin-left: 10px;
    margin-top: 2px;
    overflow-x: hidden;
    font-size: 22px;
    outline: 0;
    line-height: 32px;
}
