:root {
    --accent-color: #ffbb00;
}

body {
    background-color: rgb(30, 30, 30);
    color: white;

    font-family: sans-serif;

    margin: 0;

    overflow-x: hidden;
}

a {
    color: var(--accent-color);
    font-weight: bold;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

details summary {
    cursor: pointer;
}

input[type="text"], input[type="password"], input[type="email"], textarea {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    border-bottom: 0.1rem solid var(--accent-color);
    color: white;
}
input[type="submit"], button {
    border: 0.1rem solid var(--accent-color);
    background-color: black;
    color: white;
    font-weight: bold;
}
input[type="submit"]:hover, button:hover {
    background-color: #494949;
}
input[type="submit"]:active, button:active {
    background-color: var(--accent-color);
}

.error-box {
    border: 0.2rem solid #9d0000;
    border-radius: 0.5rem;
    background-color: #ff3b3b;
    display: inline-block;
    padding: 0.5rem;
    margin: 0.5rem;
}

.player-container {
    padding: 0;
}
.player-container video {
    width: 100vw;
    height: calc(100vh - 3rem);
}

.center {
    text-align: center;
}
.bold {
    font-weight: bold;
}

.video-meta-container {
    text-align: center;
}
.video-title {
    font-size: 1.75rem;
}
.video-like {
    cursor: pointer;
    background: none;
    border: 0.1rem solid red;
    color: white;
    font-size: 1rem;
    font-weight: bold;
}
.video-download {
    cursor: pointer;
    text-decoration: none !important;
}
.video-like:disabled {
    background-color: rgba(255, 0, 0, 0.1);
    color: #686868;
}
.video-like:active {
    background-color: rgba(255, 0, 0, 0.3);
}
.video-like:hover:after {
    content: '❤️';
}
.video-like:after {
    content: '🤍';
}
.video-like-liked:after {
    content: '❤️';
}
.video-like-liked {
    background-color: rgba(255, 0, 0, 0.3);
}

.video-tags-container {
    margin: 1rem;
}
.video-tag {
    display: inline-block;
    font-size: 0.9rem;
    padding: 0.25rem;
    margin: 0.25rem;
    font-weight: bold;
    background-color: rgba(0, 0, 0, 0.25);
    border-bottom: 0.1rem solid var(--accent-color);
}
.video-tag:hover {
    text-decoration: none;
}

.scroll-indicator {
    position: fixed;
    right: 2rem;
    bottom: 2rem;

    opacity: 0;

    font-family: sans-serif;
    font-size: 1.2rem;
    font-weight: bold;

    text-align: center;
    align-content: center;

    width: 3rem;
    height: 3rem;

    border-radius: 100%;
    border: 0.15rem solid rgb(200, 200, 200);

    background-color: rgba(50, 50, 50, 0.6);

    animation: 3s linear normal scroll-indicator;

    pointer-events: none;
}

@keyframes scroll-indicator {
    0% {
        opacity: 1;
        bottom: 4rem;
    }
    20% {
        opacity: 1;
        bottom:2rem;
    }
    40% {
        opacity: 1;
        bottom: 4rem;
    }
    80% {
        opacity: 1;
        bottom: 2rem;
    }
    100% {
        opacity: 0;
        bottom: 4rem;
    }
}

.required::after {
    content: '*';
    color: red;
}

.comment-form {
    margin-bottom: 2rem;
}
.comment-form tr td:nth-child(1) {
    padding: 0.25rem;
    background-color: rgb(75, 75, 75);
    align-content: end;
}
.comment-form textarea, .comment-form input {
    width: 30rem;
}
.comment-form-submit-container {
    margin-top: 1rem;
    width: 50%;
}
.comment-form-submit-container input {
    width: 100%;
}
.comment-form-progress-container {
    display: none;
}

.bottom-container {
    margin-top: 1rem;
    padding: 1rem;
    display: flex;
}

.nav-container {
    border: 0.1rem solid var(--accent-color);
    background-color: rgba(255, 255, 255, 0.05);
    width: 20rem;
}
.nav-container:last-child {
    border-bottom: none;
}
.nav-section {
    border-bottom: 0.1rem solid var(--accent-color);
    font-size: 1rem;
    padding: 0.4rem;
}

input[name=video-type-radio] {
    display: none;
}
.video-type-label {
    cursor: pointer;
}
#video-type-radio-liked:checked ~ label[for="video-type-radio-liked"] {
    color: var(--accent-color);
    font-weight: bold;
}
#video-type-radio-bumped:checked ~ label[for="video-type-radio-bumped"] {
    color: var(--accent-color);
    font-weight: bold;
}
#video-type-radio-search:checked ~ label[for="video-type-radio-search"] {
    color: var(--accent-color);
    font-weight: bold;
}

.video-type-container {
    display: none;
    margin-top: 0.25rem;
    padding-top: 0.25rem;
    border-top: 0.1rem solid var(--accent-color);
}
#video-type-radio-liked:checked ~ .video-type-container-liked {
    display: block !important;
}
#video-type-radio-bumped:checked ~ .video-type-container-bumped {
    display: block !important;
}
#video-type-radio-search:checked ~ .video-type-container-search {
    display: block !important;
}

.videos-table-title {
    max-width: 14rem;
}
.videos-table-stats {
    width: 4rem !important;
    font-size: 0.75rem;
    font-weight: bold;
    cursor: default;
    text-align: right;
}
.videos-table-stats span {
    display: block;
}

.greentext {
    color: #00ba00;
}
.redtext {
    color: #e30000;
}

.comments-container {
    margin-left: 2rem;
}
.comment-container {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    margin: 0.5rem;
}
.comment-meta-author {
    cursor: default;
}
.comment-meta-author-name {
    margin-left: 0.3rem;
    color: var(--accent-color);
    font-weight: bold;
}
.comment-meta-author-tripcode {
    color: red;
}
.comment-meta-file-link {
    display: inline-block;
    max-width: 20rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    top: 0.3rem;
}

.comment-image-container {
    margin-right: 0.5rem;
    margin-top: 0.5rem;
    display: inline-block;
    float: left;
}
.comment-image-container.video img, .comment-image-container.video video {
    border: 2px solid blue;
}
.comment-image-container.spoiler img, .comment-image-container.spoiler video {
    filter: blur(1rem);
    transition: filter 0.25s;
}
.comment-image-container.spoiler img:hover, .comment-image-container.spoiler video:hover {
    filter: blur(0rem);
}

.comment-content-container {
    margin-top: 0.25rem;
}

input[type="checkbox"] {
    width: 1rem;
}

.highlighted-post-container {
    border: 0.2rem solid var(--accent-color);
    margin-bottom: 2rem;
}
.highlighted-post-container-none {
    display: none;
}
.highlighted-post-close-button {
    float: right;
}

@media (orientation: portrait), (aspect-ratio < 1/1) {
    .bottom-container {
        flex-direction: column;
    }
    .nav-container {
        width: auto;
        margin-bottom: 1rem;
    }
    .videos-table-title {
        max-width: none;
        min-width: calc(100vw - 9rem);
    }
    .comments-container {
        margin-left: 0;
    }
    .comments-container input {
        width: 100%;
    }
    .comments-container textarea {
        width: 100%;
    }
    .comments-container input[type="checkbox"] {
        width: auto;
    }
    .comment-image-container {
        float: none;
    }
    .player-container, .player-container * {
        height: auto !important;
        max-height: calc(100vh - 3rem);
    }
}
