 @font-face {
      font-family: 'whiteonblack'; /* Give your font a name */
      src: url('./assets/White\ On\ Black.ttf') format('woff2'),
           url('./assets/White\ On\ Black.ttf') format('woff');
      font-weight: normal;
      font-style: normal;
    }

body {
  background: radial-gradient(hsl(198, 100%, 72%),hsl(198, 100%, 30%));
  background-attachment: fixed;
  display: grid;
  justify-content: center;
  min-height: 100vh;
}

.title {
  font-size: 80px;
  font-family: whiteonblack;
  color: white;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
  margin: 0;
  text-align: center;
}

.timer {
  font-size: 70px;
  text-align: center;
  font-family: whiteonblack;
}

.control {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  gap: 20px;
}
.scoreFull {
  display: fixed;
  top: 0px;
  margin-top: 0px;
  font-family: whiteonblack;
  font-size: 30px;
}
.highScore {
  display: fixed;
  top: 30px;
  font-family: whiteonblack;
  font-size: 30px;
}

.plus,
.min {
  margin: 0px;
  cursor: pointer;
  border-radius: 50px;
  font-size: 100px;
  width: 100px;
  height: 100px;
  text-align: center;
  
}
.plus {
  background-color: rgb(144, 238, 144);
  box-shadow: 0 5px 0 rgb(0, 73, 0);
}
.min:active {
  box-shadow: 0 0 0;
  transform: translateY(5px);
}
.plus:active {
  box-shadow: 0 0 0;
  transform: translateY(5px);
}
.min {
  box-shadow: 0 5px 0 rgb(93, 0, 0);
  background-color: rgb(254, 100, 100);
}
.score-board {
  background-color: white;
  z-index: 100px;
}
.highScore {
  position: fixed;
  left: 100px;
  top: 35%;
}
.scoreFull {
  position: fixed;
  left: 100px;
  top: 30%;
}
.sniper-gun1 {
  position: fixed;
  left: 0px;
  bottom: 0px;
  transform: rotate(-26deg);
  width: 250px;
  height: auto;
  z-index: 10px;
  transition: transform 0.1s;
}

.sniper-gun1.shoot {
  animation: recoil1 0.1s ease-out;
}

.sniper-gun2 {
  position: fixed;
  right: 0px;
  bottom: 0px;
  transform: rotate(26deg) scaleX(-1);
  width: 250px;
  height: auto;
  z-index: 10px;
  transition: transform 0.1s;
}

.sniper-gun2.shoot {
  animation: recoil2 0.1s ease-out;
}

@keyframes recoil1 {
  0% { transform: rotate(-26deg) translateX(0); }
  50% { transform: rotate(-26deg) translateX(-15px); }
  100% { transform: rotate(-26deg) translateX(0); }
}

@keyframes recoil2 {
  0% { transform: rotate(26deg) scaleX(-1) translateX(0); }
  50% { transform: rotate(26deg) scaleX(-1) translateX(-15px); }
  100% { transform: rotate(26deg) scaleX(-1) translateX(0); }
}
.pos-warn{
  margin-bottom: 0px;
  font-size: 130px;
  border: 3px;
  color: rgb(64, 234, 64);
  position: fixed;
  left: 200px;
  bottom: 1cqmin;
  z-index: 15px;
  opacity: 0%;
  transform: rotate(-26deg);
}
.neg-warn{
  margin-bottom: 0px;
  font-size: 130px;
  border: 3px;
  color: rgb(234, 64, 64);
  position: fixed;
  right: 200px;
  bottom: 10px;
  z-index: 15px;
  opacity: 0%;
  transform: rotate(26deg);
}
.coin-amt-coin {
  position: fixed;
  left: 10px;
  top: 10px;
  z-index: 100;
  width: 60px;
}
.coin-amt-text {
  position: fixed;
  font-size: 50px;
  margin-top: 17px;
  left: 70px;
  top: 0px;
  font-weight: bold;
}
.coin {
  position: fixed;
  top: 100px;
  left: 100px;
  cursor: pointer;
 opacity: 100%;
 width: 100px;
 z-index: -1;
 opacity: 0;
}
.coin2 {
  position: fixed;
  bottom: 100px;
  left: 450px;
  cursor: pointer;
 opacity: 0;
 width: 100px;
 z-index: -1;
 
}
.coin3 {
  position: fixed;
  top: 300px;
  right: 300px;
  cursor: pointer;
 opacity: 0;
 width: 100px;
 z-index: -1;

}
.difficulty-control {
  display: flex;
  justify-content: space-evenly;
  margin: 10px;
}
.easy-control {
 background-color: lightgreen;
 font-size: 40px;
 cursor: pointer;
 box-shadow: 0 5px 0 rgb(0, 103, 0);
 padding: 10px 20px;
 border: none;
 display: inline-block;
 line-height: 1;
 height: 100px;
 border-radius: 10%;
}
.easy-control:active {
  box-shadow: 0 0 0;
  transform: translateY(5px);
}
.medium-control {
  background-color: orange;
  font-size: 40px;
  cursor: pointer;
  box-shadow: 0 5px 0 rgb(134, 73, 0);
  padding: 10px 20px;
  border: none;
  display: inline-block;
  line-height: 1;
  height: 100px;
  border-radius: 10%;
}
.medium-control:active {
  box-shadow: 0 0 0;
  transform: translateY(5px);
}
.hard-control {
 background-color: rgb(255, 48, 48); 
 font-size: 40px;
 cursor: pointer;
 box-shadow: 0 5px 0 rgb(113, 0, 0);
 padding: 10px 20px;
 border: none;
 display: inline-block;
 line-height: 1;
 height: 100px;
 border-radius: 10%;
}
.hard-control:active {
  box-shadow: 0 0 0;
  transform: translateY(5px);
}
.start {
  background-color: lightgreen;
  box-shadow: 0 5px 0 rgb(0, 103, 0);
  padding: 10px 20px;
  display: flex;
  justify-content: space-evenly;
  font-size: 30px;
  width: fit-content;
  font-size: 50px;
  border: none;
  border-radius: 10%;
  height: 80px;
}

.start:active {
  box-shadow: 0 0 0;
  transform: translateY(5px);
}

.switch-checkbox {
  display: none;
}


.inc-speed-text {
  font-family: whiteonblack;
  font-size: 20px;
  color: white;
  margin: 0;
  display: inline-block;
}

.setting-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 20px 0;
  padding: 15px;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
}

.switch-label {
  position: relative;
  width: 80px;
  height: 40px;
  background-color: #ccc;
  border-radius: 40px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.2);
}

.switch-checkbox:checked + .switch-label {
  background-color: #4CAF50;
}

.switch-toggle {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 32px;
  height: 32px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.switch-checkbox:checked + .switch-label .switch-toggle {
  transform: translateX(40px);
}



.popout-contentC {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  padding: 40px;
  width: 600px;
  transform: translate(-50%, -50%);
  flex-direction: column;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  border: 4px solid white;
  z-index: 10001;
}

.popout-contentC.active {
  display: flex;
  animation: popIn 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.popout-contentC h1 {
  font-family: whiteonblack;
  font-size: 60px;
  color: white;
  text-align: center;
  margin: 0 0 20px 0;
  text-shadow: 3px 3px 6px rgba(0,0,0,0.3);
}

.popout-contentC p {
  font-size: 20px;
  color: white;
  text-align: center;
  margin: 10px 0;
}

.close-popout {
  position: absolute;
  top: 15px;
  right: 20px;
  background: rgba(255,255,255,0.2);
  border: 2px solid white;
  color: white;
  font-size: 30px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-popout:hover {
  background: rgba(255,255,255,0.3);
  transform: rotate(90deg);
}

@keyframes popIn {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

.popout-buttonC {
  position: fixed;
  top: 100px;
  right: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: 3px solid white;
  padding: 15px 35px;
  font-size: 25px;
  font-weight: bold;
  font-family: whiteonblack;
  border-radius: 15px;
  cursor: pointer;
  box-shadow: 0 8px 15px rgba(102, 126, 234, 0.4);
  transition: all 0.3s;
  z-index: 1000;
}

.popout-buttonC:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 20px rgba(102, 126, 234, 0.6);
}

.popout-buttonC:active {
  transform: translateY(0);
  box-shadow: 0 4px 8px rgba(102, 126, 234, 0.4);
}

.range-desc {
  margin: 0px;
padding: 0px;
}
.help-me {
  width: 100px;
  cursor: pointer;
  position: fixed;
  top: 190px;
  right: 20px;
}
.help-pls-div {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10002;
}

.help-me:hover + .help-pls-div {
  display: block;
}

.help-pls {
  background-color: white;
  padding: 30px;
  width: 510px;
  font-size: 20px;
  border-radius: 15px;

}
.settings {
  width: 130px;
  position: fixed;
  right: 5px;
  top: 300px;
  cursor: pointer;
}

.settingsUIAA {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 40px;
  width: 400px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  z-index: 10001;
}

.settingsUI.active {
  display: block;
}

.close-settings {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 30px;
  cursor: pointer;
}

.settingsUI {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  padding: 40px;
  width: 600px;
  transform: translate(-50%, -50%);
  flex-direction: column;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  border: 4px solid white;
  z-index: 10001;
}

.settingsUI.active {
  display: flex;
  animation: popIn 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.settingsUI h1 {
  font-family: whiteonblack;
  font-size: 60px;
  color: white;
  text-align: center;
  margin: 0 0 20px 0;
  text-shadow: 3px 3px 6px rgba(0,0,0,0.3);
}

.settingsUI p {
  font-size: 20px;
  color: white;
  text-align: center;
  margin: 10px 0;
}

.close-settings {
  position: absolute;
  top: 15px;
  right: 20px;
  background: rgba(255,255,255,0.2);
  border: 2px solid white;
  color: white;
  font-size: 30px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-settings:hover {
  background: rgba(255,255,255,0.3);
  transform: rotate(90deg);
}

@keyframes popIn {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

.popout-buttonC {
  position: fixed;
  top: 100px;
  right: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: 3px solid white;
  padding: 15px 35px;
  font-size: 25px;
  font-weight: bold;
  font-family: whiteonblack;
  border-radius: 15px;
  cursor: pointer;
  box-shadow: 0 8px 15px rgba(102, 126, 234, 0.4);
  transition: all 0.3s;
  z-index: 1000;
}

.popout-buttonC:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 20px rgba(102, 126, 234, 0.6);
}

.popout-buttonC:active {
  transform: translateY(0);
  box-shadow: 0 4px 8px rgba(102, 126, 234, 0.4);
}
.range-desc {
  font-size: 30px;
}

.game-over-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 10003;
  animation: fadeIn 0.3s ease-out;
}

.game-over-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-over-content {
  background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
  padding: 50px 60px;
  border-radius: 25px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(255, 65, 108, 0.6);
  border: 5px solid white;
  animation: gameOverPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: relative;
}

.game-over-title {
  font-family: whiteonblack;
  font-size: 80px;
  color: white;
  margin: 0 0 30px 0;
  text-shadow: 4px 4px 8px rgba(0,0,0,0.5);
  animation: shake 0.5s ease-in-out;
}

.stats-container {
  display: flex;
  gap: 40px;
  justify-content: center;
  margin: 30px 0;
}

.stat-item {
  background: rgba(255,255,255,0.2);
  padding: 20px 40px;
  border-radius: 15px;
  min-width: 180px;
  animation: slideUp 0.6s ease-out;
}

.stat-item.best {
  background: rgba(255,215,0,0.3);
  border: 2px solid gold;
  animation: slideUp 0.6s ease-out 0.2s both, pulse 2s ease-in-out infinite 1s;
}

.stat-label {
  font-size: 16px;
  color: rgba(255,255,255,0.8);
  margin: 0 0 10px 0;
  font-weight: bold;
}

.stat-value {
  font-family: whiteonblack;
  font-size: 48px;
  color: white;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.motivation-text {
  font-size: 24px;
  color: white;
  margin: 25px 0;
  font-weight: bold;
  animation: fadeIn 1s ease-out 0.5s both;
}

.retry-button {
  background: white;
  color: #ff416c;
  border: none;
  padding: 18px 50px;
  font-size: 32px;
  font-family: whiteonblack;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  transition: all 0.3s;
  animation: slideUp 0.6s ease-out 0.4s both;
  margin: 10px 0;
}

.retry-button:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}

.retry-button:active {
  transform: translateY(-2px) scale(1.02);
}

.taunt-text {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin: 15px 0 0 0;
  font-style: italic;
  animation: fadeIn 1.5s ease-out 1s both;
}

.close-game-over {
  position: absolute;
  top: 15px;
  right: 20px;
  background: rgba(255,255,255,0.2);
  border: 2px solid white;
  color: white;
  font-size: 30px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-game-over:hover {
  background: rgba(255,255,255,0.3);
  transform: rotate(90deg);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes gameOverPop {
  0% {
    transform: scale(0.3) rotate(-5deg);
    opacity: 0;
  }
  70% {
    transform: scale(1.1) rotate(2deg);
  }
  100% {
    transform: scale(1) rotate(0);
    opacity: 1;
  }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px) rotate(-2deg); }
  75% { transform: translateX(10px) rotate(2deg); }
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Luke Cooper ;)