:root {
    --main-color: #EFA565;
    --main-background: #F8BA82;
    --main-background-light: #F8DBA7;
    --main-hover: #F8BA82;
    --main-button: #AC5821;
    --grey-background: #282828;
    --grey-background-light: #989898;
    --grey-text: #282828;
    --grey-text-active: #383838;
    --grey-text-inactive: #686868;
    --white-text: #FAFAFA;
    --white-background: #FAFAFA;
    --red-background: #db9890;
    --red-background-light: #f1c3be;
    --green-background: #9fbda0;
    --green-background-light: #d2ebd3;

    --control-panel-width: 380px;
}

html, body {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    height: 100%;
    width: 100%;
    padding: 0;
    margin: 0;
}

body > div {
    height: 100%;
}

.app-title {
    width: 100%;
    text-align: center;
}
.app-title .text {
    display: inline-block;
    font-size: 28px;
}
.app-title .leading-text {
    color: var(--main-color);
}
.app-title .trailing-text {
    color: var(--grey-text);
}

#sidebar {
    display: flex;
    flex-direction: column;
    width: 0px;
    background-color: var(--main-color);
    font-size: 18px;
    overflow: hidden;
    white-space: nowrap;
    text-align:center;
    transition: 0.5s; /* 0.5 second transition effect to slide in the sidenav */
    border-right: solid 1px var(--main-hover);
}
#sidebar #close-side-bar {
    height: 48px;
    margin: 0 0 0 auto;
    padding: 2px 12px;
    border: none;
    background: none;
    font-size: 22px;
    color: var(--grey-text-inactive);
}
#sidebar .title {
    height: 60px;
    line-height: 60px;
    padding: 0 auto;
    margin: 0 0 20px 0;
    color: var(--grey-text);
    font-size: 22px;
    background-color: var(--main-hover);
}
#sidebar a {
    width: 100%;
    padding: 10px 0 10px 24px;
    text-decoration: none;
    text-align: left;
    color: var(--grey-text-inactive);
}
#sidebar a:hover {
    background-color: var(--main-hover);
    color: var(--grey-text-active);
}
#sidebar span {
    margin: 12px 0 0 0;
}

#main-container {
    width: 100%;
    height: 100%;
}

#main-header {
    width: 100%;
    height: 48px;
    display: flex;
    background-color: var(--grey-background);
}
#main-header #open-side-bar {
    height: 100%;
    padding: 0 18px;
    background: none;
    border: none;
    font-size: 22px;
    color: var(--grey-text-inactive);
}
#main-header #open-control-panel {
    height: 100%;
    padding: 0 18px;
    background: none;
    border: none;
    font-size: 22px;
    color: var(--grey-text-inactive);
}
#main-header #header-text {
    display: table;
    width: 100%;
    height: 100%;
    /*padding-right: var(--control-panel-width);*/
    text-align: center;
}
#main-header #header-text span {
    display: table-cell;
    vertical-align: middle;
    font-size: 24px;
    color: var(--white-text);
}

#main-content {
    width: 100%;
    height: -moz-calc(100% - (48px));
    height: -webkit-calc(100% - (48px));
    height: calc(100% - (48px));
    overflow-y: auto;
}

.center {
    position: absolute;
    top: 50%;
    left: 50%;
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

.google-map {
    width: 100%;
    height: 100%;
}

#control-panel {
    display: flex;
    flex-direction: column;
    width: var(--control-panel-width);
    /* position: absolute;
    z-index: 2;
    right: 10px;
    top: 20px;
    height: -moz-calc(100% - (48px));
    height: -webkit-calc(100% - (48px));
    height: calc(100% - (48px)); */
    overflow: hidden;
    background: white;
    /* border-radius: 12px;
    box-shadow: 2px 4px 23px 1px rgba(0, 0, 0, 0.74); */
    transition: 0.5s; /* 0.5 second transition effect to slide in the sidenav */
}

#control-panel-content {
    padding: 0px 28px;
}

#control-panel #close-control-panel {
    height: 48px;
    margin: 0 0 0 auto;
    padding: 2px 12px;
    border: none;
    background: none;
    font-size: 22px;
    color: var(--grey-text-inactive);
}

#control-panel .actions {
    width: 100%;
    text-align: center;
    overflow-y: auto;
}

#control-panel > h2 {
    margin: 8px auto;
    padding: 4px 0 18px 0;
    text-align: center;
    font-size: 22px;
    color: var(--grey-text);
}

#control-panel button.normal {
    display: inline-block;
    min-width: 100px;
    padding: 5px 15px;
    background-color: var(--main-button);
    border: none;
    text-align: center;
    text-decoration: none;
    color: var(--white-text);
    cursor: pointer;
    border-radius: 12px;
    transition-duration: 0.4s;
}