#where_to_buy {
  /*cursor: pointer;
  background-color:#e69617;
  color: white;
  margin-top: 20px;
  padding: 10px;*/
}

.distriAlert {
  border-width: 1px;
  border-style: solid;
  padding: 5px;
  border-radius: 10px;
  border-color: blue;
}

.distriCards {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.distriCard {
  justify-content: space-between;
  /*'background-color:rgb(0, 96, 168);  */
  border: solid 1px #adadad;
  border-radius: 20px;  
  flex: 0 0 250px;
  box-sizing: border-box;
  margin: 10px 10px;
}

#distriDescriptionPlaceholder {
  justify-content: space-between;
  flex: 0 100 500px;
  box-sizing: border-box;
  margin: 10px 10px;
}

#distriCardPlaceholder {
  background-color: whitesmoke;
}

.distriCard:last-child{
  flex-grow: 0;
}

.distriAddress {
  align-self: center;
  padding: 10px 10px;
  /*background: rgb(0, 96, 168);*/
  /*color: whitesmoke;  */
  border-radius: 20px;
}

.distriLink:focus, .distriLink:hover {
  color: whitesmoke;
}

.distriCity {
  align-self: center;
  padding: 1em 2em 5px 1em;
  color: black;
  position: relative;  
  border-top-left-radius: 19px;
  border-top-right-radius: 19px;
}

.distri_details {
  display: none;
}

.distri_prio {
  background: #0060a8;
  color: white;
}

.distri_1 {
  background: #dedede;
}

.distri_2 {
  background: #c0c0c0;
  
}

.distri_3 {
  background: #9b9b9b;
}

.distri_info {
  position:absolute;
  right:5px;
  top:5px;
  cursor: pointer;
}

.distri_info:hover {
  cursor: pointer;
  color: rgb(0, 96, 168);
  font-size: 30px;
  transition: all 0.4s ease;
  -webkit-transition: all -webkit-transform 0.4s ease;
}

.distri_class_descr {
  margin-bottom: 0em !important;
}

.distri_modal {
  width: 900px;
  max-width: 100%;
  height: 500px;
  max-height: 100%;
  position: fixed;
  max-height: fit-content;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none; 
  z-index: 1001;
  background-color: whitesmoke;
  animation-name: animatetop;
  animation-duration: 0.4s;
  box-shadow: 0 0 60px 10px rgba(0, 0, 0, 0.9);
}

.distri_modal_overlay {
  z-index: 1000;
  display: none; 
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
}

.distri_modal_header {
  padding: 10px 16px;
  background-color: whitesmoke;
  color: black;
  font-size: x-large;
  position: absolute;
  width: 100%;
  top: 0;
}

.distri_modal_body {
  padding: 2px 16px 4rem 2px;
  position: absolute;
  top: 40px;
  left: 0;
  width: 100%;
  height: calc(100% - 100px);
  overflow: auto;

}

.distri_modal_footer {
  padding: 2px 16px;
  background-color:rgb(0, 96, 168);
  color: white;
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 2.5rem; 
}

.distri_modal_close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

#distri_close_button {
 top: 9%;
 position: relative;
 float: right;
}

#distri_close_button:hover,
#distri_close_button:focus {
  color: gray;
  text-decoration: none;
  cursor: pointer;
}

.distri_modal_close:hover,
.distri_modal_close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

@keyframes animatetop {
  from {top: -300px; opacity: 0}
  to {top: 50%; opacity: 1}
} 


#autoComplete_wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  margin-left: 1rem;
  margin-right: 1rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

#zipsearch_widget {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-bottom: 1rem;
  border-radius: 20px;
}

#autoComplete_list {
  position: absolute;
  z-index: 1000;
  padding: 0;
  left: 0;
  right: 0;
  margin-top: 3rem;
  
  margin-right: auto;
  width: 18rem;
  transition: all 0.1s ease-in-out;
  -webkit-transition: all -webkit-transform 0.1s ease;
}

.autoComplete_result {
  margin: 0.15rem auto;
  padding: 0.6rem;
  max-width: 280px;
  border: 0.05rem solid #e3e3e3;
  list-style: none;
  text-align: left;
  font-size: 1.1rem;
  color: rgb(123, 123, 123);
  transition: all 0.1s ease-in-out;
  background-color: #fff;
}

#autoComplete {
  position: relative;
  padding: 0 2rem 0 3.5rem;
  height: 2.1rem;
  width: 6rem;
  font-size: 1.2rem;
  outline: none;
  border-radius: 50rem;
  border: 0.05rem solid rgb(0, 96, 168);
  caret-color: rgb(0, 96, 168);
  color: rgba(255, 255, 255, 0);
  background-image: url(./images/zip.svg);
  background-repeat: no-repeat;
  background-size: 1.2rem;
  background-origin: border-box;
  background-position: center;
  transition: all 0.4s ease;
  -webkit-transition: all -webkit-transform 0.4s ease;
  text-overflow: ellipsis;
}

#autoComplete:hover {
  padding: 0 2rem 0 3.5rem;
  color: rgba(0, 96, 168, 0.3);
  height: 3rem;
  width: 16.5rem;
  background-image: url(./images/zip.svg);
  background-size: 1.7rem;
  background-position: left 1.05rem top 0.7rem;
  transition: all 0.3s ease;
  -webkit-transition: all -webkit-transform 0.3s ease;
}

#autoComplete::placeholder {
  color: rgba(255, 122, 122, 0); 
  transition: all 0.3s ease;
}

#autoComplete:hover::placeholder {
  color: rgba(255, 122, 122, 0.3);
  transition: all 0.3s ease;
  -webkit-transition: all -webkit-transform 0.3s ease;
}

#autoComplete:focus::placeholder {
  padding: 0.1rem 0.6rem;
  font-size: 1rem;
  color: rgba(255, 122, 122, 0.3);
  transition: all 0.3s ease;
  -webkit-transition: all -webkit-transform 0.3s ease;
}

#autoComplete::selection {
  color: transparent;
}

#autoComplete:focus::selection {
  color: #fff;
  background-color: rgba(0, 96, 168, 1);
}


#autoComplete:focus {
  padding: 0 2rem 0 3.5rem;
  color: rgba(0, 96, 168,1);
  height: 3rem;
  width: 16.5rem;
  border: 0.05rem solid rgb(0, 96, 168);
  background-image: url(./images/zip.svg);
  background-size: 1.5rem;
  background-position: left 1.05rem top 0.8rem;
  box-shadow: rgba(255, 122, 122, 0.1);
}


.autoComplete_result::selection {
  color: rgba(#ffffff, 0);
  background-color: rgba(#ffffff, 0);
}

.autoComplete_result:last-child {
  border-radius: 0 0 1rem 1rem;
}

.autoComplete_result:hover {
  cursor: pointer;
  background-color: rgba(255, 248, 248, 0.9);
  border-left: 2px solid rgb(0, 96, 168);
  border-right: 2px solid rgb(0, 96, 168);
  border-top: 2px solid transparent;
  border-bottom: 2px solid transparent;
}

.autoComplete_result:focus {
  outline: none;
  background-color: rgba(255, 248, 248, 0.9);
  border-left: 2px solid rgb(0, 96, 168);
  border-right: 2px solid rgb(0, 96, 168);
  border-top: 2px solid transparent;
  border-bottom: 2px solid transparent;
}

.autoComplete_highlighted {
  opacity: 1;
  color: rgba(0, 96, 168, 1);
  font-weight: bold;
}

.autoComplete_highlighted::selection {
  color: rgba(#ffffff, 0);
  background-color: rgba(#ffffff, 0);
}

.autoComplete_selected {
  cursor: pointer;
  background-color: rgba(0, 96, 168, 0.9);
  border-left: 2px solid rgba(0, 96, 168, 1);
  border-right: 2px solid rgba(0, 96, 168, 1);
  border-top: 2px solid transparent;
  border-bottom: 2px solid transparent;
}

@media only screen and (max-width: 600px) {
  #autoComplete {
    width: 11rem;
  }

  #autoComplete:focus {
    width: 11rem;
    background-size: 1.6rem;
    background-position: left 1.1rem top 0.75rem;
  }

  .autoComplete_result:first-child {
    border-radius: 1rem 1rem 0 0;
  }

  .autoComplete_result:last-child {
    border-radius: 0 0 1rem 1rem;
  }

  .autoComplete_result:only-child {
    border-radius: 1rem;
  }
}

@media screen and (-webkit-min-device-pixel-ratio: 0) {
  #autoComplete {
    border-width: 1px;
  }

  #autoComplete:hover {
    border-width: 1px;
  }

  #autoComplete:focus {
    border-width: 1px;
  }
}

@-moz-document url-prefix() {
  #autoComplete {
    border-width: 1px;
    background-origin: border-box;
  }

  #autoComplete:hover {
    border-width: 1px;
  }

  #autoComplete:focus {
    border-width: 1px;
    background-position: left 1.1rem top 0.8rem;
  }
}
