@font-face {
    font-family: Raleway;
    src: url(Raleway-VariableFont_wght.ttf);
}

main {
    text-align: center;
}

#title {
    margin-left: auto;
    margin-right: auto;
    align-self: center;
    background-color: white;
    width: 1200px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    font-size: 60px;
}

.map {
    margin-left: auto;
    margin-right: auto;
}

#mapImg {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 85%;
    max-height: 85%;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}


/* Base emoji styling */
.emoji {
    display: inline-block;
    width: clamp(24px, 3vw, 48px); /* Desktop sizing */
    height: auto;
    transition: width 0.3s ease;
}

/* Add this to your existing mobile media queries */

@media (max-width: 480px) {
    /* Previous mobile styles... */

    /* New styles for emoji alignment */
    .grid-preview div {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        float: none;
        width: 100%;
    }

    .grid-preview div p {
        float: none;
        margin-top: 0;
        padding-right: 10px;
        line-height: normal;
    }

    .grid-preview .emoji {
        width: 24px;
        height: 24px;
        margin-left: 0;
        padding-top: 5vh;
        padding-bottom: 2vh;
    }
    .grid-preview img{
        margin-top: -6vh !important;
    }
}

@media (max-width:768px) and (orientation: landscape){
    .grid-preview img{
        margin-top: -15vh !important;
    }
}

@media (max-width: 768px) {
    /* Previous mobile styles... */

    /* New styles for emoji alignment */
    .grid-preview div {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        float: none;
        width: 100%;
    }

    .grid-preview div p {
        float: none;
        margin-top: 0;
        padding-right: 10px;
        line-height: normal;
    }

    .grid-preview .emoji {
        width: 24px;
        height: 24px;
        margin-left: 0;
        padding-top: 5vh;
        padding-bottom: 2vh;
    }
    .grid-preview img{
        margin-top: -6vh;
    }
}

/* For landscape orientation */
@media only screen and (max-height: 768px) and (orientation: landscape) {
    .grid-preview div {
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }

    .grid-preview div p {
        float: none;
        margin-top: 0;
        padding-right: 5px;
    }

    .grid-preview .emoji {
        width: 35px;
        height: 35px;
        padding-top: 5vh;
        padding-bottom: 2vh;
        margin-top: 0.2vh !important;
    }
}

img {
    border-radius: 15px;
}

@keyframes loadInColor {
    from {
        background-color: #fff;
    }

    to {
        background-color: transparent;
    }
}

#layerScreen {
    width: 100%;
    height: 100%;
    position: fixed;
    animation: loadInColor 1.5s ease-out forwards;
    pointer-events: none;
    z-index: 100000;
}

body {
    font-family: Raleway;
    background: linear-gradient(to bottom, #84e4f7, #faf2f0 21%);
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1 {
    text-align: center;
    width: max-content;
}

.locations {
    width: 10px;
    height: 10px;
    background-color: red;
    position: absolute;
    border-radius: 10px;
    border: 2px solid #000;
}

#location1 {
    margin-top: 195px;
    margin-left: 80px;
}

#location2 {
    margin-top: 225px;
    margin-left: 93px;
}

#location3 {
    margin-top: 273px;
    margin-left: 110px;
}

#location4 {
    margin-top: 280px;
    margin-left: 40px;
}

#location5 {
    margin-top: 260px;
    margin-left: 10px;
}

#location6 {
    margin-top: 235px;
    margin-left: 6px;
}

#location7 {
    margin-top: 315px;
    margin-left: -55px;
}

#location8 {
    margin-top: 305px;
    margin-left: -175px;
}

span:hover {
    cursor: pointer;
    filter: brightness(80%);
    transition: ease 0.25s;
}

/* Grids */
.grid-container {
    padding: 3%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    /* Changed to minmax(0, 1fr) for better spacing control */
    gap: 3%;
    /* Reduced gap from 20px to 10px */
    max-width: 900px;
    /* Reduced max-width to bring grids closer */
    margin: 0 auto;
}

.grid-preview {
    position: relative; /* Needed for proper containment */
    overflow: hidden; /* Prevents content from overflowing */
    display: flex; /* New flex layout */
    align-items: center; /* Vertical centering */
    justify-content: space-between; /* Space between text and image */
    padding: 15px; /* Maintain your existing padding */
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
    height: 200px;
    width: 100%; /* Changed from fixed width to 100% */
    box-sizing: border-box; /* Ensures padding is included in width */
}

.grid-preview div {
    float:right;
}

.grid-preview div p {
    margin: 0;
    font-size: 3vh; /* Keep your existing size */
    font-weight: 500; /* Keep your existing weight */
    padding-right: 10px; /* Adjust as needed */
    flex-shrink: 0; /* Prevents text from shrinking */
    line-height: 2em;
    float:left;
}

.thumbnails {
    max-width: 60%; /* Adjust this percentage to control image size */
    max-height: 90%; /* Adjust based on your needs */
    height: auto; /* Maintain aspect ratio */
    width: auto; /* Maintain aspect ratio */
    object-fit: contain; /* Ensures whole image is visible */
    margin-left: 10px; /* Space between text and image */
}

/* Remove the center alignment from body as it's already handled by grid */

.grid-preview:hover {
    border-color: #999;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.grid-name {
    text-align: center;
    margin: 10px 0;
    font-weight: 500;
}

.grid {
    display: grid;
    gap: 8px;
    height: 150px;
    margin-bottom: 10px;
}

.grid-item {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #757575;
    border-radius: 2px;
}

/* Individual grids */

#grid1 {
    background: #f0c5c5;
}

#grid2 {
    background: #d4e0c5;
}

#grid3 {
    background: #bed7ea;
}

#grid4 {
    background: #d4c5e3;
}

#grid5 {
    background: #f0e2c5;
}

#grid6 {
    background: #c5d4e8;
}

#grid7 {
    background: #d4e0c5;
}

#grid8 {
    background: #f0c5c5;
}

.thumbnails {
    max-width: 100%;
    max-height: 100%;
    float: left;
}

p {
    float: right;
    margin-top: 50px;
    font-size: 25px;
    padding-right: 20%;
    font-weight: 500;
}

/*=============================*/
/* GROW EFFECT
/*=============================*/

.grow-on-hover {
    display: inline-block;
    vertical-align: middle;
    -webkit-transform: perspective(1px) translateZ(0);
    transform: perspective(1px) translateZ(0);
    box-shadow: 0 0 1px rgba(0, 0, 0, 0);
    -webkit-transition-duration: 0.3s;
    transition-duration: 0.3s;
    -webkit-transition-property: transform;
    transition-property: transform;
}

.grow-on-hover:hover,
.grow-on-hover:focus,
.grow-on-hover:active {
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
}

#credit {
    text-align: center;
    padding: 20px 0;
    width: 100%;
    color: #333;
    margin-top: auto;
    /* Pushes it to the bottom */
}

main {
    flex: 1;
    padding-bottom: 40px;
    /* Space between content and footer */
}

/* Ocean */
.waves {
    position: relative;
    width: 100%;
    height: 15vh;
    margin-bottom: -7px;
    /*Fix for safari gap*/
    min-height: 300px;
    max-height: 150px;
    z-index: -10000;
}

/* animation */

.waveAnimation {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 300px;

    z-index: -1000;
}

.parallax > use {
    animation: move-forever 25s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;
}

.parallax > use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 7s;
}

.parallax > use:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 10s;
}

.parallax > use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 13s;
}

.parallax > use:nth-child(4) {
    animation-delay: -5s;
    animation-duration: 20s;
}

@keyframes move-forever {
    0% {
        transform: translate3d(-90px, 0, 0);
    }

    100% {
        transform: translate3d(85px, 0, 0);
    }
}

/*Shrinking for mobile*/
@media (max-width: 768px) {
    .grow-on-hover:hover,
    .grow-on-hover:focus,
    .grow-on-hover:active {
        -webkit-transform: scale(1.05);
        transform: scale(1.05);
    }

    body {
        background: linear-gradient(to bottom, #84e4f7, #faf2f0 9%);
    }

    .waves {
        height: 40px;
        min-height: 40px;
    }

    .content {
        height: 30vh;
    }
}

/* random ass dolphin I found on codepen */

@keyframes dolphinMove {
    0% {
        transform: rotate(20deg);
        margin-top: 90vmin;
        margin-left: 15vmin;
    }

    25% {
        transform: rotate(-10deg);
        margin-top: 20vmin;
    }

    100% {
        transform: rotate(-110deg);
        margin-top: 140vmin;
        margin-left: -20vmin;
    }
}

.box-canvas {
    position: fixed;
    margin: auto;
    display: block;
    margin-top: 30vmin;
    margin-bottom: 20vmin;
    width: 8vmin;
    height: 8vmin;
    /* animation: dolphinMove 5s ease-out ; */
    animation: dolphinMove 5s ease-out infinite;
    z-index: -3000;
}

.fin-top {
    position: absolute;
    left: calc(var(--body-left) + 23vmin);
    top: calc(var(--body-top) + 15vmin);
    width: 15vmin;
    height: 17vmin;
    border-radius: 20% 40% 50% 50%;
    box-shadow: 0 -10vmin 0 var(--blue);
    transform: rotate(-20deg);
}

.fin-front {
    position: absolute;
    top: calc(var(--body-top) + 15vmin);
    left: calc(var(--body-left) + 17vmin);
    width: 6vmin;
    height: 8vmin;
    border-radius: 52% 48% 0% 100% / 13% 99% 1% 87%;
    background: var(--blue);
    transform: rotate(-35deg);
    border-right: 0.5vmin solid #4eaff4;
}

.nose {
    position: absolute;
    top: calc(var(--body-top) + 7vmin);
    left: calc(var(--body-left) - 1vmin);
    width: 10vmin;
    height: 5vmin;
    background: linear-gradient(
        to bottom,
        var(--blue),
        var(--blue) 3vmin,
        var(--blue-light) 3vmin
    );
    background: var(--blue);
    transform: rotate(-20deg);
    border-radius: 50% 0 0% 50%;
}

.body {
    position: absolute;
    top: var(--body-top);
    left: var(--body-left);
    width: 30vmin;
    height: 40vmin;
    border-radius: 50% 50% 0% 30% / 50%;
    background: var(--blue);
    overflow: hidden;
}

.body::before {
    content: "";
    position: absolute;
    background: var(--blue-light);
    width: 30vmin;
    height: 40vmin;
    bottom: -10vmin;
    left: -5vmin;
    border-radius: 30% 50% 10% 30%;
}

.eye {
    position: absolute;
    top: 4vmin;
    left: 12vmin;
    width: 1vmin;
    height: 1vmin;
    background: black;
    border: 0.75vmin solid white;
    border-radius: 50%;
}

.cover-up {
    content: "";
    position: absolute;
    background: var(--background-color);
    width: 30vmin;
    height: 40vmin;
    top: calc(var(--body-top) + 11vmin);
    left: calc(var(--body-left) - 10vmin);
    border-radius: 30% 50% 30% 30%;
    transform: rotate(-20deg);
}

.tail {
    position: absolute;
    width: 30vmin;
    height: 15vmin;
    top: calc(var(--body-top) + 38vmin);
    left: calc(var(--body-left) + 11vmin);
}

.tail::before {
    content: "";
    position: absolute;
    border-radius: 100% 0% 40% 60% / 100% 6% 94% 0%;
    width: 15vmin;
    height: 10vmin;
    left: 0;
    background: var(--blue);
    transform: rotate(-20deg);
    transform-origin: top right;
}

.tail::after {
    content: "";
    position: absolute;
    right: 0;
    border-radius: 0% 100% 40% 60% / 6% 100% 0% 94%;
    width: 15vmin;
    height: 10vmin;
    background: var(--blue);
    transform: rotate(20deg);
    transform-origin: top left;
}

:root {
    --body-left: 13vmin;
    --body-top: 2vmin;

    --blue: #66baf8;
    --blue-light: #e0f0fd;

    --background-color: #faf2f0;
}

/* sunrays i found */
@keyframes sun {
    from {
        transform: scale(1.3);
    }

    to {
        transform: scale(1.1);
    }
}

.sun {
    position: fixed;
    animation: sun 1.5s ease forwards;
    top: 18%;
    right: 10%;
    margin: auto;
    width: 125px;
    height: 125px;
    border-radius: 50%;
    background: rgb(255, 227, 135);
    opacity: 0.9;
    box-shadow: 0px 0px 0px 15px rgb(255, 175, 71);
    z-index: -1000;
}

.ray_box {
    position: absolute;
    margin: auto;
    top: 15%;
    right: 5%;
    width: 70px;
    -webkit-animation: ray_anim 120s linear infinite;
    animation: ray_anim 120s linear infinite;
}

.ray {
    background: -webkit-linear-gradient(
        top,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.8) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background: linear-gradient(
        top,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.8) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    margin-left: 10px;
    border-radius: 80% 80% 0 0;
    position: absolute;
    opacity: 0.1;
}

.ray1 {
    height: 170px;
    width: 30px;
    -webkit-transform: rotate(180deg);
    top: -175px;
    left: 15px;
}

.ray2 {
    height: 100px;
    width: 8px;
    -webkit-transform: rotate(220deg);
    top: -90px;
    left: 75px;
}

.ray3 {
    height: 170px;
    width: 50px;
    -webkit-transform: rotate(250deg);
    top: -80px;
    left: 100px;
}

.ray4 {
    height: 120px;
    width: 14px;
    -webkit-transform: rotate(305deg);
    top: 30px;
    left: 100px;
}

.ray5 {
    height: 140px;
    width: 30px;
    -webkit-transform: rotate(-15deg);
    top: 60px;
    left: 40px;
}

.ray6 {
    height: 90px;
    width: 50px;
    -webkit-transform: rotate(30deg);
    top: 60px;
    left: -40px;
}

.ray7 {
    height: 180px;
    width: 10px;
    -webkit-transform: rotate(70deg);
    top: -35px;
    left: -40px;
}

.ray8 {
    height: 120px;
    width: 30px;
    -webkit-transform: rotate(100deg);
    top: -45px;
    left: -90px;
}

.ray9 {
    height: 80px;
    width: 10px;
    -webkit-transform: rotate(120deg);
    top: -65px;
    left: -60px;
}

.ray10 {
    height: 190px;
    width: 23px;
    -webkit-transform: rotate(150deg);
    top: -185px;
    left: -60px;
}

@-webkit-keyframes ray_anim {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@media only screen and (max-width: 667px) and (max-height: 375px) and (orientation: landscape) {
    #title {
        font-size: 10000 !important;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    /* Mobile responsive adjustments */
    @media (max-width: 768px) {
        /* Previous mobile styles... */

        /* Wave adjustments */
        .waveAnimation {
            height: 150px;
            /* Reduced height for mobile */
        }

        .waves {
            height: 10vh;
            min-height: 150px;
            max-height: 100px;
        }
    }

    @media (max-width: 480px) {
        /* Wave adjustments for very small screens */
        .waveAnimation {
            height: 120px;
        }

        .waves {
            height: 8vh;
            min-height: 120px;
            max-height: 80px;
        }
    }

    /* New class to ensure waves reach credits */
    .waves-container {
        position: relative;
        width: 100%;
        margin-top: auto;
        /* Pushes it to the bottom */
    }

    /* Adjust the main content area */
    main {
        flex: 1;
        padding-bottom: 20px;
        /* Reduced space since waves will cover more */
        position: relative;
        z-index: 1;
        /* Ensure content stays above waves */
    }

    /* Main title adjustments */
    #title {
        font-size: 2vh;
        width: 90% !important;
        margin: 10px auto;
        padding: 2.5%;
    }

    /* Add this to your existing mobile media queries */
    @media (max-width: 480px) {
        #title {
            width: 90vw !important; /* 30% of viewport width */
            font-size: 4vw !important; /* Responsive font size */
            padding: 10px !important;
            margin: 5px auto !important;
            white-space: normal !important; /* Allow text wrapping */
            word-wrap: break-word !important;
            line-height: 1.3 !important;
            box-sizing: border-box; /* Include padding in width */
        }
    }



    /* Map container adjustments */
    .map {
        width: 82% !important;
        height: 82% !important;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    #mapImg {
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        max-height: 100% !important;
    }

    .locations {
        display: none;
    }

    /* Grid container adjustments */
    .grid-container {
        grid-template-columns: 1fr;
        max-width: 90%;
        gap: 15px;
    }

    .grid-preview {
        height: 150px;
        padding: 10px;
    }

    .grid-preview p {
        font-size: 20px;
        margin-top: 30px;
        padding-right: 10%;
    }

    /* Sun adjustments */
    .sun {
        width: 80px;
        height: 80px;
        top: 10%;
        right: 5%;
    }

    .ray_box {
        width: 50px;
    }

    .ray1 {
        height: 120px;
        width: 20px;
        top: -125px;
        left: 10px;
    }

    .ray2 {
        height: 70px;
        width: 5px;
        top: -65px;
        left: 55px;
    }

    .ray3 {
        height: 120px;
        width: 35px;
        top: -55px;
        left: 75px;
    }

    .ray4 {
        height: 85px;
        width: 10px;
        top: 20px;
        left: 75px;
    }

    .ray5 {
        height: 100px;
        width: 20px;
        top: 40px;
        left: 30px;
    }

    .ray6 {
        height: 65px;
        width: 35px;
        top: 40px;
        left: -30px;
    }

    .ray7 {
        height: 130px;
        width: 7px;
        top: -25px;
        left: -30px;
    }

    .ray8 {
        height: 85px;
        width: 20px;
        top: -35px;
        left: -65px;
    }

    .ray9 {
        height: 55px;
        width: 7px;
        top: -45px;
        left: -45px;
    }

    .ray10 {
        height: 135px;
        width: 15px;
        top: -130px;
        left: -45px;
    }

    /* Dolphin adjustments */
    .box-canvas {
        width: 6vmin;
        height: 6vmin;
    }

    @keyframes dolphinMove {
        0% {
            transform: rotate(120deg);
            margin-top: 300vmin;
            margin-left: 15vmin;
        }

        25% {
            transform: rotate(-20deg);
            margin-top: 80vmin;
        }

        100% {
            transform: rotate(-140deg);
            margin-top: 300vmin;
            margin-left: -20vmin;
        }
    }

    /* Footer adjustments */
    #credit {
        font-size: 14px;
        padding: 15px 0;
    }
}

@media (max-width: 480px) {
    /* Further adjustments for very small screens */

    .grid-preview p {
        font-size: 18px;
        margin-top: 20px;
    }

    .sun {
        width: 60px;
        height: 60px;
    }

    /* Hide some rays on very small screens */
    .ray6,
    .ray7,
    .ray8,
    .ray9,
    .ray10 {
        display: none;
    }
}

/* Special landscape orientation fixes */
@media only screen and (max-height: 768px) and (orientation: landscape) {
    h1 {
        width: 95vw !important;
        font-size: 5vw !important;
        padding: 10px !important;
        margin: 5px auto !important;
        line-height: 1.3 !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Adjust the grid layout for landscape */
    .grid-container {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        max-width: 95vw !important;
        gap: 10px !important;
    }

    .grid-preview {
        height: 25vh !important;
        min-height: 120px !important;
    }

    .grid-preview p {
        font-size: 3vw !important;
        margin-top: 5vh !important;
        padding-right: 5% !important;
    }

    /* Adjust map sizing */
    .map {
        max-width: 60% !important;
        max-height: 60% !important;
        padding-top: 2%;
    }

    /* Make sun smaller in landscape */
    .sun {
        margin-top: 4.25%;
        width: 60px !important;
        height: 60px !important;
        top: 5% !important;
        right: 5% !important;
        z-index: -100000;
    }

    .locations {
        display: none;
    }

    @keyframes dolphinMove {
        0% {
            transform: rotate(20deg);
            margin-top: 90vmin;
            margin-left: 15vmin;
        }

        25% {
            transform: rotate(-10deg);
            margin-top: 20vmin;
        }

        100% {
            transform: rotate(-110deg);
            margin-top: 140vmin;
            margin-left: -20vmin;
        }
    }
}

/* Extra small landscape screens (like iPhone SE) */
@media only screen and (max-height: 400px) and (orientation: landscape) {
    h1 {
        font-size: 4vw !important;
        padding: 5px !important;
    }

    .grid-container {
        grid-template-columns: 1fr !important;
    }

    .grid-preview {
        height: 20vh !important;
    }

    .locations {
        display: none;
    }
}

/* silly easter egg :) */

.fish {
    position: fixed;
    pointer-events: none;
    user-select: none;
    z-index: 9999;
    font-size: 24px;
    transition: transform 0.2s ease-out;
    will-change: transform;
}

#fishStart {
    position: fixed;
    /* Changed from sticky to fixed */
    top: 10px;
    left: 10px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 12px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 100000;
    cursor: pointer;
    width: auto;
    /* Remove fixed width */
    height: auto;
    /* Remove fixed height */
    margin: 0;
    /* Remove any margins */
}

#fishStart:hover {
    opacity: 1;
    background-color: white;
}

/* island */

.tree {
    position: fixed;
    bottom: -31.8%;
    right: 200px;
    width: 60%;
    height: 80%;
    transform-origin: bottom center;
    animation: sway 4s infinite alternate ease-in-out;
    z-index: -9000;
}

@keyframes sway {
    0% {
        transform: rotate(-2deg);
    }

    100% {
        transform: rotate(2deg);
    }
}

.tree-bits {
    position: relative;
}

.trunk {
    background: #865415;
    width: 40px;
    height: 250px;
    border-radius: 30px;
    transform: rotate(-20deg);
    position: absolute;
    right: -10px;
}

.leaf {
    position: absolute;
    width: 100px;
    height: 100px;
    background-color: #8dc917;
    -moz-border-radius: 100px 0px;
    -webkit-border-radius: 100px 0px;
    border-radius: 100px 0px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.leaf1 {
    right: 40px;
    top: 8px;
    z-index: 1;
}

.leaf2 {
    right: -62px;
    top: -39px;
    z-index: 7;
    transform: rotate(42deg);
}

.leaf3 {
    right: 64px;
    top: -29px;
    z-index: 2;
    transform: rotate(42deg);
}

.leaf4 {
    right: -50px;
    top: -75px;
    z-index: 3;
    transform: rotate(7deg);
}

.leaf5 {
    right: 30px;
    top: -75px;
    z-index: 1;
    transform: rotate(90deg);
}

.leaf6 {
    right: -20px;
    top: -88px;
    z-index: 1;
    transform: rotate(-35deg);
}

.island {
    position: absolute;
    width: 200px;
    height: 60px;
    background-color: #f5d742;
    border-radius: 50%;
    bottom: -280px;
    right: -130px;
    z-index: 100;
    padding: 30px;
    transform: rotate(-6deg);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Add these at the end of your style.css file */

/* Add this to your existing mobile media query */
@media (max-width: 768px) {
    /* Previous mobile styles... */

    /* Island adjustments for mobile - 50% size */

    .tree {
        width: 50%;
        height: 50%;
        right: 70px;
        top: 78% !important;
        /* Changed from bottom to top positioning */
        bottom: auto;
        /* Remove bottom positioning */
        transform: scale(0.5);
        transform-origin: top right;
        /* Changed from bottom right */
    }

    .island {
        width: 100px;
        height: 30px;
        bottom: -175px;
        right: -85px;
        padding: 20px;
    }

    /* Adjust leaf sizes */
    .leaf {
        width: 50px;
        height: 50px;
    }

    /* Adjust trunk */
    .trunk {
        width: 20px;
        height: 125px;
    }

    /* Position adjustments for leaves */
    .leaf1 {
        right: 20px;
        top: 4px;
    }

    .leaf2 {
        right: -30px;
        top: -20px;
    }

    .leaf3 {
        right: 32px;
        top: -15px;
    }

    .leaf4 {
        right: -25px;
        top: -38px;
    }

    .leaf5 {
        right: 15px;
        top: -38px;
    }

    .leaf6 {
        right: -10px;
        top: -44px;
    }
}

@media only screen and (max-height: 400px) and (orientation: landscape) {
    .tree {
        width: 50%;
        height: 50%;
        right: 70px;
        top: 70%;
        /* Changed from bottom to top positioning */
        bottom: auto;
        /* Remove bottom positioning */
        transform: scale(0.5);
        transform-origin: top right;
        /* Changed from bottom right */
    }
}

/* For very small screens */
@media (max-width: 480px) {
    .tree {
        width: 50%;
        height: 50%;
        right: 70px;
        top: 70%;
        /* Changed from bottom to top positioning */
        bottom: auto;
        /* Remove bottom positioning */
        transform: scale(0.5);
        transform-origin: top right;
        /* Changed from bottom right */
    }

    .island {
        width: 80px;
        height: 24px;
        bottom: -140px;
        right: -65px;
    }
}

@media only screen and (max-height: 768px) and (orientation: landscape) {
    .tree {
        width: 50%;
        height: 50%;
        right: 100px;
        top: 30% !important;
        /* Changed from bottom to top positioning */
        bottom: auto;
        /* Remove bottom positioning */
        transform: scale(0.5);
        transform-origin: top right;
        /* Changed from bottom right */
    }
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    #fishStart {
        padding: 6px 8px;
        font-size: 12px;
        top: auto;
        /* Remove top positioning */
        bottom: 10px;
        /* Position from bottom */
        left: 10px;
        right: auto;
        opacity: 1;
        background-color: rgba(255, 255, 255);
        min-width: 0;
        white-space: nowrap;
        margin-bottom: 0;
        position: fixed;
        /* Keep it fixed */
    }
}

@media only screen and (max-height: 768px) and (orientation: landscape) {
    #fishStart {
        bottom: 10px;
        top: auto;
        left: 10px;
        right: auto;
        background-color: rgba(255, 255, 255, 1) !important;
    }
}

/* Extra small landscape screens (like iPhone SE) */
@media only screen and (max-height: 400px) and (orientation: landscape) {
    #fishStart {
        bottom: 5px;
        left: 5px;
        padding: 4px 6px;
        font-size: 10px;
    }
}
