/* Container for the slideshow and asset info */
body {
    margin: 0;
    padding: 0;
    background-color: #1a1a1a;
    font-family: 'Inter', sans-serif;
    width: 100%;
    padding-top: 100px; /* Reduced padding since header is removed */
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.content-container {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    padding: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    min-height: auto; /* Allow container to grow with content */
}

/* Slideshow container */
.slideshow-container {
    position: relative;
    width: 100%;
    max-width: 1280px;
    height: auto;
    aspect-ratio: 16 / 9;
    max-height: 720px;
    margin: 0;
    overflow: hidden;
    border-radius: 16px;
    background-color: #2a2a2a;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(64, 150, 255, 0.1);
    flex-shrink: 1;
    /* Touch-Gesten aktivieren */
    touch-action: pan-y pinch-zoom;
    -webkit-user-select: none;
    user-select: none;
}

/* Enlarged slideshow container */
.slideshow-container.enlarged {
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.95);
    border-radius: 0;
    max-height: none;
    /* Pinch-to-zoom im Vollbildmodus ermöglichen */
    touch-action: pan-x pan-y pinch-zoom;
}

/* Mobile-optimierter Vollbildmodus */
@media (max-width: 768px) {
    .slideshow-container.enlarged {
        width: 100vw;
        height: 100vh;
        height: 100dvh; /* Dynamische Viewport-Höhe für bessere mobile Unterstützung */
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        margin: 0;
        border-radius: 0;
        background-color: #000;
        z-index: 9999;
        overflow: hidden;
    }
    
    .slideshow-container.enlarged .slideshow-image {
        width: 100%;
        height: 100%;
        max-width: 100vw;
        max-height: 100vh;
        max-height: 100dvh;
        object-fit: contain;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
}

/* Asset info container */
.asset-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 300px;
    max-width: 100%;
    padding: 30px 20px;
    background: linear-gradient(145deg, #2a2a2a 0%, #1f1f1f 100%);
    border-radius: 16px;
    border: 1px solid rgba(64, 150, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
    align-self: flex-start; /* Allows it to grow naturally */
}

/* Download buttons container */
.download-buttons {
    min-height: 60px;
    display: flex;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(64, 150, 255, 0.2);
    width: 100%;
}

#resolution-select {
    background: linear-gradient(135deg, #4096ff 0%, #0066cc 100%) !important;
    color: white !important;
    border: none;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    border-radius: 0;
    min-width: 80px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    position: relative;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    background-size: 16px !important;
    padding-right: 40px;
}

#resolution-select:hover {
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%) !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    background-size: 16px !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(64, 150, 255, 0.3);
}

#resolution-select:focus {
    box-shadow: 0 0 0 2px rgba(64, 150, 255, 0.5);
    outline: none;
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%) !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    background-size: 16px !important;
}

/* Custom dropdown arrow */
.download-buttons::after {
    display: none;
}

/* Style the dropdown options */
#resolution-select option {
    background-color: #2a2a2a !important;
    color: white !important;
    padding: 12px 16px;
    border: none;
    font-weight: 500;
}

#resolution-select option:hover,
#resolution-select option:checked,
#resolution-select option:focus {
    background-color: #4096ff !important;
    color: white !important;
}

#download-button {
    margin: 0;
    background: linear-gradient(135deg, #4096ff 0%, #0066cc 100%) !important;
    color: white !important;
    border: none !important;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

#download-button:hover {
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%) !important;
    transform: translateY(-1px);
}

#download-button:hover::before {
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
}

.small-font {
    font-size: 12px;
    opacity: 0.8;
    margin-top: 2px;
}

/* Hide the images by default */
.mySlides {
    display: none;
    width: 100%; /* Bilder passen sich der Breite des Containers an */
    height: 100%; /* Bilder passen sich der Höhe des Containers an */
    object-fit: center; /* Bilder werden skaliert, um den Container zu füllen, wobei das Seitenverhältnis beibehalten wird */
}

/* Image class for the slideshow */
.slideshow-image {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: fill;
    display: block;
    margin: auto; /* Center the image horizontally and vertically */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Performance-Optimierung für mobile Geräte */
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.slideshow-container.enlarged .slideshow-image {
    width: auto;
    height: auto;
    max-width: 150%; /* Increase the max-width to 150% */
    max-height: 150%; /* Increase the max-height to 150% */
    object-fit: contain; /* Ensure the image is fully visible without cropping */
    display: block;
    margin: auto; /* Center the image horizontally and vertically */
    position: absolute;
    top: 50%; /* Center the image vertically */
    left: 50%; /* Center the image horizontally */
    transform: translate(-50%, -50%);
    /* Performance-Optimierung */
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Mobile-optimierte Bilddarstellung */
@media (max-width: 768px) {
    .slideshow-image {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        /* GPU-beschleunigtes Rendering */
        transform: translate(-50%, -50%) translateZ(0);
    }
    
    .slideshow-container.enlarged .slideshow-image {
        max-width: 100vw;
        max-height: 100vh;
        max-height: 100dvh;
        width: auto;
        height: auto;
        object-fit: contain;
        /* Optimierte Transform für mobile Performance */
        transform: translate(-50%, -50%) translateZ(0);
    }
}

@media (max-width: 480px) {
    .slideshow-image {
        /* Weitere Performance-Optimierung für kleine Bildschirme */
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Next & previous buttons */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 12px 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
    border-radius: 8px;
    user-select: none;
    background: linear-gradient(135deg, rgba(64, 150, 255, 0.8) 0%, rgba(0, 102, 204, 0.8) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(64, 150, 255, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    z-index: 10;
    /* Touch-optimiert für mobile Geräte */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* Position the "next button" to the right */
.next {
    right: 15px;
}

.prev {
    left: 15px;
}

/* On hover, add enhanced styling */
.prev:hover, .next:hover {
    background: linear-gradient(135deg, #4096ff 0%, #0066cc 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(64, 150, 255, 0.4);
}

/* Mobile-optimierte Navigation */
@media (max-width: 768px) {
    .prev, .next {
        padding: 16px 12px;
        font-size: 20px;
        background: linear-gradient(135deg, rgba(64, 150, 255, 0.9) 0%, rgba(0, 102, 204, 0.9) 100%);
        border-radius: 6px;
    }
    
    .prev {
        left: 10px;
    }
    
    .next {
        right: 10px;
    }
    
    /* Im Vollbildmodus größere Touch-Targets */
    .slideshow-container.enlarged .prev,
    .slideshow-container.enlarged .next {
        padding: 20px 14px;
        font-size: 24px;
        margin-top: -30px;
    }
}

@media (max-width: 480px) {
    .prev, .next {
        padding: 14px 10px;
        font-size: 18px;
    }
    
    .prev {
        left: 8px;
    }
    
    .next {
        right: 8px;
    }
}

/* Texture info overlay for slideshow */
.texture-info-overlay {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 100%);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 5;
}

.texture-overlay-type {
    font-size: 12px;
    font-weight: 600;
    color: #4096ff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.texture-overlay-resolution {
    font-size: 10px;
    font-weight: 500;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Fading animation */
.fade {
    -webkit-animation-name: fade;
    -webkit-animation-duration: 1.5s;
    animation-name: fade;
    animation-duration: 1.5s;
}

@-webkit-keyframes fade {
    from {opacity: .4} 
    to {opacity: 1}
}

@keyframes fade {
    from {opacity: .4} 
    to {opacity: 1}
}

/* Swipe-Indikator für mobile Geräte */
.swipe-indicator {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    z-index: 5;
    pointer-events: none;
    animation: swipeHint 2s ease-in-out infinite;
}

@keyframes swipeHint {
    0%, 100% {
        opacity: 0.6;
        transform: translateX(-50%) translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) translateY(-5px);
    }
}

@media (max-width: 768px) {
    .swipe-indicator {
        display: block;
    }
    
    /* Verstecke den Indikator nach ein paar Sekunden */
    .slideshow-container.swipe-used .swipe-indicator {
        display: none;
    }
}

/* Asset name styling */
.Asset-name {
    font-size: 32px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    text-align: left;
    line-height: 1.2;
}

/* Tags section styling */
.tagstitle {
    font-size: 16px;
    color: #aaa;
    text-align: left;
    margin: 20px 0 10px 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
}

.tag-item {
    background: linear-gradient(135deg, rgba(64, 150, 255, 0.2) 0%, rgba(0, 102, 204, 0.2) 100%);
    color: #4096ff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(64, 150, 255, 0.3);
    transition: all 0.3s ease;
}

.tag-item:hover {
    background: linear-gradient(135deg, rgba(64, 150, 255, 0.3) 0%, rgba(0, 102, 204, 0.3) 100%);
    transform: translateY(-1px);
}

/* Textures section styling */
.textures-section {
    margin: 30px 0;
}

.textures-title {
    font-size: 16px;
    color: #aaa;
    text-align: left;
    margin: 20px 0 15px 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.textures-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.texture-resolution-container {
    background: linear-gradient(145deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid rgba(64, 150, 255, 0.1);
}

.texture-resolution-title {
    font-size: 14px;
    color: #4096ff;
    font-weight: 600;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.textures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px;
}

.texture-item {
    display: flex;
    flex-direction: column;
    background: rgba(64, 150, 255, 0.1);
    border-radius: 8px;
    padding: 8px 12px;
    border: 1px solid rgba(64, 150, 255, 0.2);
    transition: all 0.3s ease;
}

.texture-item:hover {
    background: rgba(64, 150, 255, 0.15);
    transform: translateY(-1px);
}

.texture-type {
    font-size: 10px;
    color: #4096ff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.texture-name {
    font-size: 12px;
    color: #ccc;
    font-weight: 400;
    word-break: break-all;
}

/* Models section styling */
.models-section {
    margin: 30px 0;
}

.models-title {
    font-size: 16px;
    color: #aaa;
    text-align: left;
    margin: 20px 0 15px 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.models-list {
    background: linear-gradient(145deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid rgba(64, 150, 255, 0.1);
}

.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px;
}

.model-item {
    display: flex;
    flex-direction: column;
    background: rgba(255, 140, 0, 0.1);
    border-radius: 8px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 140, 0, 0.2);
    transition: all 0.3s ease;
}

.model-item:hover {
    background: rgba(255, 140, 0, 0.15);
    transform: translateY(-1px);
}

.model-type {
    font-size: 10px;
    color: #ff8c00;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.model-name {
    font-size: 12px;
    color: #ccc;
    font-weight: 400;
    word-break: break-all;
}

/* Download Graph Styling - Modern design */
.download-graph-container {
    position: relative;
    margin-top: 20px;
    width: 100%;
    background: linear-gradient(145deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 12px;
    padding: 20px 15px;
    border: 1px solid rgba(64, 150, 255, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.graph-title {
    font-size: 14px;
    color: #aaa;
    text-align: center;
    margin-bottom: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.graph-svg {
    width: 100%;
    height: auto;
}

.graph-axis {
    stroke: rgba(64, 150, 255, 0.3);
    stroke-width: 1;
}

.graph-line {
    stroke: #4096ff;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 2px 4px rgba(64, 150, 255, 0.3));
}

.graph-point {
    fill: #4096ff;
    stroke: #fff;
    stroke-width: 2;
    cursor: pointer;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(64, 150, 255, 0.4));
}

.graph-point:hover {
    fill: #00aaff;
    r: 5;
    filter: drop-shadow(0 4px 8px rgba(64, 150, 255, 0.6));
}

.graph-label-text {
    fill: #888;
    font-size: 9px;
    font-weight: 500;
}

.graph-tooltip {
    position: fixed;
    display: none;
    background: linear-gradient(135deg, rgba(64, 150, 255, 0.95) 0%, rgba(0, 102, 204, 0.95) 100%);
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    z-index: 100;
    text-align: center;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(64, 150, 255, 0.4);
    backdrop-filter: blur(10px);
}

/* Other assets container */
.other-assets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 30px 20px;
    padding: 0;
}

/* Other asset item */
.other-asset-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(145deg, #2a2a2a 0%, #1f1f1f 100%);
    border: 1px solid rgba(64, 150, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.other-asset-item:hover {
    transform: translateY(-8px) scale(1.02);
    border: 1px solid rgba(64, 150, 255, 0.5);
    box-shadow: 0 20px 60px rgba(64, 150, 255, 0.2);
}

/* Other asset image */
.other-asset-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.4s ease;
    border-radius: 16px 16px 0 0;
}

.other-asset-item:hover .other-asset-image {
    transform: scale(1.1);
    filter: brightness(1.1);
}

/* Other asset name */
.other-asset-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.9) 100%);
    color: white;
    padding: 20px;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.5px;
    border-radius: 0 0 16px 16px;
    transition: all 0.3s ease;
}

.other-asset-item:hover .other-asset-name {
    background: linear-gradient(180deg, transparent 0%, rgba(64, 150, 255, 0.9) 100%);
}

/* Center and style the asset category text */
#asset-category {
    text-align: center;
    color: white !important;
    font-size: 42px;
    font-weight: 700;
    margin: 40px 0 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #4096ff 0%, #0066cc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* Fallback for browsers that don't support background-clip */
    color: white;
}

/* Center and style the "Other Assets" text */
h2 {
    text-align: center;
    color: white;
    font-size: 36px;
    font-weight: 700;
    margin: 60px 0 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #4096ff 0%, #0066cc 100%);
    border-radius: 2px;
}

/* Separator */
.separator {
    height: 80px;
    background: linear-gradient(90deg, transparent 0%, rgba(64, 150, 255, 0.1) 50%, transparent 100%);
    margin: 40px 0;
    position: relative;
}

.separator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #4096ff 50%, transparent 100%);
}

/* Modern button styling for 3D, enlarge, and close buttons */
.button-3d, .enlarge-button, .close-button {
    background: linear-gradient(135deg, rgba(64, 150, 255, 0.9) 0%, rgba(0, 102, 204, 0.9) 100%);
    color: white;
    border: none;
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: absolute;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(64, 150, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 20;
    white-space: nowrap;
    /* Touch-optimiert */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.button-3d:hover, .enlarge-button:hover, .close-button:hover {
    background: linear-gradient(135deg, #4096ff 0%, #0066cc 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(64, 150, 255, 0.4);
}

.button-3d:active, .enlarge-button:active, .close-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(64, 150, 255, 0.3);
}

.button-3d {
    bottom: 10px;
    right: 120px;
}

.enlarge-button {
    bottom: 10px;
    right: 10px;
}

.close-button {
    top: 10px;
    right: 10px;
}

/* Mobile-optimierte Buttons */
@media (max-width: 768px) {
    .button-3d, .enlarge-button, .close-button {
        padding: 10px 14px;
        font-size: 11px;
        border-radius: 8px;
        letter-spacing: 0.3px;
    }
    
    .button-3d {
        bottom: 10px;
        right: 80px;
    }

    .enlarge-button {
        bottom: 10px;
        right: 10px;
    }

    .close-button {
        top: 10px;
        right: 10px;
        padding: 12px 16px;
        font-size: 16px;
    }
    
    /* Im Vollbildmodus */
    .slideshow-container.enlarged .close-button {
        top: 15px;
        right: 15px;
        padding: 14px 18px;
        font-size: 18px;
        z-index: 10000;
        background: linear-gradient(135deg, rgba(255, 50, 50, 0.9) 0%, rgba(200, 0, 0, 0.9) 100%);
    }
    
    .slideshow-container.enlarged .close-button:hover,
    .slideshow-container.enlarged .close-button:active {
        background: linear-gradient(135deg, #ff5050 0%, #cc0000 100%);
    }
}

@media (max-width: 480px) {
    .button-3d, .enlarge-button {
        padding: 8px 12px;
        font-size: 10px;
        border-radius: 6px;
    }
    
    .button-3d {
        bottom: 8px;
        right: 70px;
    }

    .enlarge-button {
        bottom: 8px;
        right: 8px;
    }

    .close-button {
        top: 8px;
        right: 8px;
        padding: 10px 14px;
        font-size: 14px;
    }
    
    .slideshow-container.enlarged .close-button {
        top: 12px;
        right: 12px;
        padding: 12px 16px;
        font-size: 16px;
    }
}

/* 3D Viewer iframe container */
.iframe-3d-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1a1a1a;
    z-index: 15;
    border-radius: 16px;
    overflow: hidden;
    /* Performance-Optimierung */
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* When slideshow is enlarged, iframe container should also be fullscreen */
.slideshow-container.enlarged .iframe-3d-container {
    border-radius: 0;
}

.iframe-3d {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    /* Performance-Optimierung für iframe */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* Mobile-optimierte 3D-Viewer-Darstellung */
@media (max-width: 768px) {
    .iframe-3d-container {
        border-radius: 12px;
    }
    
    .slideshow-container.enlarged .iframe-3d-container {
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: 0;
        z-index: 9999;
    }
    
    .slideshow-container.enlarged .iframe-3d {
        width: 100%;
        height: 100%;
    }
}

@media (max-width: 480px) {
    .iframe-3d-container {
        border-radius: 8px;
    }
}

.tags {
    font-size: 14px;
    color: #aaa;
    text-align: left;
    margin-top: 10px; /* Add margin to create space below the asset name */
    position: relative; /* Change position to relative */
    bottom: auto; /* Reset bottom property */
    left: 0; /* Ensure the tags are aligned to the left */
}

.tagstitle {
    font-size: 20px;
    color: #aaa;
    text-align: left;
    margin-top: 10px; /* Add margin to create space below the asset name */
    position: relative; /* Change position to relative */
    bottom: auto; /* Reset bottom property */
    left: 0; /* Ensure the tag title is aligned to the left */
}

/* Download Statistics Styling */
.stats-title {
    font-size: 20px;
    color: #aaa;
    text-align: left;
    margin-top: 20px;
    position: relative;
    left: 0;
}

.download-stats {
    font-size: 14px;
    color: #aaa;
    text-align: left;
    margin-top: 20px;
    position: relative;
    left: 0;
}

.download-stats-content {
    background: linear-gradient(145deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid rgba(64, 150, 255, 0.1);
    margin-bottom: 15px;
}

.stats-text {
    margin: 8px 0;
    color: #ccc;
    font-size: 13px;
    line-height: 1.4;
}

.stats-text strong {
    color: #4096ff;
    font-weight: 600;
}

/* Download Graph Styling - PolyHaven inspired */
.download-graph-container {
    position: relative;
    margin-top: 30px;
    margin-bottom: 15px;
    width: 85%;
    height: auto;
    background-color: #1d1d1d;
    border-radius: 5px;
    padding: 15px 10px;
    overflow: hidden;
}

.download-graph {
    width: 100%;
    height: 100%;
}

.graph-title {
    font-size: 13px;
    color: #aaa;
    text-align: center;
    margin-bottom: 5px;
}

.graph-svg {
    width: 100%;
    height: auto;
}

.graph-axis {
    stroke: #444;
    stroke-width: 1;
}

.graph-line {
    stroke: #0056b3;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.graph-point {
    fill: #0088ff;
    stroke: #fff;
    stroke-width: 1;
    cursor: pointer;
    transition: fill 0.2s;
}

.graph-point:hover {
    fill: #00aaff;
    r: 4;
}

.graph-label-text {
    fill: #888;
    font-size: 8px;
}

.graph-tooltip {
    position: fixed;
    display: none;
    background-color: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    z-index: 100;
    text-align: center;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    body {
        padding-top: 80px; /* Adjust for mobile nav */
        overflow-x: hidden;
        /* Performance-Optimierung */
        -webkit-overflow-scrolling: touch;
    }

    .content-container {
        flex-direction: column;
        align-items: stretch;
        padding: 15px 10px;
        gap: 20px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .slideshow-container {
        width: 100%;
        max-width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        margin: 0;
        order: 1; /* Slideshow kommt zuerst */
        flex-shrink: 0;
        /* Bessere Touch-Responsivität */
        touch-action: pan-y pinch-zoom;
    }

    .asset-info {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        height: auto;
        min-height: auto;
        padding: 20px 15px;
        display: flex;
        flex-direction: column;
        order: 2; /* Asset-Info kommt nach dem Slideshow */
        box-sizing: border-box;
        flex-shrink: 0;
    }

    .download-buttons {
        margin-bottom: 20px;
        width: 100%;
        max-width: 100%;
        flex-direction: column;
        box-sizing: border-box;
    }

    #resolution-select {
        border-radius: 8px 8px 0 0;
        min-height: 50px;
        width: 100%;
        box-sizing: border-box;
        font-size: 15px;
    }

    #download-button {
        border-radius: 0 0 8px 8px;
        min-height: 60px;
        width: 100%;
        box-sizing: border-box;
        font-size: 15px;
    }

    .Asset-name {
        font-size: 22px;
        text-align: center;
        margin-bottom: 15px;
    }

    #asset-category {
        font-size: 28px;
        margin: 20px 0 15px;
        color: white !important;
    }

    .tagstitle {
        font-size: 16px;
        margin: 15px 0 8px 0;
        text-align: center;
    }

    .tags {
        justify-content: center;
        margin-bottom: 20px;
    }

    .tag-item {
        font-size: 11px;
        padding: 5px 10px;
    }

    /* 4K Assets Grid - Auf Mobile ausgeblendet */
    #textures-title,
    #textures-list {
        display: none !important;
    }

    .assets-grid {
        display: none !important;
    }

    .asset-item {
        display: none !important;
    }

    .asset-type {
        display: none !important;
    }

    .asset-name {
        display: none !important;
    }

    /* Download Statistics */
    .download-stats {
        width: 100%;
        max-width: 100%;
        margin-top: 15px;
        margin-bottom: 15px;
        box-sizing: border-box;
    }

    .download-stats-content {
        padding: 12px;
        width: 100%;
        box-sizing: border-box;
    }

    .stats-text {
        font-size: 12px;
        margin: 6px 0;
    }

    /* Download Graph */
    .download-graph-container {
        margin: 15px 0;
        padding: 12px 8px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .graph-title {
        font-size: 11px;
        margin-bottom: 8px;
    }

    .graph-svg {
        max-width: 100%;
        width: 100%;
    }

    /* Other Assets */
    .other-assets {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 16px;
        margin: 20px 10px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .other-asset-image {
        height: 180px;
        /* Performance-Optimierung */
        will-change: transform;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }

    .other-asset-name {
        font-size: 14px;
        padding: 15px;
    }

    h2 {
        font-size: 26px;
        margin: 30px 0 20px;
        color: white !important;
    }

    h2::after {
        width: 60px;
    }

    /* Buttons Mobile - kleinere und besser positionierte Buttons */
    .button-3d {
        bottom: 8px;
        right: 65px;
        padding: 8px 12px;
        font-size: 10px;
        letter-spacing: 0.3px;
    }

    .enlarge-button {
        bottom: 8px;
        right: 8px;
        padding: 8px 12px;
        font-size: 10px;
        letter-spacing: 0.3px;
    }

    .close-button {
        top: 8px;
        right: 8px;
        padding: 8px 12px;
        font-size: 10px;
    }
}

@media (max-width: 1600px) {
    .slideshow-container {
        width: 65vw; /* Increased width since header is removed */
        height: calc(65vw * 9 / 16);
        max-width: 1280px;
        max-height: 720px;
    }
    /* .asset-info has no height restrictions - let it grow naturally */
}

/* Custom styling for select dropdown when opened */
#resolution-select:focus {
    box-shadow: 0 0 0 2px rgba(64, 150, 255, 0.5);
    outline: none;
}

/* Webkit specific styling for select */
#resolution-select::-webkit-scrollbar {
    width: 8px;
}

#resolution-select::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 4px;
}

#resolution-select::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #4096ff 0%, #0066cc 100%);
    border-radius: 4px;
}

#resolution-select::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
}

/* Tablet Breakpoint */
@media (max-width: 1024px) and (min-width: 769px) {
    .content-container {
        gap: 20px;
        padding: 20px 15px;
    }
    
    .slideshow-container {
        width: 100%;
        max-width: 100%;
    }
    
    .asset-info {
        min-width: 280px;
    }
    
    .button-3d {
        right: 100px;
        padding: 10px 14px;
        font-size: 11px;
    }

    .enlarge-button {
        padding: 10px 14px;
        font-size: 11px;
    }
}

/* Small Mobile Devices (unter 480px) */
@media (max-width: 480px) {
    body {
        padding-top: 70px;
    }

    .content-container {
        padding: 10px 8px;
        gap: 15px;
    }

    .slideshow-container {
        border-radius: 12px;
    }

    .asset-info {
        padding: 15px 12px;
        border-radius: 12px;
    }

    .Asset-name {
        font-size: 18px;
    }

    #asset-category {
        font-size: 24px;
    }

    /* 4K Assets Grid - Auch auf sehr kleinen Bildschirmen ausgeblendet */
    #textures-title,
    #textures-list {
        display: none !important;
    }

    .assets-grid {
        display: none !important;
    }

    .asset-item {
        display: none !important;
    }

    .asset-type {
        display: none !important;
    }

    .asset-name {
        display: none !important;
    }

    .tag-item {
        font-size: 10px;
        padding: 4px 8px;
    }

    .download-stats-content {
        padding: 10px;
    }

    .stats-text {
        font-size: 11px;
    }

    .other-assets {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    h2 {
        font-size: 22px;
    }

    /* Noch kleinere Buttons für sehr kleine Bildschirme */
    .button-3d {
        bottom: 6px;
        right: 55px;
        padding: 6px 10px;
        font-size: 9px;
        border-radius: 6px;
    }

    .enlarge-button {
        bottom: 6px;
        right: 6px;
        padding: 6px 10px;
        font-size: 9px;
        border-radius: 6px;
    }

    .close-button {
        top: 6px;
        right: 6px;
        padding: 6px 10px;
        font-size: 9px;
        border-radius: 6px;
    }

    .download-buttons {
        margin-bottom: 15px;
    }

    #resolution-select,
    #download-button {
        font-size: 14px;
    }
}