:root {
  --accent-color: #d755ff;
}   

html, body {
    margin: 0;
    padding: 0;
}

a {
    color: var(--accent-color);
}

#main-body { background-color: #0b0b0c; color: #fff; }

.navbar-brand {
    color: white;
}

.nav-link {
    color: lightgray;
}

#titleImageContainer {
    height: 200px;
}

#titleImageContainer img {
    height: 100%;
    width: 100%;
    filter: blur(4px);
    opacity: 0.5;
    object-fit: cover;
}

#titleImageContainer h1 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
}

#carouselMultiple { --bs-carousel-items: 1; --bs-carousel-items-gap: 1rem; }

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border-radius: 50%;
}

/* fixed frame on all screen sizes; contain centers each image without stretching the carousel */
#carouselMultiple .carousel-item {
    aspect-ratio: 3 / 2;
    max-height: 40vh;
    background-color: #000;
    border-radius: 0.75rem;
    overflow: hidden;
}

#carouselMultiple .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 0 !important;
}

#unityContainer {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #000;
    border-radius: 1rem;
    overflow: hidden;
}

#unityContainer canvas {
    display: block;
    width: 100%;
    height: 100%;
}

#unityPlaceholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    opacity: 0.6;
}

#footer {
    margin-top: 4rem;
    background: linear-gradient(180deg, #1a1c1c 0%, #121215 100%);
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    padding: 3rem 1rem 2rem;
}

#footer h3 { font-size: 2rem; margin: 0 0 0.5rem; }
#footer h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.6;
    margin: 0 0 0.75rem;
}

.footer-tagline { opacity: 0.8; font-style: italic; margin: 0; }

.footer-links a {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 0.2rem 0;
    transition: transform 0.2s, color 0.2s;
}
.footer-links a:hover { color: var(--accent-color); transform: translateX(6px); }

.footer-note { font-size: 0.85rem; opacity: 0.6; margin: 0.5rem 0 0; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem;
    font-size: 0.85rem;
    opacity: 0.7;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-bottom p { margin: 0; }

.footer-heart { color: var(--accent-color); display: inline-block; animation: footer-beat 1.4s infinite; }
@keyframes footer-beat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.3); } }

@media (max-width: 767px) {
    .footer-inner { grid-template-columns: 1fr; text-align: center; gap: 1rem; padding: 1.5rem 1rem 1rem; }
    #footer { margin-top: 2rem; }
    #footer h3 { font-size: 1.5rem; margin-bottom: 0.25rem; }
    #footer h4 { margin-bottom: 0.25rem; }
    .footer-note { margin-top: 0.25rem; }
    .footer-bottom { padding: 0.75rem 1rem; gap: 0.25rem; }
    .footer-links a:hover { transform: none; }
    .footer-links a { display: inline-block; margin: 0 1rem; }
    .footer-bottom { justify-content: center; text-align: center; }
}

.carousel-arrow-prev { left: 0.5rem; }
.carousel-arrow-next { right: 0.5rem; }

/* invisible padding around the arrows: bigger tap target, same look */
@media (max-width: 767px) {
    .carousel-arrow::before {
        content: "";
        position: absolute;
        inset: -1rem;
    }
}

@media (min-width: 768px) {
    #galleryViewer {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 480px;
        margin-bottom: 1rem;
        background-color: #000;
        border-radius: 1rem;
        overflow: hidden;
    }

    /* contain keeps the whole image visible inside the fixed-size frame */
    #galleryViewer img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    #carouselMultiple { --bs-carousel-items: 5; --bs-carousel-items-gap: 0.75rem; }

    #carouselMultiple .carousel-item {
        cursor: pointer;
        opacity: 0.6;
    }

    #carouselMultiple .carousel-item:hover { opacity: 0.85; }
    #carouselMultiple .carousel-item.selected { opacity: 1; outline: 3px solid #fff; outline-offset: -3px; }
}
