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

/* ===== Body styling ===== */
body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f9;
  color: #333;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
  text-align: center;
}

/* ===== Heading ===== */
h1 {
  margin-bottom: 10px;
  color: #222;
  font-size: 2rem;
}

/* ===== Paragraph ===== */
p {
  margin-bottom: 20px;
  font-size: 1.2rem;
}

/* ===== Bulb image ===== */
#bulb {
  width: 180px;
  max-width: 100%;
  margin: 20px 0;
  transition: transform 0.3s ease;
}

#bulb:hover {
  transform: scale(1.05);
}

/* ===== Buttons ===== */
button {
  padding: 12px 25px;
  margin: 8px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  border: none;
  border-radius: 8px;
  background-color: #4CAF50;
  color: white;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

button:hover {
  background-color: #45a049;
  transform: scale(1.05);
}

button:active {
  transform: scale(0.95);
}

/* Specific button colors */
#off {
  background-color: #f44336;
}

#off:hover {
  background-color: #d7382e;
}

/* ===== Responsive Design ===== */

/* Tablets */
@media (max-width: 768px) {
  h1 {
    font-size: 1.8rem;
  }

  p {
    font-size: 1.1rem;
  }

  #bulb {
    width: 150px;
  }

  button {
    padding: 10px 20px;
    font-size: 0.95rem;
  }
}

/* Mobile */
@media (max-width: 480px) {
  h1 {
    font-size: 1.5rem;
  }

  p {
    font-size: 1rem;
  }

  #bulb {
    width: 120px;
  }

  button {
    width: 100%;
    max-width: 250px;
    padding: 10px;
    font-size: 0.9rem;
  }
}
