@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700;900&family=Cinzel:wght@400..900&family=Jersey+25+Charted&family=Silkscreen:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background-color: #100000;
    color: #ffffff;
    font-family: 'Cinzel', sans-serif;
    overflow-x: hidden;
}

header {
    width: 100%;
    background-color: rgba(11, 11, 11, 0.346);
    backdrop-filter: blur(0.625rem);
    -webkit-backdrop-filter: blur(0.625rem);
    box-shadow: 0 0.125rem 0.3125rem rgba(0, 0, 0, 0);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    border-radius: 0 0 0.3125rem 0.3125rem;
}

/* Updated Collapsible Content */
.collapsible-content {
    max-height: 500px; /* Initially visible */
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.collapsible-content.show {
    max-height: 500px;
}

/* Collapsed state for smaller screens */
@media (max-width: 768px) {
    .collapsible-content {
        max-height: 0;
    }

    .collapsible-content.show {
        max-height: 500px; /* Adjust this value as needed */
    }
}

.logo-container {
    text-align: left;
    padding: 0rem 0;
    margin-right: 8rem; 
    width: fit-content;
    z-index: 888;
}

.logo-container:hover .cinzel-title, 
.logo-container:hover .cinzel-tagline {
    color: #ffffff;
    text-shadow: 
        0 0 1.0625rem #ff3333,
        0 0 0.625rem #ff3333,
        0 0 1.3125rem #ff3333,
        0 0 2.625rem #DC143C,
        0 0 5.125rem #DC143C,
        0 0 5.75rem #DC143C,
        0 0 6.375rem #DC143C,
        0 0 9.4375rem #DC143C;
}

.cinzel-title, .cinzel-tagline {
    font-family: "Cinzel Decorative", serif;
    color: #ffffff;
    text-shadow: 
        0 0 0.125rem #e51740,
        0 0 0.25rem #DC143C;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.cinzel-title {
    font-weight: 600;
    font-size: 1.5rem;
    font-style: italic;
    animation: subtlePulse 2s infinite;
}

.cinzel-tagline {
    font-weight: 400;
    font-size: 1.125rem;
    font-family: "Cinzel", serif;
    font-style: italic;
    animation: subtlePulse 2s infinite;
}

@keyframes subtlePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.9; }
}

.nav-bar {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    background-color: transparent;
    z-index: 9999999;
}

.nav-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    z-index: 9999999;
}

.tab {
    font-family: 'Cinzel', sans-serif;
    padding: 0.75rem 1.5625rem;
    background-color: rgba(39, 3, 3, 0.527);
    backdrop-filter: blur(0.9375rem);
    -webkit-backdrop-filter: blur(0.9375rem);
    color: rgb(255, 255, 255);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab.active, .tab:hover {
    background-color: rgba(90, 0, 0, 0.066);
    box-shadow: 0.3125rem 0.125rem 1.5625rem rgba(68, 0, 0, 0.686);
}

.nav-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    margin-left: 1.25rem;
    width: 100%;
    max-width: 500px;
    height: auto;
    font-family: 'Cinzel', sans-serif;
    color: #ffffff;
}

.nav-button {
    font-family: 'Cinzel', sans-serif;
    font-size: 0.7rem;
    padding: 0.5rem 1rem;
    background-color: rgba(33, 1, 1, 0.527);
    backdrop-filter: blur(0.9375rem);
    -webkit-backdrop-filter: blur(0.9375rem);
    color: rgb(245, 240, 240);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    max-height: 50px;
    min-height: 40px;
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 1;
    flex-grow: 0;
    height: auto;
}

.nav-button:hover {
    background-color: rgba(90, 0, 0, 0.066);
    box-shadow: 0.3125rem 0.125rem 1.5625rem rgba(68, 0, 0, 0.686);
}

main {
    width: 85%;
    height: calc(100vh - 5rem);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    box-sizing: border-box;
    margin: 5rem auto 0;
    padding: 0;
}

.slider {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%; 
    height: 100%;
    position: relative;
    box-sizing: border-box;
    padding: 0;
}

#photo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    pointer-events: none;
    transition: opacity 0.582s ease-in-out;
}

.fade-in {
    opacity: 1;
}

.fade-out {
    opacity: 0;
}

/* Updated Carousel Styles */
.carousel-wrapper {
    display: flex;
    flex-direction: column;
    position: fixed;
    background-color: rgba(39, 3, 3, 0.527);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    border-radius: 0px;
    padding: 10px;
    margin: 2rem auto 0;
    transition: left 0.3s ease-in-out, bottom 0.3s ease-in-out;
    z-index: 16666;
}

.carousel-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(39, 3, 3, 0.527);
    border-radius: 0px;
    padding: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.carousel-item {
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.carousel img {
    object-fit: cover;
    border-radius: 0px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    filter: invert(100%) brightness(.7) contrast(.5) sepia(0%) saturate(2) sepia(0%);
}

.carousel-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.carousel img.selected {
    border: 2px solid #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.carousel-button {
    background: #27030386;
    border: none;
    font-size: 2em;
    cursor: pointer;
    color:  #ffffff;
    padding: 0px;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.carousel-button:hover {
    background-color: rgba(255, 255, 255, 1);
    color: #270303f6;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.toggle-button {
    position: absolute;
    background-color: rgba(39, 3, 3, 0.527);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
}

/* Styles for vertical layout */
@media (min-width: 601px) {
    .carousel-wrapper {
        left: -140px;
        top: 50%;
        transform: translateY(-50%);
        width: 90%;
        max-width: 160px;
        height: 80vh;
    }

    .carousel-wrapper.active {
        left: 0;
    }

    .carousel {
        flex-direction: column;
    }

    .carousel-container {
        height: calc(100% - 60px);
    }

    .carousel img {
        width: 100%;
        height: auto;
        margin-bottom: 10px;
    }

    .toggle-button {
        right: -30px;
        top: 50%;
        transform: translateY(-50%);
    }
}

/* Styles for horizontal layout */
@media (max-width: 600px) {
    .carousel-wrapper {
        flex-direction: row;
        width: 100%;
        height: 20vh;
        left: 0;
        bottom: -20vh;
        transform: none;
    }

    .carousel-wrapper.active {
        bottom: 0;
    }

    .carousel {
        flex-direction: row;
    }

    .carousel-container {
        height: 100%;
    }

    .carousel img {
        width: auto;
        height: 100%;
        max-height: 100%;
        margin-right: 10px;
    }

    .carousel img:last-child {
        margin-right: 0;
    }

    .toggle-button {
        top: -30px;
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 0;
    }

    .logo-container {
        width: 100%;
        text-align: center;
        justify-content: center;
        margin-left: auto;
        padding: 1rem 0;
        background-color: rgba(12, 0, 0, 0);
    }

    .nav-bar {
        flex-direction: column;
        width: 100%;
        background-color: rgba(27, 1, 1, 0.325);
        filter: blur(20%);
        padding: 0.625rem 0;
    }

    .nav-tabs {
        flex-direction: column;
        width: 100%;
        gap: 0.625rem;
    }

    .tab {
        width: 90%;
    }

    .nav-controls {
        flex-direction: row;
        width: 100%;
        margin-left: 0;
        margin-top: 0.625rem;
    }

    .nav-button {
        width: 40%;
    }

    main {
        height: calc(100vh - 12.5rem);
        margin-top: 12.5rem;
    }
}

@media (max-width: 600px) {
    .cinzel-title {
        font-size: 1.375rem;
    }

    .cinzel-tagline {
        font-size: 1rem;
    }

    .tab, .nav-button {
        padding: 0.625rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .cinzel-title {
        font-size: 1.25rem;
    }

    .cinzel-tagline {
        font-size: 0.875rem;
    }

    .tab, .nav-button {
        padding: 0.5rem;
        font-size: 0.75rem;
        max-height: 2.5rem;
    }

    .nav-controls {
        max-height: 2.5rem;
    }

    .info-button {
        font-size: 0.875rem;
        width: 2.1875rem;
        height: 2.1875rem;
    }

    .info-modal {
        width: 15.625rem;
        padding: 0.9375rem;
    }

    main {
        height: calc(100vh - 13.75rem);
        margin-top: 13.75rem;
    }
}
