@media (prefers-reduced-motion: no-preference) {
    @view-transition {
        navigation: auto;
    }
}

/* source-sans-3-regular - latin */
@font-face {
    font-display: swap;
    font-family: 'Source Sans 3';
    font-style: normal;
    font-weight: 400;
    src: url('../assets/fonts/source-sans-3-v15-latin-regular.woff2') format('woff2');
}

/* source-sans-3-600 - latin */
@font-face {
    font-display: swap;
    font-family: 'Source Sans 3';
    font-style: normal;
    font-weight: 600;
    src: url('../assets/fonts/source-sans-3-v15-latin-600.woff2') format('woff2');
}

body {
    font-size: .9rem;
}

span.rating {
    position: absolute;
    right: -16.5px;
    padding: 0px 20px;
    transform: rotate(45deg);
    top: 8.5px;
    font-size: 11px;
    clip-path: polygon(25% 0%, 75% 0%, 100% 100%, 0% 100%);
}

span.rating.nsfw {
    background: red;
}

a span.rating {
    color: #fff !important;
}

.photobox * {
    margin: auto auto;
    display: block;
}

.photobox {
    overflow: hidden;
    width: 100%;
    height: 228px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #000;
}

.photos .photobox[data-rating="NSFW"] {
    /*filter: url(#pixelate);*/
    width: calc(100% - 5px);
    height: 223px;
    border-bottom: 5px solid transparent;
    margin-bottom: 5px;
}

.photos .photobox[data-rating="NSFW"]:hover {
    /*filter: none;*/
    width: 100%;
    border-bottom: 10px solid #000;
    height: 228px;
    margin-bottom: 0px;
}

.user-panel img {
    float: left;
    width: 48px;
    height: 48px;
    margin-top: 5px;
    margin-left: .5rem;
}

li li.nav-item i,
li li.nav-item p {
    padding-left: 1rem;
}

strong {
    font-weight: 600;
}

.form-control[type="file"] {
    height: calc(2.5rem + 4px);
}

span.date,
span.photographer {
    position: absolute;
    color: #fff;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: 0.5s all;
}

span.date {
    right: 0.2rem;
}

span.photographer {
    left: 0.2rem;
}

.singlephoto:hover .photographer,
.singlephoto:hover .date {
    opacity: 0;
}

.featuring {
    height: 3rem;
}

.featuring strong,
.featuring a {
    font-size: 0.9rem;
}

.card-body {
    padding: 1rem;
}

.filter-container {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .filter-container {
        flex-direction: column;
        align-items: stretch;
    }
}

.card {
    position: relative;
}

/* Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
}

.lightbox.active {
    display: flex;
}

/* Download Button Styles */
.download-btn {
    margin-bottom: 20px;
}

.mark-wrapper {
    position: absolute;
    top: 10px;
    left: 10px;
    /* Increased clickable area */
    width: 80px;
    height: 80px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
}

.mark-icon {
    width: 20px;
    height: 20px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
    margin-left: -60px;
    margin-top: -60px;
}

.mark-wrapper.selected {
    opacity: 0.9;
}

.mark-wrapper.selected .mark-icon {
    background-color: rgba(0, 123, 255, 0.7);
}

.mark-wrapper.selected::after {
    content: "\2713";
    color: white;
    font-size: 14px;
    position: absolute;
    top: 0px;
    left: 5px;
}

.mark-wrapper:hover {
    opacity: 0.9;
}

.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    padding: 10px 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.button-group {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* Optional: Anpassung der Button-Abstände */
.button-group .btn {
    margin-left: 10px;
}

.fixed-header .filter-form .row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fixed-header .filter-form .input-field {
    min-width: 150px;
}

main.access {
    padding-top: 120px;
}

body.photos-page {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    background-color: #f6f6f6;
}

.photos-page .card-image img {
    max-height: 300px;
    object-fit: cover;
}

.fixed-header .right-align {
    float: right;
}

.fixed-header .input-field {
    padding-top: 0;
    padding-bottom: 0;
    margin-bottom: 0;
}

.fixed-header .row {
    margin-bottom: 0;
}

.fixed-header h1 {
    text-align: center;
}

.h1b {
    display: none;
}

@media (max-width: 768px) {
    .fixed-header {
        flex-direction: column;
        align-items: flex-start;
        width: calc(100% + 15px);
    }

    .button-group {
        justify-content: flex-start;
        width: 100%;
        margin-top: 10px;
    }

    .button-group .btn {
        margin-left: 0;
        margin-right: 10px;
    }

    #gridSmallerBtn,
    #gridLargerBtn {
        display: none;
    }

    .fixed-header+h3 {
        min-height: 5rem;
    }

    .fixed-header+h3 .selectGroupBtn {
        margin-top: 0.6rem;
    }
}

@media (min-width: 768px) {
    .h1b {
        display: block;
    }
}

@media (max-width: 500px) {
    main.access {
        padding-top: 12rem;
    }

    .fixed-header {
        height: 11rem;
    }
}

.accesslogin {
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
}

.login-container {
    text-align: center;
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    margin-top: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.login-container .justify {
    text-align: justify;
}

.copyright-icon {
    position: absolute;
    bottom: 10px;
    right: 10px;
    color: #555;
    cursor: pointer;
    font-size: 1.2rem;
}

.social-icon {
    margin-left: 5px;
    cursor: pointer;
    color: #007bff;
}

.login-page {
    height: 69.621vh;
    /* Congrats! UwU If you found this, poke me at @Keenora for a gift x3 */
}

.pp-page {
    height: auto;
}

.register-page {
    height: 88.9vh;
}

.float-right {
    float: right;
}

div[id*="copyright"] {
    background: transparent;
    box-shadow: none;
    overflow-y: hidden !important;
}

.copysymbol {
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 0;
    bottom: 0;
}

.copyusername {
    color: darkblue;
    cursor: pointer;
}

.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1055;
}

.progress-wrapper {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.5);
    left: 0;
    height: 100vh;
    padding: 10rem;
}

#progressContainer {
    position: fixed;
    top: 5vh;
    width: 50%;
    height: 10vh;
    padding: 3rem 5rem 5rem 5rem;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    background: #fff;
    left: 25%;
    right: 25%;
    border: 1px solid #666;
}

.time-label span {
    padding: 5px 15px;
    border-radius: 20px;
}

li.divider {
    height: 1px;
    background: #454545;
    width: 90%;
    margin: 3px auto 6px auto;
}

.image-block img {
    max-width: 100%;
}

a.badge-icon:hover {
    opacity: 1;
}

.badge-container {
    position: absolute;
    top: 2px;
    right: 2px;
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    z-index: 5;
}

.badge-container a.badge-icon {
    position: relative;
    background: #fff;
    padding: 0 4px;
    border-radius: 3px;
    opacity: 0.8;
    border: 1px solid #999;
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.form-check>i {
    margin-left: -1rem;
}

.sticky-card-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #ffffff;
}

.sticky-card-header.is-sticky {
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid #ccc;
    padding-top: 1.25rem;
    padding-bottom: 1.1rem;
}

.dropzone {
    border: 2px dashed #aaa;
    border-radius: .5rem;
    padding: 2rem;
    text-align: center;
    color: #555;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
    width: 100%;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.1);
}

.dropzone.dragover {
    background-color: #e9ecef;
    border-color: #0056b3;
    color: #343a40;
}

.dropzone p {
    margin: 0;
    font-size: 16px;
}

#signatureCanvas {
    cursor: crosshair;
}

.dataTables_wrapper .dataTables_filter {
    float: right;
    text-align: right;
}

.dataTables_wrapper .dataTables_length {
    float: left;
}

.dataTables_wrapper .dataTables_paginate {
    float: right;
    text-align: right;
}

.dataTables_wrapper .dataTables_info {
    float: left;
}

.pp-box {
    max-width: 75%;
}

.lowertext {
    padding: 0.5rem;
    width: 100%;
    text-align: center;
}

.lowertext a,
.lowertext a:hover,
.lowertext a:visited,
.lowertext a:link {
    color: #999;
    text-decoration: none;
}

.singlephotocontainer {
    transition: all 0.3s ease-in-out;
}

.singlephotocontainer.p1 .photobox {
    height: 500px;
}

.singlephotocontainer.p1 span.date,
.singlephotocontainer.p1 span.photographer {
    top: calc(500px - 1.5rem);
}

.singlephotocontainer.p2 .photobox {
    height: 340px;
}

.singlephotocontainer.p2 span.date,
.singlephotocontainer.p2 span.photographer {
    top: calc(340px - 1.5rem);
}

.singlephotocontainer.p3 .photobox {
    height: 260px;
}

.singlephotocontainer.p3 span.date,
.singlephotocontainer.p3 span.photographer {
    top: calc(260px - 1.5rem);
}

.singlephotocontainer.p4 .photobox {
    height: 228px;
}

.singlephotocontainer.p4 span.date,
.singlephotocontainer.p4 span.photographer {
    top: calc(228px - 1.5rem);
}

.singlephotocontainer.p5 .photobox {
    height: 200px;
}

.singlephotocontainer.p5 span.date,
.singlephotocontainer.p5 span.photographer {
    top: calc(200px - 1.5rem);
}

.selectGroupBtn {
    float: right;
    margin-top: -5px;
}

.mobile-download {
    margin-top: 10px;
}

@media (min-width: 768px) {
    .mobile-download {
        display: none;
        width: 100%;
    }
}

.mobile-download .btn-primary {
    width: 100%;
    margin-top: -20px;
    padding-top: 7px;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

small>span {
    padding: 0 .5rem;
}

abbr[title] {
    text-decoration: none;
    border-bottom: 1px dotted #999;
    padding-bottom: 2px;
}

.btn-danger.disabled,
.btn-danger:disabled {
    color: #fff !important;
    background-color: #dc3545 !important;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .button-group .btn {
        font-size: 0;
        background-size: 1.2rem;

        margin-left: 5px;
        margin-right: 5px;
        width: calc(25% - 10px);
    }

    #downloadBtn {
        background: url('/assets/img/file-arrow-down-solid.svg') no-repeat;
        background-size: 1.2rem;
        background-position: center;
    }

    #deleteBtn {
        background: url('/assets/img/trash-can-solid.svg') no-repeat;
        background-size: 1.2rem;
        background-position: center;
        background-color: #dc3545;
    }

    #toggleSelectBtn {
        background: url('/assets/img/check-double-solid.svg') no-repeat;
        background-size: 1.2rem;
        background-position: center;
    }

    .button-group a {
        background: url('/assets/img/right-from-bracket-solid.svg') no-repeat;
        background-size: 1.2rem;
        background-position: center;
    }
}

.singlephotobox .card-text {
    margin-bottom: 2px;
}

.col-1-5 {
    flex: 0 0 20%;
    max-width: 20%;
}

@media (max-width: 768px) {
    .col-1-5 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 576px) {
    .col-1-5 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.brighter {
    opacity: 0.65;
}

@media (min-width: 1000px) {
    .spoiler {
        position: relative;
        background-color: #ccc;
        color: transparent;
        border-radius: 8px;
        overflow: hidden;
        padding: 0.4em 0.6em;
        user-select: none;
        cursor: pointer;
    }

    .spoiler:hover .spoiler-text {
        visibility: visible;
        color: inherit;
    }

    .spoiler-noise {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        z-index: 2;
        pointer-events: none;
        opacity: 1;
        transition: .05s opacity;
    }

    .spoiler img {
        filter: blur(10px);
        transition: .05s filter;
    }

    .spoiler:hover .spoiler-noise {
        opacity: 0;
    }

    .spoiler:hover img {
        filter: none;
    }

}

.content>.alert.alert-danger {
    margin-top: .6rem;
}

.ui-autocomplete {
    z-index: 10000;
}