/* Reset some default styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.funnel-sans-bold {
  font-family: "Funnel Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
  align-items: center;
}
.funnel-sans-regular {
  font-family: "Funnel Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(rgba(15, 11, 11, 0.6), rgba(0, 0, 0, 0.6)), url('../img/dharmshala.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #333;
    min-height: 100vh;
    display: flex; /* Changed to flexbox */
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center items horizontally */
    padding: 20px;
}


/* Main container */
.container {
    margin-top:100px;
    max-width: 500px;
    width: 100%; /* Keep this for responsiveness within max-width */
    background-color: rgba(255, 255, 255, 0.4) ;
    padding: 30px 25px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    text-align: center;
    margin-bottom: 20px; /* Add margin to the bottom for spacing */
}

/* Headings */
h1.fade-in {
    font-size: 2rem;
    margin-bottom: 25px;
    color: #007bff;
    font-weight: 600;
}

h2 {
    font-size: 1.5rem;
    margin-top: 25px;
    margin-bottom: 15px;
    border-bottom: 2px solid #eee;
    padding-bottom: 8px;
    display: inline-block;
    color: #333;
}

/* Form styles */
.form-group {
    margin-bottom: 18px;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 1.2rem;
    font-family: "Funnel Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
}

input[type="text"],
input[type="date"] {
    width:100%;
    padding: 12px;
    font-size: 1rem;
    border-radius: 6px;
    border: 1px solid #ccc;
    transition: all 0.3s ease;
}

input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

/* Buttons */
button {
    margin-top: 12px;
    padding: 12px 24px;
    font-size: 1rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.button-primary {
    background-color: #007bff;
    color: white;
}

.button-primary:hover {
    background-color: #0056b3;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    transform: translateY(-2px);
}

.button-secondary {
    background-color: #28a745;
    color: white;
}

.button-secondary:hover {
    background-color: #218838;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    transform: translateY(-2px);
}

/* Animations */
.fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.slide-in-up {
    animation: slideInUp 0.8s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.hidden {
    display: none;
}

/* Notification styles */
#notificationContainer {
    position: fixed;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 550px;
    padding: 18px 30px;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    text-align: center;
    font-weight: 600;
    font-size: 1.15em;
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.notification-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.notification-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
    10%, 90% { transform: translateX(-53%); }
    20%, 80% { transform: translateX(-47%); }
    30%, 70% { transform: translateX(-52%); }
    40%, 60% { transform: translateX(-48%); }
    50% { transform: translateX(-50%); }
}

/* Responsive Styling */
@media (max-width: 768px) {
    .main-header h1 {
        font-size: 1.8rem;
    }

    h1.fade-in {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    .container {
        padding: 20px;
    }

    button {
        font-size: 0.95rem;
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .main-header h1 {
        font-size: 1.4rem;
    }

    h1.fade-in {
        font-size: 1.3rem;
    }

    h2 {
        font-size: 1.1rem;
    }

    .container {
        padding: 15px;
    }

    button {
        font-size: 0.9rem;
    }
}