/* styles.css */
body, html {
    user-select: none;
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10+ and Edge */
    -moz-user-select: none; /* Firefox */
    touch-action: none; /* Disable default touch actions */
}
html {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #f0f0f0;
    position: relative;
    height: 100vh;

}
body {
    margin: 0;
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    background-color:#66D0FF;
    overflow: hidden;
    position: relative;
}
body.hide-cursor {
    cursor: none;
}
#game-details {
    display: none;
}
#prompt {
    display: none;
    position: absolute;
    left: 50%;
    bottom: 40px;
    transform: translateX(-50%);
    z-index: 1000;
    transition: opacity 1s ease-out;
}
.prompt-arrow {
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 10px;
    border-radius: 10px;
    z-index: 1000;
    text-align: center;
    font-size: 25px;
    float: left;
    margin: 0 75px;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

#buttons {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 50%);
    display: flex;
    gap: 40px; 
    z-index: 10000;
}
#start,
#rescue {
    padding: 0px 20px;
    border-radius: 8px;
    background: #28a745;
    color: #fff;
    z-index: 10000;
    cursor: pointer;
    transition: all .3s ease-in-out;
    font-size: 24px;
    line-height: 54px;
    height: 54px;
    width: 170px;
    font-family: Helvetica, Arial, sans-serif;
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: opacity 1s ease-out, filter .3s;
}
#start:hover,
#rescue:hover {
    filter: brightness(1.2);
}
#rescue {
    display: none;
}
#bucket {
    width: 100px;
    height: 100px;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: left 0.1s ease-out, bottom 1s ease-out; 
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    color: white;
    font-weight: bold;
    z-index: 3
}
#bucket .points {
    z-index: 0;
}
#bucket .turkey {
    transition: bottom 1s ease-in-out;
}
#movable-div {
    clip-path: polygon(0 0, 100% 0, 85% 100%, 15% 100%);
    background-color: #3498db;
    height: inherit;
    width: inherit;

}
#movable-div-inner {
    width: 100%;
    height: 100%;
    position: relative;
    background: gray;
    overflow: none;
}
#bucket-handle {
    position: absolute;
    top: -60px;
    left: 0;
    right: 0;
    border-radius: 50px;
    border: 3px solid #333;
    height: 100px;

}
#container {
    position: absolute;
    width: 100%;
    height: 100%;
}
.falling-div {
    width: 80px;
    height: 80px;
    /* background-color: #49ff77; */
    position: absolute;
    top: 80px; /* Start in the clouds */
    transition: top 2s linear, opacity 1.5s ease-out; /* Adjust the duration as needed */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    color: white;
    font-family: Helvetica, Arial, sans-serif;
    font-weight: bold;
    border-radius: 40px;
    opacity: 1;
    z-index: 2;
    will-change: transform, top;
}
.landscape .falling-div {
    top: -100px;
}
.falling-div.bomb {
    width: 60px;
}
.points {
    font-family: Helvetica, Arial, sans-serif;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    color: #fff;
    background: var(--brown1);
    z-index: 10;
    border-radius: 15px;
    margin: 0 auto;
    left: 25px;
    top: 36px;
    position: absolute;
}
#score {
    font-family: Helvetica, Arial, sans-serif;
    font-size: 24px;
    font-weight: bold;
    position: absolute;
    bottom: 20px;
    text-align: center;
    width: 100%;
}
#timer-wrap {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #00000022;
    padding: 10px;
    border-radius: 8px;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    z-index: 20;

}
#timer {
    font-size: 24px;
    font-weight: bold;
    font-family: Helvetica, Arial, sans-serif;
}
#timer.flash {
    color: red;
    animation: flash 2s steps(1, end) infinite;
}

@keyframes flash {
    0%, 50% {
        opacity: 1;
    }
    25%, 75% {
        opacity: 0;
    }
}
#end-message {
    display: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: calc(50vh - 100px);
    font-size: 36px;
    font-weight: bold;
    color: #fff;
    text-align: center;
    font-family: Helvetica, Arial, sans-serif;
    opacity: 0;
    transition: opacity 2s ease-in;
}
#high-score {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 24px;
    font-weight: bold;
    font-family: Helvetica, Arial, sans-serif;
    background: #00000022;
    padding: 10px;
    border-radius: 8px;
    opacity: 0;
    transition: opacity 2s ease-in;
    z-index: 20;
}
.bomb {
    background: transparent !important;
    color: #000;
    font-size: 60px;
    z-index: 1
}
.exploding-bomb i {
    opacity: 0 !important;
}
@keyframes screenShake {
    0% { transform: translate(0px, 0px); }
    25% { transform: translate(5px, 5px); }
    50% { transform: translate(0px, 5px); }
    75% { transform: translate(-5px, 5px); }
    100% { transform: translate(0px, 0px); }
}

.screen-shake {
    animation: screenShake 1.5s ease-in-out;
}

@keyframes explosion {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(2); opacity: 0; }
}

.explosion {
    animation: explosion 0.5s ease-out;
}


@keyframes flashRed {
    0%, 100% { background-color: #f0f0f0; }
    50% { background-color: red; }
}

.flash-red,
.flash-red .bomb {
    animation: flashRed 1s ease-out 1; /* Flash red 1 times */
}
.flash-red .bomb {
    background-color: red !important;
}
.cloudrow {
    position: absolute;
    top: 50px;
    width: 3500px;
    left: -25%;
    z-index: 5;
}
.landscape .cloudrow {
    top: -100px;
}
.cloud { 
    float: left;
    width:350px;
    height:120px;
    margin-left: -50px;
    background:#ECEFF1;
    box-shadow: 10px 10px 18px rgba(0,0,0,0.2);
    border-radius:100px;
    z-index: 4;
    position: relative;
    transition: margin 1s ease-in-out;

} 
.cloud::after, .cloud::before{
    content:"";
    position:relative;
    display:inline-block;
    background:inherit;
    border-radius:inherit;
}
.cloud::after{
    width:100px;
    height:100px;
    top:-120px;
    left:-125px;
}
.cloud::before{
    width:180px;
    height:180px;
    top: -70px;
    left:130px;
}

.turkey {
    --brown1: #753;
    --brown2: #975;
    --orange1: orange;
    --orange2: darkorange;
    width: 80px;
    height: 80px;
    position: absolute;
    bottom: 100px;
  }
  
  .turkey div {
    position: absolute;
    box-sizing: border-box;
  }
  
  .body {
    width: 40%;
    height: 40%;
    background: var(--brown1);
    color: var(--brown1);
    border-radius: 50%;
    top: 40%;
    left: 50%;
    transform: translate(-50%, 0);
    box-shadow: 
      -4px 14.5px 0 -13px,
       4px 14.5px 0 -13px
  }
  
  .wing {
    height: 30%;
    width: 20%;
    background: var(--brown2);
    border-radius: 100% 0% 100% 5%;
    top: 41%;
    left: 23%;
    transform-origin: top right;
    transform: rotate(-10deg);
  }
  
  .wing + .wing {
    left: auto;
    right: 43%;
    transform: scaleX(-1) rotate(-10deg);
  }
  
  .head {
    width: 19%;
    height: 19%;
    border-radius: 50%;
    background: var(--brown2);
    top: 15%;
    left: 50%;
    transform: translate(-50%, 0);
    /* clip-path: polygon(0% 20%, 100% 20%, 100% 500%, 0% 500%); */
  }
  
  .head::before {
    content: "";
    display: block;
    position: absolute;
    width: 40%;
    height: 120%;
    background: var(--brown2);
    top: 80%;
    left: 50%;
    transform: translate(-50%, 0);
    border-radius: 0 0 100% 100% / 30%;
  }
  
  .eye {
    width: 10%;
    height: 10%;
    background: black;
    border-radius: 50%;
    top: 45%;
    left: 50%;
    transform: translate(-50%, 0) translate(-2.5px, 0);
    box-shadow: 5px 0
  }
  
  .beak {
    width: 4px;
    height: 3px;
    border-left: 4px solid var(--orange1);
    border-top: 1.5px solid transparent;
    border-bottom: 1.5px solid transparent;
    top: 60%;
    left: 50%;
  }
  
  .red {
    width: 2.5px;
    height: 6px;
    background: #d00;
    border-radius: 100% / 100% 0 100% 100%;
    top: 60%;
    left: 50%;
    transform: translate(-100%, 0);
  }
  
  .leg {
    width: 3%;
    height: 21%;
    background: var(--orange1);
    top: 79%;
    left: 50%;
    transform: translate(-50%, 0) translate(-4px, 0);
    border-radius: 5px / 50%;
    background-image:
      repeating-linear-gradient(transparent 0 10%, rgba(0,0,0,0.1) 0 11%);
  }
  
  .leg + .leg {
    transform: translate(-50%, 0) translate(4px, 0);
  }
  
  .leg::before,
  .leg::after {
    content: "";
    display: block;
    position: absolute;
    width: 80%;
    height: 35%;
    left: 50%;
    bottom: 0;
    background: var(--orange1);
    border-radius: 5px;
    transform-origin: 50% 0;
    transform: translate(-50%, 0) rotate(30deg);
  }
  .leg::after {
    transform: translate(-50%, 0) rotate(-30deg);
  }
  
  .hat-bottom {
    display: none;
    width: 35%;
    height: 8%;
    border-radius: 50%;
    background: black;
    top: 15%;
    left: 50%;
    transform: translate(-50%, 0);
  }
  
  .hat-top {
    display: none;
    width: 16%;
    height: 20%;
    background: black;
    box-shadow: inset 0 -7px #fff3;
    border-radius: 100% / 230% 230% 0% 0%;
    top: 0;
    left: 50%;
    transform: translate(-50%, 0);
  }
  
  .hat-top::before {
    content: "";
    display: block;
    position: absolute;
    width: 40%;
    height: 2px;
    border: 1px solid #772;
    border-radius: 1px;
    bottom: 3.25px;
    left: 50%;
    transform: translate(-50%, 0);
  }
  
  .tail {
    width: 10%;
    height: 40%;
    background: var(--orange1);
    border-radius: 100% / 30% 30% 170% 170%;
    transform-origin: 50% 100%;
    top: 30%;
    left: 50%;
    transform: translate(-50%, 0);
  }
  .exploding-tail {
    width: 10px;
    height: 30px;
    background: orange;
    border-radius: 100% / 30% 30% 170% 170%;
    position: absolute;
    bottom: 100px;
    left: 100px;
    z-index: 30;
    display: block;
  }
  .tail:nth-child(odd) {
    background: var(--orange1);
  }
  
  .tail:nth-child(even) {
    background: var(--orange2);
  }
  
  .tail:nth-child(1) { transform: translate(-50%, 0) rotate(0); }
  .tail:nth-child(2) { transform: translate(-50%, 0) rotate(17deg); }
  .tail:nth-child(3) { transform: translate(-50%, 0) rotate(34deg); }
  .tail:nth-child(4) { transform: translate(-50%, 0) rotate(51deg); }
  .tail:nth-child(5) { transform: translate(-50%, 0) rotate(68deg); }
  .tail:nth-child(6) { transform: translate(-50%, 0) rotate(85deg); }
  .tail:nth-child(7) { transform: translate(-50%, 0) rotate(102deg); }
  .tail:nth-child(8) { transform: translate(-50%, 0) rotate(-17deg); }
  .tail:nth-child(9) { transform: translate(-50%, 0) rotate(-34deg); }
  .tail:nth-child(10) { transform: translate(-50%, 0) rotate(-51deg); }
  .tail:nth-child(11) { transform: translate(-50%, 0) rotate(-68deg); }
  .tail:nth-child(12) { transform: translate(-50%, 0) rotate(-85deg); }
  .tail:nth-child(13) { transform: translate(-50%, 0) rotate(-102deg); }

.dead-turkey div,
.dead-turkey div::before {
    background: red !important;
}
.exploding-turkey {
    opacity: 0 !important;
}
#grass-container {
    width: 100%;
    position: absolute;
    bottom: 0px;
    display: flex;
    justify-content: space-around;
    align-items: flex-end; /* Align items at the bottom */

}
#grass-bed {
    height: 4px;
    background: green;
    width: 100%;
    position: absolute;
    z-index: 1;
}

.grass-blade {
    height: 30px;
    width: 3px; /* Increase width for thicker grass */
    background-color: green;
    position: relative;
    bottom: 0;
    transform-origin: bottom; /* Ensure the transform origin is at the bottom */
    margin: 0; /* Remove margin to pack blades closely */
    z-index: 2;

}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: red;
    opacity: 0;
    border-radius: 5px;
    will-change: transform, opacity;
}
@keyframes explode {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translate(var(--translate-x), var(--translate-y)) rotate(var(--rotate));
        opacity: 0;
    }
}

@keyframes flashRedScore {
    0%, 100% { color: #ffffff; }
    50% { color: red; }
}

.flash-red-score {
    animation: flashRedScore .33s ease-out 3; /* Flash red 3 times */
}
.turkey.exploded-turkey div,
.turkey.exploded-turkey div:before {
    background: black;
    border: 1px solid #555;
}
.turkey.angel-turkey div,
.turkey.angel-turkey div:before {
    background: white;
    border: 1px solid #ccc;
    bottom: 2000px;
    transition: bottom 4s ease-in;
}

#alien-saucer{
    position: absolute;
    transform: scale(1.4) translateX(-50%) rotate(0deg);
    bottom: calc(110vh);
    left: -500px;
    transition: bottom 3.5s ease-in-out, left 4s ease-in-out;
}
.top{
    height: 40px;
    width: 100px;
    background: black;
    border-radius: 50%;
    background-image: linear-gradient(to bottom, #B0B2B1, #5B5B5B, #5B5B5B);
    position: fixed;
    margin-top: -15px;
    margin-left: 80px;    
}
.mid{
    height: 60px;
    width: 260px;
    background: black;
    border-radius: 50%;
    position: relative;
    border-bottom: 5px solid #101010;
    border-top: 5px solid #8C8C8C;
}
.bottom{
    height: 60px;
    width: 260px;
    background: black;
    border-radius: 50%;
    background-image: linear-gradient(  #343434 ,#343434,#101010);
    position: relative;
    border-bottom: 5px solid #101010;
    border-top: 5px solid #8C8C8C;
    margin-top: -63px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.dot1{
    background: #00D3FF;
    border: 2px solid #3E807F;
    height: 8px;
    width: 13px;
    border-radius: 50%;
    position: absolute;
    margin-top: -25px;
    margin-left: -80px;     
}
.dot2{
    content:"";
    position: absolute;
    background: #00D3FF;
    border: 2px solid #3E807F;
    height: 8px;
    width: 13px;
    border-radius: 50%; 
    margin-top: -5px;
    margin-left: -200px;     
}
.dot3{
    content:"";
    position: absolute;
    background: #00D3FF;
    border: 2px solid #3E807F;
    height: 8px;
    width: 13px;
    border-radius: 50%; 
     margin-top: -25px;
    margin-left: 80px;       
}
.dot4{
    content:"";
    position: absolute;
    background: #00D3FF;
    border: 2px solid #3E807F;
    height: 8px;
    width: 13px;
    border-radius: 50%; 
    margin-top: -5px;
    margin-left: 200px;     
}
.focus{
    content:"";
    position: absolute;
    background: #74A4BB;
    border: 3px solid #3E807F;
    height: 15px;
    width: 70px;
    border-radius: 50%; 
    margin-top: 25px;
       
}
.focusLight{
    position: absolute;
    background-image: linear-gradient(to bottom, #fff, #74A4BB, #74A4BB);
    height: 37vh;
    width: 260px;
    margin-top: -25px;    
    clip-path: polygon(37% 0, 63% 0, 100% 100%, 0% 100%);
    filter: blur(50px);
    opacity: 0;
    transition: opacity .3s ease-in-out;
}
.focusLight1{
    position: absolute;
    background-image: linear-gradient(to bottom, #74A4BB, #ddd, #fff);
    height: 0;
    width: 260px;
    margin-top: -25px;    
    clip-path: polygon(45% 0, 55% 0, 61% 100%, 39% 100%);
    transition: height 2.5s ease-in-out;
}
.focusLight1 .turkey {
    bottom: -10px !important;
    transform: translateX(-50%) scale(.72);
    left: 50%;
}
.focusLight1 .turkey .wing {
    z-index: 10;
}
