/* Base layout */
html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #ffffff;
}

/* Full height for app container */
#app {
  width: 100%;
  height: 100%;
}

/* Game canvas (during gameplay) */
canvas {
  width: 100%;
  height: 100%;
  display: block;
  background: black;
  outline: none;
}

/* Splash screen */
#splash {
  background: url('./media/swish.jpg') no-repeat center center;
  background-size: cover;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5vh 10px;
  /* smaller vertical padding */
  box-sizing: border-box;
}

/* Game title */
.title {
  font-size: clamp(24px, 6vw, 48px);
  /* Responsive font size */
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  margin-bottom: 20px;
}

/* Version text */
.version-label {
  font-size: 14px;
  color: #cccccc;
  margin-bottom: 20px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

/* Dactyl image logo */
.splash-logo {
  width: 200px;
  max-width: 80%;
  height: auto;
  margin-bottom: 30px;
}

/* Sound toggle label */
.sound-label {
  font-size: 18px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #eeeeee;
}

/* Start button */
button.start-btn {
  margin-top: 10px;
  padding: 12px 24px;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid white;
  color: white;
  border-radius: 8px;
  transition: background 0.3s ease;
}

button.start-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Instructions */
.instruction {
  margin-top: 20px;
  font-size: 16px;
  color: white;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
  background: rgba(0, 0, 0, 0.4);
  padding: 6px 10px;
  border-radius: 6px;
  display: inline-block;
  max-width: 90%;
}

/* High score text */
.high-score {
  margin-top: 10px;
  font-size: 18px;
  font-weight: bold;
  color: #ffeb3b;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/*Creator credit*/
.creator-credit {
  /*position: absolute;*/
  bottom: 10px;
  font-size: 14px;
  color: #0d47a1;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* License icon style */
.license-icon {
  height: 1em; /* Matches text height */
  vertical-align: middle;
}

/* Remove link underline and preserve layout */
.license-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

/*Game Over screen*/
#game-over-screen {
  background: url('./media/swish.jpg') no-repeat center center;
  background-size: cover;
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5vh 10px;
  box-sizing: border-box;
}

#game-over-screen .title {
  font-size: clamp(28px, 6vw, 52px);
  color: white;
  margin-bottom: 25px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

#game-over-screen .final-score {
  font-size: 20px;
  color: white;
  margin-bottom: 10px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

#game-over-screen .high-score {
  font-size: 16px;
  color: #ffeb3b;
  margin-bottom: 30px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

#game-over-screen .high-score.record {
  font-weight: bold;
  color: #4caf50;
}