html, body {
    margin: 0;
    height: 100%;
    overflow: hidden; /* disable scrolling */
}

body {
    background: linear-gradient(to top, #cce9ff 60%, #87cefa 100%);
    font-family: system-ui, sans-serif;
    color: #333;
}

#hud {
    padding: 10px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 5;
}

#start-screen, #gameover-screen {
    text-align: center;
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255,255,255,0.9);
    padding: 20px 40px;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    z-index: 10;
}

button {
    padding: 10px 20px;
    font-size: 1rem;
    margin-top: 10px;
    border: none;
    border-radius: 10px;
    background: gold;
    color: #333;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

button:hover {
    background: darkgoldenrod;
    color: white;
}

#building {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 60px;
    position: relative;
    z-index: 2;
}

#game {
    display: block;
    background: #222;
    /* border: 3px solid gold; */
    border-radius: 8px 8px 0 0;
    z-index: 3;
}

/* Trapezoid tower with windows */
#tower {
    width: 600px;
    height: 1000px;
    position: relative;
    clip-path: polygon(0% 0%, 100% 0%, 90% 100%, 10% 100%);
    background-color: #888;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.3);
    overflow: hidden;
}

.window {
    position: absolute;
    height: 20px;
    background-color: #222;
}

#clouds{
    padding: 100px 0;
    background: #c9dbe9;
    background: -webkit-linear-gradient(top, #c9dbe9 0%, #fff 100%);
    background: -linear-gradient(top, #c9dbe9 0%, #fff 100%);
    background: -moz-linear-gradient(top, #c9dbe9 0%, #fff 100%);
}

.cloud-img {
    position: absolute;
    top: 20%; /* adjust as needed */
    left: -200px; /* starting point off-screen */
    width: 250px; 
    height: 150px;
    background: url("assets/03_Tcloud_symbol.png") no-repeat center;
    background-size: contain;
    opacity: 0.9; /* semi-transparent for realism */

    /* Use the same animation as CSS clouds */
    animation: moveclouds 22s linear infinite;
}

.cloud-img-2 {
    position: absolute;
    top: 20%; /* adjust as needed */
    left: -200px; /* starting point off-screen */
    width: 250px; 
    height: 150px;
    background: url("assets/09_Tcloud_symbol_rev.png") no-repeat center;
    background-size: contain;
    opacity: 0.9; /* semi-transparent for realism */

    /* Use the same animation as CSS clouds */
    animation: moveclouds 22s linear infinite;
}

.cloud-img-3 {
    position: absolute;
    top: 20%; /* adjust as needed */
    left: -200px; /* starting point off-screen */
    width: 250px; 
    height: 150px;
    background: url("assets/06_Tcloud_symbol_k.png") no-repeat center;
    background-size: contain;
    opacity: 0.9; /* semi-transparent for realism */

    /* Use the same animation as CSS clouds */
    animation: moveclouds 22s linear infinite;
}

.cloud {
    width: 200px; height: 60px;
    background: #fff;

    border-radius: 200px;
    -moz-border-radius: 200px;
    -webkit-border-radius: 200px;

    position: absolute; 
    top: 10%;
    left: -3%;
}

.cloud:before, .cloud:after {
    content: '';
    position: absolute; 
    background: #fff;
    width: 100px; height: 80px;
    position: absolute; top: -15px; left: 10px;

    border-radius: 100px;
    -moz-border-radius: 100px;
    -webkit-border-radius: 100px;

    -webkit-transform: rotate(30deg);
    transform: rotate(30deg);
    -moz-transform: rotate(30deg);
}

.cloud:after {
    width: 120px; height: 120px;
    top: -55px; left: auto; right: 15px;
}

.x1 {
    top: 50px;
    animation: moveclouds 40s linear infinite;
}

.x2 {
  top: 150px;
  opacity: 0.6;
  animation: moveclouds2 75s linear infinite;
}

.x3 {
  opacity: 0.8;
  top: 250px;
  animation: moveclouds3 60s linear infinite;
}

.x4 {
  opacity: 0.75;
  top: 75px;
  animation: moveclouds4 90s linear infinite;
}

.x5 {
  opacity: 0.8;
  top: 125px;
  animation: moveclouds5 69s linear infinite;
}

.x6 {
    /* top: 30%;
    transform: scale(0.7); */
    top: 100px;
    opacity: 0.7;
    animation: moveclouds6 54s linear infinite;
}

.x7 {
    /* top: 50%;
    transform: scale(0.9); */
    opacity: 0.8;
    top: 300px;
    animation: moveclouds7 30s linear infinite;
}

.x8 {
    /* top: 80%; */
    /* transform: scale(0.9); */
    opacity: 0.8;
    top: 200px;
    animation: moveclouds8 45s linear infinite;
}

@keyframes moveclouds {
  0%   { transform: translateX(100vw); }  /* start off right */
  100% { transform: translateX(-120vw); } /* move off left */
}
@keyframes moveclouds2 {
  0%   { transform: translateX(-90vw) scale(0.6); }
  100% { transform: translateX(100vw) scale(0.6); }
}
@keyframes moveclouds3 {
  0%   { transform: translateX(-90vw) scale(0.6); }
  100% { transform: translateX(100vw) scale(0.6); }
}
@keyframes moveclouds4 {
  0%   { transform: translateX(100vw) scale(0.75); }
  100% { transform: translateX(-120vw) scale(0.75); }
}
@keyframes moveclouds5 {
  0%   { transform: translateX(-90vw) scale(0.8); }
  100% { transform: translateX(100vw) scale(0.8); }
}
@keyframes moveclouds6 {
  0%   { transform: translateX(100vw) scale(0.3); }
  100% { transform: translateX(-120vw) scale(0.3); }
}
@keyframes moveclouds7 {
  0%   { transform: translateX(-90vw) scale(0.5); }
  100% { transform: translateX(100vw) scale(0.5); }
}
@keyframes moveclouds8 {
  0%   { transform: translateX(100vw) scale(0.4); }
  100% { transform: translateX(-120vw) scale(0.4); }
}

.bird{
    background-image: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/174479/bird-cells-new.svg');
    filter: invert(34%) sepia(55%) saturate(427%) hue-rotate(141deg) brightness(93%) contrast(91%);
    background-size: auto 100%;
    width: 88px;
    height: 125px;
    will-change: background-position;

    animation-name: fly-cycle;
    animation-timing-function: steps(10);
    animation-iteration-count: infinite;
}

.bird-one{
    animation-duration: 1s;
    animation-delay: -0.5s;
}
.bird-two{ 
    animation-duration: 0.9s; 
    animation-delay: -0.75s; 
}
.bird-three{
    animation-duration:1.25s;
    animation-delay: -0.25s
}
.bird-four{
    animation-duration: 1.1s;
    animation-delay: -0.5s;
}

.bird-container {
    position: absolute;
    top: 10%;
    left: -3%;
    transform: scale(0) translateX(-10vw);
    will-change: transform;

    animation-name: fly-right-one;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.bird-container-one{
    animation-duration: 15s;
    animation-delay: 0;
}

.bird-container-two{
    animation-duration: 16s;
    animation-delay: 1s;
}

.bird-container-three{
    animation-duration: 14.6s;
    animation-delay: 9.5s;
}

.bird-container-four {
    animation-duration: 16s;
    animation-delay: 10.25s;
}

@keyframes fly-cycle {

    100% {
        background-position: -900px 0;
    }

}

@keyframes fly-right-one {

    0% {
        transform: scale(0.3) translateX(-10vw);
    }

    10% {
        transform: translateY(2vh) translateX(10vw) scale(0.4);
    }

    20% {
        transform: translateY(0vh) translateX(30vw) scale(0.5);
    }

    30% {
        transform: translateY(4vh) translateX(50vw) scale(0.6);
    }

    40% {
        transform: translateY(2vh) translateX(70vw) scale(0.6);
    }

    50% {
        transform: translateY(0vh) translateX(90vw) scale(0.6);
    }

    60% {
        transform: translateY(0vh) translateX(110vw) scale(0.6);
    }

    100% {
        transform: translateY(0vh) translateX(110vw) scale(0.6);
    }

}

@keyframes fly-right-two {

    0% {
        transform: translateY(-2vh) translateX(-10vw) scale(0.5);
    }

    10% {
        transform: translateY(0vh) translateX(10vw) scale(0.4);
    }

    20% {
        transform: translateY(-4vh) translateX(30vw) scale(0.6);
    }

    30% {
        transform: translateY(1vh) translateX(50vw) scale(0.45);
    }

    40% {
        transform: translateY(-2.5vh) translateX(70vw) scale(0.5);
    }

    50% {
        transform: translateY(0vh) translateX(90vw) scale(0.45);
    }

    51% {
        transform: translateY(0vh) translateX(110vw) scale(0.45);
    }

    100% {
        transform: translateY(0vh) translateX(110vw) scale(0.45);
    }

}

.fire {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 64px;  /* Adjust size based on your window */
    height: 64px;
    background-image: url('assets/fire.gif');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
    z-index: 10;
}