Changed around line 1
+ :root {
+ --primary: #ff6b6b;
+ --secondary: #4ecdc4;
+ --accent: #ffe66d;
+ --background: #f7f7f7;
+ --text: #2d3436;
+ }
+
+ * {
+ margin: 0;
+ padding: 0;
+ box-sizing: border-box;
+ }
+
+ body {
+ font-family: 'Comic Sans MS', cursive, sans-serif;
+ background-color: var(--background);
+ min-height: 100vh;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ }
+
+ .calculator-container {
+ text-align: center;
+ padding: 2rem;
+ }
+
+ h1 {
+ color: var(--primary);
+ margin-bottom: 2rem;
+ font-size: 2.5rem;
+ text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
+ }
+
+ .calculator {
+ background: white;
+ border-radius: 20px;
+ padding: 1.5rem;
+ box-shadow: 0 10px 30px rgba(0,0,0,0.1);
+ max-width: 400px;
+ margin: 0 auto;
+ }
+
+ .display {
+ margin-bottom: 1.5rem;
+ }
+
+ #result {
+ width: 100%;
+ height: 60px;
+ font-size: 2rem;
+ text-align: right;
+ padding: 0.5rem;
+ border: 3px solid var(--secondary);
+ border-radius: 10px;
+ background: var(--background);
+ color: var(--text);
+ transition: all 0.3s ease;
+ }
+
+ .buttons {
+ display: grid;
+ grid-template-columns: repeat(4, 1fr);
+ gap: 10px;
+ }
+
+ button {
+ padding: 1rem;
+ font-size: 1.5rem;
+ border: none;
+ border-radius: 10px;
+ cursor: pointer;
+ transition: transform 0.2s, background-color 0.2s;
+ }
+
+ button:hover {
+ transform: scale(1.05);
+ }
+
+ .number {
+ background-color: var(--accent);
+ color: var(--text);
+ }
+
+ .operator {
+ background-color: var(--primary);
+ color: white;
+ }
+
+ .equals {
+ background-color: var(--secondary);
+ color: white;
+ }
+
+ .clear {
+ background-color: #ff9f43;
+ color: white;
+ }
+
+ .success {
+ animation: glow 0.5s ease-in-out;
+ }
+
+ @keyframes glow {
+ 0% { box-shadow: 0 0 5px rgba(78, 205, 196, 0.5); }
+ 50% { box-shadow: 0 0 20px rgba(78, 205, 196, 0.8); }
+ 100% { box-shadow: 0 0 5px rgba(78, 205, 196, 0.5); }
+ }
+
+ @media (max-width: 480px) {
+ .calculator {
+ padding: 1rem;
+ }
+
+ button {
+ padding: 0.8rem;
+ font-size: 1.2rem;
+ }
+
+ h1 {
+ font-size: 2rem;
+ }
+
+ #result {
+ font-size: 1.5rem;
+ height: 50px;
+ }
+ }