body {
    background-color: #000000;
    font-family: Roboto, sans-serif;
    margin: 0;
    overflow: hidden;
    overscroll-behavior: none;
    padding: 0;
}

.mobile {
    font-size: 2em;
}

.mobile #firebaseui-auth-container {
    margin: 1em;
    transform: scale(2.0);
}

ul {
    margin: 0.1em 0 0;
    padding-left: 1.5em;
}

.screen {
    background-color: #000000;
    height: 100%;
    left: 0;
    opacity: 0.5;
    position: fixed;
    top: 0;
    width: 100%;
}

.popup {
    background-color: #2d2d2d;
    border-radius: 2px;
    box-shadow: 0 0.25em 1em #000000;
    color: #ffffff;
    margin: 0 auto;
    max-width: 28em;
    min-width: 18em;
    padding: 1.2em 1.2em 0.5em 1.2em;
    position: fixed;
}

.popup .icon {
    position: relative;
    margin-right: 0.6em;
    top: 0.35em;
}

.mobile .popup .icon {
    left: 0.3em;
    margin-right: 1em;
    top: 0;
    transform: scale(2);
}

.warning {
    color: #999999;
}

.menu {
    padding: 0.4em 1.2em;
}

.menu .button {
    color: #bbbbbb;
    display: inline-block;
    padding: 0.8em 0.5em 0.8em 0.5em;
    margin: 1px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: pre;
}

.menu .button-like {
    padding-right: 2.5em;
    position: relative;
}

.menu .button-like .icon {
    filter: brightness(0.8);
    padding-left: 0.5em;
    position: absolute;
    right: 0.6em;
    top: 0.8em;
    width: 18px;
}

.mobile .menu .button-like .icon {
    left: 1em;
    top: 1em;
}

.menu .button-like-inactive {
    color: #10c0c0;
}

.menu .button-like-inactive .icon {
    filter: sepia(100%) saturate(100) hue-rotate(120deg) brightness(0.75);
}

.menu .button-active:hover {
    color: white;
}

.menu .button-active:hover .icon {
    filter: brightness(1.0);
}

.menu .icon {
    margin-right: 0.3em;
}

.menu .sort-option {
    border-right: 1px solid #444444;
    margin: 0.4em 0 0.4em 0;
    padding: 0.2em 0.5em 0.2em 0.5em;
}

.menu .sort-option.selected {
    color: #ffffff;
}

.menu .sort-option.last {
    border-right: none;
}

.menu .title {
    margin: 0.5em 0 0.8em 0;
}

.menu-entry {
    border-bottom: 1px solid #444444;
    width: 100%;
}

.menu-entry-row {
    display: flex;
    justify-content: space-between;
}

.menu-entry.nav {
    text-align: right;
}

.menu-entry.last {
    border-bottom: none;
}

.menu-scrollable {
    overflow: auto;
}

.title {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 1em;
}

.title .icon {
    margin-right: 0.5em;
}

.button {
    background-color: #2d2d2d;
    border: none;
    color: #777777;
    cursor: pointer;
    font-family: Roboto, sans-serif;
    font-size: 1em;
    font-weight: bold;
    padding: 0.5em;
}

.button:focus {
    background-color: #404040;
}

.mobile .button:hover {
    background-color: #404040;
}

.button-active:hover {
    color: #cccccc;
}

.no-button {
    margin-bottom: 0.5em;
}

.info .button {
    float: right;
    margin-left: 0.5em;
}

.info .button-wrapper {
    padding-top: 0.5em;
}

.text-input {
    background-color: #2d2d2d;
    border: 0;
    border-bottom: 2px solid #999999;
    color: white;
    font-family: Roboto, sans-serif;
    font-size: 1em;
    font-weight: normal;
    margin-bottom: 0.2em;
    width: 100%;
}

.text-input:focus {
    outline: none;
}

.user-level-author {
    padding: 0.2em 0.6em 0.2em 0;
}

.user-level-likes {
    border-left: 1px solid #606060;
    padding-left: 0.6em;
}

#form-select {
    border-bottom: 1px solid #444444;
    border-top: 1px solid #444444;
    max-height: 24em;
    overflow: auto;
    padding: 0.4em 0 0.6em;
}

.radio-button {
    margin: 0.6em 0 0.6em;
}

.radio-button input, label {
    cursor: pointer;
    margin-right: 0.6em;
}

.mobile .radio-button input {
    left: 0.3em;
    margin-right: 2em;
    position: relative;
    top: -0.5em;
    transform: scale(2);
}

label {
    color: #bbbbbb;
    cursor: pointer;
    white-space: pre;
}

label:hover {
    color: white;
}

.link {
    color: white;
    font-size: 0.9em;
    padding: 1.2em 0.2em 0.8em;
    text-align: right;
}

a {
    color: #4499ff;
}

.error-msg {
    background-color: #000000;
    color: white;
    height: 100%;
    left: 0;
    padding-top: 4em;
    position: fixed;
    text-align: center;
    top: 0;
    width: 100%;
}

.toast-wrapper {
    bottom: 15%;
    color: white;
    position: fixed;
    text-align: center;
    width: 100%;
}

#toast {
    background-color: #2d2d2d;
    border-radius: 1em;
    box-shadow: 0 0 6px 1px black;
    padding: 0.8em 1em;
    position: relative;
}

#toast.fade-in {
    transition: opacity 0.1s linear;
}

#toast.fade-out {
    transition: opacity 0.5s linear;
}

#toast.invisible {
    opacity: 0;
}

#toast.no-display {
    position: fixed;
    top: -4em;
}

#menu-button-mobile {
    display: none;
    position: fixed;
    right: 1em;
    top: 1em;
}

#menu-button-mobile .button {
    padding: 1em 1.5em;
}

#menu-note {
    bottom: 1em;
    color: #bbbbbb;
    display: none;
    position: fixed;
    left: 1em;
}

#editor-note {
    color: #607d8b;
}

.editor, .editor .button, .editor .text-input {
    background-color: #263238;
}

.editor .button:focus {
    background-color: #384848;
}

.button.hidden {
    display: none;
}
