/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  /* Body / Overall Page */
  body {
    font-family: Arial, sans-serif;
    background-color: #f2f2f2; 
    color: #000000;            
    line-height: 1.6;
    margin: 0;
    padding: 0;
    /* display: flex; */
    flex-direction: column; 
    justify-content: center; 
    align-items: center;     
    min-height: 100vh;      
}
  

.indented-paragraphs {
  text-indent: 25px;
}

  /* Headings */
h1, h2, h3, h5 {
  color: #000000;
  margin-bottom: 1rem;
}

/* Links */
a {
  color: #000000; 
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Main Container Spacing */
.container {
  width: 90%;
  max-width: 800px;
  margin: 2rem auto;
  padding: 1rem;
  background-color: #1f1f1f;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 
}
  
  /* Form Container */
  form {
    display: flex;
    flex-wrap: wrap; 
    justify-content: space-between; 
    gap: 1rem; 
    width: 100%; 
    max-width: 1200px; 
  }
  form label {
    margin: 0.5rem 0 0.2rem 0;
    font-weight: bold;
  }
  form input[type="text"],
  form input[type="url"],
  form input[type="file"],
  form input[type="password"] {
    padding: 0.2rem;
    border: 1px solid #333;
    border-radius: 3px;
    background-color: #f2f2f2; 
    color: #000000;
  }

.btn, 
button, 
input[type="submit"], 
form button[type="submit"] {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    background-color: #4CAF50;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.btn:hover, 
button:hover, 
input[type="submit"]:hover, 
form button[type="submit"]:hover {
    background-color: #388e3c;
    color: #fff;
}

.btn:active, 
button:active, 
input[type="submit"]:active, 
form button[type="submit"]:active {
    background-color: #256029;
}
  
  /* Table */
  table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
  }
  table thead {
    background-color: #f2f2f2;
  }
  table thead th {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 2px solid #444;
  }
  table tbody td {
    padding: 0.75rem;
    border-bottom: 1px solid #333;
  }
  tbody tr:hover {
    background-color: #ebebeb;
  }
  tbody tr:hover .remove-button:hover{
    background-color: #cc3636;
  }
  
  /* Fieldset Styling */
  fieldset {
    box-shadow: 4px 4px 2px 1px rgba(0, 0, 255, 0.2);    
    flex: 1; 
    min-width: 300px; 
    max-width: 800px;
    border: 1px solid #444;
    border-radius: 5px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    background-color: whitesmoke;
  }

  /* Legend Styling */
  legend {
    font-size: 1.2rem;
    font-weight: bold;
    color: rgb(32, 18, 44);
    padding: 0 0.5rem;
  }
  
  /* Utility classes */
  .text-center {
    text-align: center;
  }
  .mt-2 {
    margin-top: 1rem;
  }
  .mt-4 {
    margin-top: 2rem;
  }

  /* Section Titles */
  .details-container h2 {
    color: rgb(76, 65, 71);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    border-bottom: 2px solid #444;
    padding-bottom: 0.5rem;
  }

  /* Horizontal Line Styling */
  hr {
    border: 0;
    height: 1px;
    background: #444;
    margin: 1.5rem 0;
  }

  /* Grant Details Grid */
.grant-details-fieldset {
  min-width: 1200px
}
@media (max-width: 768px) {
  .grant-details-fieldset {
    min-width: 400px;
  }
}
@media (min-width: 1200px) {
  .grant-details-fieldset {
    min-width: 600px;
  }
}

  .grant-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 1rem; 
}
.grant-details-grid div {
  display: flex;
  flex-direction: column;

}
/* Contact Information Grid */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem; 
}

.contact-info-grid div {
    display: flex;
    flex-direction: column; 
}

/* Form Actions (Save Changes Button) */
.form-actions {
    display: flex;
    justify-content: center; 
    margin-top: 1rem;
}


/* Decision Matrix Styles */
.decision-matrix-score {
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    display: inline-block;
    text-align: center;
}

.decision-matrix-score.black {
    background-color: black;
}

.decision-matrix-score.darkred {
    background-color: darkred;
}

.decision-matrix-score.darkorange {
    background-color: darkorange;
}

.decision-matrix-score.green {
    background-color: green;
}

.decision-matrix-score.limegreen {
    background-color: limegreen;
}

select {
    padding: 0.2rem;
    border: 1px solid #333;
    border-radius: 3px;
    background-color: #f2f2f2; 
    color: #000000;
    width: 100%;
    max-width: 200px; 
    box-sizing: border-box;;
}
/* Responsive Design for Larger Screens */
@media (min-width: 769px) {
  body {
      /* display: flex;  */
      flex-direction: column; 
      justify-content: center; 
      align-items: center; 
      padding: 1rem; 
  }

  .container {
      margin: 2rem auto; 
      max-width: 1200px; 
  }
}


/* Responsive Design for Mobile */
@media (max-width: 768px) {
  body {
      justify-content: flex-start; 
      padding: 1rem; 
  }

  .container {
      margin: 1rem auto; 
  }
}

  /* Navigation Bar */
.navbar {
  /* border-radius: 5%; */
  background-color: #f2f2f2;
  padding-right: 15px;
  padding-left: 15px;
  padding: 1rem;
  box-sizing: border-box;
  top: 0;
  left:0;
  z-index: 1000;
}
.navdiv {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* a.logo {
  font-size: 35px;
  text-decoration: none;
  color: inherit;
  
} */

.logo {
  font-size: 35px;
  font-weight: 600;
  cursor: pointer;
  transition: 5ms;
  transition: color 0.3s ease;
  left: 0;
}

.logo:hover {
  color: #a3a3a3;
  /* text-shadow:rgb(248, 220, 110) 1px 0 4px; */
}

.navbar a {
  color: rgb(0, 0, 0);
  font-size: 18px;
  font-weight: bold;
  margin-right: 12px;
  transition: 5ms;
  transition: color 0.3s ease;
}



.navbar a.logo {
  font-size: 35px;
}

.navbar a:hover {
  text-decoration: none;
  color: rgb(78, 78, 78);
}



/* decision matrix */

.decision-details-grid11 {
  display: grid;
  flex-direction: column; 
  justify-content: center;
  align-items: center;
  display: grid;
  place-items: center;
  gap: 1.5rem; 
  width: 100%; 
  min-height: 100vh;
  padding-left: 15px;
}


.decision-details-grid {
  display: grid;
  flex-direction: column; 
  justify-content: center;
  align-items: center;
  display: grid;
  place-items: center;
  gap: 1.5rem; 
  width: 100%; 
  min-height: 100vh;
  padding-left: 15px;
  box-shadow: 4px 4px 5px 5px rgba(0, 0, 255, 0.2);    
  background-color: #f2f2f2;
  border-radius: 4px;
}
.decision-details-grid > div {
    gap: 1rem;
    min-width: 900px;
    width: 100%;
}
.decision-details-grid label {
    flex: 1;
    text-align: left;
}
.decision-details-grid select {
    flex: 0 0 220px; /* or your preferred width */
    max-width: 220px;
}

/* mobile response for decision matrix  */

@media (max-width: 768px) {
  .decision-details-grid {
    flex-direction: column; 
    align-items: center; 
    padding-left: 0;
  }
  .decision-details-grid > div {
    min-width: 300px;
    width: 100%;
  }
}

.matrix-section-header::after {
  content: ' ';
  display: block;
  border:.5px solid black;
  opacity: 30%;
  padding-left: 5px;
}

.matrix-section-header {
  padding-left: 5px;
  padding-right: 5px;
}

.objective-section-header::after {
  content:' ';
  display:block;
  border:.5px solid black;
  opacity: 30%;
  padding-left: 5px;
}
.subjective-section-header::after {
  content: ' ';
  display: block;
  border: .5px solid black;
  opacity: 25%;
  padding-left: 5px;

}

.page-content-format {
  display: flex; 
  flex-direction: column; 
  justify-content: flex-start; 
  align-items: center; 
  padding: 1rem; 
  min-height: 100vh;
  margin-top: 0;
}

.page-content-format1 {
  display: flex; 
  flex-direction: column; 
  justify-content: left; 
  align-items: left; 
  width: 100%;
  padding: 1rem;
}

.page-content-format2 {
  flex: 1; /* Allow the main content to take up the remaining space */
  max-width: 800px; /* Set a maximum width for the main content */
  margin: 0 auto; /* Center the content within its container */
  padding: 1rem;
}

.calculate-button {
  padding-top: 10px;
  padding-bottom: 10px;

}

.calculate-button a {
  color: rgb(0, 0, 0);
  border: 1px solid black;
  padding: 10px;
  border-radius: 5px;
}
.calculate-button a:hover {
  background-color: #d4d4d4;
  text-decoration: none;
}

textarea {
  resize: none;
  width: 555px;
  height: 200px;

}
@media (max-width: 768px) {
  textarea {
    max-width: 400px;
  }
}
@media (max-width: 1200px) {
  textarea {
    max-width: 300px;
  }
}

.search-bar-for-results {
  /* display: flex; */
  justify-content: left;
}

.search-bar-for-results form {
  /* display: flex; */
  align-items: center;
  justify-content: left;
  padding-left: 10px;
  align-items: baseline;
}

.search-bar-for-results h3 {
  padding-left: 10px;
  padding-top: 10px;
}

.search-bar-for-results form input {
  height: 40px;
  padding: 10px;
  width: 220px;
}


.projects-form {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}

/* Projects Page */
.projects-form input {
  height: 30px;
  padding: 5px;
  flex: 1;
}

.project-form-div {
  padding: 5px 10px;
  /* height: 40px; */
  justify-content: space-between;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
  border-radius: 10px;
}
.projects-section-header::after {
  content: ' ';
  display: block;
  border:.5px solid black;
  opacity: 30%;
  padding-left: 5px;
}

.delete-btn-prj {
  justify-content: right;
  display: flex;
  align-items: center;
}

.add-proj-btn {
  margin-top: 12px;
}

.login-fieldset {
  width: 400px;
  height: 200px;
}

.login-page-format {
  display: flex; 
  flex-direction: column; 
  justify-content: flex-start; 
  align-items: center;
  padding: 10px;
}

.redirect-intext {
  color: #262153;
  font-weight: 700;
}

.page-layout {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
}

.toc {
  width: 200px;
  /* margin-right: 20px; */
  padding: 3px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.toc h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.toc ul {
  list-style: none;
  padding: 0;
}

.toc ul li {
  margin-bottom: 10px;
}

.toc ul li a {
  text-decoration: none;
  color: #007BFF;
}

.toc ul li a:hover {
  text-decoration: underline;
}

/* Reporting a bug  */
/* Simple modal styling */
.modal {
  position: fixed;
  z-index: 9999;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.4);
  display: flex; align-items: center; justify-content: center;
}
.modal-content {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  min-width: 300px;
  max-width: 90vw;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  position: relative;
}
.modal-content .close {
  position: absolute; right: 1rem; top: 1rem; cursor: pointer; font-size: 1.5rem;
}