/** SLIDING SEARCH BAR - DTU 11/2020 - Updated 06/2024 **/

.search-form .form-group input.form-control::-webkit-input-placeholder {
    display: none;
  }
  
  .search-form .form-group input.form-control::-moz-placeholder {
    display: none;
  }
  
  #search-wrapper {
    width: 3rem;
    height: 3rem;
    margin: auto 1rem;
    position: relative;
  }

  #search-block {
    position: absolute;
    top: 0;
    right: 0;
  }
  
  @media screen and (max-width: 575px) {
    .search-open {
      width: calc(100vw - 15px);
    }
  }
  
  @media screen and (min-width: 576px) and (max-width: 767px) {
    .search-open {
      width: calc(525px - 3rem);
    }
  }
  
  @media screen and (min-width: 768px) and (max-width: 991px) {
    .search-open {
      width: calc(705px - 3rem);
    }
  }
  
  @media screen and (min-width: 992px) and (max-width: 1199px) {
    .search-open {
      width: calc(945px - 3rem);
    }
  }
  
  @media screen and (min-width: 1200px) and (max-width: 1399px) {
    .search-open {
      width: calc(1125px - 3rem);
    }
  }
  
  @media screen and (min-width: 1400px) {
    .search-open {
      width: calc(1320px - 3rem);
    }
  }
  
  .dimmed {
    filter: blur(3px);
    opacity: 0.5;
  }
  
  #search-block.search-open #open-btn {
    display: none;
  }
  
  #search-block.search-open #search input.form-control {
    z-index: 90;
    display: block;
    box-shadow: 0 0 0 0rem;
    border-color: var(--bs-gray-600);
  }
  
  #search-block:not(.search-open) #search button.form-control-submit {
    display: none;
  }
  
  #search-block:not(.search-open) #open-btn,
  #close-btn {
    width: 3rem;
    height: 3rem;
    position: absolute;
    right: 0;
    top: 0;
    padding: 0;
    margin: 0;
    text-align: center;
    cursor: pointer;
    line-height: 3rem;
    background: transparent;
    font-size: 1.5rem;
    color: var(--bs-gray-600);
    border: 2px;
    border-radius: 3px;
  }
  
  #search-block:not(.search-open) #open-btn {
    z-index: 90;
  }
  
  #search-block:not(.search-open) #close-btn {
    display: none;
  }
  
  #search {
    position: relative;
    min-width: 3rem;
    height: 3rem;
  }
  
  #search input.form-control {
    position: absolute;
    top: 0;
    right: 3rem;
    height: 3rem;
    width: calc(100% - 3rem);
    border-color: transparent;
    display: none;
  }
  
  #search button.form-control-submit {
    position: absolute;
    right: 3.5rem;
    top: 0;
    cursor: pointer;
    line-height: 3rem;
    background: transparent;
    font-size: 1.5rem;
    color: #000;
    border: 0;
    z-index: 90;
  }
  
  #search button.form-control-submit:focus {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5);
    background-color: transparent;
  }
  