@font-face {
  font-family: ToryGraph;
  src: url(Fonts/Torygraph.otf);
}

body,
html {
  background-color: #111;
  width: 100%;
  height: 100%;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

#navbar {
  font-family: ToryGraph;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #000;
  padding: 15px 30px;
  display: flex;
  gap: 25px;
  align-items: center;
  z-index: 1000;
  border-bottom: 1px solid #444;
}

#navbar span {
  color: #fff;
  text-decoration: none;
  font-family: ToryGraph;
  font-size: 16px;
}

#navbar .active {
  color: #02ff12;
}

canvas {
  display: block;
  margin: auto;
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  image-rendering: optimizeSpeed;
  image-rendering: -moz-crisp-edges;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: optimize-contrast;
}

.navcar {
  background: linear-gradient(to right, #ffffff);
  padding: 15px 15px 15px;
  left: 0;
  display: flex;
  gap: 10px;
}

.navcar a {
  color: black;
  text-decoration: none;
  padding: 0 15px;
  font-size: 16px;
  display: inline-block;
}

#Corgi a {
  display: block;
  text-align: left;
  padding: 10px 0;
}

#Corgi img {
  width: 30%;
  display: block;
  margin: 0;
}

.navcar a:hover {
  text-decoration: underline;
  text-decoration-color: #00908a;
}

#Corgi {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #fff;
  z-index: 1000;
}

#Corgi hr {
  display: block;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 0;
  padding: 0;
}

.navcar a:hover {
  text-decoration: underline;
  text-decoration-color: #00908a;
  color: black;
}
#game-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#game-canvas {
  display: block;
  background-color: #000;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: optimize-contrast;
  max-width: 100%;
  max-height: calc(100% - 120px);
  touch-action: none;
}

#mobile-controls {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: rgba(0, 0, 0, 0.8);
  padding: 10px;
  justify-content: space-around;
  align-items: center;
}

.control-btn {
  background: rgba(2, 255, 18, 0.3);
  border: 2px solid #02ff12;
  border-radius: 10px;
  color: #02ff12;
  font-size: 24px;
  font-weight: bold;
  padding: 20px;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
  font-family: "Play", sans-serif;
}

.control-btn:active {
  background: rgba(2, 255, 18, 0.6);
  transform: scale(0.95);
}

.control-btn.shoot {
  background: rgba(255, 215, 0, 0.3);
  border-color: #ffd700;
  color: #ffd700;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  font-size: 20px;
}

.control-btn.shoot:active {
  background: rgba(255, 215, 0, 0.6);
}

.arrow-btn {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px), (max-height: 768px) {
  #mobile-controls {
    display: flex;
  }

  #game-canvas {
    max-height: calc(100% - 120px);
  }
}

@media (orientation: landscape) and (max-height: 500px) {
  #mobile-controls {
    height: 80px;
  }

  .control-btn {
    padding: 15px;
    font-size: 18px;
  }

  .arrow-btn {
    width: 60px;
    height: 60px;
  }

  .control-btn.shoot {
    width: 70px;
    height: 70px;
    font-size: 16px;
  }
}
#game-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#game-canvas {
  display: block;
  background-color: #000;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: optimize-contrast;
  max-width: 100%;
  max-height: calc(100% - 120px);
  touch-action: none;
}

#mobile-controls {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: rgba(0, 0, 0, 0.8);
  padding: 10px;
  justify-content: space-around;
  align-items: center;
}

.control-btn {
  background: rgba(2, 255, 18, 0.3);
  border: 2px solid #02ff12;
  border-radius: 10px;
  color: #02ff12;
  font-size: 24px;
  font-weight: bold;
  padding: 20px;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
  font-family: "Play", sans-serif;
}

.control-btn:active {
  background: rgba(2, 255, 18, 0.6);
  transform: scale(0.95);
}

.control-btn.shoot {
  background: rgba(255, 215, 0, 0.3);
  border-color: #ffd700;
  color: #ffd700;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  font-size: 20px;
}

.control-btn.shoot:active {
  background: rgba(255, 215, 0, 0.6);
}

.arrow-btn {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px), (max-height: 768px) {
  #mobile-controls {
    display: flex;
  }

  #game-canvas {
    max-height: calc(100% - 120px);
  }
}

@media (orientation: landscape) and (max-height: 500px) {
  #mobile-controls {
    height: 80px;
  }

  .control-btn {
    padding: 15px;
    font-size: 18px;
  }

  .arrow-btn {
    width: 60px;
    height: 60px;
  }

  .control-btn.shoot {
    width: 70px;
    height: 70px;
    font-size: 16px;
  }
}
