a {
  color: #4caf50; /* Green text color for links */
  text-decoration: none; /* Removes underline by default */
  transition: color 0.3s ease, text-decoration 0.3s ease; /* Smooth transition */
}

a:hover {
  color: #66bb6a; /* Lighter green on hover */
  text-decoration: underline; /* Underline on hover */
}

/* General Dark Mode */
body {
  background-color: #181818;
  color: #f0f0f0;
  font-family: Signika, Open Sans, Noto Sans, Roboto Sans, sans-serif;
  margin: 0;
  padding: 0;
}

p#header {
  max-width: 800px;
  margin: 40px auto -20px;
  padding: 0;
}

p#header img {
  width: 200px;
}

hr {
  border: 0;
  height: 1px;
  background: linear-gradient(to right, #f0f0f088,#ddd4);
}

/* Container styling */
.container {
  width: 90%;
  max-width: 800px;
  margin: 50px auto;
  padding: 20px;
  background-color: #202020;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
  border: 2px solid #2d2d2d88;
  animation: fade .25s ease .5s both;
}

/* Navbar styling */
.navbar {
  background-color: #292929;
  padding: 15px;
  text-align: center;
}

.navbar ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 30px;
}

.navbar li {
  display: inline;
}

.navbar a {
  color: #f0f0f0;
  text-decoration: none;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 4px;
  background-color: #51abb2;
  border: 1px solid #181818;
  transition: background-color 0.3s ease;
  white-space: nowrap; /* Prevents text wrapping */
}

.navbar a:hover {
  background-color: #32787d;
}

/* Responsive adjustments for mobile */
@media screen and (max-width: 768px) {
  .navbar ul {
    gap: 15px; /* Reduce gap between buttons */
    flex-wrap: wrap; /* Allow items to wrap if needed */
  }

  .navbar a {
    padding: 8px 15px; /* Reduce padding for smaller buttons */
    font-size: 0.9em; /* Slightly smaller font size */
  }
}

@media screen and (max-width: 480px) {
  .navbar ul {
    flex-direction: column; /* Stack buttons vertically */
    align-items: center;
  }

  .navbar li {
    display: block; /* Ensure each item takes full width */
    margin: 5px 0; /* Add vertical spacing */
  }

  .navbar a {
    display: block; /* Make links full-width */
    width: fit-content; /* Ensure button width fits content */
    margin: 0 auto; /* Center buttons */
  }
}

/* Footer */
.footer {
  background-color: #292929;
  text-align: center;
  padding: 15px;
  position: fixed;
  bottom: 0;
  width: 100%;
}

.footer p {
  color: #f0f0f0;
  font-size: 0.9em;
}

/* Form */
.form-group {
  margin-bottom: 20px;
}

textarea,
input[type="submit"] {
  width: 95%;
  padding: 15px;
  margin: 10px auto;
  border: none;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

textarea {
  background-color: #2d2d2d;
  color: #f0f0f0;
  height: 120px;
  border: 2px solid #51abb2;
  font-family: Signika, Open Sans, Segoe UI, Noto Sans, Roboto Sans, sans-serif;
  font-size: 1em;
  resize: vertical;
}

textarea:focus {
  outline: none;
  border: 2px solid #8c4444;
}

textarea:focus::placeholder {
  opacity: 0;
}

input[type="submit"] {
  background-color: #3f5b40;
  color: #fff;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  width: 35%; /* Reduces the width to 50% */
  display: block; /* Makes the button act like a block element */
  margin: 20px auto; /* Centers the button horizontally */
  padding: 15px; /* Keeps padding to maintain button height */
  border-radius: 8px;
}

input[type="submit"]:hover {
  background-color: #4b8e4d;
  box-shadow: 0 0 15px rgba(102, 187, 106, 0.6);
}

/* Results section */
.result {
  margin-top: 20px;
}

.result ul {
  list-style-type: none;
  padding: 0;
}

.result li {
  margin: 10px 0;
  padding: 15px;
  background-color: #2d2d2d;
  border: 1px solid #d32f2f;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  font-size: 1.1em;
}

.available {
  color: #4caf50;
  font-weight: bold;
}

.not-available {
  color: #f44336;
  font-weight: bold;
}

.result li.available {
  border-color: #4caf50; /* Green border for available domains */
}

/* Order button styling */
.button {
  padding: 10px 20px;
  background-color: #3f5b40;
  color: white;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  margin-left: 10px;
  font-weight: bold;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.button:hover {
  background-color: #66bb6a;
  color: white;
  box-shadow: 0 0 10px rgba(102, 187, 106, 0.5);
}

/* Info Boxes */
.info-boxes {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  gap: 20px;
}

.info-box {
  flex: 1;
  padding: 20px;
  background-color: #2d2d2d;
  border-radius: 8px;
  border: 2px solid #51abb2;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.info-box-title {
  font-weight: bold;
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 15px;
  border-bottom: 1px solid #51abb2;
  padding-bottom: 10px;
}

.info-box-content {
  font-size: 0.9em;
  line-height: 1.6;
  color: #f0f0f0;
}
/* Styles for the loading message */
#loadingMessage {
  display: none; /* Hidden by default */
  text-align: center;
  color: #f0f0f0;
  font-size: 1.2em;
  margin-top: 20px;
  padding: 10px;
  background-color: #2d2d2d;
  border: 1px solid #51abb2;
  border-radius: 8px;
}

/* Simple spinner animation */
.spinner {
  border: 4px solid #f0f0f0;
  border-top: 4px solid #4caf50;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  display: inline-block;
  vertical-align: middle;
  margin-right: 10px;
}

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

@keyframes fade {
  from {opacity:0}
  to {opacity:1}
}
