.main-container {
    width: 100%;
    min-width: 1200px;
    min-height: 800px;
    height: 100vh;

    position: relative;
    display: flex;
    flex-direction: column;
    
    overflow-x: hidden;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    /* scroll-padding-top: 2.5rem; */ /* 40px */
    z-index: 0;
}

.main-screen-0 {
    min-width: 1200px;
    min-height: 800px;
    height: 100vh;
    position: relative;
    scroll-snap-align: start;
    flex-shrink: 0;
    z-index: 4;
    
    display: flex;
    /* display: none; */
}

.main-screen-0-info-insert {
    position: absolute;
    left: 50%;
    bottom: 0%;
    /* top: 55%; */
    transform: translate(-50%, 0%);
    width: 100%;
    /* max-width: 900px; */
    min-width: 340px;
    min-height: 70px;
    /* background: #1c5d98; */
    background-color: var(--color4);
    color: white;
    /* font-family: var(--font-palatino); */
    font-family: var(--font-helvetica);
    font-weight: lighter;
    font-size: 0.9rem;
    /* border-radius: -1%; */
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.10);
    padding: 0.5rem 2rem 3rem 2rem;
    display: block;
    text-align: center;
    z-index: 9;
    pointer-events: auto;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
}

.main-screen-0-info-insert a {
    color: #0077cc;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s;
    white-space: nowrap;
}
.main-screen-0-info-insert a:hover {
    color: #005099;
}

.main-screen-0-circle-backdrop {
    display: block;
    position: absolute;
    left: 50%;
    transform: translate(-50%, -63%);
    width: 60%;
    aspect-ratio: 3 / 1;
    /* height: 18rem; */
    border-radius: 50%;
    background-color: var(--color4);
    z-index: 2;
    transition: background-color 0.3s ease;
}

#DIDIGAInlineLogo {
    height: 2rem;
}

#DIDIGALogo {
    position: absolute;
    top: 8%;
    width: 20%;
    left: 50%;
    transform: translate(-50%);
    height: auto;
    z-index: 10;
    user-select: none; /* Prevent text selection */
    -webkit-user-drag: none; /* Prevent image dragging in Safari */
    -webkit-user-select: none; /* Prevent text selection in Safari */
    pointer-events: none; /* Prevent clicks on the image */
}

.main-screen-0-left, .main-screen-0-right {
    width: 50%;
    height: 100%;
    box-sizing: border-box;

    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 1.25rem;
    justify-content: flex-start;
    align-items: center;
    padding: 2rem 1rem 10rem 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.main-screen-0-left {
    /* background-color: #ffed64; */
    /* background-color: var(--colorL); */
    /* background-color: #67dbe8; */
    background-color:#202020;
}

/* .main-screen-0-left:hover,
.main-screen-0-left:hover ~ .main-screen-0-circle-backdrop {
    background-color: #19a1a1;
} */
/* 
.main-screen-0-left-images {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
} */

.main-screen-0-right {
    /* background-color: #009d9e; */
    /* background-color: var(--colorR); */
    background-color: #ececec;
}

/* .main-screen-0-right:hover,
.main-screen-0-right:hover ~ .main-screen-0-circle-backdrop {
    background-color: var(--color2);
} */

.main-screen-0-title {
    margin: 0;
    margin-bottom: 0.5rem;

    /* font-family: var(--font-verdana); */
    /* font-family: var(--font-garamond); */
    font-family: sans-serif;
    font-size: 2.125rem;
    font-weight: bold;
    /* text-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.1); */
}

.main-screen-0-left .main-screen-0-title {
    /* color: #333; */
    /* color: var(--colorR); */
    color: white;
}

.main-screen-0-right .main-screen-0-title {
    /* color: white; */
    /* color: var(--colorL); */
    color: black;
}

.main-screen-0-subtext {
    height: 3.5rem;
    font-family: var(--font-helvetica);
    font-size: 1.2rem;
    /* font-weight: lighter; */
    text-align: center;
    line-height: 1.4;
    margin: 0;
    /* max-width: 80%; */
}

.main-screen-0-left .main-screen-0-subtext {
    /* color: #666; */
    /* color: var(--colorR); */
    color: white;
}

.main-screen-0-right .main-screen-0-subtext {
    /* color: rgba(255, 255, 255, 0.9); */
    color: var(--colorL);
}

.main-screen-0-images-left,
.main-screen-0-images-right {
    width: auto;
    height: 78%;
    display: flex;
    justify-content: center;
    /* grid-template-columns: 1fr 1fr; */
    /* gap: 1.2rem; */
    /* align-items: center; */
    /* justify-items: center; */
}

.main-screen-0-images-left {
    grid-template-columns: 1fr 200px;
}

.main-screen-0-images-right {
    grid-template-columns: 200px 1fr;
}

.main-screen-0-images-left img {
    width: auto;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    min-width: 0;
    object-fit: contain;
    box-sizing: border-box;
    /* border-radius: 1rem; */
    box-shadow: 0 0.5rem 1rem rgb(255 255 255 / 20%);

    user-select: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    pointer-events: none;
}

.main-screen-0-images-right img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    box-sizing: border-box;
    /* border-radius: 0.75rem; */
    /* margin-bottom: 0 0.5rem 1rem rgba(0, 0, 0, 0.2); */
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);

    user-select: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    pointer-events: none;
}

.main-screen-0-image-large {
    max-width: 80%;
    max-height: 60%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
}

.main-screen-0-images-container {
    height: 60%;

    display: flex;
    flex-direction: row;
    gap: 1.2rem;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.main-screen-0-image-small {
    max-width: 45%;
    width: auto;
    height: auto;
    flex: 1 1 0;
    object-fit: contain;
    border-radius: 2.5rem;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.2);
}

.main-screen-0-button {
    border: none;
    border-radius: 10.5rem;
    padding: 1rem 2rem;
    font-family: var(--font-helvetica);
    /* font-weight: lighter; */
    font-size: 1.25rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
}

.main-screen-0-button-img {
    height: 2.4em;
    vertical-align: middle;
    margin-right: 0.4em;
}

.main-screen-0-right .main-screen-0-button {
    /* background-color: #009d9e; */
    background-color: #ff5858;
    /* border: solid 4px #009d9e; */
    color: #ffffff;
    box-shadow: 0 0.25rem 0.5rem rgba(122, 117, 59, 0.3);
}

.main-screen-0-right .main-screen-0-button:hover {
    /* background-color: #007a7b; */
    background-color: #c73333;
    /* border-color: #007a7b; */
    transform: translateY(-2px);
    /* box-shadow: 0 0.5rem 1rem rgba(0, 157, 158, 0.3); */
    box-shadow: 0 0.5rem 1rem rgba(158, 0, 32, 0.3);
}

.main-screen-0-left .main-screen-0-button {
    /* background-color: #ffed64; */
    /* background-color: var(--color2); */
    background-color: #ff5858;
    /* border: solid 4px var(--color2); */
    /* color: #333; */
    color: white;
    /* box-shadow: 0rem 0.25rem 0.5rem rgba(255, 237, 100, 0.4); */
    box-shadow: 0 0.25rem 0.5rem rgba(122, 117, 59, 0.3);
}

.main-screen-0-left .main-screen-0-button:hover {
    /* color: #333; */
    /* border-color: #ffe033; */
    /* background-color: #ffe033; */
    background-color: #c73333;
    transform: translateY(-2px);
    /* box-shadow: 0 0.5rem 1rem rgba(255, 237, 100, 0.4); */
    box-shadow: 0 0.5rem 1rem rgba(158, 0, 32, 0.3);
}

.main-screen-0-b {
    min-width: 1200px;
    min-height: 800px;
    background-color: whitesmoke;
    height: 100vh;
    position: relative;
    scroll-snap-align: start;
    flex-shrink: 0;
    z-index: 4;
    
    /* display: flex; */
    display: none;
    /* gap: 3rem; */
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.main-screen-0-b-sub-1,
.main-screen-0-b-sub-2 {
    /* background-color: darkseagreen; */
    background-color: antiquewhite;
    margin-bottom: 2rem;
    width: 100%;
    height: auto;

    padding: 0.8rem 0rem;
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: flex-start;
    justify-content: center;
}

.main-screen-0-b-left {
    width: 35%;
    /* height: 50%; */
    display: flex;
    flex-direction: column;
    gap: 3.2rem;
    align-items: flex-start;
}

.main-screen-0-b-middle {
    width: 8%;
    padding-top: 2rem;
}

.main-screen-0-b-middle img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.main-screen-0-b-right {
    max-width: 40%;
    height: 100%;

    display: flex;
    flex-direction: column;
}

.main-screen-0-b-left-row-1 {
    /* width: 50%; */
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.8rem;
    align-items: start;
}

.main-screen-0-b-left-row-1 p {
    font-family: var(--font-helvetica);
}

.main-screen-0-b-left-row-1 img {
    width: 100%;
    /* height: auto; */
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.main-screen-0-b-left-subcolumn-2 {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.main-screen-0-b-title {
    margin: 0;

    /* font-family: var(--font-verdana); */
    color: black;
    font-family: var(--font-garamond);
    font-size: 1.75rem;
    font-weight: bold;
}

.main-screen-0-b-left-row-2 {
    color: black;
    font-family: var(--font-helvetica);
    font-size: 1.2rem;
    font-weight: lighter;
}

.main-screen-0-b-button {
    /* background-color: midnightblue; */
    background-color: blueviolet;
    color: white;
    padding: 1rem 1.5rem;
    
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    font-family: var(--font-helvetica);

    box-shadow: 0 0.125rem 0.5rem rgba(215, 160, 7, 0.5); /* 2px 4px */

    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.main-screen-0-b-button:hover {
    transform: translateY(-2px);
    background-color: rgb(235, 177, 32);
    /* color: white; */
}

.main-screen-0-b-left-row-3 {
    height: 100%;
}

.main-screen-0-b-left-row-3 img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.main-screen-1 {
    min-width: 75rem;
    min-height: 50rem;
    height: 100vh;
    /* height: calc(100vh - 2.5rem); */
    background-color: #1a9fa0;
    position: relative;
    
    display: flex;
    
    scroll-snap-align: start;
    flex-shrink: 0;
    z-index: 1;
}

.main-circle-backdrop {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 400%;
    height: 34rem;
    border-radius: 50%;
    background-color: var(--color2);
    z-index: -1;
}

.main-left-column {
    width: 100%;
    /* height: 53.125rem; */ /* 850px */
    /* background-color: white; */
    display: flex;
    justify-content: center;
    position: relative;
    overflow: clip;

    z-index: 3;
}

.main-background-image {
    user-select: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    pointer-events: none;
    position: absolute; 
    height: 100%;
    min-height: 37.5rem;
    object-fit: cover;
    /*filter: blur(0px) saturate(1);*/
    transition: filter 1s ease;
    overflow-x: clip;
    z-index: 5;

    transition: opacity 0.4s ease-in-out;
}

.main-background-image.loaded {
    opacity: 0.95;
}
    

.main-loading-text {
    position: absolute;
    width: 100%;

    align-self: center;
    justify-self: center;
    text-align: center;

    color: white;
    font-family: var(--font-garamond);
    font-size: 1.75rem;
    font-weight: 300;
    letter-spacing: 0.09375rem; /* 1.5px */

    /* Multiple, semi-transparent shadows create a soft, layered glow */
    text-shadow: 0 0 0.3125rem rgba(255, 255, 255, 0.7),   /* 5px */
                 0 0 0.9375rem rgba(255, 255, 255, 0.5),   /* 15px */
                 0 0 1.5625rem rgba(255, 255, 255, 0.3);    /* 25px */

    z-index: 6;
    transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out;
}

.main-loading-text.fading {
    opacity: 0;
}

.main-loading-text.unloaded {
    visibility: hidden;
    opacity: 0;
}

.main-image-carousel-container {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    height: 35rem; /* 560px */
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(0.25rem); /* 4px */
    -webkit-backdrop-filter: blur(0.25rem); /* 4px */
    
    padding: 1.875rem 0; /* 30px */
    display: flex;
    flex-direction: column;
    gap: 2.5rem; /* 40px */
    justify-content: center;
    overflow: hidden;
    align-items: center;

    z-index: 6;
    user-select: none;
    -webkit-user-select: none;

    visibility: hidden;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.main-image-carousel-container.loaded {
    visibility: visible;
    opacity: 1;
}

.main-carousel-track {
    display: flex;
    margin-bottom: 7.5rem; /* 120px */
    /* height: 70%; */
    animation: scroll-left 60s linear infinite;
    will-change: transform;
    /* white-space: nowrap; */
}

.main-carousel-image-wrapper {
    height: auto;
    position: relative;
    display: inline-block; /* make the wrapper shrink to fit its content */
    vertical-align: top;
    flex-shrink: 0;
    margin-right: 3.75rem; /* 60px */
    margin-left: 3.75rem; /* 60px */
}

.main-carousel-image-wrapper img {
    max-height: 26.25rem; /* 420px */
    /* height: 100%; */
    width: auto;
    display: block; /* Ensures the image takes up the full width of its container */
    border-radius: 0.625rem; /* 10px */
    box-shadow: 0 0.125rem 0.3125rem rgba(0,0,0,0.1); /* 2px 5px */
    background-color: rgba(255, 255, 255, 0.3);

    object-fit: contain;
    
    transform: translateZ(0);
    
    -webkit-user-drag: none;
    user-select: none;
    /* pointer-events: none; */
}

.main-carousel-image-caption {
    position: absolute;
    top: 26.875rem; /* 430px */
    left: 0;
    right: 0;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    border-radius: 0.625rem; /* 10px */
    background-color: rgba(0, 0, 0, 0.5);
    
    padding: 0.625rem 1.25rem; /* 10px 20px */
    
    color: white;
    line-height: 1.4;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
    font-size: 1.25rem; /* 20px */
    font-family: var(--font-helvetica);
    z-index: 10;
}

.main-carousel-image-prompt {
    font-size: 1rem;
    font-weight: lighter;
}

@keyframes scroll-left {
    0% {
        transform: translateX(40%);
    }
    100% {
        /* This transformation scrolls one full set of images.
           It relies on the .main-carousel-track containing TWO identical sets of images. */
        transform: translateX(-10%);
    }
}

/* .main-image-carousel-container:has(.main-carousel-track img:hover) .main-carousel-track {
    animation-play-state: paused;
} */

/* --- Styles for the info text now INSIDE the carousel container --- */

.main-right-column {
    position: relative;
    width: 30rem;
    /* eight: 53.125rem; */ /* 850px */
    /* background-color: #1a1a1a; */
    /*backdrop-filter: blur(0px);*/
    display: flex;
    flex-direction: column;
    padding: 0px;
    /* z-index: 5; */
}

.main-modn-logo-container {
    height: 11.25rem; /* 180px */
    
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

h1 {
    font-size: 4rem;
    margin-bottom: 0.5rem;
}

.subtitle {
    margin-top: 10rem; /* 210px */
    margin-bottom: 2.5rem; /* 40px */

    padding: 0 3.125rem; /* 50px */
    text-align: left;
    
    color: white;
    font-family: var(--font-palatino);
    /* font-weight: lighter; */
    font-size: 1.3rem; /* 24px */
    line-height: 1.1;
}

.main-start {
    border: solid 2px var(--color2);
    background-color: var(--color2);
    border-radius: 1.5rem;
    margin-left: 3.125rem; /* 50px */

    padding: 0.75rem 1.5rem; /* 4px 10px */
    align-self: flex-start;

    color: var(--color4);
    font-family: var(--font-helvetica);
    font-weight: bold;
    font-size: 1.25rem;
    text-decoration: none;
    letter-spacing: 0.05em;

    transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.main-start:hover {
    border-color: var(--color4);
    background-color: var(--color4);
    color: white;
}

.main-entries {
    padding: 0 3.625rem; /* 58px */
    display: flex;
    flex-direction: column;
    gap: 1.875rem; /* 30px */
}

.main-entries a {
    color: white;
    font-family: var(--font-helvetica);
    font-weight: bold;
    font-size: 1.25rem; /* 20px */
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease; /* Smooth transition on hover */
}

.main-entries a:hover {
    background-color: var(--color2);
    color: var(--color4);
    border-color: var(--color2);
}

.categories {
    display: grid;
    grid-template-columns: 1fr; /* Two equal-width columns */
    text-align: center;
}

.category {
    margin-bottom: 1.5625rem; /* 25px */
    width: auto;
    border: 0px solid #ccc;
    border-bottom: 1px solid white;

    padding: 0.1875rem; /* 3px */
    justify-self: center; /* Center each option within its column */
    
    color: white;
    font-family: var(--font-helvetica);
    font-weight: bold;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease; /* Smooth transition on hover */
}

.category:hover {
    background-color: #fedf8a;
    color: #3d314a;
    border-color: #fedf8a;
}

/* MODN logo styling and animation */
.modn-logo {
    font-size: 4rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
    align-self: center;
}

.letter {
    font: bold 8rem 'Impact', 'Fantasy', sans-serif;
    color: white;
    display: inline-block;
    /* animation: rotate 3s linear infinite; */
    transform-origin: 50% 50%; /* Rotate around bottom center */
}

/* Make each letter rotate at the same speed, start at different times */
.letter:nth-child(1) {
    animation-delay: 0s;
    animation-duration: 3s;
}

.letter:nth-child(2) {
    animation-delay: 1.5s;
    animation-duration: 3s;
}

.letter:nth-child(3) {
    animation-delay: 3s;
    animation-duration: 3s;
}

.letter:nth-child(4) {
    animation-delay: 4.5s;
    animation-duration: 3s;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

#MODNLogo {
    width: 80%;
    height: auto;
    user-select: none; /* Prevent text selection */
    -webkit-user-drag: none; /* Prevent image dragging in Safari */
    -webkit-user-select: none; /* Prevent text selection in Safari */
    pointer-events: none; /* Prevent clicks on the image */
}

.main-modnverse-screen {
    position: relative;
    min-height: 800px;
    height: 100vh;

    display: flex;
    padding: 1.25rem; /* 20px */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
    color: white;
    text-align: center;

    scroll-snap-align: start;
    flex-shrink: 0;
    overflow-y: auto;
    z-index: 1;
}

.main-screen-2 {
    background-color: #262a34;
}

.main-pets-logo .large-logo {
    max-height: 9.375rem; /* 150px */
    width: auto;
    margin-bottom: 0.625rem; /* 10px */
}

.main-pets-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.875rem; /* 30px */
}

.main-modnverse-description {
    font-family: var(--font-helvetica);
}

.main-modnverse-description h1 {
    font-family: var(--font-verdana);
    font-size: 2.2rem; /* 40px */
    font-weight: bold;
    margin-bottom: 1rem;
}

.main-modnverse-description p {
    font-family: var(--font-helvetica);
    font-size: 1.125rem; /* 18px */
    font-weight: lighter;
    /* max-width: 43.75rem; */ /* 700px */
    margin: 0 auto 1.5rem auto;
}

#mainPetUpload {
    display: none;
}

.main-modnverse-description .btn-warning {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    border: none;
    padding: 0.625rem 1.875rem; /* 10px 30px */
    font-weight: bold;
    color: #3D314A;
    border-radius: 0.5rem; /* 8px */
    transition: all 0.3s ease;
    font-family: var(--font-helvetica);
    font-size: 1.25rem; /* 20px */
}

.main-modnverse-description .btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.3125rem 0.9375rem rgba(255, 215, 0, 0.4); /* 5px 15px */
}

.main-modnverse-images {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.875rem; /* 30px */
    flex-wrap: nowrap;
}

.main-modnverse-image {
    flex-basis: 23.75rem; /* 380px */
}

.main-demo-card {
    background: white;
    padding: 1.25rem; /* 20px */
    border-radius: 0.9375rem; /* 15px */
    box-shadow: 0 0.625rem 1.875rem rgba(0, 0, 0, 0.1); /* 10px 30px */
    transition: transform 0.3s ease;
    color: #333;
}

.main-demo-card:hover {
    transform: translateY(-0.3125rem); /* -5px */
}

.main-demo-card img {
    margin: 0;
    width: 100%;
    height: 15rem; /* 240px */
    border-radius: 0.5rem; /* 8px */
    margin-bottom: 1rem;

    object-fit: contain;

    user-select: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    pointer-events: none;
}

.main-demo-card h4 {
    margin: 0;
    font-family: var(--font-helvetica);
    font-size: 1.25rem; /* 20px */
    font-weight: bold;
}

.main-demo-card p {
    margin: 0.875rem 0; /* 14px */
    font-family: var(--font-helvetica);
    font-size: 1.125rem; /* 18px */
    font-weight: lighter;
    color: #6c757d;
}

.main-pets-arrow {
    animation: pulse 2s infinite;
}

.main-pets-arrow .cute-arrow {
    max-height: 5rem; /* 80px */
    height: auto;
    width: auto;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Loading Overlay Styles */
.main-pets-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(135, 206, 235, 0.95);

    padding: 1.25rem; /* 20px */
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.main-modnverse-loading-content {
    margin-top: 6.25rem; /* 100px */
    text-align: center;
    color: white;
}

.main-modnverse-loading-spinner {
    width: 3.75rem; /* 60px */
    height: 3.75rem; /* 60px */
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.25rem; /* 20px */
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.main-modnverse-loading-content h3 {
    margin-bottom: 0.625rem; /* 10px */
    font-family: var(--font-helvetica);
    font-size: 1.875rem; /* 30px */
}

.main-modnverse-loading-content p {
    font-size: 1.25rem; /* 20px */
    font-family: var(--font-helvetica);
    opacity: 0.9;
}

.main-screen-3 {
    background: #263430;
}

.main-trips-logo .large-logo {
    max-height: 9.375rem; /* 150px */
    width: auto;
    /* margin-bottom: 0.625rem; */ /* 10px */
}

.main-trips-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem; /* 20px */
    width: 100%;

    font-family: var(--font-helvetica);
}

.main-trips-description h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.main-trips-description p {
    font-size: 1.1rem;
    max-width: 43.75rem; /* 700px */
    margin: 0 auto 1rem auto;
}

#mainTripUpload {
    display: none;
}

/* Gold button style for Trips section */
.main-trip-input-group .btn-warning {
    background: linear-gradient(45deg, #FFC107, #FFCA28);
    border: none;
    padding: 0.9375rem 1.875rem; /* 15px 30px */
    font-weight: bold;
    color: #333;
    border-radius: 0.5rem; /* 8px */
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.main-trip-input-group .btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.3125rem 0.9375rem rgba(255, 160, 0, 0.4); /* 5px 15px */
    background: linear-gradient(45deg, #FFA000, #FFB300);
}

.main-trips-images {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.875rem; /* 30px */
    flex-wrap: nowrap;
}

.main-trips-arrow {
    animation: pulse 2s infinite;
}

.main-trips-arrow .cute-arrow {
    max-height: 5rem; /* 80px */
    height: auto;
    width: auto;
}

/* Input section styles for Trips */
.main-trip-input-section {
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.1);
    padding: 1.25rem; /* 20px */
    border-radius: 0.9375rem; /* 15px */
    width: 100%;
    max-width: 53.125rem; /* 850px */
}

.main-trip-input-group {
    display: flex;
    gap: 1.25rem; /* 20px */
    align-items: flex-end;
    flex-wrap: wrap;
    justify-content: center;
}

.main-trip-input-field {
    flex: 1;
    min-width: 18.75rem; /* 300px */
}

.main-trip-input-field label {
    color: white;
    font-weight: bold;
    margin-bottom: 0.625rem; /* 10px */
    display: block;
    font-size: 1.25rem; /* 20px */
    font-family: var(--font-helvetica);
    text-align: left;
}

.main-trip-input-field input {
    width: 100%;
    box-sizing: border-box;;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.5rem; /* 8px */
    background: rgba(255, 255, 255, 0.9);
    padding: 0.625rem; /* 10px */
    
    transition: all 0.3s ease;
    font-size: 1.25rem; /* 20px */
    font-family: var(--font-helvetica);
    color: #333;
}

.main-trip-input-field input:focus {
    outline: none;
    border-color: #FFC107;
    box-shadow: 0 0 0.625rem rgba(255, 193, 7, 0.3); /* 10px */
}

/* Loading Overlay Styles for Trips */
.main-trips-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 121, 107, 0.95);
    
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.main-screen-4 {
    background: #964dca;
    display: none;
}

.main-me-logo .large-logo {
    max-height: 9.375rem; /* 150px */
    width: auto;
}

.main-me-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem; /* 20px */
    width: 100%;

    font-family: var(--font-helvetica);
}

#mainMeUpload {
    display: none;
}

.main-me-arrow {
    animation: pulse 2s infinite;
}

.main-me-arrow .cute-arrow {
    max-height: 5rem; /* 80px */
    height: auto;
    width: auto;
}

.main-me-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(106, 13, 173, 0.95); /* Semi-transparent purple */
    
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

@media (max-width: 768px) {
    .main-screen-0 {
        flex-direction: column;
        min-width: 0;
        min-height: 0;
        height: auto;
    }

    #DIDIGALogo {
        width: 50%;
        height: auto;
        /* top: 1rem; */
        left: 50%;
        transform: translate(-50%, 0);
    }

    .main-screen-0-circle-backdrop {
        width: 130%;
        /* height: 30vw; */
        transform: translate(-50%, -50%);
    }

    .main-screen-0-left, .main-screen-0-right {
        width: 100%;
        padding: 4rem 1.25rem 26rem 1.25rem; 
        box-sizing: border-box;
        gap: 2rem;
        min-height: 0;
        align-items: self-start;
    }

    .main-screen-0-left {
        padding: 3rem 1.25rem 6rem 1.25rem !important;
    }

    .main-screen-0-title {
        margin-bottom: 0.5rem;

        font-size: 1.875rem;
        text-align: center;
    }

    .main-screen-0-subtext {
        height: auto;
        font-size: 1.2rem;
        /* max-width: 95%; */
        text-align: left;
        /* margin-bottom: 1rem; */
    }

    .main-screen-0-images-left,
    .main-screen-0-images-right {
        width: 100vw;
        align-self: center;
    }

    .main-screen-0-images-left img {
        /* max-width: 70vw; */
        height: auto;
        /* border-radius: 0.75rem; */
        margin-bottom: 1rem;
    }

    .main-screen-0-images-right img {
        /* max-width: 70vw; */
        height: auto;
        /* border-radius: 0.75rem; */
        margin-bottom: 1rem;
    }

    .main-screen-0-images-container {
        flex-direction: column;
        gap: 1.75rem;
        width: 100%;
    }
/* 
    .main-screen-0-image-small {
        max-width: 70vw;
    } */

    .main-screen-0-button {
        display: block;
        margin-top: 0rem;
        /* border-radius: 8px; */
        /* width: 90vw; */
        /* max-width: 320px; */
        /* border-radius: 1.25rem; */
        box-sizing: border-box;
        
        padding: 0.75rem 1.5rem;
        text-align: center;
        
        /* font-size: 1.1rem; */
    }

    .main-screen-0-b {
        min-width: 0;
        min-height: 0;
        height: auto;
        padding: 0;
        gap: 1.5rem;
        /* background-color: darkslateblue; */
    }

    .main-screen-0-b-sub-1 {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        width: 100%;
        padding: 0;
        padding-bottom: 10rem;;
        /* background-color: darkslateblue; */
        /* background-color: blanchedalmond; */
    }

    .main-screen-0-b-left {
        width: 100%;
        gap: 0.5rem;
        align-items: center;
        flex-direction: column-reverse;
    }

    .main-screen-0-b-middle {
        width: 15%;
        max-width: 50px;
        padding-top: 0;
    }

    .main-screen-0-b-middle img {
        transform: rotate(90deg);
    }

    .main-screen-0-b-right {
        width: 95%;
        max-width: 100%;
    }

    .main-screen-0-b-left-row-1 {
        width: 95%;
        gap: 0.5rem;
    }

    .main-screen-0-b-left-subcolumn-2 {
        padding: 2rem 0rem;
        align-items: center;
        width: 100%;
        background-color: whitesmoke;
        /* flex-direction: column-reverse; */
    }

    .main-screen-0-b-title {
        font-size: 1.75rem;
        text-align: center;
    }

    .main-screen-0-b-left-row-2 {
        font-size: 1rem;
        text-align: center;
        padding: 0 0.5rem;
    }

    .main-screen-0-b-button {
        padding: 0.8rem 1.5rem;
        font-size: 1.1rem;
    }

    .main-screen-0-b-left-row-3 img {
        border-radius: 0;
    }

    .main-container {
        min-width: auto;
        height: auto;

        overflow-y: visible;
        scroll-snap-type: none;
    }

    .main-screen-1, .main-screen-2, .main-screen-3, .main-screen-4 {
        flex-direction: column;
        height: auto;
        min-height: 0;
        min-width: auto;
        overflow-y: visible;
        scroll-snap-type: none;
    }

    .main-modnverse-screen {
        justify-content: flex-start;
        padding-top: 2.5rem; /* 40px */
        padding-bottom: 2.5rem; /* 40px */
    }

    .main-circle-backdrop {
        width: 200vw; 
        height: 50vw; 
        top: 0; 
        left: 50%; 
        transform: translate(-50%, calc(100px - 50vw)); 
        border-radius: 50%; 
    }

    .main-left-column,
    .main-right-column {
        width: 100%; 
    }

    .main-left-column {
        order: 2; 
        min-height: auto; 
        overflow: hidden; 
    }

    .main-right-column {
        order: 1; 
        height: auto;
        padding-top: 1.875rem; /* 30px */
        text-align: center; 
    }

    .main-screen-0-info-insert {
        margin-bottom: 1rem;
        position: absolute;
        left: 50%;
        bottom: 0;
        top: auto;
        transform: translate(-50%, 0);
        width: 95%;
        max-width: none;
        min-width: 0;
        min-height: 50px;
        font-size: 1.08rem;
        padding: 1rem 0.5rem 1.5rem 0.5rem;
        border-radius: 1rem;
        box-sizing: border-box;
        z-index: 10;
        /* position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        top: auto;
        width: 100vw;
        max-width: none;
        min-width: 0;
        min-height: 50px;
        font-size: 1.08rem;
        padding: 1rem 0.5rem 1.5rem 0.5rem;
        border-radius: 1rem 1rem 0 0;
        box-sizing: border-box;
        z-index: 10;
        background-color: var(--color4);
        color: white; */
    }

    .main-background-image {
        display: block;
        width: 100%;
        min-height: 0;
        
        object-fit: cover;
    }

    .main-loading-text {
        font-size: 1.25rem; /* 20px */
    }

    .main-image-carousel-container {
        position: relative; 
        margin-top: 1.25rem; /* 20px */
        margin-bottom: 1.25rem; /* 20px */
        top: auto;
        left: auto;
        right: auto;
        height: auto; 
        background-color: rgba(255, 255, 255, 0.2); 

        padding: 1.25rem 0; /* 20px */
        transform: none; 
    }

    .main-carousel-track {
        margin-bottom: 6.25rem; /* 100px */
    }

    .main-carousel-track img {
        max-height: 18.75rem; /* 300px */
        border-radius: 0.625rem; /* 10px */
    }

    .main-carousel-image-caption {
        top: 19.375rem; /* 310px */

        padding: 0.5rem 0.75rem; /* 8px 12px */

        line-height: 1.2;
        font-size: 1rem; /* 16px */
    }

    
    @keyframes scroll-left {
        0% {
            transform: translateX(0); 
        }
        100% {
            transform: translateX(-50%); 
        }
    }

    .main-modn-logo-container {
        height: auto;
        margin-bottom: 1.25rem; /* 20px */
        align-items: center; 
    }

    #MODNLogo {
        width: 50%;
        max-width: 11.25rem; /* 180px */
    }

    .subtitle {
        margin-top: 3.125rem; /* 50px */
        margin-bottom: 1.875rem; /* 30px */
        width: 85%;
        padding: 0 0.625rem; /* 10px */
        font-size: 1.25rem; /* 20px */
        align-self: center;
        text-align: center;
    }

    .main-start {
        margin-left: 0px;
        margin-bottom: 1.25rem; /* 20px */
        display: inline-block; 
        font-size: 1rem; /* 16px */
        align-self: center; 
    }

    .main-entries {
        padding: 0 0.9375rem; /* 15px */
        gap: 1.25rem; /* 20px */
    }

    .main-entries a {
        font-size: 1rem; /* 16px */
        text-align: center;
    }

    .categories {
        padding: 0 0.625rem; /* 10px */
    }

    .category {
        font-size: 1rem;
        padding: 0.5rem; /* 8px */
    }

    .letter { 
        font-size: 4rem;
    }

    .main-modnverse-images, .main-trips-images {
        flex-direction: column;
        align-items: center;
        gap: 1.25rem; /* 20px */
    }

    .main-modnverse-description h1, .main-trips-description h1 {
        font-size: 1.8rem;
    }

    .main-pets-arrow .cute-arrow, .main-trips-arrow .cute-arrow, .main-me-arrow .cute-arrow {
        transform: rotate(90deg);
        max-height: 3.75rem; /* 60px */
    }

    .main-trip-input-group {
        flex-direction: column;
        align-items: stretch;
    }

    .main-trip-input-field {
        min-width: 100%;
    }

    .main-trip-input-group .btn-warning {
        width: 100%;
    }
}


/* --- START: Media Query for 4K / UHD Screens --- */

@media screen and (min-width: 2560px) {
    /* 
      Increase the base font size. The default is typically 16px. 
      Setting it to 24px is a 1.5x increase, which will scale up all 'rem' units proportionally.
    */
    html {
        font-size: 24px;
    }

    .main-screen-0 {
        min-width: 150rem;
        min-height: 100rem;
        height: 100vh;
    }

    .main-screen-0-left, .main-screen-0-right {
        padding: 5rem;
        gap: 2.5rem;
    }

    .main-screen-0-title {
        font-size: 5rem;
    }

    .main-screen-0-subtext {
        height: 8rem;
        font-size: 2rem;
        max-width: 85%;
    }
/* 
    .main-screen-0-left img,
    .main-screen-0-image-large {
        max-width: 90%;
        height: 60%;
        border-radius: 2rem;
    } */

    .main-screen-0-images-container {
        height: 60%;
        gap: 2.5rem;
    }

    .main-screen-0-image-small {
        /* max-width: 70%; */
        border-radius: 1.5rem;
    }

    .main-screen-0-button {
        font-size: 2rem;
        padding: 1.25rem 3.5rem;
        border-radius: 2.5rem;
    }

    .main-screen-0-b {
        /* min-width: 150rem; */
        /* min-height: 100rem; */
        height: 100vh;
    }

    /* Adjust main layout containers for the wider screen */
    .main-container,
    .main-screen-1,
    .main-screen-2,
    .main-screen-3 {
        min-width: 112.5rem;  /* 1800px / 16 */
        min-height: 75rem;    /* 1200px / 16 */
    }
    
    .main-right-column {
        width: 45rem; /* 720px / 16 */
    }

    /* Scale the large decorative backdrop element */
    /* .main-circle-backdrop {
        transform: translate(-375rem, -115.625rem); 
        width: 750rem;
        height: 156.25rem;
    } */
}
