.main-content {
    /* height: 82vh; */
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.photo-container {
    position: relative;
    overflow: hidden;
}

.photo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.mobile-photo-list-container {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin; /* For Firefox */
    scrollbar-color: rgba(97, 97, 97, 1) transparent; /* For Firefox */
}

.mobile-photo-list {
    display: inline-flex;
    gap: 0.5rem;
}

.mobile-photo-list .photo-preview {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    cursor: pointer;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.photo-preview:hover {
    transform: scale(1.05);
}

/* Webkit scrollbar styles (Chrome, Safari, newer versions of Edge) */
.mobile-photo-list-container::-webkit-scrollbar {
    width: 6px;
}

.mobile-photo-list-container::-webkit-scrollbar-track {
    background: transparent;
}

.mobile-photo-list-container::-webkit-scrollbar-thumb {
    background-color: rgba(97, 97, 97, 1) transparent;
    border-radius: 3px;
}

.mobile-photo-list-container::-webkit-scrollbar-thumb:hover {
    background-color: rgba(97, 97, 97, 1) transparent;
}

/* Mobile styles */
@media (max-width: 767.98px) {

    .main-content {
        height: auto;
    }

    .mobile-menu {
        height: auto;
        /* overflow-y: auto; */
    }

    .photo {
        max-height: 70vh;
    }

    .hotspot {
        width: 1.3rem !important;
        height: 1.3rem !important;
        font-size: 1rem !important;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .hotspot::before {
        line-height: 1;
    }
}

.hotspot-wrapper {
    position: absolute;
    pointer-events: none;
}

.hotspot {
    position: absolute;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 2px white;
    border: none;
    pointer-events: auto;
    opacity: 0.7;
    filter: grayscale(100%);
    flex-shrink: 0;
    flex-basis: auto;
}

.hotspot.good {
    background-color: rgba(0, 255, 0, 0.6);
}

.hotspot.weak {
    background-color: rgba(255, 0, 0, 0.6);
}

.hotspot:hover, .hotspot:focus {
    transform: scale(1.3);
    opacity: 1;
    outline: none;
    filter: grayscale(0%);
}

/* Styles for emoji content */
.hotspot::before {
    content: attr(data-emoji);
    display: inline-block;
}

/* Rotating animation for good hotspots */
.hotspot.good:hover::before, .hotspot.good:focus::before {
    animation: rotate 2s linear infinite;
    will-change: transform;
}

/* Waving animation for weak hotspots */
.hotspot.weak:hover::before, .hotspot.weak:focus::before {
    animation: wave 1s ease-in-out infinite;
    will-change: transform;
}

@keyframes rotate {
    from {
        transform: rotate3d(0, 0, 1, 0deg);
    }
    to {
        transform: rotate3d(0, 0, 1, 360deg);
    }
}

@keyframes wave {
    0%, 100% {
        transform: rotate3d(0, 0, 1, 0deg);
    }
    50% {
        transform: rotate3d(0, 0, 1, -15deg);
    }
    75% {
        transform: rotate3d(0, 0, 1, -5deg);
    }
}

@keyframes float-and-glow {
    0%, 100% {
        transform: translate3d(0, 0, 0);
        box-shadow: 0 0 5px rgba(40, 167, 69, 0.5);
    }
    50% {
        transform: translate3d(0, -4px, 0);
        box-shadow: 0 0 20px rgba(40, 167, 69, 0.8);
    }
}

[data-bs-theme=light] .bg-custom-sidebar{background-color:#121212}
[data-bs-theme=dark] .bg-custom-sidebar{background-color:#121212}
[data-bs-theme=light] .bg-custom-photo{background-color:#EAE4DD}
[data-bs-theme=dark] .bg-custom-photo{background-color:#28292a}

.popover-body {
    padding: 10px;
}

.popover {
    opacity: 0.9;
    border: none;
    max-width: 300px;
}

.hotspot-badge {
    min-width: 20px;
    font-size: .5rem;
    position: absolute;
}

.message-badge {
    min-width: 30px;
    font-size: .8rem;
    z-index: 2;
    /* position: relative; */
}

.message-content {
    font-size: 0.85rem;
}

.photolist-title {
    font-size: 0.7rem;
}

#prevPhotoBtn, #nextPhotoBtn {
    font-size: 1.3rem;
    width: 1.8rem;
    height: 1.8rem;
    background: rgba(128, 128, 128, 0.3);
    text-decoration: none;
    transition: color 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 1.5rem .5rem;
    opacity: 0.7;
}

#prevPhotoBtn:hover, #nextPhotoBtn:hover {
    opacity: 1;
    transform: scale(1.2);
}

[data-bs-theme=light] #prevPhotoBtn:hover,
[data-bs-theme=light] #nextPhotoBtn:hover {
    color: #000000; /* Darker color for light theme */
}

[data-bs-theme=dark] #prevPhotoBtn:hover,
[data-bs-theme=dark] #nextPhotoBtn:hover {
    color: #FFFFFF; /* Lighter color for dark theme */
}

[data-bs-theme=light] #prevPhotoBtn,
[data-bs-theme=light] #nextPhotoBtn {
    color: #28292a;
    background-color: #FFFFFF;
}

[data-bs-theme=dark] #prevPhotoBtn,
[data-bs-theme=dark] #nextPhotoBtn {
    color: #EAE4DD;
    background-color: #121416;
}

#mobileUploadButton.guest-animation {
    animation: float-and-glow 3s ease-in-out infinite;
    will-change: transform;
}

.legal-links {
    font-size: .6rem;
}

.legal-links:not(:last-child)::after {
    content: '•';
    margin-left: .3rem;
    color: #6c757d; /* text-muted color */
}

.dropdown-item {
    padding: .8rem;
}

.notice {
    font-size: .6rem;
}
