*{
    box-sizing: border-box;
}

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

.orbitron {
  font-family: "Orbitron", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

#touch-overlay {
  position: absolute;
  inset: 0;
  z-index: 10; /* above canvas */
  touch-action: none; /* prevent browser gestures */
  -webkit-tap-highlight-color: transparent; /* Removes blue tap highlight on mobile */
  user-select: none; /* Prevents selection highlight */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

#game-container {
  position:relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  user-select: none; /* disable text selection in general */
  -webkit-user-select: none; /* disable text selection in Safari / iOS */
  -webkit-touch-callout: none; /* disable long-press menu on iOS */
  -webkit-tap-highlight-color: transparent; /* remove blue/gray highlight */
  touch-action: none; /* disables default gestures like double-tap zoom */
}

#rotate-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 17, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.rotate-content {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(17, 17, 17, 0.95) 100%);
  border: 2px solid #00ff66;
  border-radius: 16px;
  padding: 40px 30px;
  max-width: 90%;
  width: 400px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 255, 102, 0.2), 
              0 0 40px rgba(0, 255, 102, 0.1);
  animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.rotate-icon {
  font-size: 64px;
  margin-bottom: 20px;
  animation: rotate 2s linear infinite;
  filter: drop-shadow(0 0 10px rgba(0, 255, 102, 0.5));
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.rotate-title {
  font-family: "Orbitron", sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 12px 0;
  text-shadow: 0 0 10px rgba(0, 255, 102, 0.5);
}

.rotate-message {
  font-family: "Orbitron", sans-serif;
  font-size: 16px;
  color: #dddddd;
  margin: 0 0 30px 0;
  line-height: 1.5;
}

#rotate-overlay button {
  margin-top: 0;
  padding: 12px 32px;
  border: 2px solid #00ff66;
  border-radius: 8px;
  background: rgba(0, 255, 102, 0.1);
  color: #00ff66;
  font-family: "Orbitron", sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

#rotate-overlay button:hover {
  background: #00ff66;
  color: #000000;
  box-shadow: 0 0 20px rgba(0, 255, 102, 0.6);
  transform: translateY(-2px);
}

#rotate-overlay button:active {
  transform: translateY(0);
  box-shadow: 0 0 10px rgba(0, 255, 102, 0.4);
}