html,
body {
  height: 100%;
  background-color: #ccdac4;
}

p, h1 {
  text-align: justify;
}

#wrap {
  min-height: 100%;
  background-color: #e7efe5;
}

#main {
  padding-bottom: 72px;
} /* must be same height as the footer */



#footer {
  position: relative;
  margin-top: -72px;
  /* negative value of footer height */
  height: 72px;
  clear: both;
  background-color: #ccdac4 !important;
  color: black;
  font-size: 18px !important;
}

/* navbar settings */
.bg-primary {
  background-color: #ccdac4 !important;
}

.nav-link {
  font-size: 22px !important;
  color: black !important;
}
.navbar {
  padding-bottom: 0 !important;
  padding-top: 0 !important;
  margin-bottom: 30px;
}
.navbar-brand {
  padding-bottom: 0 !important;
}
.navbar-brand-img {
  height: 80px;
  width: 80px;
}
.nav-item :hover {
  background-color: #8aa57e;
  border-bottom: #fff 4px solid;
  color: #fff !important;
}

.nav-item.active a {
  background-color: #628354;
  border-bottom: #fff 4px solid;
  color: #fff !important;
}

.container-background {
  background-color: #fff;
}

.container {
  height: 100%;
}

/* Home css file */
/* Section header_home */
.section_header {
  background-color: #e7efe5;
}
.header_home {
  display: flex;
}

.box-image-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.box-image-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.header_home .box {
  flex: 1;
  margin: 20px 10px;
  padding: 15px 10px;
  text-align: center;
  align-items: center;
  justify-content: center;
}


.header_home .box:nth-of-type(1) {
  flex-grow: 3;
}

.text_align_left {
  text-align: left;
}
.box:nth-of-type(2) {
  position: relative;
}

.button-container {
  background-color: #628354;
  border-radius: 3px;
  padding: 10px 20px;
  text-decoration: none;
  color: black;
  margin: 4px 2px;
  text-align: center;
  border: none;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  margin-right: 10px;
  width: 50%;
  display: block;
  padding: 10px 15px; /* add padding to increase clickable area */
}

.container-buttons {
  display: flex;
  justify-content: center;
}

.button-container:hover {
  transform: translateY(2px);
  box-shadow: none;
  color: black;
  background-color: #557249;
}

.btn_header_home {
  display: block; /* make the link a block element */
  width: 100%; /* make it take the full width of the container */
  height: 100%; /* make it take the full height of the container */
  color: black;
  text-decoration: none;
}

/* Developers CSS file  */
/* Developers */
.section_developers {
  background-color: #f4f7f1;
  padding: 20px;
}

.developers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.d_team {
  display: block;
}

.developers .box {
  background-color: #ccdac4;
  color: black;
  border-radius: 10px;
  text-align: center;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
  padding: 20px;
  margin: 10px;
  transition: transform 0.3s ease;
}

.btn_developers {
  background-color: #628354;
  border-radius: 3px;
  padding: 10px 20px;
  text-decoration: none;
  color: black;
  margin: 4px 2px;
  text-align: center;
  border: none;
  display: inline-block;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
}

.btn_developers:hover {
  transform: translateY(2px);
  box-shadow: none;
  color: black;
  background-color: #557249;
}

.btn_developers:active {
  transform: translateY(4px);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.2),
    inset 0 0 8px rgba(0, 0, 0, 0.4);
}

.box-image {
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  margin-top: 10px;
  margin-bottom: 20px;
}

li {
  list-style-type: none;
}

/* Forms CSS file */
 /* Reg form */
 .form_wrapper {
  background: #ccdac4;
  width: 500px;
  max-width: 100%;
  box-sizing: border-box;
  padding: 40px;
  margin: 6% auto 0;
  position: relative;
  z-index: 1;
  border-radius: 5px;
}
.input_field {
  position: relative;
  margin-bottom: 20px;
}
.input_field span {
  position: absolute;
  left: 0;
  top: 0;
  color: #333;
  height: 100%;
  border-right: 1px solid;
  text-align: center;
  width: 30px;
}
.input_field span i {
  padding-top: 10px;
}
.input_field input {
  width: 100%;
  padding: 8px 10px 9px 35px;
  height: 35px;
  border: 1px solid #333;
  box-sizing: border-box;
  outline: none;
  border-radius: 10px;
}
.input_field input:focus {
  -webkit-box-shadow: 0 0 2px 1px rgba(255, 169, 0, 0.5);
  -moz-box-shadow: 0 0 2px 1px rgba(255, 169, 0, 0.5);
  box-shadow: 0 0 2px 1px rgba(255, 169, 0, 0.5);
  border: 1px solid #f5ba1a;
  background: #fafafa;
}

#submit_reg_form.button,
.button {
  background-color: #628354;
  border-radius: 3px;
  padding: 5px;
  margin-bottom: 5px;
  width: 100%;
  text-decoration: none;
  color: black;
  text-align: center;
  font-size: 1.1em;
  border: none;
  display: inline-block;
  cursor: pointer;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
}

#submit_reg_form.button:hover,
.button:hover {
  transform: translateY(2px);
  box-shadow: none;
  color: black;
  background-color: #557249;
}

#submit_reg_form.button:active,
button:active {
  transform: translateY(4px);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.2),
    inset 0 0 8px rgba(0, 0, 0, 0.4);
}

.col_half {
  width: 50%;
  float: left;
}

.alert {
  width: 50%;
  margin: auto;
}

#password_re_div {
  margin-bottom: 20px !important;
}


/* Media Queries */

.form-group {
padding-top: 1em;
justify-content: center !important;
}

/* Methodology CSS file */
.header_home .box {
  flex: 1;
  margin: 10px 10px;
  padding: 15px 10px;
  text-align: center;
  align-items: center;
  justify-content: center;
}

.home .text {
  flex: 1;
  text-align: center;
  align-items: center;
  justify-content: center;
}

/* Formulas */
.section_formulas {
  background-color: #f4f7f1;
  min-height: 100%;
  position: relative;
  padding-bottom: calc(100vh - (var(--footer-height)));
  padding: 20px;
}

.box-formula {
  background-color: #ccdac4;
  border-radius: 10px;
  color: black;
  text-align: center;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
  padding: 10px;
  margin: 10px;
  transition: transform 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

.formulas {
  display: grid;
  gap: 2px;
}

/* Buttons */

.box .btn {
  background-color: #628354 !important;
  border-radius: 3px;
  padding: 10px 20px;
  text-decoration: none;
  color: black;
  margin: 4px 2px;
  text-align: center;
  border: none;
  display: inline-block;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
}

.box .btn:hover {
  transform: translateY(2px);
  box-shadow: none;
  color: black;
  background-color: #557249;
}
.box .btn:focus {
  background-color: #628354;
  border-radius: 3px;
  padding: 10px 20px;
  text-decoration: none;
  color: black;
  margin: 4px 2px;
  text-align: center;
  border: none;
  display: inline-block;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
}

.box .btn {
  margin-bottom: 20px;
  margin-top: 0;
}

/* Carbon app file  */
.section_header:nth-of-type(1) {
  border-bottom: 3px solid #f4f7f1;
  margin: 30px;
}

.header_home .box {
  flex: 1;
  margin: 20px 10px;
  padding: 15px 10px;
  text-align: center;
  align-items: center;
  justify-content: center;
}

.home .text {
  flex: 1;
  text-align: center;
  align-items: center;
  justify-content: center;
}


/* Modal calculator */

.modal-footer .btn:nth-of-type(1) {
  background-color: grey;
  border-radius: 3px;
  padding: 10px 20px;
  text-decoration: none;
  color: black;
  margin: 4px 2px;
  text-align: center;
  border: none;
  display: inline-block;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
}

.modal-footer .btn:nth-of-type(2) {
  background-color: #628354;
  border-radius: 3px;
  padding: 10px 20px;
  text-decoration: none;
  color: black;
  margin: 4px 2px;
  text-align: center;
  border: none;
  display: inline-block;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
}

.modal-footer .btn:nth-of-type(1):hover {
  transform: translateY(2px);
  box-shadow: none;
  color: black;
  background-color: rgb(111, 111, 111);
}

.modal-footer .btn:nth-of-type(2):hover {
  transform: translateY(2px);
  box-shadow: none;
  color: black;
  background-color: #557249;
}

.modal-footer .btn:nth-of-type(1):focus {
  transform: translateY(4px);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.2),
    inset 0 0 8px rgba(0, 0, 0, 0.4);
}

.modal-footer .btn:nth-of-type(2):focus {
  transform: translateY(4px);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.2),
    inset 0 0 8px rgba(0, 0, 0, 0.4);
}

.modal-body .label {
  left: 20vh;
  margin: 20px;
}

.modal-body {
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: #ccdac4;
}

.modal-footer,
.modal-header {
  background-color: #ccdac4;
}

#transport,
#fuel {
  background-color: #628354;
  border-radius: 3px;
  padding: 10px 20px;
  text-decoration: none;
  color: black;
  margin: 4px 2px;
  text-align: center;
  border: none;
  display: inline-block;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
  margin-bottom: 20px;
}

#transport:hover,
#fuel:hover {
  transform: translateY(2px);
  box-shadow: none;
  color: black;
  background-color: #557249;
}

#transport:focus,
#fuel:focus {
  transform: translateY(4px);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.2),
    inset 0 0 8px rgba(0, 0, 0, 0.4);
  outline: none;
}

#kms {
  padding: 12px 20px;
  margin: 8px 0;
  box-sizing: border-box;
  border-radius: 2px;
  border: 0.5px solid black;
  background-color: #f4f7f1;
  color: black !important;
  margin-bottom: 20px;
}

.modal-content {
  border-radius: 10% !important;
  width: 50%;
}

/* My Data */

#filter_all, #filter_individual, #filter_date, #filter_end, #filter_start {
  margin: 5px;
}

#filter_start, #filter_end {
  padding: 10px;
}

.two_emissions_graphs {
  margin: 30px;
}

.two_emissions_graphs .charts {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.two_emissions_graphs .charts .box {
  border: 2px solid #628354;
  margin-left: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  background-color: #ccdac4;
  padding: 20px;
  font-family: Arial, sans-serif;
  font-size: 16px;
  color: #333;
  }

  #entry_table_wrapper {
    border: 2px solid #628354;
    margin-left: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    background-color: #ccdac4;
    padding: 20px;
    font-family: Arial, sans-serif;
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
  }

  .table_main {
    padding-bottom: calc(100vh - (var(--footer-height)));
  }

#emissions_by_transport,
#over_time_emissions,
#kms_by_transport,
#over_time_kms {
  margin: 30px;
  width: 50vh !important;
  height: auto !important;
}

/* Buttons */

.section_container_buttons_carbon_app_new_entry_main {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.btn_carbon_app_new_entry_table, .box .btn {
  background-color: #628354;
  border-radius: 3px;
  padding: 10px 20px;
  text-decoration: none;
  color: black;
  margin: 4px 2px;
  text-align: center;
  border: none;
  display: inline-block;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
}

.btn_carbon_app_new_entry_main {
  background-color: #628354;
  border-radius: 3px;
  padding: 20px 30px;
  text-decoration: none;
  color: black;
  margin: 10px 10px;
  text-align: center;
  border: none;
  display: inline-block;
  font-size: 25px;
  cursor: pointer;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
  width: 25%;
}

#filter_all,
#filter_individual {
  border-radius: 3px;
  padding: 10px 20px;
  text-decoration: none;
  color: black;
  margin: 4px 2px;
  text-align: center;
  border: none;
  display: inline-block;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
}

#filter_date {
  background-color: #628354;
  border-radius: 3px;
  padding: 10px 20px;
  text-decoration: none;
  color: black;
  margin: 4px 2px;
  text-align: center;
  border: none;
  display: inline-block;
  font-size: 16px;
  cursor: pointer;
  margin-top: 7px;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
}

.btn_carbon_app_new_entry_table:hover, .btn_carbon_app_new_entry_main:hover,
.box .btn:hover,
#filter_all:hover,
#filter_individual:hover, #filter_date:hover {
  transform: translateY(2px);
  box-shadow: none;
  color: black;
  background-color: #557249;
}

.btn_carbon_app_new_entry_table:active, .btn_carbon_app_new_entry_main:active,
.box .btn:active, #filter_date:active {
  transform: translateY(4px);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.2),
    inset 0 0 8px rgba(0, 0, 0, 0.4);
}

.section_header .container_filter {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin: 20px;
}

.container_filter .box_date_filter_from, .container_filter .box_date_filter_to, .container_filter.box_update_timerange, .box_employee_filter {
  display: flex;
  align-items: center;
}

.box_date_filter, .box_employee_filter {
  display: flex;
  flex-direction: row;
}

.container_filter p {
  margin: 10px;
}


.table_main .btn {
  background-color: rgb(220, 48, 48);
  border-radius: 3px;
  padding: 10px 10px;
  text-decoration: none;
  color: black;
  margin: 4px 2px;
  text-align: center;
  border: none;
  display: inline-block;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.table_main .btn:hover {
  transform: translateY(2px);
  box-shadow: none;
  color: black;
  background-color: rgb(192, 30, 30);
}

.table_main .btn:active,
.table_main .btn:focus {
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.2);
  background-color: rgb(192, 30, 30);
  color: black;
  transform: translateY(4px);
}

@media (max-width: 500px) {
  .formulas {
    display: flex;
    flex-direction: column;
  }

  .box-formula {
    margin: 0;
  }
  .section_formulas {
    padding: 0px;
  }
  .header_home {
    flex-direction: column;
  }

  .box-right {
    order: -1;
    margin-bottom: 20px;
  }
  .developers {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  } 
  .formulas {
    display: flex;
    flex-direction: column;
  }

  .box-formula {
    margin: 0;
  }
  .section_formulas {
    padding: 0px;
  } 

  .btn_carbon_app_new_entry_main {
    width: 50%;
  }

  .box_date_filter {
    display: flex;
    flex-direction: column;
    align-items: end;
    left: 0px;
  }

  .box_employee_filter {
    display: flex;
    flex-direction: column;
    align-items: start;
    left: 0px;
  }

  .two_emissions_graphs .charts, home {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
  }
  
  #emissions_by_transport,
  #over_time_emissions,
  #kms_by_transport,
  #over_time_kms {
    width: 100% !important;
    height: auto !important;
    margin: 0px !important;
    padding: 0px;
  }

  #entry_table_wrapper {
    border: 2px solid #628354;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    background-color: #ccdac4;
    padding: 20px;
    font-family: Arial, sans-serif;
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
    width: 100vh;
    margin-left: 0px;
  }

  .table_main .container {
    padding: 0px;
  }

  .two_emissions_graphs .charts .box {
    margin: 0px;
  }
  
  .two_emissions_graphs {
    margin: 0px;
  }

  html,
  body {
    background-color: #e7efe5 !important;
  }

  .footer {
    width: 100vh;
  }
}

@media (max-width: 1400px) {
  .formulas {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
  }
}

@media (max-width: 1200px) {
  .formulas {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  }
}
@media (max-width: 1000px) {
  .formulas {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}