
body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden; /* Prevents horizontal scrolling */
}

mainTitle {
  text-align: center;
  font-size: 2.5rem;
  margin-top: 20px;
}

.mainTitle{
  text-align: center;
}

header {
  background: #4caf50;
  color: white;
  padding: 2rem 1rem;
  text-align: center;
}

main {
  padding: 2rem;
  max-width: 800px;
  margin: 0 auto;
}


.auth-container {
  display: flex;             /* Use flexbox for layout */
  justify-content: center;   /* Horizontally center the items */
  align-items: center;       /* Vertically align items if needed */
  width: 100%;               /* Make sure it takes the full width */
  max-width: 1200px;         /* Limit the max-width if needed */
  padding: 20px;             /* Optional padding */
  margin: 0 auto;            /* Center the container */

}

.auth-container input, .auth-container button {
  margin: 10px;              /* Adds space between input fields and buttons */
  padding: 10px;             /* Padding inside the input fields and buttons */
}

.auth-container .login-form, .auth-container .register-form {
  display: flex;             /* Flexbox for the form layout */
  justify-content: center;   /* Center forms horizontally */
  align-items: center;       /* Center forms vertically */
  gap: 20px;                 /* Adds space between form elements */
}

h2 {
  text-align: center;        /* Center align heading */
  color: #2e7d32;
}




/* Rules Section */
.rules {
  background: #e8f5e9;
  padding: 1rem;
  border-left: 5px solid #4caf50;
}

.navButtons {
  margin: 10px auto; /* Centers the button horizontally */
  padding: 10px 20px;
  background-color: #194988;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  font-size: 1em;
}

.navButtons:hover {
  background-color: #2980b9;
}



.upload-button-container {
  display: block;             /* Use flexbox to align items horizontally */
  justify-content: space-between; /* Distribute the buttons with space between */
  text-align: center;
  align-items: center;       /* Vertically align buttons to the center */
  margin-top: 10px;          /* Optional: Adds space above the buttons */
  margin-left: 2rem;         /* Adds margin to the left of the button container */
}

.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  border-radius: 12px;
  width: 300px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  text-align: center;
}

.modal-content input {
  width: 90%;
  margin: 10px 0;
  padding: 8px;
}

.modal-content .error-message {
  color: red;
  font-size: 0.9em;
}

.close {
  float: right;
  font-size: 20px;
  cursor: pointer;
}


.login-message {
  color: #194988;
  margin-right: 2rem;
}

.welcome-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 120px;
  padding: 0 30px;
}

.img-wrapper {
  height: 150px;
  width: auto;
  overflow: hidden;
  border-radius: 25px;
}

.left-wrapper {
  clip-path: polygon(0 0, 90% 0, 85% 100%, 0% 100%);
}

.right-wrapper {
  clip-path: polygon(10% 0, 100% 0, 100% 100%, 15% 100%);
}

.welcome-img {
  height: 100%;
  width: auto;
  display: block;
}

.avatar-img {
  vertical-align: middle;
}
