/*
 * Styles for the Draw a Perfect Circle Game
 * Created by: Mohd Mahmodi
 * GitHub: https://github.com/MohdYahyaMahmodi/perfect-circle
 */

/* Reset default styles and set box-sizing */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Set full width and height for the body and html, with a dark theme */
body, html {
  height: 100%;
  width: 100%;
  overflow: hidden;
  font-family: 'Arial', sans-serif;
  background-color: #000;
  color: #fff;
}

/* Game area takes up the full viewport */
#gameArea {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Canvas covers the entire game area */
#canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Centered message display with a semi-transparent background and blur effect */
#message {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  text-align: center;
  pointer-events: none;
  padding: 20px;
  border-radius: 10px;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

/* Score board at the bottom of the screen */
#scoreBoard {
  position: absolute;
  bottom: 20px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-around;
  font-size: 18px;
  pointer-events: none;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  padding: 10px;
}

/* Utility class to hide elements */
.hidden {
  display: none !important;
}

/* Large font size for the percentage display */
#percentage {
  font-size: 64px;
  margin-bottom: 20px;
}

/* Italic style for feedback messages */
#feedback {
  font-style: italic;
  margin-bottom: 20px;
}

/* Styling for the GitHub link */
#githubLink {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 16px;
  color: #fff;
  text-decoration: none;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 5px 10px;
  border-radius: 5px;
}

/* Styling for the language selection dropdown */
#languageSelect {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 16px;
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
}

/* Styling for the high score display */
#highScoreDisplay {
  font-size: 24px;
  margin-bottom: 20px;
}