body {
    background-color: #E3E4D3;
    color: #0E1732;
    width: 100vw;
    overflow-x: hidden;
    overflow-y: auto;
}

* {
  box-sizing: border-box;
}

h1, h2, h3, h4, b, em, p, a, input, select, button, .autocomplete-result, u, ul, li {
  font-family: "bebas-neue-pro", sans-serif !important;
}

h2 {
  font-size: 3rem;
  margin-block-start: 0;
  margin-block-end: 0;
}

.caps {
  text-transform: uppercase;
}

h3 {
  font-size: 2.5rem;
}

p, u {
  margin-block-start: 0.5rem;
  margin-block-end: 0.5rem;
  line-height: 2rem;
  font-size: 1.6rem;
}

em, b, button {
  font-size: 1.6rem;
}

u {
  text-decoration: underline;
}

a {
    text-decoration: none;
    color: #8f993e;
}

a:visited {
  color: #0E1732;
}

button {
    max-width: 150px;
    padding: 0.5rem;
}

.row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-content: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
    position: relative;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}

.column {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    box-sizing: border-box;
    justify-content: center;
    align-content: center;
    position: relative;
}

.block {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
}

.order-info {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  margin-bottom: 1rem;
}

.card {
    background-color: #fff;
    border: solid 2px #0E1732;
    border-radius: 5px;
    padding: 4rem;
    width: 80%;
    margin-left: 10%;
    margin-right: 10%;
}

.divider {
    background-color:  #0E1732;
    height: 2px;
    width: 100%;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.address-inputs {
    margin-top: 1rem;
}

.clickable {
    cursor: pointer;
}

.green {
    color: #8F993E;
}

.buttons {
  margin-top: 2rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: flex-start;
  align-content: center;
  flex-wrap: wrap;
}

#delivery-block-buttons {
  margin-top: 6rem;
}

.timeslot button {
  font-size: 1rem;
}

.buttons button {
  background-color: #8F993E;
  border: solid 1px #0E1732;
  color: #fff;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 5px;
  padding: 1rem;
  max-width: 200px;
  font-size: 1.8rem;
  height: fit-content;
}

.buttons button:hover {
  background-color: #0E1732;
}

.message {
  padding: 1rem 1rem;
  border: solid 1px;
  width: fit-content;
  border-radius: 5px;
  background-color: #0E1732;
  color: #fff;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

#cart-items-section {
padding-bottom: 1.5rem !important;
}

#address-input {
        width: 100%;
        padding: 10px;
        font-size: 16px;
        border: 2px solid #ccc;
        border-radius: 5px;
        outline: none;
        min-width: 220px;
    }

    #autocomplete-results {
        border: 1px solid #ccc;
        border-top: none;
        max-height: 200px;
        overflow-y: auto;
        background-color: white;
        position: relative;
        width: 100%;
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 1000; /* Ensure it's above other content */
        display: none; /* Initially hidden */
    }

    .autocomplete-result {
        padding: 10px;
        cursor: pointer;
    }

    .autocomplete-result:hover {
        background-color: #f0f0f0;
    }

  .button-row {
    display: flex;
    position: relative;
    margin-bottom: 2rem;
    flex-wrap: wrap;
  }

  #button-container {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
  }

  #button-container button {
    border: solid 1px #111A37;
    border-radius: 5px;
    padding: 0.5rem;
    color: #111A37;
    min-width: 80px;
    margin-top: 0rem;
    margin-bottom: 0rem;
  }

.button-row div:first-child {
  margin-left: 0rem !important;
}    

.button-row div {
  margin-left: 1rem;
}

  #button-container button:hover {
    background-color: #8f993e !important;
  }

  #button-container button.selected {
    background-color: #111A37;
    color: #fff;
  }
  
#button-container .timeslot {
  margin-top: 1rem;
  margin-bottom: 1rem;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0.5rem;
  margin-left: 0rem;
  position: absolute;
  margin-bottom: 1rem;
}

  .timeslot {
    display: none;
  }

.hidden {display: none;}
.active {display: block;}
.spinner.active {width: 30px; height: 30px; margin-left: 30px; margin-top: 15px;}
.spinner img {width: 100%; height: auto;}


#uploadForm {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
  width: 100%;
}

#uploadForm input {
  width: 60%;
}

#uploadForm .buttons button {
  width: 100% !important;
}


/*address updates*/
.address-cards-row {
  display: flex;
  gap: 2rem;
  flex-direction: row;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.address-card {
  display: flex;
  flex-direction: column;
  background-color: #8f993e;
  flex: 1;
  padding: 2rem;
  border-radius: 0.5rem;
  border: solid 2px #0E1732;
}

.ineligible {
  background-color: #E3E4D3;
  cursor: not-allowed !important;
}

.address-card:hover {
  background-color: #E3E4D3;
  cursor: pointer;
}

h1, h2, h3, h4 {
  margin: 0rem;
  margin-block-start: 0rem;
  margin-block-end: 0rem;
}

h4 {
  font-size: 1.8rem;
}

.address-card h4 {
  text-transform: uppercase;
}

@media (min-width: 769px) and (max-width: 1441px) {
  .card {
    width: 90%;
    margin-left: 5%;
    margin-right: 5%;
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  .card {
    width: 90%;
    margin-left: 5%;
    margin-right: 5%;
    padding: 2rem;
  }

  .button-row {
    flex-direction: column;
    gap: 1rem;
  }

  #button-container .timeslot {
    position: relative;
  }

  .column {
    flex: 1;
    justify-content: center;
    align-content: center;
  }

  .button-row div {
    margin-left: 0rem;
  }

  .address-cards-row {
    flex-direction: column;
}
}