body {
  font-family: Arial, sans-serif;
  background: linear-gradient(45deg, #ff9a9e, #fad0c4, #fad0c4, #ff9a9e);
  background-size: 400% 400%;
  animation: gradientAnimation 15s ease infinite;
  color: #eee;
  margin: 10px; /* Corrected margin syntax */
  padding: 0;
  /* Add the following properties for the dark animation background */
  background-color: #000;
  opacity: 0.8;
}

@keyframes gradientAnimation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

nav {
  background-color: #222;
  color: #eee;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2);
  opacity: 80%;
  border-radius: 30px;
}

.logo {
  font-size: 18px;
  font-weight: bold;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

li {
  margin-left: 20px;
}

a {
  color: #888;
  text-decoration: none;
}

.main-content {
  padding: 25px;
  text-align: center;
}

h1 {
  font-size: 24px;
  margin-bottom: 20px;
  text-shadow: #000 2px 2px 10px;
}

input[type="text"] {
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #aaa;
  border-radius: 20px;
  box-sizing: border-box;
  width: 100%;
  background-color: rgba(
    255,
    255,
    255,
    0.5
  ); /* Add glass-like background color */
  backdrop-filter: blur(10px); /* Add blur effect */
}

@media screen and (min-width: 601px) {
  input[type="text"] {
    width: 75%;
    border-radius: 30px;
  }
}

@media screen and (min-width: 901px) {
  input[type="text"] {
    width: 50%;
    border-radius: 40px;
  }
}

@media screen and (min-width: 1201px) {
  input[type="text"] {
    width: 25%;
    border-radius: 50px;
  }
}

.button {
  background-color: #007bff;
  color: #fff;
  border: none;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  cursor: pointer;
  margin: 5px;
}

.button:hover {
  background-color: #0056b3;
  transform: scale(1.05);
}

.clear-button {
  background-color: #ccc;
  color: #333;
}

.clear-button:hover {
  background-color: #aaa;
  transform: scale(1.05);
}

.loader {
  border: 5px solid #f3f3f3;
  border-top: 5px solid #3498db;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 2s linear infinite;
  margin: 10px auto;
  display: none;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.result-box {
  background-color: rgba(
    255,
    255,
    255,
    0.5
  ); /* Add glass-like background color */
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 20px;
  margin-top: 20px;
  margin-left: 300px;
  margin-right: 300px;
  text-align: left;
  color: black;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
  backdrop-filter: blur(10px); /* Add blur effect */
}

.result-box.animate-in {
  opacity: 1;
  transform: translateY(0);
}

@media screen and (min-width: 320px) and (max-width: 430px) {
  .result-box {
    padding: 10px;
    margin-left: 10px;
    margin-right: 10px;
  }
}

@media screen and (min-width: 431px) and (max-width: 767px) {
  .result-box {
    padding: 15px;
    margin-left: 50px;
    margin-right: 50px;
  }
}

@media screen and (min-width: 768px) and (max-width: 1023px) {
  .result-box {
    padding: 20px;
    margin-left: 150px;
    margin-right: 150px;
  }
}

@media screen and (min-width: 1024px) {
  .result-box {
    padding: 20px;
    margin-left: 300px;
    margin-right: 300px;
  }
}

.credits {
  margin-top: 20px;
  font-size: 12px;
  color: #888;
}

.button,
.clear-button,
input[type="text"] {
  transition:
    background-color 0.3s,
    color 0.3s,
    border-color 0.3s,
    transform 0.3s;
}

.shape1 {
  position: absolute;
  width: 100px;
  height: 100px;
  background-color: #555;
  top: 50px;
  left: 50px;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.shape2 {
  position: absolute;
  width: 150px;
  height: 150px;
  background-color: #555;
  top: 200px;
  right: 100px;
  clip-path: circle(50% at 50% 50%);
}

.shape3 {
  position: absolute;
  width: 200px;
  height: 200px;
  background-color: #555;
  bottom: 100px;
  left: 100px;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}
