* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: white;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: Arial, Helvetica, sans-serif;

}

.game-container {
  text-align: center;
}

h1 {
  margin-bottom: 20px;
}

#puzzle-board {
  width: 360px;
  height: 360px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 3px;
  margin: 20px;



  border: 4px solid black;
}

.tile {
  width: 100%;
  height: 100%;
  cursor: pointer;
  background-image: url('img/logoarranged.png');
  background-size: 360px 360px;
  border-radius: 4px;
  transition: 0.2s ease;
}

.tile:hover {
  transform: scale(0.98);
}

:root {
  --empty-color: white;
}

.empty {
  background: var(--empty-color);
  opacity: 0.5;
  cursor: default;
}

button {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
}

#puzzle-logo {
  width: 20%;
  height: 20%;
  margin-bottom: 20px;
}

.game-container {
  display: none;

  width: 440px;

  flex-direction: column;
  align-items: center;
}

#start-screen {
  text-align: center;

  color: black;

}

#username {
  padding: 12px;
  width: 250px;
  margin-top: 20px;
  border-radius: 8px;
  border: 2px solid black;
  font-size: 16px;
}

#start-btn {
  display: block;
  margin: 20px auto;
  background-color: purple;
  color: white;
}

#shuffle-btn {
  background-color: black;
  color: white;
  display: block;
  margin: 0 auto;
}

#intro-text {
  margin-top: 20px;
  font-size: 20px;
  font-weight: bold;
  white-space: pre-line;
}



#win-message {
  margin-top: 20px;
  color: green;
  font-size: 24px;
  font-weight: bold;
  min-height: 60px;
}

@media (max-width: 600px) {

  body {
    padding: 20px;
  }

  .game-container {
    width: 100%;
  }

  #puzzle-board {
    width: 300px;
    height: 300px;
  }

  .tile {
    background-size: 300px 300px;
  }

  #puzzle-logo {
    width: 45%;
    height: auto;
  }

  h1 {
    font-size: 28px;
  }

  #intro-text {
    font-size: 16px;
    line-height: 1.5;
    padding: 0 10px;
  }

  #win-message {
    font-size: 18px;
    padding: 0 10px;
  }

  #username {
    width: 100%;
    max-width: 300px;
  }

  button {
    width: 100%;
    max-width: 300px;
  }

}