body {
    background-color:rgb(255, 253, 246);
    transition: opacity 0.5s ease;
    overflow-x: hidden;
}
.link-fade-up {
    display: inline-block;
    opacity: 0;
    transform: translateY(-40px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.link-fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}
.link-fade-up.fade-out {
    opacity: 0;
    transform: translateY(-40px);
}
.fadeable.fade-out {
    opacity: 0;
    transform: translateY(-8px);
}
.link-fade.fade-out {
    opacity: 0;
    transform: translateX(50px);
}
.fadeable {
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.link-fade {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.fadeable.visible {
    opacity: 1;
    transform: translateY(0);
}
.link-fade.visible {
    opacity: 1;
    transform: translateX(0);
}
header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 24px 24px 0px 48px;
}
header .titlecontainer {
    width: 60%;
}
header .titlecontainer img {
    max-width: 240px;
}
header .logocontainer {
    width: 10%;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    flex-shrink: 0;
}
header .logocontainer svg {
    max-height: 60px;
    width: auto;
}
header .headerlinks a {
    text-decoration: none;
    color: black;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 150%;
    margin-right: 12px;
    transition: 0.3s;
}
header .headerlinks a:hover {
    font-size: 200%;
    color: rgb(49, 49, 49);
}
main .plist {
    margin: 48px 24px 0px 48px;
    display: flex;
}
.listitem {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.listitem.visible {
    opacity: 1;
    transform: translateX(0);
}

.listitem.fade-out {
    opacity: 0;
    transform: translateX(-40px);
}
main .listitem {    
    font-family: Arial, Helvetica, sans-serif;
    display: flex;
    align-content: flex-start;
    justify-content: space-between;
    padding: 2vw;
    outline-color: black;
    outline-style: solid;
    outline-width: 1px;
    color: inherit;
    text-decoration: none;
    transition: 0.3s;
}
main .listitem:hover {
    background-color: black;
    color: rgb(255, 253, 246);
}
main .listtitle {
    width: 65%;
    display: flex;
    justify-content: space-between;
    flex-direction: column;    
}
main .listtitle h1{
    margin: 0;
    font-size: 3vw;
}
main .listdetails {
    margin: 0;
    font-size: 2vw;
    text-align: end;
}
main .listimage {
    width: 30%;
}
main .listitem img {
    max-width: 100%;
}
main .navigator {
    float: right;
    margin: 10% 24px;
}
main .navigator a {
    display: block;
    margin-bottom: 12px;
    text-align: end;
    text-decoration: none;
    color: black;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 200%;
    transition: 0.3s;
}
main .navigator a:hover {
    font-size: 350%;
    color: rgb(49, 49, 49);
}
.titlecard {
    margin-bottom: 2vw;
}

.spread {
    margin: 48px 24px 0px 48px;
    font-family: Arial, Helvetica, sans-serif;
}
.explainer {
    display: flex;
    justify-content: space-between;
}
.explainerleft {
    width: 55%;
    margin-right: 2vw;
    text-align: justify;
    font-size: 1.5vw;
}
.explainerright {
    width: 45%;
}
.explainerright img {
    width: 100%;
}
.explainerheading {
    font-size: clamp(0.5rem, 3vw, 4rem);
}
.explainerheaderl {
    width: 65%;
    font-style: italic;
}
.explainerheaderr {
    width: 35%;
    text-align: end;
}
.refbutton {
    outline: auto;
    color: black;
    display: inline-block;
    display: inline-flex;
    align-items: center; 
    justify-content: center;
    outline-style: solid;
    outline-width: 1px;
    padding: 1vw;  
    transition: 0.3s;
    margin-left: 1vw;
    text-decoration: none;
    height: 3vw;
    min-height: 20px;
    line-height: 1;
    box-sizing: border-box;
    font-size: 1.5vw;
}
.playbutton {
    width: 3vw;
    min-width: 20px;
    height: 3vw;
    min-height: 20px;
    aspect-ratio: 1 / 1;
}
.refbutton:hover {
    color: rgb(255, 253, 246);
    background-color: black;
    outline-color: black;
}
.explainerheader {
    display: flex;
}
.explainerheader p {
    font-size: clamp(0.5rem, 3vw, 2rem);
    margin-top: 0;
}
@media (max-width: 800px) {
    .explainerleft{width: 100%; margin-right: 0; margin-bottom: 3vw; font-size: initial;}
    .explainerright{width: 100%;}
    .explainer{display: inline;}
    .refbutton{min-width: 30px; min-height: 30px; font-size: small;}
    main .plist{margin-left: 24px;}
    .spread{margin-left: 24px;}
    header{margin-left: 24px;}
    main .navigator{margin-top: 10vh;}
    main .navigator a{font-size: 150%;}
    main .navigator a:hover{font-size: 250%;}
    header .headerlinks a{font-size: 100%;}
    header .headerlinks a:hover{font-size: 150%;}
}
footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
}
footer .frontpage {
    font-size: small;
    font-family: Arial, Helvetica, sans-serif;
    text-align: end;
    margin: 0px 24px 24px 48px;
}

/* Overlay styles */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    transform: translateY(100%); /* Start off-screen at the bottom */
    transition: transform 0.5s ease-in-out; /* Smooth slide-up animation */
}

/* Show overlay by sliding up */
.overlay.show {
    transform: translateY(0);
}

/* Close button and content start invisible */
.close-btn,
.overlay-content {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

/* Fade in close button and content when overlay is shown */
.overlay.show .close-btn,
.overlay.show .overlay-content {
    opacity: 1;
}

/* Close button styles */
.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: rgb(255, 253, 246);
    cursor: pointer;
}

/* Overlay content styles */
.overlay-content {
    color: rgb(255, 253, 246);
    max-width: 80%;
    max-height: 80%;
    overflow: auto;
}
.body-no-scroll {
    overflow: hidden !important;
    height: 100%;
}

::-webkit-scrollbar {
    display: none;
}
/* Hide scrollbar for IE, Edge, and Firefox */
html {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;     /* Firefox */
}

.lefttext p{
    margin-top: 0;
    font-size: 1.5vw;
}
.lefttext h1{
    margin-top: 0;
    font-size: clamp(0.5rem, 3vw, 4rem);  
}



/* Overlay slides container */
.overlay-slides {
    width: 80%;
    height: 80%;
    position: relative;
    overflow: auto;
    display: flex;
    font-family: Arial, Helvetica, sans-serif;
}

/* Individual slides */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    max-height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    box-sizing: border-box;
    color: rgb(255, 253, 246);
    overflow-y: auto;
    margin: 0;
    padding: 0;
}
.slide.active {
    opacity: 1;
}

.slide-row {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    padding: 0 4px;
}

.slide-column {
    flex: 50%;
    max-width: 50%;
    padding: 0 4px;
    box-sizing: border-box;
}

.slide-column img {
    margin-top: 8px;
    vertical-align: middle;
    width: 100%;
}

.slide-triplecolumn {
    flex: 50%;
    max-width: 50%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    padding-bottom: 8px;
}

.slide-triplecolumn img {
    width: 30%;
    padding: 0 4px;
}

.slide-triple {
    display: flex;
    justify-content: space-between;
    width: 100%;
    height: 80vh;
    align-items: center;
}

.slide-triple img {
    width: 30%;
    
}

@media screen and (max-width: 800px) {
    .slide-column {
        flex: 100%;
        max-width: 100%;
    }
    .slide-triple {
        align-items: center;
        flex-direction: column;
       
    }
    .slide-triple img {
        width: 60%;
        margin-bottom: 5vh;
    }
    .slide-triplecolumn {
        flex: 100%;
        max-width: 100%;
        margin-bottom: 16px;
    }
}






/* Navigation arrows */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0);
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 1001;
    border-radius: 5px;
    transition: background 0.3s;
}
.left-arrow {
    left: 1vw;
}

.right-arrow {
    right: 1vw;
}

.nav-arrow svg {
    width: 24px;
    height: 24px;
    color: rgb(255, 253, 246);
    transition: transform 0.3s ease-in-out;
}
.right-arrow svg {
    transform: scaleX(-1);
}
.left-arrow:hover svg {
    animation: bounceLeft 0.5s infinite alternate;
}
.right-arrow:hover svg {
    animation: bounceRight 0.5s infinite alternate;
}
@keyframes bounceLeft {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-5px);
    }
}
@keyframes bounceRight {
    from {
        transform: scaleX(-1) translateX(0);
    }
    to {
        transform: scaleX(-1) translateX(-5px);
    }
}

