@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  
}

body {
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.calculator {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 20px;
  width: 350px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

#display {
  width: 100%;
  height: 70px;
  font-size: 1.4rem; /* Slightly smaller for long text */
  text-align: right;
  padding: 10px;
  margin-bottom: 15px;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}


.buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.btn {
  height: 65px;
  font-size: 1.3rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  background: linear-gradient(145deg, #3a3d40, #181818);
  color: #fff;
  transition: 0.3s;
}

.btn:hover {
  background: linear-gradient(145deg, #4b6cb7, #182848);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.operator {
  background: linear-gradient(145deg, #f7971e, #ffd200);
  color: #000;
}

.operator:hover {
  background: linear-gradient(145deg, #ffb347, #ffcc33);
}

.equal {
  background: linear-gradient(145deg, #00b09b, #96c93d);
}

.equal:hover {
  background: linear-gradient(145deg, #56ab2f, #a8e063);
}

.zero {
  grid-column: span 2;
}










body {
  background: radial-gradient(circle, #ff4b2b, #ff416c, #2c3e50);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  overflow: hidden;
  font-family: 'Poppins', sans-serif;
}

.calculator {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  padding: 20px;
  width: 360px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  text-align: center;
  animation: popUp 0.8s ease;
}

@keyframes popUp {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

#display {
  width: 100%;
  height: 70px;
  font-size: 1.8rem;
  text-align: right;
  padding: 10px;
  margin-bottom: 15px;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  overflow: hidden;
}

.buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.btn {
  height: 65px;
  font-size: 1.2rem;
  border: none;
  border-radius: 15px;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  transition: 0.2s;
}

.btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(255,255,255,0.6);
}

.operator {
  background: linear-gradient(135deg, #ff512f, #f09819);
}

.equal {
  background: linear-gradient(135deg, #00c6ff, #0072ff);
}

.zero {
  grid-column: span 2;
}

.fun-msg {
  font-size: 1rem;
  color: #f6e58d;
  animation: fadeMsg 1s ease-in-out;
}

@keyframes fadeMsg {
  from { opacity: 0; }
  to { opacity: 1; }
}
























body {
  background: radial-gradient(circle at bottom right, #1a2a6c, #355c7d, #6c5b7b);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  overflow: hidden;
  font-family: 'Poppins', sans-serif;
}

.calculator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(20, 30, 60, 0.7);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  padding: 20px;
  width: 360px;
  box-shadow: 0 0 20px 3px #5f66ff, 0 8px 32px rgba(0, 0, 0, 0.7);
  text-align: center;
  animation: float 3s ease-in-out infinite;
  transition: box-shadow 0.3s ease;
  color: #e0e8ff;
}

#display {
  width: 100%;
  height: 80px;
  font-size: 1.3rem;
  text-align: right;
  padding: 15px;
  margin-bottom: 15px;
  border-radius: 12px;
  background: rgba(40, 50, 90, 0.8);
  color: #cbd6f5;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: thin;
  box-shadow: inset 0 0 10px #a6b1ff;
}

.buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.btn {
  height: 65px;
  font-size: 1.2rem;
  border: none;
  border-radius: 15px;
  cursor: pointer;
  color: #e0e8ff;
  background: linear-gradient(135deg, #667eea, #764ba2);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.5);
  transition: 0.2s;
  user-select: none;
}

.btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 25px #9fa8da, 0 0 40px #9fa8da;
}

.operator {
  background: linear-gradient(135deg, #89f7fe, #66a6ff);
  color: #1a1f71;
  box-shadow: 0 5px 15px rgba(102, 166, 255, 0.7);
}

.operator:hover {
  box-shadow: 0 0 35px #7ec8ff;
  transform: scale(1.15);
}

.equal {
  background: linear-gradient(135deg, #43cea2, #185a9d);
  box-shadow: 0 5px 15px rgba(67, 206, 162, 0.7);
}

.equal:hover {
  box-shadow: 0 0 40px #3fefb5;
  transform: scale(1.15);
}

.zero {
  grid-column: span 2;
}

/* Emoji styles */
.emoji {
  font-size: 2.5rem;
  color: #90caf9;
  text-shadow: 0 0 8px #2196f3;
  opacity: 0.8;
}








.calculator {
  width: 450px;          /* increased width */
  padding: 30px;         /* more padding */
  border-radius: 25px;   /* slightly bigger rounded corners */
  box-shadow: 0 0 30px 5px #5f66ff, 0 10px 40px rgba(0, 0, 0, 0.7);
}

#display {
  height: 100px;         /* taller display */
  font-size: 2rem;       /* bigger font */
  padding: 20px;
  border-radius: 20px;
  box-shadow: inset 0 0 15px #a6b1ff;
}

.buttons {
  gap: 16px;             /* bigger gaps between buttons */
  grid-template-columns: repeat(4, 1fr);
}

.btn {
  height: 85px;          /* bigger buttons */
  font-size: 1.6rem;     /* larger text on buttons */
  border-radius: 20px;
  box-shadow: 0 7px 25px rgba(102, 126, 234, 0.7);
  transition: 0.3s;
}

.btn:hover {
  transform: scale(1.15);
  box-shadow: 0 0 35px #9fa8da, 0 0 50px #9fa8da;
}

.operator {
  box-shadow: 0 7px 25px rgba(102, 166, 255, 0.9);
}

.operator:hover {
  box-shadow: 0 0 45px #7ec8ff;
  transform: scale(1.2);
}

.equal {
  box-shadow: 0 7px 25px rgba(67, 206, 162, 0.9);
}

.equal:hover {
  box-shadow: 0 0 55px #3fefb5;
  transform: scale(1.2);
}


















