body {
  font-family: Arial, sans-serif;
  background-image: url("/assets/background.png");
  background-repeat: no-repeat;
  background-size: cover;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  position: relative;
  user-select: none;
}
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 99;
}
.logo{
  margin-bottom: 20px;
  text-align: center;
}
.logo img{
  max-width: 60%;
  object-fit: contain;
}

.container {
  width: 100%;
  max-width: 600px;
  padding: 40px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: inset -2px -1px 18px #7a7878;
  box-sizing: border-box;
  border: 2px solid black;
  z-index: 100;
}


h1 {
  text-align: center;
  margin-top: 0;
  margin-bottom: 20px;
  color: #333;
  font-weight: bold;
  font-size: 36px;
}

.form-group {
  margin-bottom: 30px;
}

label {
  display: block;
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 18px;
}

select {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 5px;
  background-color: #f9f9f9;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

select:focus {
  outline: none;
  background-color: #e0e0e0;
}

.puzzle {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 4% 2%;
}


.letter {
  width: 77px;
  height: 46px;
  text-align: center;
  line-height: 44px;
  margin-right: 12px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  background-color: #f9f9f9;
  color: #333;
  font-weight: bold;
  font-size: 24px;
  border-radius: 10px;
  box-shadow: inset -3px -4px 12px black;
}

.letter:hover {
  background-color: #e0e0e0;
}

.answer {
  min-height: 60px;
  border: 2px dashed #ccc;
  padding: 20px;
  margin-bottom: 20px;
  transition: background-color 0.3s ease;
  background-color: #f9f9f9;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  font-weight: bold;
  font-size: 20px;
}

.answer.valid {
  background-color: #e0f7e0;
}

.answer.invalid {
  background-color: #f7e0e0;
}

.message {
  margin-bottom: 20px;
  font-weight: bold;
  text-align: center;
  color: #333;
}

.buttons {
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
}

.button {
  padding: 12px 24px;
  background-color: #4caf50;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-right: 10px;
  font-size: 16px;
}

.button:last-child {
  margin-right: 0;
}

.button:hover {
  background-color: #45a049;
}

.button:active {
  background-color: #3d8b3d;
}

.score-container {
  margin-bottom: 20px;
  text-align: center;
}

.score-label {
  font-weight: bold;
}

.score-value {
  margin-left: 5px;
}

.new-game-button {
  display: flex;
  justify-content: center;
}

.new-game-button button {
  padding: 12px 24px;
  background-color: #2196f3;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-size: 16px;
}

.new-game-button button:hover {
  background-color: #1976d2;
}

.new-game-button button:active {
  background-color: #0d47a1;
}

.congrats-message {
  margin-top: 20px;
  text-align: center;
  font-weight: bold;
  color: #333;
  font-size: 18px;
}

.skip-info {
  margin-top: 10px;
  text-align: center;
  color: #777;
}
.clue-container{
  padding: 5px 15px;
  background: gainsboro;
  margin-bottom: 25px;
  border-radius: 10px;
  box-shadow: 3px 3px 3px black;
  user-select: none;
}

#wrong-message p{
  margin-top: 0;
  text-align: center;
  padding: 10px;
}
#wrong-message p span{
  padding: 10px;
  background: #00ffa1;
  border-radius: 10px;
}
#congratsMessage{
  background: lime;
  padding: 10px;
  border-radius: 10px;
  box-shadow: inset -5px -5px 16px #3e3b3b;
  margin-bottom: 15px;
}
@media (max-width: 600px) {
  h1 {
    font-size: 28px;
  }
  nav{
    bottom: 0;
    top: auto;
    border-radius: 10px 10px 0 0;
    border-bottom: none;
    
  }
}

/* progress bar CSS */
.level{
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #81818185;
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 15px;
}
.new-level{
  width: 85%;
}
.new-level p{
  margin: 0px 0px 5px 5px;
  color: #4a4a4a;
  font-size: 14px;
}
.current-level {
  background: wheat;
  width: 40px;
  height: 40px;
  text-align: center;
  line-height: 45px;
  font-size: 27px;
  border: 2px solid green;
  border-radius: 5px 15px;
  font-weight: 600;
  user-select: none;
}
.progress-bar {
  width: 100%;
  height: 12px;
  background-color: #f0f0f0;
  border-radius: 10px;
  margin: auto 0;
  overflow: hidden;
}

.progress {
  height: 100%;
  background-color: #4caf50;
  border-radius: 10px;
  width: 0;
  animation: fillProgress 1.5s ease-out forwards;
}

@keyframes fillProgress {
  0% {
    width: 0;
  }
  100% {
    width: var(--progress-value, 0%);
  }
}

.install{
  padding-top: 20px;
}
#install-button {
  cursor: pointer;
  margin: 0 auto;
  border: none;
  padding: 10px 20px;
  background: #03d6eb;
  border-radius: 5px;
  color: #4a4a4a;
  font-size: 20px;
  box-shadow: inset 1px -1px 8px 0px #d90303;
}

.language{
  text-align: right;
  padding-top: 20px;
}
.language button{
  background-color: #1976d2;
  color: white;
  padding: 4px 10px;
  border: 1px solid black;
  border-radius: 6px;
  cursor: pointer;
  transition: all ease 0.5s;
}
.language button:hover{
  background-color: #78d300;
  color: black;
}
