:root {
  --bg_main: #0a1f44;
  --text_light: #fff;
  --text_med: #53627c;
  --text_dark: #1e2432;
  --red: #ff1e42;
  --darkred: #c3112d;
  --orange: #ff8c00;
}

* {
  text-align: center;
  font-size: 14px;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-weight: normal;
}

button {
  cursor: pointer;
}

input, button {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  -webkit-appearance: none;
  -moz-box-shadow: 0 0 5px #ccc;
  -webkit-box-shadow: 0 0 5px #ccc;
  box-shadow: 0 0 5px #ccc;
  border: 0px solid #ccc;
  outline: none;
  border-radius: 1rem;
  max-width: 100%;
  padding: 0.7rem;
}

button:active {
  background-color: #ddd;
}

.search {
  max-height: 3rem;
  max-width: 20rem;
  min-height: 3rem;
  min-width: 15rem;
}

.current-location {
  background-image: url('./assets/current-location-icon-png.jpg');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-color: white;
  height: 3rem;
  width: 3rem;
  margin-left: 1rem;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  display: flex;
  flex-direction: column;
  color: var(--text_med);
  min-height: 100vh;
  justify-content: center;
  align-items: center;
}

.header,
.header > .header-text {
  width: 100%;
  text-align: center;
}

.header {
  position: sticky;
  top: -9rem;
  padding-top: 3rem;
}

.header-text {
  font-size: 4rem;
}

.container,
.container > * {
  text-align: center;
  width: 100%;
}

.inputs {
  margin: 2rem 0 0 0;
  justify-content: center;
  align-items: center;
  display: flex;
}

.weather-condition {
  margin-top: 2rem;
}

.weather-condition > img {
  margin: auto;
  height: 4rem;
}

.temperature {
  font-size: 5rem;
}

.footer {
  /* backdrop-filter: saturate(250%) blur(8px); */
  margin-top: auto;
  width: 100%;
  height: 6rem;
}

.footer > .links > a {
  padding: 0 0.2rem;
}

.popup {
  backdrop-filter: saturate(250%) blur(15px);
  -moz-box-shadow: 0 0 5px #ccc;
  -webkit-box-shadow: 0 0 5px #ccc;
  box-shadow: 0 0 5px #ccc;
  position: absolute;
  left: 50%;
  margin-left: -10rem;
  visibility: hidden;
  width: 20rem;
  border-radius: 1rem;
}


.search-list {
  padding: 0.5rem;
  list-style-type: none;
}

.search-result-item {
  padding: 0.5rem;
  cursor: pointer;
  margin: 0.1rem;
  border-radius: 0.6rem;
}

.search-result-item:hover {
  background: #cccccc;
  opacity: 0.8;
  backdrop-filter: saturate(250%) blur(8px);
}

.loader {
  background-image: url('./assets/loader.gif');
  background-repeat: no-repeat;
  background-size: auto 100%;
  background-color: white;
}

sup {
  font-size: 0.5em;
}

.forecast-container {
  visibility: hidden;
  -webkit-appearance: none;
  -moz-box-shadow: 0 0 5px #ccc;
  -webkit-box-shadow: 0 0 5px #ccc;
  box-shadow: 0 0 5px #ccc;
  border: 0px solid #ccc;
  outline: none;
  border-radius: 1rem;
  width: 50%;
  padding: 0.7rem;
  margin: 2rem auto;
}

.forecast-item {
  display: flex;
  height: auto;
  padding: 0.4rem;
  -webkit-appearance: none;
  -moz-box-shadow: none;
  -webkit-box-shadow: none;
  box-shadow: none;   
  border-radius: 1rem;
  outline: none;
}

.forecast-container .forecast-item:not(:first-child) {
  border-top: 2px solid rgba(204, 204, 204, 0.4);
}

.left-content, .right-content{
  width: 50%;
}

.left-content > * {
  text-align: left;
}

.right-content {
  display: flex;
  justify-content: flex-end;
}

.right-content, .right-content > * {
  text-align: right;
}

.min-max-temp {
  min-width: 5rem;
  width: max-content;
  display: grid;
}

.show {
  visibility: visible;
}

@media screen and (max-width: 480px) {
  .forecast-container {
    width: 95%;
  }

  .popup {
    margin-left: -10rem;
  }
}