@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Inter", sans-serif;
}

body {
  max-width: 1440px;
  min-height: 100vh;
  position: relative;
  margin: auto;
  background-color: #f6f8f7;
  transition: background-color 0.3s ease;
}

.container {
  width: 100%;
  max-width: 450px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
  transition: all 0.3s ease;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header h1 {
  transition: color 0.3s ease;
}

.theme {
  /* width: 75px; */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.theme svg {
  width: 25px;
  cursor: pointer;
}

.theme .toggle {
  position: relative;
  width: 60px;
  height: 25px;
  background-color: #e5e7eb;
  border-radius: 100px;
  padding: 2.2px 5px 2.5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dark {
  transform: translateX(32px);
}

.theme .toggle-btn {
  width: 20px;
  height: 20px;
  border-radius: 100%;
  background-color: #fff;
  transition: all 0.3s ease;
  position: relative;
}

.disable {
  display: none;
}

#output {
  margin-block: 30px;
  font-size: 8rem;
  font-weight: bolder;
  text-align: center;
  color: #39e079;
}

.step-container {
  text-align: center;
}

.step-para {
  color: #666666;
  font-size: 14px;
  transition: color 0.3s ease;
}

#stepValue {
  width: 100%;
  background-color: #f6f8f7;
  color: black;
  text-align: center;
  border: 1px solid grey;
  border-radius: 8px;
  height: 44px;
  margin-block: 10px 16px;
  font-size: 18px;
  transition: all 0.3s ease;
}

.update {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
}

.update button {
  flex-grow: 1;
  border-radius: 8px;
  border: none;
  padding-block: 14px;
  cursor: pointer;
  font-weight: bolder;
  font-size: 18px;
  transition: all 0.3s ease;
}

.update button:nth-child(1) {
  background-color: #39e079;
  color: white;
}

.update button:nth-child(2) {
  background-color: #d7f9e4;
  color: #39e079;
}

.update button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#reset {
  width: 100%;
  padding-block: 12.5px;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bolder;
  background-color: #e5e7eb;
  transition: all 0.3s ease;
}

/* Dark Theme Styles */
.dark-theme {
  background-color: #1a1a1a;
}

.dark-theme .container {
  background-color: #2d2d2d;
  box-shadow: rgba(0, 0, 0, 0.3) 0px 8px 24px;
}

.dark-theme h1 {
  color: #ffffff;
}

.dark-theme #output {
  color: #39e079;
}

.dark-theme .step-para {
  color: #cccccc;
}

.dark-theme #stepValue {
  background-color: #1a1a1a;
  color: #ffffff;
  border: 1px solid #555;
}

.dark-theme .theme .toggle {
  background-color: #39e079;
}

.dark-theme .theme .toggle-btn {
  background-color: #ffffff;
}

.dark-theme .update button:nth-child(1) {
  background-color: #39e079;
  color: white;
}

.dark-theme .update button:nth-child(2) {
  background-color: #1a4a2a;
  color: #39e079;
}

.dark-theme .update button:hover {
  box-shadow: 0 4px 12px rgba(57, 224, 121, 0.3);
}

.dark-theme #reset {
  background-color: #555;
  color: #ffffff;
}

.dark-theme #reset:hover {
  background-color: #666;
}



@media (max-width: 600px) {
  .container {
    max-width: 350px;
  }
}

@media (max-width: 400px) {
  .container {
    max-width: 300px;
  }
}
