body.dark-mode {
  background-color: #2d2d30;
  color: #dcdcdc;
  font-family: 'Segoe UI', sans-serif;
  font-size: 16px;
}

body.light-mode {
  background-color: #f9f9f9;
  color: #333333;
  font-family: 'Segoe UI', sans-serif;
  font-size: 16px;
}

input,
textarea {
  background-color: #252526;
  border: 2px solid #3f3f46;
  border-radius: 5px;
  padding: 8px;
  font-size: 16px;
  color: inherit;
  margin: 5px 0;
  width: 90%;
  box-sizing: border-box;
}

body.light-mode input,
body.light-mode textarea {
  background-color: #ffffff;
  border: 2px solid #cccccc;
}

button {
  background-color: #4a5b7d;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  font-weight: bold;
  min-width: 100px;
  color: #dcdcdc;
  cursor: pointer;
  margin: 5px;
}

body.light-mode button {
  background-color: #007acc;
  color: #ffffff;
}

button:hover {
  background-color: #5c6d8f;
}

button:active {
  background-color: #3a4b6d;
}

#calcGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

#calcGrid button {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: #dcdcdc;
  font-size: 1.2rem;
  padding: 10px;
  cursor: pointer;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  transition: background 0.3s ease, transform 0.2s ease;
}

#calcGrid button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.03);
}

#calcGrid button:active {
  transform: scale(0.98);
}

.page {
  padding: 20px;
}

.plot {
  width: 100%;
  height: 400px;
  margin-top: 20px;
}

.resultDisplay {
  background-color: #252526;
  border: 2px solid #3f3f46;
  border-radius: 5px;
  padding: 10px;
  font-family: Consolas, monospace;
  font-size: 14px;
  color: #dcdcdc;
  margin-top: 10px;
}

.modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: #2d2d30;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 300px;
  border-radius: 5px;
}

body.light-mode .modal-content {
  background-color: #f9f9f9;
  color: #333333;
}

.backButton {
  margin-top: 20px;
}

#helpme {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 2rem;
  text-align: center;
  margin: 30px auto;
  padding: 20px;
  border-radius: 10px;
  background: linear-gradient(270deg, #ff6b6b, #fbc531, #4cd137, #00a8ff);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientText 8s ease infinite, slideIn 1.5s ease-out;
}

@keyframes gradientText {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes slideIn {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

body {
  background: url('media/bg.jpg') no-repeat center center/cover;
  background-size: cover;
  display: flex;
  justify-content: center;
}

section {
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
  background: url('media/bg.jpg') no-repeat center center/cover;
  background-size: cover;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#loginPage {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  width: 350px;
  padding: 40px;
  text-align: center;
  color: #fff;
}

#loginPage h2 {
  margin-bottom: 20px;
  font-size: 1.8rem;
  font-weight: 600;
}

#loginPage input {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 15px;
  border: none;
  border-radius: 25px;
  outline: none;
  font-size: 1rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
}

#loginPage input::placeholder {
  color: #ddd;
}

#loginPage button {
  width: 100%;
  padding: 12px 15px;
  margin-top: 10px;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  background: #fff;
  color: #333;
  transition: background 0.3s ease;
}

#loginPage button:hover {
  background: #f0f0f0;
}

#loginPage p {
  margin-top: 15px;
  font-size: 0.9rem;
}

#functionInput {
  display: block;
}

domainStart {
  display: block;
}

domainEnd {
  display: block;
}

resolution {
  display: block;
}