:root {
    --text-size-big: 35px;
    --text-size-medium: 24px;
    --text-size-small: 16px;

    --text-color: #eeeeee;
    --background-color: #222232;
    --highlighted-color: #333342;
    --extra-highlighted-color: #444452;
    --semi-highlighted-color: #2a2a42;

    --video-state-0-color: #222262;
    --video-state-1-color: #444452;
    --video-state-2-color: #222232;
    --video-state-3-color: #b31;

    --vertical-separator-color: #23e;
    --link-color: #add8e6;
    --success-color: #5a2;
    --success-fill-color: #483;
    --fail-color: #ad3311;
    --fail-color-fill: #bd3532;

    --warn-color: #cc0;
}

* {
    box-sizing: border-box;
}

a {
    color: var(--link-color);
    text-decoration: none;
}

img, video {
    image-rendering: pixelated;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: "Lucida Console", monospace;
    letter-spacing: 1px;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    padding: 0px 10px 10px 10px;

    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100svh;
}

input,
textarea,
button {
    color: var(--text-color);
    background-color: var(--highlighted-color);
    border-style: none;
    outline-style: none;
    margin: 0;
}

input:disabled, textarea:disabled, button:disabled {
    background-color: var(--semi-highlighted-color);
}

input:focus, textarea:focus, button:focus {
    outline-style: solid;
    outline-width: 2px;
    outline-color: var(--link-color);
}

input[type=submit]:hover {
    cursor: pointer !important;
}

.form-required {
    color: var(--fail-color);
    display: inline !important;
}

/* error */
#error-content {
    flex: 1;
}

/* navbar section */
#navbar {
    position: sticky;
    top: 0;
    background-color: var(--background-color);
    padding-top: 5px;
    padding-bottom: 3px;
    margin-bottom: 3px;
    border-bottom-style: solid;
    border-bottom-color: var(--vertical-separator-color);
    z-index: 2;
}

#navbar-links {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

#search-bar {
    display: inline-flex;
    flex-direction: row;
    width: 40%;
    gap: 3px;
}

#search-bar-query {
    width: 80%;
    font-size: 13px !important;
    letter-spacing: 1px !important;
}

#search-bar-submit {
    min-width: 10ch;
    width: 10%;
    font-size: 13px !important;
    letter-spacing: 1px !important;
}

#navbar-account-link {
    color: var(--link-color);
    text-decoration: none;
}

#navbar-account-link:hover {
    cursor: pointer;
}

#navbar-platform-title {
    color: var(--text-color);
    text-decoration: none;
}

#navbar-platform-title:hover {
    cursor: pointer;
}

/* footer section */
#footer {
    background-color: : var(--background-color);
    padding-bottom: 0px;
    margin-bottom: 0px;
    padding-top: 5px;
    margin-top: 10px;

    border-top-style: solid;
    border-top-color: var(--vertical-separator-color);
}

#footer-links {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

#footer-about-link {
    color: var(--link-color);
    text-decoration: none;
    text-transform: lowercase;
}

/* video preview */
.preview {
    width: 100%;
    margin: 0;
    padding: 0;
}

.preview-link {
    display: block;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.preview:hover {
    background-color: var(--highlighted-color);
    cursor: pointer;
}

.preview-text {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    margin: 0;
    padding: 0;
    line-height: 1.4;
}

.preview img {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    object-fit: contain;
    background-color: black;
}

.preview-image-container {
    position: relative;
}

.preview-length {
    font-size: 13px;
    color: var(--text-color);
    background-color: var(--highlighted-color);
    font-size: 15px;

    position: absolute;
    bottom: 8px;
    right: 8px;
}

.preview-title {
    line-height: 1.3;
    font-size: 18px;
    font-weight: bold;
}

.preview-channel {
    font-size: 15px;
}

.preview-stats {
    font-size: 15px;
}
