:root {
    --fg-primary: rgb(255, 255, 255);
    --fg-secondary: rgb(180, 180, 180);
    --fg-tertiary: rgb(128, 128, 128);
    --bg-primary: rgb(48, 48, 48);
    --bg-secondary: rgb(68, 68, 68);
    --inversion: 100%;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-primary);
    color: var(--fg-primary);
}

textarea {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-secondary);
    color: var(--fg-primary);
    resize: none;
}

textarea:placeholder {
    color: var(--fg-secondary);
}

h1 {
    margin: 0px;
    padding: 16px;
}

p {
    margin: 16px;
}

hr {
    margin: 32px -16px 16px -16px;
    border-style: solid;
    border-width: 2px;
    color: var(--fg-secondary);
}

h1 + p {
    margin-top: 0px;
}

a:link, a:visited {
    color: var(--fg-primary);
    font-weight: bold;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

#main_container {
    min-width: 600px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 71px;
}

#edit_warning, #session_warning {
    color: rgba(255, 255, 0, 1.0);
}

#type_selector {
    text-align: center
}

.warning_color {
    color: rgba(255, 0, 0, 1.0);
}

.required_optional {
    color: var(--fg-tertiary);
}

.entry {
    width: 100%;
    margin-top: 4px;
    margin-bottom: 4px;
    display: flex;
}

.entry:hover .delete {
    opacity: 1;
}

.entry p {
    margin: 16px;
    word-wrap: break-word;
}

.entry .delete {
    background-color: rgba(255, 0, 0, 0.0);
    font-size: 1.5em;
    min-width: 48px;
    min-height: 100%;
    margin-right: 2px;
    cursor: pointer;
    user-select: none;
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;

    transition: 0.25s cubic-bezier(0, 0.75, 0.25, 1);
}

.entry .delete:hover {
    background-color: rgba(255, 0, 0, 1.0);
}

.entry .countdown {
    background-color: var(--bg-secondary);
    width: 48px;
    min-height: 100%;
    margin-left: 2px;
    pointer-events: none;
    user-select: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.entry .name, .entry .value {
    background-color: var(--bg-secondary);
    margin-left: 2px;
    margin-right: 2px;
    display: flex;
    align-items: center;
}

.entry .name {
    min-width: 200px;
    display: flex;
}

.entry .value {
    flex-grow: 1;
}

.entry .value textarea, .entry .name textarea, .image_entry textarea {
    overflow-y: hidden;
    width: calc(100% - 32px);
    padding: 16px;
    height: 16px;
    max-height: 16px;
    min-height: 16px;
    vertical-align: middle;
    border: none;
    outline: none;
    margin: 0px;
}

.value textarea {
    text-align: right;
}

#images_container .name {
    display: none;
}

.image_entry {
    display: flex;
}

.image_entry_value {
    margin-right: 2px;
    flex-grow: 1;
}

.metadata_container {
    margin-left: 2px;
    flex-grow: 1;
}


#name_entry {
    justify-content: center;
    align-items: center;
}

#name_entry .name {
    min-width: 100%;
}

.centered textarea {
    text-align: center;
}

#template_attribute_entry, #template_image_entry {
    display: none;
    user-select: none;
}

#color_value {
    margin-left: 0px;
}

#color_preview {
    margin-right: 0px;
}

#color_preview textarea {
    cursor: default;
}

#tags_preview {
    width: 75%;
    margin: auto;
    margin-top: 16px;
    text-align: center;
    word-wrap: break-word;
    color: var(--fg-secondary);
}

#footer_container {
    background-color: var(--bg-secondary);
    position: fixed;
    left: 0px;
    bottom: 0px;
    width: 100%;
}

#footer {
    margin: auto;
    min-width: 600px;
    max-width: 800px;
    height: 55px;
}

#footer_container hr {
    margin-top: 0px;
    margin-bottom: 0px;
}

#footer_flex {
    background-color: var(--bg-secondary);
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#countdown_container {
    margin-left: 16px;
    text-align: left;
}

#button_container {
    text-align: right;
    flex-grow: 1;
}

.button {
    background-color: var(--bg-primary);
    margin-right: 16px;
    padding: 4px;
    border: 2px solid var(--fg-primary);
    cursor: pointer;
    user-select: none;
}

input[type="radio"] {
    display: none;
}

.radio_button {
    padding: 4px;
    margin-left: 4px;
    margin-right: 4px;
    cursor: pointer;
    user-select: none;
    color: var(--fg-secondary);
    background: var(--bg-primary);
    border: 2px solid var(--fg-tertiary);
    transition: 0.25s cubic-bezier(0, 0.75, 0.25, 1);
}

input[type="radio"]:checked + label {
    color: var(--fg-primary);
    background: var(--bg-secondary);
    border: 2px solid var(--fg-primary);
}

#type_selector {
    margin-bottom: 16px;
}

#notification_container {
    position: fixed;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
}

#notification_box {
    background-color: var(--bg-primary);
    border: 4px solid var(--fg-secondary);
    width: 400px;
    z-index: 1;
}

#okay_button_container {
    height: 55px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

#notification_text {
    margin: 16px;
}

#click_area {
    position: fixed;
    width: 100%;
    height: 100%;
}

.hidden {
    display: none !important;
}

.disabled {
    opacity: 0.5 !important;
    cursor: none !important;
    pointer-events: none !important;
}

#credits {
    color: var(--fg-tertiary);
    font-size: 12px;
    text-align: center;
}
