/*
 * Copyright 2017-2020 EPAM Systems, Inc. (https://www.epam.com/)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

.search-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  opacity: 0;
}

.search-container.visible {
  z-index: 1001;
  opacity: 1;
}

.search-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: black;
  opacity: 0;
}

.search-background.visible {
  opacity: 0.5;
}

.search-form {
  position: absolute;
  top: 50vh;
  left: 28vw;
  width: 44vw;
  min-height: 40px;
  margin-top: -20px;
  padding: 0;
  border-radius: 7px;
  border: none;
  -webkit-transition: margin 250ms, top 250ms, left 250ms;
  -moz-transition: margin 250ms, top 250ms, left 250ms;
  -ms-transition: margin 250ms, top 250ms, left 250ms;
  -o-transition: margin 250ms, top 250ms, left 250ms;
  transition: margin 250ms, top 250ms, left 250ms;
  display: flex;
  flex-direction: column;
}

.search-form.results-available {
  margin-top: 0;
  top: 120px;
  bottom: 100px;
}

.types-form {
  position: absolute;
  top: 50vh;
  left: 5vw;
  right: 5vw;
  height: 100px;
  margin-top: -130px;
  padding: 0;
  border-radius: 7px;
  border: none;
  -webkit-transition: margin 250ms, top 250ms, left 250ms;
  -moz-transition: margin 250ms, top 250ms, left 250ms;
  -ms-transition: margin 250ms, top 250ms, left 250ms;
  -o-transition: margin 250ms, top 250ms, left 250ms;
  transition: margin 250ms, top 250ms, left 250ms;
  display: flex;
  justify-content: center;
}

.types-form.results-available {
  margin-top: 0;
  top: 10px;
}

.type-button {
  flex-shrink: 0;
  padding: 0 10px;
  min-width: 100px;
  height: 80px;
  border-radius: 10px;
  margin: 0 10px;
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
}

.type-button i {
  font-size: xx-large;
}

.type-button .type-title {
  font-size: larger;
  text-transform: uppercase;
  margin-top: 5px;
}

.hint-container {
  position: absolute;
  top: 50vh;
  margin-top: -20px;
  width: 40px;
  height: 40px;
  right: 72vw;
  margin-right: 10px;
  -webkit-transition: margin 250ms, top 250ms, right 250ms;
  -moz-transition: margin 250ms, top 250ms, right 250ms;
  -ms-transition: margin 250ms, top 250ms, right 250ms;
  -o-transition: margin 250ms, top 250ms, right 250ms;
  transition: margin 250ms, top 250ms, right 250ms;
}

.hint-container.results-available {
  margin-top: 0;
  top: 120px;
}

.hint-container.results-available.preview-available {
  right: 95vw;
}

.hint-icon-container {
  font-size: 30px;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  border: 1px solid transparent;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  display: flex;
  cursor: pointer;
}

.hints {
  padding: 5px;
}

.hints > div {
  margin: 5px;
}

.hints code {
  padding: 4px;
  background-color: rgba(255, 255, 255, 0.1);
}

.search-form.results-available.preview-available {
  left: 5vw;
}

.search-results {
  margin-top: 5px;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: auto;
  opacity: 0;
  -webkit-transition: opacity 250ms;
  -moz-transition: opacity 250ms;
  -ms-transition: opacity 250ms;
  -o-transition: opacity 250ms;
  transition: opacity 250ms;
}

.search-results.results-available {
  opacity: 1;
}

.search-result-item {
  cursor: pointer;
  margin-bottom: 5px;
  width: 100%;
  padding: 10px;
  border-radius: 3px;
  text-align: left;
  font-size: larger;
  -webkit-transition: background-color 100ms;
  -moz-transition: background-color 100ms;
  -ms-transition: background-color 100ms;
  -o-transition: background-color 100ms;
  transition: background-color 100ms;
}

.search-result-item .title {
  white-space: nowrap;
  flex: 1;
  overflow-x: hidden;
  text-overflow: ellipsis;
}

.search-blur.enabled {
  filter: blur(5px);
}

.search-input input {
  height: 40px;
  font-size: 16pt;
}

.searching-in-progress-container {
  width: 100%;
  margin-top: 10px;
  height: 50px;
}

.searching-in-progress-container i {
  font-size: x-large;
}

.searching-in-progress-container span {
  font-size: large;
}

.search-result-item-icon {
  font-size: large;
  margin: 5px;
}

.preview {
  position: absolute;
  top: 120px;
  right: 5vw;
  width: calc(44vw - 30px);
  bottom: 100px;
  padding: 0;
  -webkit-transition: opacity 250ms, top 250ms, left 250ms;
  -moz-transition: opacity 250ms, top 250ms, left 250ms;
  -ms-transition: opacity 250ms, top 250ms, left 250ms;
  -o-transition: opacity 250ms, top 250ms, left 250ms;
  transition: opacity 250ms, top 250ms, left 250ms;
  display: flex;
  flex-direction: column;
  border-radius: 5px;
  text-align: left;
}

.preview.not-available {
  opacity: 0;
}

.advanced {
  position: absolute;
  top: 50vh;
  margin-top: -20px;
  height: 38px;
  line-height: 38px;
  left: 72vw;
  margin-left: 10px;
  -webkit-transition: margin 250ms, top 250ms, right 250ms;
  -moz-transition: margin 250ms, top 250ms, right 250ms;
  -ms-transition: margin 250ms, top 250ms, right 250ms;
  -o-transition: margin 250ms, top 250ms, right 250ms;
  transition: margin 250ms, top 250ms, right 250ms;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  padding: 0 10px;
  border-radius: 20px;
}

.advanced .icon {
  font-size: 25px;
  margin-right: 5px;
}

.advanced.results-available {
  margin-top: 0;
  top: 120px;
}

.advanced.results-available.preview-available {
  left: 49vw;
  padding: 0;
  width: 38px;
}

.advanced.results-available.preview-available .icon {
  margin-right: 0;
}

.advanced.results-available.preview-available .button-text {
  display: none;
}
