@font-face {
  font-family: "gameFont";
  src: url(./fonts/DM_Serif_Display/DMSerifDisplay-Italic.ttf);
}

body {
  font-family: "gameFont";
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100svh;
  margin: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

body::-webkit-scrollbar {
  display: none;
}

canvas {
  width: 100%;
  height: auto;
  display: block;
  background-color: black;
  border: 4px solid rgba(0, 0, 0, 0.5);
  border-radius: 12px;
  box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.6);
}

strong {
  color: black;
}

.mobile-canvas {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}


.d-none {
  display: none;
}

.d-flex {
  display: flex;
}

.d-block {
  display: block;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  margin-bottom: 40px;
  z-index: 10;
}

.navbar button {
  border: none;
  border-radius: none;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
  outline: none;
  height: 80px;
  width: 120px;
  border-radius: 8px;
  cursor: pointer;
  background-color: rgba(251, 117, 79, 1);
  font-size: 18px;
  transition: transform 0.3s ease;
}

.navbar button:hover {
  transform: scale(1.1);
  background-color: sandybrown;
  background-color: rgba(230, 90, 60, 1);
}

.controls {
  margin-top: 40px;
  display: flex;
  gap: 80px;
  font-size: 20px;
  z-index: 10;
}

.control {
  width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: white;
  border-radius: 16px;
  box-shadow: 1px 1px 2px rgba(100, 100, 100, 0.3);
  color: white;
}

.control-item {
  background-color: rgba(251, 117, 79, 1);
  border-radius: 16px;
  box-shadow: 1px 1px 2px rgba(100, 100, 100, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 200px;
  height: 40px;
}

.control-icons {
  height: 28px;
  width: auto;
}

.margin-right-16 {
  margin-right: 16;
}

.game-area {
  position: relative;
  width: 720px;
  height: 480px;
}

.red-color {
  color:rgb(255, 40, 40);
}