body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 20px;
  background-color: #f5f5f5;
}

h1 {
  color: #333;
  text-align: center;
  margin-bottom: 30px;
}

.gallery {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  padding: 20px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.gallery li {
  list-style: none;
  flex-shrink: 0;
}

.image {
  width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.image:hover {
  transform: scale(1.05);
}

.full-image-container {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 999;
  cursor: pointer;
}

.full-image-container.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.full-image {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.navigation-hint {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  background: rgba(0, 0, 0, 0.7);
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 14px;
}

#controls {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 30px 0;
  padding: 20px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#controls input {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
  width: 200px;
}

#controls button {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

#createBtn {
  background-color: #4caf50;
  color: white;
}

#createBtn:hover {
  background-color: #45a049;
}

#destroyBtn {
  background-color: #f44336;
  color: white;
}

#destroyBtn:hover {
  background-color: #da190b;
}

#boxes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 20px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  min-height: 100px;
}

.box {
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 14px;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.box:hover {
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .image {
    width: 250px;
    height: 150px;
  }

  #controls {
    flex-direction: column;
    align-items: center;
  }

  #controls input {
    width: 100%;
    max-width: 200px;
  }
}
