body {
  font-family: Arial, sans-serif;
  background:#0e0e10;
  margin: 0;
  padding: 0;
  text-align: center;
}

header {
  background: #0e0e10;
  color: white;
  padding: 1rem 0;
}

.preview {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000;
  padding: 1rem;
  position: relative;
}

.preview img {
  max-width: 90%;
  max-height: 400px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}

.gallery {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 2rem;
}

.wallpaper-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  width: 300px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.wallpaper-card img {
  width: 100%;
  height: auto;
  cursor: pointer;
}

.actions {
  padding: 1rem;
}

.stars {
  font-size: 1.5rem;
  color: #ccc;
  cursor: pointer;
}

.stars span.active {
  color: gold;
}

button {
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  border: none;
  background: #007bff;
  color: white;
  border-radius: 4px;
  cursor: pointer;
}

button:hover {
  background: #0056b3;
}

.share {
  margin-top: 0.5rem;
  position: relative;
}

.share-menu {
  position: absolute;
  top: 20px;
  left: 0;
  display: none;
  background: white;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  z-index: 100;
}

.share-menu a {
  margin: 0 5px;
  font-size: 1.2rem;
  color: #333;
}

.share-icons {
  margin-top: 0.5rem;
}

.share-icons a {
  margin: 0 5px;
  font-size: 1.2rem;
  color: #555;
  text-decoration: none;
}

.share-icons a:hover {
  color: #000;
}

#preview {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#preview img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(255, 255, 255, 0.2);
}

#closePreview {
  position: absolute;
  top: 20px;
  right: 30px;
  background: #fff;
  color: #333;
  border: none;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
}


