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

body {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background: #f7f7f7;
  color: #333;
  text-align: center;
  padding: 20px;
}

h1 {
  font-size: 2.5rem;
  color: #444;
  margin-bottom: 20px;
}

h2 {
  margin: 15px 0;
  font-size: 1.5rem;
  color: #222;
}

/* Step Sections */
.room-selection,
.image-selection,
.visualizer {
  margin: 25px auto;
  max-width: 900px;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.room-selection:hover,
.image-selection:hover,
.visualizer:hover {
  transform: translateY(-3px);
}

/* Room Options Buttons */
.room-options {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}

.room-options button {
  background: #4CAF50;
  color: white;
  border: none;
  padding: 12px 20px;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.room-options button:hover {
  background: #274ca8ff;
  transform: scale(1.05);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

/* ✅ Active State (When Pressed) */
.room-options button:active {
  background: #2e7d32; /* Darker green when clicked */
  transform: scale(0.97); /* Slight shrink for press effect */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}


/* Image Options */
.image-options {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 15px;
}

.selectable-image {
  width: 180px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border: 3px solid transparent;
}

.selectable-image:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  border-color: #4CAF50;
}

/* Visualizer */
.room-container {
  position: relative;
  display: inline-block;
  margin-top: 15px;
  border-radius: 10px;
  overflow: hidden;
}

.room-img,
.wall-mask {
  width: 100%;
  max-width: 700px;
  display: block;
  border-radius: 10px;
}

.wall-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.7;
  z-index: 2;
  transition: background-color 0.3s ease;
}

.wall-mask {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
}

/* Color Palette */
.palette {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  flex-direction: column;
  align-items: center;
}

.color-box {
  width: 50px;
  height: 50px;
  display: inline-block;
  margin: 10px;
  cursor: pointer;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.color-box:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

.palette button {
  display: inline-block;
  background: #333;
  color: #fff;
  padding: 12px 18px;
  margin-left: 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.palette button:hover {
  background: #000;
  transform: scale(1.05);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

.pickr {
  margin: 10px auto;
}

/* ✅ Responsive Design */
@media (max-width: 768px) {
  .room-options,
  .image-options {
    flex-direction: column;
    align-items: center;
  }

  .selectable-image {
    width: 100%;
    max-width: 280px;
  }
}
