.button-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 20px;
}

#exit {
  opacity: 0;
}

button {
  background: #8f7a66;
  color: #f9f6f2;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s ease, transform 0.2s ease;
}

button:hover {
  background: #9c8b7a;
  transform: scale(1.05);
}

.dropdown-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  flex-wrap: wrap;
}

#myDropdown {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #f9f9f9;
  border: 2px solid #007bff;
  border-radius: 8px;
  padding: 10px 15px;
  font-size: 16px;
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 150px;
}

#myDropdown {
  background-image: linear-gradient(45deg, transparent 50%, #007bff 50%),
    linear-gradient(135deg, #007bff 50%, transparent 50%);
  background-position: calc(100% - 20px) center, calc(100% - 15px) center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

#myDropdown:hover {
  border-color: #0056b3;
  background-color: #eef5ff;
}

#myDropdown:focus {
  outline: none;
  box-shadow: 0 0 5px #007bff;
}

@media (max-width: 600px) {
  #myDropdown {
    width: 100%;
    font-size: 14px;
  }
}

@media (max-width<= 500px) {
  button {
    width: 100%;
    font-size: 18px;
  }

  .button-container {
    gap: 10px;
  }


  #game-container {
    padding: 10%;
    grid-template-columns: repeat(4, 50px);
    grid-gap: 5px 5px;
  }

  .tile {
    width: 20px;
    height: 20px;
  }
}

.content {
  font-family: "Arial", sans-serif;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
}

#game-container {

  align-items: center;
  justify-content: center;
  border-radius: 10px;
  display: grid;
  grid-template-columns: repeat(4, 100px);
  grid-gap: 5px;
}

.tile {
  width: 100px;
  height: 100px;
  background: #cdc1b4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: bold;
  color: #776e65;
  border-radius: 5px;
  transition: all 0.2s ease;
}

.tile[data-value="2"] {
  background: #eee4da;
}

.tile[data-value="4"] {
  background: #ede0c8;
}

.tile[data-value="8"] {
  background: #f2b179;
  color: #f9f6f2;
}

.tile[data-value="16"] {
  background: #f59563;
  color: #f9f6f2;
}

.tile[data-value="32"] {
  background: #f67c5f;
  color: #f9f6f2;
}

.tile[data-value="64"] {
  background: #f65e3b;
  color: #f9f6f2;
}

.tile[data-value="128"] {
  background: #edcf72;
  color: #f9f6f2;
}

.tile[data-value="256"] {
  background: #edcc61;
  color: #f9f6f2;
}

.tile[data-value="512"] {
  background: #edc850;
  color: #f9f6f2;
}

.tile[data-value="1024"] {
  background: #edc53f;
  color: #f9f6f2;
}

.tile[data-value="2048"] {
  background: #edc22e;
  color: #f9f6f2;
}

#score {
  font-size: 24px;
  margin-bottom: 20px;
  color: #776e65;
}

#restart-btn {
  background: #8f7a66;
  color: #f9f6f2;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}

#restart-btn:hover {
  background: #9c8b7a;
}