body {
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    overflow-x: hidden; /* Prevent horizontal scrolling */
    font-family: 'Min', sans-serif; /* Default font for the body */
}

/* Centered image at the top, in scrolling content */
.top-image {
    text-align: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1; /* Make sure the image appears above the background */
    padding-top: 30px; /* Adjust padding as needed */
}

.top-image img {
    width: 34vw !important;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: grayscale(100%) sepia(100%) hue-rotate(1deg) saturate(200%) brightness(100%);
}

/* Full-bleed background image for scrolling content */
.scrolling-content img {
    width: 100vw; /* Full width for the viewport */
    height: auto; /* Maintain aspect ratio */
    display: block;
    z-index: 0; /* Ensure it's behind the top image */
}

/* Menu container with pill shape */
#menu {
    position: fixed;
    top: 20px;
    left: 20px;
    height: 12vw;
    z-index: 10;
    width: 10vw;
    padding: 1vw;
    background-color: transparent;
    border-radius: 50px;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: width 0.5s ease;
}

/* Extend menu and reveal background when hovered */
#menu:hover {
    width: 55vw;
    background-color: rgba(255, 255, 255, 0);
}

.menu-content {
    display: flex;
    align-items: center;
    justify-content: start;
    height: 100%;
    white-space: nowrap;
}

.spinning-image {
    display: inline-block;
    text-align: center;
    width: 10vw;
    margin-right: 1vw;
    text-decoration: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

#menu:hover .spinning-image {
    opacity: 1;
}

.menu-content .spinning-image:first-child {
    opacity: 1;
}

.spinning-image img {
    width: 100%;
    height: auto;
    animation: spin 20s linear infinite;
    filter: grayscale(100%) sepia(100%) hue-rotate(1deg) saturate(300%) brightness(85%);
    transition: transform 0.2s ease;
}

.spinning-image span {
    margin-top: 1.5vh;
    font-size: 1.03vw;
    color: rgb(255, 255, 218);
    font-family: 'Min', sans-serif; /* Ensure custom font is applied */
    display: block;
    opacity: 0;
}

#menu:hover .spinning-image span {
    opacity: 1;
}

.spinning-image a {
    text-decoration: none;
    color: inherit;
}

.spinning-image img:hover {
    animation-duration: 1s;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Tilting paragraphs */
.tilted-paragraphs p {
    position: absolute;
    font-size: 1.2vw;
    color: rgb(255, 255, 218);
    margin-top: 150px;
    font-family: 'Min'; /* Font applied to the paragraphs */
    transition: transform 0.27s ease; /* Smoother but not too slow */

}

/* Example transforms for rotation and placement */
.paragraph-1 {
    transform: rotate(-2.5deg);
    top: 150px;
    left: 150px;
    width: 50vw;
}

.paragraph-2 {
    transform: rotate(3.5deg);
    top: 380px;
    right: 220px;
    width: 36vw;
}

.paragraph-3 {
    transform: rotate(-3.5deg);
    top: 600px;
    left: 250px;
    width: 45vw;
}

.paragraph-4 {
    transform: rotate(-3deg);
    top: 820px;
    right: 130px;
    width: 50vw;
}

.paragraph-5 {
    transform: rotate(3.5deg);
    top: 1200px;
    left: 140px;
    width: 45vw;
}

.paragraph-6 {
    transform: rotate(-3deg);
    top: 1450px;
    right: 160px;
    width: 50vw;
}

.paragraph-7 {
    transform: rotate(1.5deg);
    top: 2030px;
    left: 160px;
    width: 42vw;
}

.paragraph-8 {
    transform: rotate(3.5deg);
    top: 2500px;
    right: 170px;
    width: 50vw;
}

.paragraph-9 {
    transform: rotate(-2.5deg);
    top: 2870px;
    left: 180px;
    width: 45vw;
}

.paragraph-10 {
    transform: rotate(2deg);
    top: 3300px;
    right: 350px;
    width: 10vw;
}


/* Continue with similar adjustments for the remaining paragraphs */

/* Custom font face */
@font-face {
    font-family: 'Min';
    src: url('Minotaur-Regular-Trial.otf') format('truetype');
}

@font-face {
    font-family: 'Minsans';
    src: url('MinotaurSans-Light-Trial.otf') format('truetype');
}
