/* Global styles */
body {
  background-color: #f5f5f5;
  color: #333;
  font-family: Arial, sans-serif;
  text-align: center;
  margin: 0;
  padding: 0;
}

.container {
  text-align: center;
  max-width: 100%;
  padding: 30px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
  margin: 0 auto;
  box-sizing: border-box;
}

h1 {
  font-size: 30px;
  margin-bottom: 20px;
  color: #007BFF;
}

input {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-bottom: 20px;
  transition: transform 0.3s ease, margin-top 0.3s ease;
  box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
}

/* Animation for input focus */
input:focus {
  transform: scale(1.02);
  margin-top: 0px;
}

.button {
  display: inline-block;
  padding: 12px 20px;
  font-size: 18px;
  margin-top: 10px;
  text-decoration: none;
  color: #fff;
  background-color: #007BFF;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.2);
}

.button:hover {
  background-color: #0056b3;
  transform: scale(1.05);
}

/* Clear button styles */
.clear-button {
  background-color: #888;
  color: #fff;
}

.clear-button:hover {
  background-color: #555;
}

.result-box {
  background-color: #fff;
  border: 1px solid #ccc;
  padding: 20px;
  margin-top: 20px;
  text-align: left;
  border-radius: 10px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  max-height: 150px;
}

p {
  font-size: 18px;
  margin: 0;
  color: #007BFF;
}

a.button {
  background-color: #17A2B8;
  margin-left: 10px;
}

/* Updated Credits Styles */
.credits {
  margin-top: 20px;
  font-size: 14px;
  color: #777;
  text-align: center;
  background-color: #f5f5f5;
  padding: 10px;
}

.credits a {
  color: #007BFF;
  text-decoration: none;
  font-weight: bold;
}

/* Animation styles */
.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Add this CSS for the source link content box */
.source-link-content {
  background-color: #eee;
  padding: 10px;
  border-radius: 5px;
  max-height: 150px;
  overflow: auto;
}

/* Make the container and boxes responsive */
@media screen and (max-width: 768px) {
  .container {
    padding: 20px; /* Reduce padding for smaller screens */
  }

  /* Reduce font size for smaller screens */
  h1 {
    font-size: 24px;
  }

  input {
    font-size: 14px; /* Reduce input font size */
  }

  .button {
    font-size: 16px; /* Reduce button font size */
  }

  /* Adjust result boxes on smaller screens */
  .result-box {
    padding: 10px;
    margin-top: 10px;
  }

  p {
    font-size: 16px; /* Reduce paragraph font size */
  }

  /* Adjust credits font size on smaller screens */
  .credits {
    font-size: 12px;
  }
}
