* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: #f4f4f9;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

h1 {
  font-size: 3rem;
  margin-bottom: 30px;
  color: #333;
}

#game-container {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.color-btn {
  width: 100px;
  height: 100px;
  border-radius: 10px;
  margin: 10px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
}

#yashil {
  background-color: green;
}

#qizil {
  background-color: red;
}

#sariq {
  background-color: rgb(218, 218, 3);
}

#moviy {
  background-color: rgb(0, 183, 255);
}

.color-btn.active {
  transform: scale(1.1);
}

#game-status {
  margin-top: 20px;
  font-size: 1.2rem;
  color: #333;
}

#start-btn {
  margin-top: 20px;
  padding: 10px 20px;
  font-size: 1.2rem;
  background-color: #4caf50;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

#start-btn:hover {
  background-color: #45a049;
}

#status {
  font-weight: bold;
}

#level-message {
  font-size: 24px;
  font-weight: bold;
  color: green;
  text-align: center;
  margin-top: 20px;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  display: none;
}

#level-message.show {
  opacity: 1;
  display: block;
}

.my-text {
  font-size: 1.5rem;
  margin-top: 20px;
  color: #333;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  display: none;
}
.my-text.show {
  opacity: 1;
  display: block;
  transition: opacity 0.5s ease-in-out;
}

#custom-dialog {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
}

.dialog-content {
  background: white;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.dialog-content h2 {
  margin-bottom: 10px;
}

.dialog-content p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

#dialog-ok {
  background: #4caf50;
  color: white;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 5px;
  font-size: 1rem;
}

#dialog-ok:hover {
  background: #45a049;
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
    margin-bottom: 16px;
  }

  #game-container {
    flex-wrap: wrap;
    max-width: 220px;
  }

  .color-btn {
    width: 80px;
    height: 80px;
    margin: 8px;
  }

  #game-status {
    font-size: 1rem;
  }

  #start-btn {
    font-size: 1rem;
    padding: 8px 16px;
    margin-top: 12px;
  }

  .my-text {
    font-size: 1.1rem;
  }
}
