/* Importing the Courier Prime font */
@import url("https://fonts.googleapis.com/css2?family=Courier+Prime&display=swap");

body {
  font-family: "Courier Prime", monospace;
  display: block;
  margin: 0;
  background-color: #f0f0f0;
  overflow-y: scroll; /* Always show vertical scrollbar */
  padding: 0 10px; /* Add padding to prevent overflow issues */
}

.container {
  text-align: center;
  background: white;
  padding: 20px;
  margin: 90px auto 20px auto; /* Center the container */
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  width: 100%;
  box-sizing: border-box;
}

h1 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #333;
}

input {
  width: calc(100% - 20px); /* Adjust width to fit container */
  padding: 10px;
  margin: 10px 0;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 16px;
  box-sizing: border-box; /* Ensure padding and border are included in element's total width and height */
}

button {
  padding: 12px 20px;
  border: none;
  background-color: #007bff;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
  box-sizing: border-box;
}

button:hover {
  background-color: #0056b3;
}

#result {
  margin-top: 20px;
  font-size: 18px;
  padding: 15px;
  border-radius: 8px;
  display: none;
  box-sizing: border-box;
}

#result.success {
  background-color: #d4edda; /* Pale green */
  color: #155724;
  border: 1px solid #c3e6cb;
}

#result.error {
  background-color: #f8d7da; /* Pale red */
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.recommend {
  margin-top: 20px;
  font-size: 16px;
  text-align: center;
  max-width: 400px;
  width: 100%;
  padding: 15px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin: 0 auto; /* Center the recommend section */
  box-sizing: border-box;
}

.expandable {
  max-width: 400px;
  width: 100%;
  margin-top: 20px;
  margin: 0 auto; /* Center the expandable section */
  box-sizing: border-box;
}

.expandable-btn {
  width: 100%;
  padding: 10px 0;
  cursor: pointer;
  font-size: 16px;
  text-align: center;
  color: #007bff;
  background-color: transparent;
  border: none;
  outline: none;
}

.expandable-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background-color: white;
  padding: 0 15px;
  border-radius: 0 0 6px 6px;
  box-sizing: border-box;
}

.expandable-content p {
  margin: 15px 0;
}

#arrow {
  display: inline-block;
  transition: transform 0.3s;
}

.expanded #arrow {
  transform: rotate(180deg);
}

footer {
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
  color: #333;
}

footer a {
  color: #007bff;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Loading Spinner Styles */
.loading {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  display: none;
  margin: 20px auto; /* Center the loading spinner */
}

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

/* Responsive adjustments */
@media (max-width: 600px) {
  .container, .recommend, .expandable {
    padding: 15px;
  }



  h1 {
    font-size: 20px;
  }

  #result {
    font-size: 16px;
    padding: 10px;
  }
}
