body {
    background-color: #363c47;
}

body, html {
    overscroll-behavior: none;
}

:root {
    --interface-size: 40px;
    --line-height: 17px;
    --margin: 5px;
    --scrollWidth: 30px;
    --scrollMinHeight: 20px;
}

#actionButton {
    border-radius: calc(var(--interface-size) / 2);
    width: var(--interface-size);
    height: var(--interface-size);
    border-style: none;
    background-color: #2feea0;
    font-size: large;
    box-shadow: 2px 2px black;
    margin: var(--margin);
    cursor: pointer;
}

#textMessage {
    min-height: var(--interface-size);
    border-radius: calc(var(--interface-size) / 2);
    border: none;
    box-shadow: 2px 2px black;
    vertical-align: middle;
    resize: none;
    padding: calc((var(--interface-size) - var(--line-height)) / 2);
    line-height: var(--line-height);
    overflow: hidden;
    font-family: "Open Sans", sans-serif;
    margin: var(--margin);
    flex: 1;
}

#formDiv {
    display: flex;
    align-items: flex-end;
}

#ui {
    width: 100%;
    max-width: 500px;
    margin: auto;
    padding: var(--margin);
}

#history {
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-end;
    flex: 1;
}

.entry {
    background-color: #b9e2cf;
    color: black;
    font-family: "Open Sans", sans-serif;
    min-width: 200px;
    text-align: right;
    margin: var(--margin);
    padding: calc((var(--interface-size) - var(--line-height)) / 2);
    border-radius: calc(var(--interface-size) / 4);
    box-shadow: 2px 2px black;
}

.entryFooter {
    font-size: x-small;
    color:gray;
    margin-top: 5px;
    display: flex;
}

.entryContent {
    white-space: pre-wrap;
    word-break: break-word;
    text-align: left;
    display: flex;
    flex-flow: column;
}

.entryTime {
    font-weight: bold;
}

.recording {
    background-color: #f14c4c !important;
}

#audioVisualizer {
    background-color:white;
    height: var(--line-height);
    border-radius: calc(var(--interface-size) / 2);
    border: none;
    box-shadow: 2px 2px black;
    padding: calc((var(--interface-size) - var(--line-height)) / 2);
    margin: var(--margin);
    flex: 1;
}

#pipContainer {
    width: 100%;
    height: var(--line-height);
    display: flex;
    align-items: center;
    padding: 0px;
}

.pip {
    width: 2px;
    margin: 1px;
    height: 1px;
    background-color:black;
    display: inline-block;
}

.playButton, .editButton {
    text-align: left;
    padding-top: 10px;
}

.footerTime {
    text-align: right;
    flex: 1;
}

.playButton {
    display: none;
}

.audioEntry .playButton {
    display: block !important;
}

.editButton {
    cursor: pointer;
}

.editing {
    background-color: #88a095;
}

.audioEntry {
    cursor: pointer;
}

.icon {
    margin-right: 5px;
}

.searchResults {
    overflow-y: scroll;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.searchResults::-webkit-scrollbar {
    display: none;
}

#upperUi {
    display: flex;
    height: 80vh;
}

#timeScroll {
    margin: var(--margin);
    width: var(--scrollWidth);
    overflow-x: visible;
    position: relative;
}

#scrollHandle {
    width: var(--scrollWidth);
    height: 20px;
    background-color: #202633;
    cursor: ns-resize;
    border-radius: calc(var(--interface-size) / 4);
    box-shadow: 2px 2px black;
}

#scrollShadow {
    width: calc(var(--scrollWidth) + 2px);
    height: 20px;
    background-color: #00000041;
    border-radius: calc(var(--interface-size) / 4);
    position: absolute;
}

#currentTime {
    border: #ffffff99 solid 1px;
    font-family: monospace;
    color: white;
    padding: var(--margin);
    position: absolute;
    line-height: var(--line-height);
    left: -80px;
    display: none;
    background-color: #000000ad;
}

#scrollHandle:hover #currentTime {
    display: block;
}

.ui-draggable-dragging #currentTime {
    display: block;
}

p, ul {
    margin: 0 0 5px 0;
}

ul {
    display: flex;
    flex-flow: column;
}

li {
    margin-bottom: 5px;
}

.dayBreak {
    color: #a5a5a5;
    font-family: "Open Sans", sans-serif;
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: auto;
    margin-right: auto;
    font-size: small;
    display: flex;
    flex-flow: row;
    width: 100%;
    align-items: center;
}

.dayBreakLine {
    width: 100%;
    height: 1px;
    background-color: #a5a5a5;
    margin-top: 5px;
    margin-bottom: 5px;
    flex: 1;
}

.dayBreakDate {
    margin-left: 10px;
    margin-right: 10px;
}

.entry .fa {
    font-size: small;
}