/* General Reset and Global Styles */
html{
  margin: 0;
  padding: 0;
  /*height: 100%;*/
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  font-family: 'Arial', sans-serif;
  background-image: url('/static/pictures/engineer_pic.jpg'); /* Unified background image */
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

body {
  margin: 0;
  padding: 0;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  font-family: 'Arial', sans-serif;
}

/* Container Styling */
.container {
  text-align: center;
  background: rgba(255, 255, 255, 0.8); /* Transparent background for readability */
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  max-width: 400px; /* Specific max width */
  width: 90%; /* Adaptive width */
}

/* Headings */
h1 {
  font-size: 3em;
  color: #333;
  margin-bottom: 20px;
}

@media (max-width: 600px) {
  h1 {
      font-size: 2em; /* Smaller headings for mobile */
  }
}

/* Buttons */
button, .login-btn, .website-btn , .upp-btn, .nav-button{
  padding: 15px 30px;
  border: none;
  border-radius: 5px;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button, .login-btn, .website-btn , .upp-btn{
  display: table;
}

.nav-button{
  display: table-cell;
}

button:hover, .login-btn:hover, .website-btn:hover ,.upp-btn:hover , .nav-button:hover{
  background-color: #61ffe7;
}

.login-btn , .nav-button{
  background-color: #43b8c9;
  color: white;
  width: 100%;
  margin-top: 10px;
  width: -webkit-fill-available;
}

.website-btn {
  background-color: #43b8c9;
  color: white;
  display: block;
  margin: 20px auto;
}

.upp-btn {
  background-color: #4b1c97;
  color: white;
  width: 100%;
  margin-top: 10px;
}

/* Input Fields */
input[type="email"], input[type="password"], input[type="text"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

table {
  margin: 0 auto;
  border-collapse: collapse;
  background-color: white;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.2);
}

table th, table td {
  padding: 12px 15px;
  text-align: center;
  border-bottom: 1px solid #ddd;
}

table th {
  background-color: #4CAF50;
  color: white;
}

table tr:hover {
  background-color: #f5f5f5;
}

@media (max-width: 768px) {
table {
    width: 100%;
}
}


/* Form Group */
.form-group {
  margin-bottom: 15px;
  text-align: left;
}

label {
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
  text-align: right;
}

/* Alerts */
.alert {
  margin: 10px 0;
  padding: 10px;
  background-color: #ffcccc;
  color: #b30000;
  border-radius: 5px;
  text-align: center;
}

/* Posts Section */
#posts {
  margin: 20px;
}

#posts div {
  background-color: white;
  margin: 10px;
  padding: 15px;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Section Background Colors */
#home {
  background-color: #e0f7fa; /* Light Blue */
}

#about {
  background-color: #fce4ec; /* Light Pink */
}

/* Contact Section */
.contact-section {
  background-color: #ffffff;
  padding: 40px;
  max-width: 800px;
  margin: 5px auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

h3 {
  text-align: center;
  color: #333;
}

.contact-info {
  margin: 20px 0;
  text-align: center;
  color: #555;
}

.contact-info p {
  font-size: 1.2rem;
  margin: 10px 0;
}

.contact-info a {
  color: #007bff;
  text-decoration: none;
  font-weight: bold;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* Media Query for Smaller Screens */
@media (max-width: 600px) {
  .login-btn ,.nav-button {
      padding: 10px 20px;
      font-size: 16px;
  }
  .btn-generate, .reset-button {
    left: 5%;
}
  .website-btn {
      padding: 10px 20px;
      font-size: 16px;
  }

  .upp-btn {
      padding: 10px 20px;
      font-size: 16px;
  }

  .btn-generate, .reset-button {
    position: fixed;
    left: 2%;
    transform: translateY(-50%);
}


.reset-button:hover {
    background-color: #d32f2f;
}

.btn-btn-generate:hover
{
  background-color: #2fd376;
}

}


.highlight-row {
  background-color: yellow;
  transition: background-color 0.3s ease; /* Smooth transition */
}


.page-section {
  padding: 20px;
  margin: 20px 0;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.page-section .container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-section .main-content {
  position: relative;
  padding: 20px;
}

.page-section .nav-buttons {
  margin-bottom: 20px;
}

.page-section .nav-buttons a {
  margin: 0 10px;
}

.page-section .table {
  width: 100%;
  margin-top: 20px;
}

.page-section .table th, .page-section .table td {
  text-align: center;
  vertical-align: middle;
}

.page-section .btn-generate {
  display: inline-block;
  margin-bottom: 20px;
}

.page-section .highlight-row {
  background-color: #ffeb3b;
}

#loading-spinner {
  display: none; /* Hidden by default */
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
}

#loading-spinner img {
  width: 112%; /* Adjust size */
  
}