body {
    background-color: #333;
    color: white;
    font: normal 14px Verdana, sans-serif;
}

h1 {
    font-size: 24px;
    font-weight: normal;
    margin: 8px;
}

h2 {
    font-size: 16px;
    font-weight: normal;
    margin: 8px;
}

.flex-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.flex-col-1 {
    align-items: center;
    background-color: #666;
    display: flex;
    flex-direction: column;
    float: left;
    max-width: 1000px;
    padding: 8px;
}

.flex-col-2 {
    background-color: #666;
    flex-grow: 1;
    float: left;
    max-width: 500px;
    padding: 8px;
}

#title-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    width: 850px;
}

#title-header * {
    margin: 4px;
}

.control {
    background-color: #333;
    font-size: 20px;
    line-height: 36px;
    margin: 8px;
    padding: 6px;
    text-align: center;
}

.control:hover {
    background-color: #444;
    cursor: pointer;
}

.control:active {
    background-color: #666;
}

.control.square {
    font-size: 32px;
    height: 40px;
    width: 40px;
}

#tick {
    accent-color: #e21818;
    width: 850px;
}

#timeline {
    display: flex;
    font: normal 12px Verdana, sans-serif;
    margin-top: 10px;
    overflow: auto;
    width: 875px;
}

.timeline-wave {
    background-color: #333;
    margin: 0px 4px;
    padding: 0px 4px;
}

.timeline-wave-top * {
    font-weight: bold;
    margin: 4px;
    text-align: center;
    white-space: nowrap;
}

.timeline-wave-bottom {
    display: flex;
}

.timeline-fragment {
    background-color: #666;
    margin: 0px 4px;
    padding: 0px 4px;
}

.timeline-fragment-top * {
    font-weight: bold;
    margin: 4px;
    text-align: center;
    white-space: nowrap;
}

.timeline-fragment-bottom {
    display: flex;
}

.timeline-enemy {
    align-items: center;
    background-color: #333;
    display: flex;
    justify-content: left;
    margin: 0px 4px;
    padding: 0px 16px;
}

.timeline-enemy:hover {
    background-color: #444;
    cursor: pointer;
}

.timeline-enemy.selected {
    background-color: #633;
}

.timeline-enemy-left,
.timeline-enemy-right {
    display: flex;
    flex-direction: column;
}

.timeline-enemy * {
    font-weight: bold;
    margin: 2px;
    text-align: center;
    white-space: nowrap;
}

#enemy-info {
    font: normal 12px Verdana, sans-serif;
    margin-top: 16px;
    max-height: 900px;
    overflow: auto;
}

.enemy-info-box {
    align-items: center;
    background-color: #333;
    display: flex;
    height: 200px;
    height: 168px;
    justify-content: left;
    margin-bottom: 8px;
    padding: 16px 0px 16px 22px;
}

.enemy-info-box.selected{
    background-color: #633;
}

.enemy-info-left * {
    font-weight: bold;
    margin: 2px 4px;
    max-width: 100px;
    text-align: center;
}

.enemy-stat {
    padding: 2px 6px;
}

.enemy-stat.type {
    font-weight: normal;
    text-align: left;
}

.enemy-stat.value {
    font-weight: bold;
    text-align: right;
}

#zone-select {
    align-items: flex-start;
    background-color: #333;
    display: flex;
    flex-direction: column;
    margin-top: 20px;    
    padding: 12px 25px;
    width: 825px;
}

#zone-name {
    color: white;
    margin-top: 8px;
}

#zone-level {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    padding: 0px;
}

#overlay {
    background: black;
    display: none;
    height: 100%;
    left: 0;
    margin: 0;
    opacity: 0.6;
    position: fixed;
    top: 0;
    width: 100%;
}

#popup {
    background: #333;
    display: none;
    left: 50%;
    margin-left: -300px;
    position: absolute;
    top: 2%;
    width: 600px;
}

.popup-section {
    padding: 8px;
}

#popup-close {
    color: #bbbbbb;
    float: right;
    font-size: 24px;
    font-weight: bold;
}

#popup-close:hover {
    color: white;
    cursor: pointer;
}

#popup-nav {
    font-size: 16px;
}

.popup-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    padding: 0;
}

.popup-item {
    background-color: #161616;
    flex-basis: 0;
    flex-grow: 1;
    margin: 4px 4px;
    padding: 4px 12px;
    text-align: center;
    white-space: nowrap;
}

.popup-item:hover {
    background-color: #666;
    cursor: pointer;
}

.popup-item:active {
    background-color: #ddd;
    color: black;
}

.popup-item.selected {
    background-color: #ddd;
    color: black;
}

.popup-item.selected:hover {
    background-color: #ddd;
    color: black;
    cursor: pointer;
}
