* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
}

body {
  background: linear-gradient(135deg, #2b2b2b, #1a1a1a);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 40px 20px;
}

.main-content {
  display: flex;
  gap: 40px;
  flex: 1;
  flex-wrap: wrap;
  justify-content: center;
}

/* 1. Calculator */
.calculator {
  background: #2c2f33;
  padding: 30px 40px;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  text-align: center;
  width: 100%;
  max-width: 380px;
}

.calculator h1 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #00ffff;
}

.calculator-input {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 25px;
}

.calculator-input input {
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  text-align: center;
  background: #40444b;
  color: #fff;
  transition: 0.3s;
}

.calculator-input input:focus {
  background: #50555e;
}

.calculator-operator {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.calculator-operator button {
  width: 45px;
  height: 45px;
  border: none;
  border-radius: 12px;
  font-size: 1.25rem;
  font-weight: bold;
  cursor: pointer;
  background: #00ffff;
  color: #222;
  transition: all 0.2s ease-in-out;
}

.calculator-operator button:hover {
  background: #00b3b3;
  transform: scale(1.05);
}

.calculator-operator h2 {
  margin: 0 auto;
  font-size: 1.5rem;
}

#result {
  margin-left: 15px;
  color: #00ffff;
  font-weight: bold;
  font-size: 1.5rem;
}

/* 2. Shopping */
.shopping {
  background: #2c2f33;
  padding: 25px 30px;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  text-align: center;
  width: 100%;
  max-width: 380px;
}

.shopping h1 {
  color: #00ffff;
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.input-section {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.input-section input {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 8px;
  background: #40444b;
  color: #fff;
}

.input-section button {
  background: #4caf50;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.input-section button:hover {
  background: #43a047;
}

#item-list {
  list-style: none;
  padding: 0;
}

#item-list li {
  background: #3a3d40;
  border: 1px solid #555;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
}

#item-list li button {
  background: #e74c3c;
  border: none;
  color: white;
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
}

#item-list li button:hover {
  background: #c0392b;
}

/* 3. Clock and Calendar */
.clock-content {
  background: #2c2f33;
  padding: 25px 30px;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  text-align: center;
  width: 100%;
  height: 100%;
  max-width: 380px;
}

.clock-content h1 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #00ffff;
}

#clock {
  font-size: 2.5rem;
  color: #00ffff;
  letter-spacing: 3px;
  font-weight: bold;
}

#date {
  font-size: 1.25rem;
  margin-top: 20px;
  color: #ffffff;
  opacity: 0.8;
}

/* 4. Quiz */
.quiz-content {
  background: #2c2f33;
  padding: 25px 30px;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  text-align: center;
  width: 100%;
  max-width: 380px;
}

.quiz-content h1 {
  font-size: 1.5rem;
  color: #00ffff;
  margin-bottom: 20px;
}

.question {
  font-size: 1.25rem;
  margin-bottom: 15px;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

button.option {
  background: #40444b;
  border: none;
  padding: 12px;
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  transition: 0.2s;
}

button.option:hover {
  background: #00ffff;
  color: #222;
}

#next-btn {
  margin-top: 20px;
  background: #00ffff;
  color: #222;
  border: none;
  padding: 12px 25px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.2s;
}

#next-btn:hover {
  background: #00b3b3;
}

#result-quiz {
  font-size: 1.25rem;
  font-weight: bold;
  color: #00ffff;
}