html, body {
    height: 100%;
    background: #85C7F2; /* light blue */
    margin: 0;
    overflow: hidden;
}



#rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
  z-index:99999;
    display: none; /* Initially hidden */
}
#weather-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#rain, .sun,.clouds {
    pointer-events:none;
    position: absolute;
    top: 0;
    left:0;
    width: 100%;
    height: 100%;
    display: block; /* Changed to block but controlled by opacity */
    opacity: 0; /* Start with invisible */
    transition: opacity 1s ease-in-out;
}


.raindrop {
    width: 3px;
    height: 15px;
    background: white;
    position: absolute;
    bottom: 100%;
    animation: rain 0.5s linear infinite;
}
.raindrop {
    width: 3px;
    height: 15px;
    background: white;
    position: absolute;
    bottom: 100%;
    animation: rain 0.5s linear infinite;
}

@keyframes rain {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100vh); }
}


.sun {
    height: 130px;
    width: 130px;
    position: relative;
    top: calc(20% - 65px);
    float: right;
    margin-right: 5%;
    display: none; /* Initially hidden */
}


.circle {
    height: 130px;
    width: 130px;
    z-index: 1;
    background: #ffe066;
    position: absolute;
    border-radius: 50%;
    box-shadow: 0 0 50px #ffe066;
}

.sunrays {
    animation: spin 15s linear infinite;
    height: 130px;
    width: 130px;
}

.sunrays span {
    background: #FFDD4A;
    width: 130px;
    height: 130px;
    position: absolute;
    transform-origin: center;
}

.sunrays span:first-child {
    transform: rotate(30deg);
}

.sunrays span:nth-child(2) {
    transform: rotate(60deg);
}

.eyes {
    position: relative;
    top: 50px;
    z-index: 2;
}

.eyes .left, .eyes .right {
    background: black;
    position: absolute;
    height: 8px;
    width: 8px;
    border-radius: 50%;
    animation: blink 2.5s linear infinite;
}

.eyes .left {
    left: 40%; /* Adjusted from 47% to make eyes farther apart */
}

.eyes .right {
    left: 20%; /* Adjusted from 53% to make eyes farther apart */
}

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

@keyframes rain {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100vh); }
}

@keyframes blink {
    0%, 10%, 100% { height: 8px; }
    5% { height: 1px; }
}

.barn {
    position: absolute;
    left: 0;
    top: 0;
    width: 100px; /* Width of the barn wall */
    height: 100%; /* Full height to stay on the screen */
    background: repeating-linear-gradient(
        to bottom,
        #a52a2a 10%, #a52a2a 95%, #7b1f1f 95%, #7b1f1f 100%
    );
    background-size: 100px 50px; /* Width and height of each 'panel' */
    box-shadow: 5px 0 10px rgba(0, 0, 0, 0.5); /* Add depth on the right side */
    z-index: 2; /* Ensure it's above the weather effects */
    animation: panCameraDown 1s linear infinite;
}

@keyframes panCameraDown {
    0% { background-position: 0 0; }
    100% { background-position: 0 50px; } /* Positive movement downwards */
}
.gutter {
    position: relative;
    right: -10px; /* Position it on the right edge of the barn wall */
    top: 0;
  margin-left:100px;
    width: 80px; /* Increased width of the gutter */
    height: 100%; /* Full height */
        background-color: #ccc; /* Base color for the gutter */
    background-image: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.15) 25%, 
        transparent 25%, 
        transparent 50%, 
        rgba(255, 255, 255, 0.15) 50%, 
        rgba(255, 255, 255, 0.15) 75%, 
        transparent 75%, 
        transparent
    );
    background-size: 40px 40px; /* Adjust the size of the pattern */
    box-shadow: -3px 0 5px rgba(0, 0, 0, 0.3); 
}
.hills {
    position: absolute;
    bottom: -10%; /* Start slightly below the view for a continuous effect */
    left: -5%; /* Extend beyond the viewport to cover edges */
    width: 110%; /* Wider than the viewport to ensure full coverage */
    height: 30%; /* Height of the first layer of hills */
    background: linear-gradient(to top, #6a994e 0%, #558837 50%, #6a994e 100%);
    border-radius: 50% / 20%; /* Adjusted to maintain curve without revealing edges */
    z-index: 1; /* Behind rain, sun, and barn */
    animation: moveHillsUp 20s linear forwards; /* Adjusted duration and forwards to ensure it stays at end state */
}

.hills.hills2 {
    background: linear-gradient(to top, #387a47 0%, #2e6b3a 50%, #387a47 100%);
    height: 40%; /* Height of the second layer of hills */
    animation: moveHillsUp2 60s linear forwards; /* Different duration for parallax effect */
    z-index: 0; /* Behind the first layer */
}

.hills.hills3 {
    background: linear-gradient(to top, #2c5530 0%, #234d28 50%, #2c5530 100%);
    height: 50%; /* Height of the third layer of hills */
    animation: moveHillsUp3 180s linear forwards; /* Slowest for further depth effect */
    z-index: -1; /* Behind the second layer */
}
.hills {
    z-index: 2;  /* Highest, appears on top */
}

.hills.hills2 {
    z-index: 1;  /* Middle */
}

.hills.hills3 {
    z-index: 0;  /* Lowest, appears at the bottom */
}
@keyframes moveHillsUp {
    from { transform: translateY(0%); }
    to { transform: translateY(100%); } /* Move completely out of view */
}

@keyframes moveHillsUp2 {
    from { transform: translateY(0%); }
    to { transform: translateY(100%); }
}

@keyframes moveHillsUp3 {
    from { transform: translateY(0%); }
    to { transform: translateY(100%); }
}
#weather-container {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height */
    overflow: hidden; /* Prevents scrolling */
}

.clouds {
    position: absolute;
    top: 20%; /* Adjusted to position just above the first hill */
    left: 15%; /* Position to spread out the clouds */
    width: 250px; /* Reduced width for smaller cloud clusters */
    height: 125px; /* Reduced height for smaller cloud clusters */
    z-index: 0; /* Behind all other weather elements except hills */
}


.cloud-part {
    position: absolute;
    background-color: #fff;
    border-radius: 50%;
    width: 100px; /* Reduced width of each cloud part */
    height: 100px; /* Reduced height of each cloud part */
    background: radial-gradient(circle, #fff 0%, #f0f0f1 70%, #e0e0e1 100%);
}

/* Adjust positions to fit within the smaller container size */
.clouds .cloud-part:nth-child(1) {
    top: 15px;
    left: 10px;
}

.clouds .cloud-part:nth-child(2) {
    top: 25px;
    left: 75px;
}

.clouds .cloud-part:nth-child(3) {
    top: 5px;
    left: 140px;
}

.clouds.clouds2 {
    top: 10%; /* Slightly different vertical position for variety */
    left: 45%; /* Change starting positions for variety */
}

.clouds.clouds2 .cloud-part {
    width: 120px; /* Slightly larger parts for variety */
    height: 120px;
}

/* Different positions for parts in the second cloud for more randomness */
.clouds.clouds2 .cloud-part:nth-child(1) {
    top: 10px;
    left: 10px;
}

.clouds.clouds2 .cloud-part:nth-child(2) {
    top: 30px;
    left: 60px;
}

.clouds.clouds2 .cloud-part:nth-child(3) {
    top: 0px;
    left: 110px;
}
@media (max-width:600px){
  .clouds.clouds2{
    top:45% !important;
  }
}
.menu {
    position: absolute;
    bottom: 30%; /* Adjust based on the placement of your hills */
    left: 56%;
    transform: translateX(-50%); /* Center the menu on the page */
    z-index: 5; /* Higher than any other element */
    font-size: 5em; /* Increase font size for better visibility */
    color: #ffffff; /* White color for contrast */
    text-align: center;
    width: 100%; /* Full width to accommodate the menu */
    font-family: "Comic Neue", sans-serif; /* Playful font choice */
}

.menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-block; /* Center the list in the menu div */
}

.menu li {
    display: inline; /* Horizontal list */
}

.menu a {
    word-break:break-all;
    color: #ffffff; /* White text for visibility */
    text-decoration: none; /* No underlines */
    text-shadow: 2px 2px 3px #000; /* Enhance text shadow for better readability */
}

.menu a:hover {
    color: #c0c0c0; /* Light gray on hover for interaction feedback */
}

.menu{
  z-index:9999999;
}
.spider {
    top: 50%;
    -webkit-transform: scaleX(-1) rotate(270deg);
    transform: scaleX(-1) rotate(270deg);
    left: 120px;
    position: absolute;
    bottom: 0;
    right: 15px;
    width: 250px;
    height: auto;
}
.copied{
    display:none;
    opacity:0;
    background-color: white;
    opacity: 1;
    color: black;
    margin-left: 10px;
}
@media (max-width:800px){
    .spider {
    top: initial !important;
    width: 200px;
    bottom: 10vh;
}
  .menu {
    left:50%;
    width:100%;
    bottom: 35%;
  }
}
@media (max-width:1400px){
.menu {
    width: 50%;
}
.menu li{
    display: block;
}
}
@media (max-width:600px){
.menu {
    font-size:3.3em;
    width: 100%;
}
.itsy-name{
    font-size:18px;
}
}
@keyframes climbGutter {
    0% { bottom: 0; }
    100% { bottom: 100%; } /* Climb to the top of the barn */
}
#thefile {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
}
#soundToggle{
    width:50px;
}

#canvas {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 50px;
}
.itsy-name{
    margin-top:10px;
    font-size:26px;
    transform:none;
}
li.sound-menu-item{
    display:block;
}

audio {
    display:none;
  position: fixed;
  left: 10px;
  bottom: 10px;
  width: calc(100% - 20px);
}
audio,#canvas{
    z-index:999999;
}