body {
    background-color: #f0f0f0;
    font-family: 'Roboto', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.container {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 100%;
    transition: filter 0.3s;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

p {
    font-size: 1em;
    margin-bottom: 40px;
    color: #666;
    text-align: center;
}

form {
    display: flex;
    flex-direction: column;
}

label {
    font-size: 1em;
    margin-bottom: 5px;
    color: #333;
}

input, textarea {
    font-size: 1em;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    transition: border-color 0.3s;
}

input:focus, textarea:focus {
    border-color: #007bff;
    outline: none;
}

button {
    font-size: 1em;
    padding: 10px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #0056b3;
}

.invalid-feedback,
.empty-feedback {
  display: none;
}

.was-validated :placeholder-shown:invalid ~ .empty-feedback {
  display: block;
}

.was-validated :not(:placeholder-shown):invalid ~ .invalid-feedback {
  display: block;
}

.is-invalid,
.was-validated :invalid {
  border-color: #dc3545;
}

.invalid-feedback {
    color: #e74c3c;
    font-size: 0.875em;
    margin-top: -15px;
    margin-bottom: 15px;
    display: none; /* Hide by default */
}

input:invalid + .invalid-feedback,
textarea:invalid + .invalid-feedback {
    display: block; /* Show when invalid */
}

#result {
    text-align: center;
    margin-top: 20px;
    font-size: 1em;
}

.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.popup h2 {
    margin-bottom: 20px;
    color: #333;
}

.popup button {
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.popup button:hover {
    background-color: #0056b3;
}

.form-row {
    display: flex;
    justify-content: space-between;
}

.form-row > div {
    width: 48%;
}

.home-button {
    color: #000000; /* White text color */
    padding: 5px 20px; /* Add some padding */
    text-decoration: none; /* Remove underline */
    border-radius: 6px; /* Add rounded corners */
    position: fixed;
    top: 20px;
    right: 20px;
    transition: background-color 0.3s, color 0.3s;
  }
  
  .home-button i {
    font-size: 24px; /* Set icon size */
  }
  
  .home-button:hover {
    background-color: #2c2c2c; /* Darker green background color on hover */
    color: #ffffff;
    transition: background-color 0.3s, color 0.3s;
  }
