body 
    {
    margin: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background: linear-gradient(to top, #2A2A2A, #1A1A1A);
    overflow: hidden;
    transition: background-color 1.5s, color 1.5s;
}

.island {
    position: relative;
    width: 600px;
    height: 400px;
    perspective: 1500px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}


.layer {
    position: absolute;
    width: 100%;
    overflow: hidden;
    box-shadow: inset 0 -5px 15px rgba(0, 0, 0, 0.3);
}

.bottom-layer {
    bottom: 0;
    height: 40px;
    width: 200px;
    left: 50%;     
    transform: translateX(-50%); 
    background: #2D2D2D; 
    border-radius: 20px; 
}

.second-layer {
    bottom: 40px;
    height: 50px;
    width: 250px;  
    left: 50%;
    transform: translateX(-50%);
    background: #4A4A4A; 
    border-radius: 25px; 
}

.third-layer {
    bottom: 90px;
    height: 60px;
    width: 300px;  
    left: 50%;
    transform: translateX(-50%);
    background: #6D6D6D; 
    border-radius: 30px; 
}

.fourth-layer {
    bottom: 150px;
    height: 70px;
    width: 350px;  
    left: 50%;
    transform: translateX(-50%);
    background: #A0A0A0; 
    border-radius: 35px; 
}

.dirt-layer {
    bottom: 220px;
    height: 50px;
    width: 400px;  
    left: 50%;
    transform: translateX(-50%);
    background: #7F5217; 
    border-radius: 40px; 
}

.dirt-layer2 {
    bottom: 270px;
    height: 50px;
    width: 450px;  
    left: 50%;
    transform: translateX(-50%);
    background: #7F5217; 
    border-radius: 45px; 
}

.grass-layer {
    bottom: 320px;
    height: 30px;
    width: 500px;  
    left: 50%;
    transform: translateX(-50%);
    background: #4CAF50; 
    border-radius: 50px; 
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.mountain {
    position: absolute;
    bottom: 345px;
    left: 180px;
    width: 240px; 
    height: 200px;
    background: grey;
    clip-path: polygon(
        0% 100%, 
        10% 65%,  
        20% 75%,  
        30% 50%,  
        40% 60%,  
        50% 30%,   
        60% 60%,  
        70% 50%,  
        80% 75%,  
        90% 65%,  
        100% 100%
    );
    z-index: 1;
}

.snow {
    position: absolute;
    bottom: 425px; 
    left: 276px; 
    width: 48px;  
    height: 60px; 
    background: white;
    clip-path: polygon(
        0% 100%, 
        50% 0%, 
        100% 100%
    ); 
    z-index: 2; 
}

.tree {
    position: absolute;
    bottom: 350px; 
    width: 20px;
    height: 50px;
    background: #8B4513; 
    border-radius: 5px;
}

.tree-leaves {
    position: absolute;
    bottom: 100%; 
    left: -19px;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, #228B22 40%, #006400 70%);
    border-radius: 50%;
}

.tree1 { left: 50px; }
.tree2 { left: 500px; }
.tree3 { left: 100px; }
.tree4 { left: 450px; }

.night-toggle {
    width: 64px;
    height: 64px;
    position: absolute;
    top: 20px;
    left: 20px;
}

.night-toggle:hover {
    cursor: pointer;
}

.moon {
    background-color: white;
    border-radius: 50%;
    width: 52px;
    height: 52px;
    display: block; 
    transition: 2s;
    position: absolute;
    top: 20px;
    left: 20px;
}

.sun {
    background-color: #fdd462;
    border-radius: 50%;
    width: 64px;
    height: 64px;
    transition: 2s;
    display: none; 
}

.opt {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    font-family: sans-serif;
    margin-top: 5%;
    text-align: center;
}

.clouds {
    position: absolute;
    top: 100px; 
}

.cloud {
    background-color: white;
    width: 60px; 
    height: 35px;
    border-radius: 50%;
    position: relative; 
    margin: 0 100px; 
    display: inline-block; 
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    animation: float 8s infinite;
}

.cloud:before,
.cloud:after {
    content: '';
    background-color: white;
    border-radius: 50%;
    position: absolute;
}

.cloud:before {
    width: 40px;
    height: 40px;
    left: -20px; 
    bottom: 5px; 
}

.cloud:after {
    width: 40px;
    height: 40px;
    right: 20px; 
    bottom: 5px; 
}

.cloud:nth-child(odd) {
    left: 50px; 
}

.cloud:nth-child(even) {
    left: 150px; 
}
    
