:root {
    --background-color-main: rgb(30, 1, 1);
    --foreground-color-main: rgb(220, 219, 180);
    --background-color-bright: rgb(50, 15, 15);
    --foreground-color-bright: rgb(255, 251, 127);

    --main-link-color: rgb(255, 253, 185);
    --main-link-color-hover: rgb(255, 254, 226);

    --outline-color-dim: rgb(164, 163, 116);
    --outline-color-bright: rgb(200, 198, 143);

    --site-max-width: 800px;
    --site-max-height: 500px;
}

body {
    background-color: var(--background-color-main);
    color: var(--foreground-color-main);
    overflow-y: scroll;
    font-family: sans-serif;
}

a:active, a:link, a:visited {
    color: var(--main-link-color);
}

a:hover {
    color: var(--main-link-color-hover);
}

label {
    padding: 5px;
    margin: 5px;
}

input, textarea {
    padding-top: 5px;
    margin-top: 5px;
    background-color: var(--background-color-bright);
    color: var(--foreground-color-bright);
    border-color: var(--outline-color-dim);
}

input {
    font-family: sans-serif;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--outline-color-bright);
    box-shadow: 0 0 3px var(--outline-color-bright);
}

textarea {
    font-family: monospace;
}

.gridMain {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(3, 50px) 1fr;
    margin: auto;
    height: var(--site-max-height);
    width: var(--site-max-width);
}
    
.gridTopInfo {
    grid-area: 1 / 1 / 2 / 5;
}

.gridTopUpdate {
    grid-area: 1 / 5 / 2 / 6;
}

.gridTopDelete {
    grid-area: 1 / 6 / 2 / 7;
}

.gridControlExpiresToggle {
    grid-area: 2 / 1 / 3 / 2;
}

.gridControlExpiresDays {
    grid-area: 2 / 2 / 3 / 4;
}

.gridControlPassword {
    grid-area: 2 / 4 / 3 / 6;
}

.gridControlSubmit {
    grid-area: 2 / 6 / 3 / 7;
}

.gridTitle {
    grid-area: 3 / 1 / 4 / 7;
}

.gridContents {
    grid-area: 4 / 1 / 5 / 7;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    margin: auto;
    overflow: hidden;
}

.gridContentsExtended {
    grid-area: 4 / 1 / 5 / 7;
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: auto;
}

.gridContentsMarginOff {
    grid-area: 4 / 1 / 5 / 7;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    margin: auto;
    overflow: hidden;
}

.formItemOuter {
    display: flex;
    flex-direction: row;
    align-items: center;
    overflow: hidden;
}

.justifyContentRight {
    justify-content: right;
}

.justifyContentLeft {
    justify-content: left;
}

.formRowInputShort {
    width: 5em;
}

.formRowInputLong {
    width: 10em;
}

.formRowInputFullWidth {
    width: 99%;
}

.noteCreateLabel {
    width: 6em;
}

.noteCreateFormNote {
    overflow-x: hidden;
    overflow-y: scroll;
    height: 100%;
    width: 100%;
    resize: none;
}

.noteCreateFormPassword {
    font-family:Consolas,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New, monospace;
}

.noteCreateFormSubmit {
    width: 100%;
}

.noteContentsDisplayOuter {
    height: 100%;
    margin: 0em;
    overflow: hidden;
}
