body {
    margin: 0;
    height: 200vh;
    font-family: Arial, sans-serif;
    background-color: #0f0f3d;
    background: url('image/background.png') no-repeat center top;
    background-size: cover;
    transition: background-color 1s;
}


.toggle-button {
    position: fixed;
    top: 20px;
    right: 2%;
    width: 150px;
    height: 150px;
    cursor: pointer;
    z-index: 11;
}

.toggle-button img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

.toggle-button img:hover {
    transform: rotate(40deg) scale(1.2);
}


#menu-toggle {
    display: none;
}


.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    z-index: 9;
    pointer-events: none;
    transition: background-color 0.5s ease;
}

#menu-toggle:checked ~ .overlay {
    background-color: rgba(0, 0, 0, 0.5);
    pointer-events: all;
}


.menu-item {
    position: fixed;
    transform: scale(0);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
    z-index: 10;
}

.menu-item img {
    width: 380px;
    height: 380px;
    cursor: pointer;
    transition: transform 0.3s;
}

.menu-item img:hover {
    transform: rotate(10deg) scale(1.1);
}

#home {
    top: 50vh;
    left: 40vw;
}

#about {
    top: 30vh;
    left: 15vw;
}

#portfolio {
    top: 5vh;
    left: 35vw;
}

#contact {
    top: 20vh;
    left: 55vw;
}

#menu-toggle:checked ~ .menu-item {
    opacity: 1;
    transform: scale(1);
}


.land {
    position: fixed;
    top: 55%;
    left: -8%;
    width: 70%;
    height: 70%;
    background: url(image/hills.png) no-repeat center center;
    background-size: cover;
    z-index: -1;
    opacity: 1;
    transition: opacity 0.7s, transform 0.7s;
}

.hill2 {
    position: fixed;
    top: 48%;
    left: 39%;
    width: 80%;
    height: 100%;
    background: url(image/hills2.png) no-repeat center center;
    background-size: cover;
    z-index: -2;
    opacity: 1;
    transition: opacity 0.7s, transform 0.7s;
}

body {
    --scroll-position: 0%;

} body::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0);
    pointer-events: none;
    z-index: 999;
    opacity: var(--scroll-position);
    transition: opacity 0.3s ease-out;
}


 .land,
.hill2 {
    opacity: calc(1 - var(--scroll-position) * 5); 
}


.moon {
    position: fixed;
    top: 15%;
    left: 23%;
    width: 35%;
    height: 35%;
    background: url('image/moon.png') no-repeat center center;
    background-size: contain;
    z-index: 10;
    opacity: 1;
    transition: opacity 0.7s, transform 0.7s ease-in-out;
    cursor: pointer;
}

.moon:hover {
    transform: rotate(360deg);
    transition: transform 0.7s ease-in-out;
}

#volumeButton {
    position: fixed;
    top: 30px; /* Adjust this for positioning */
    left: 30px; /* Adjust this for positioning */
    width: 100px; /* Size of the button */
    height: auto; /* Size of the button */
    cursor: pointer;
    z-index: 100; /* Ensures it stays on top */
    transition: transform 0.3s;
}
#volumeButton:hover {
  transform: rotate(20deg) scale(1.2);
}
