/* General Body */
html, body {
    height: 100%; /* Make sure the page fills the entire viewport */
    margin: 0;
    padding: 0;
}

body {
    background-color: #e2e5e9;
    color: #333333;
    font-family: 'Verdana', sans-serif;
    background-image: url('background_web.png'); /* Default background image for larger screens */
    background-size: cover; /* Ensure the background image covers the entire page */
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Keeps the background fixed while scrolling */
}

/* Responsive Background for Mobile */
@media (max-width: 768px) {
    body {
        background-image: url('background_mobile.png'); /* Mobile-specific background */
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
        background-attachment: fixed; /* Ensures background stays fixed in mobile as well */
    }
}

/* Header */
header {
    background-color: rgba(31, 119, 180, 0.9);
    color: white;
    padding: 20px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    font-family: 'Verdana', sans-serif;
}

/* Main Content */
.main-content {
    margin: 0 auto;
    padding: 40px 20px;
    max-width: 800px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    font-family: 'Verdana', sans-serif;
}

/* Select Box Styling */
select {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    border: 1px solid #cccccc;
    font-size: 16px;
    background-color: #ffffff;
    font-family: 'Verdana', sans-serif;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

select:focus {
    border-color: #1f77b4;
    outline: none;
    box-shadow: 0 0 3px #1f77b4;
}

/* Button Styling */
button {
    background-color: #1f77b4;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s ease-in-out;
    margin: 10px 0;
    font-family: 'Verdana', sans-serif;
    box-sizing: border-box;
}

button:hover {
    background-color: #155a8a;
    transform: scale(1.05);
}

button:focus {
    outline: none;
    box-shadow: 0 0 5px #1f77b4;
}

/* Input Fields Styling */
input[type="text"],
input[type="file"],
textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    border: 1px solid #cccccc;
    font-size: 16px;
    background-color: #ffffff;
    font-family: 'Verdana', sans-serif;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

input[type="text"]:focus,
input[type="file"]:focus,
textarea:focus {
    border-color: #1f77b4;
    outline: none;
    box-shadow: 0 0 5px #1f77b4;
}

/* Text Area (for manual input) */
textarea {
    height: 150px;
}

/* Card Styling for Sections */
.card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
    font-family: 'Verdana', sans-serif;
}

.card:hover {
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

/* Container for Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Form Styling */
form {
    margin-top: 20px;
}

/* Link Styling */
a {
    color: #1f77b4;
    text-decoration: none;
    font-weight: bold;
    font-family: 'Verdana', sans-serif;
    transition: color 0.2s ease;
}

a:hover {
    text-decoration: underline;
    color: #155a8a;
}

/* Responsive Layout */
@media (max-width: 768px) {
    .main-content {
        padding: 20px;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    header {
        font-size: 20px;
    }
}

/* Loading Spinner */
#loading-spinner {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  display: none;
}

.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 2s linear infinite;
}

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