:root {
  --page-padding: 2rem;
  --header-height: 4rem;
  --footer-height: 3.6rem;
}

/*
.outline {
  --size: 1px;
  text-shadow: var(--size) 0 0 black, var(--size) var(--size) 0 black,
    0 var(--size) 0 black, calc(var(--size) * -1) var(--size) 0 black,
    calc(var(--size) * -1) 0 0 black,
    calc(var(--size) * -1) calc(var(--size) * -1) 0 black,
    0 calc(var(--size) * -1) 0 black, var(--size) calc(var(--size) * -1) 0 black;
}
*/

.shadow {
  text-shadow: 0.07em 0.05em 0.5px rgba(0, 0, 0, 0.8);
}

* {
  font-family: "Comic Relief", "Sour Gummy", "Delius", "Arial";
  font-weight: 400;
  margin: 0;
  padding: 0;
  color: white;
}

html {
  min-height: 100vh;
  font-size: 0.7rem;
}

@media (min-width: 1024px) {
  html {
    font-size: 0.8rem;
  }
}

@media (min-width: 1440px) {
  html {
    font-size: 1rem;
  }
}

@media (min-width: 1600px) {
  html {
    font-size: 1.2rem;
  }
}

@media (min-width: 1920px) {
  html {
    font-size: 1.4rem;
  }
}

@media (min-width: 2560px) {
  html {
    font-size: 1.6rem;
  }
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  background-color: black;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-image: url("./images/background/img-1.png");
}

header {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 0 var(--page-padding);
  height: var(--header-height);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  align-items: center;
}

#search-div {
  display: flex;
  font-size: 1.2rem;
  height: 2.8rem;
}

input {
  color: black;
  font-size: 1em;
  border-bottom-left-radius: 1000px;
  border-top-left-radius: 1000px;
  border-style: solid;
  border-width: 2px;
  border-right-width: 0;
  border-color: rgba(60, 60, 60, 0.8);
  background-color: rgba(255, 255, 255, 0.8);
  outline: none;
  padding: 0.4rem;
  max-width: max(28%, 375px);
  width: stretch;
}

#search-div button {
  padding: 0 1.2rem;
  border-top-right-radius: 1000px;
  border-bottom-right-radius: 1000px;
  border-color: rgba(60, 60, 60, 0.8);
  background-color: rgba(60, 60, 60, 0.5);
  border-style: solid;
}

#search-div svg {
  height: stretch;
}

main {
  flex-grow: 1;
  padding: calc(var(--header-height) + 1.4rem) var(--page-padding)
    calc(var(--footer-height) + 1.4rem) var(--page-padding);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#city-name {
  display: flex;
  justify-content: flex-start;
}

#city-name h1 {
  font-size: 2.4rem;
}

#weather {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/*
#weather h2 {
  font-size: 2.4rem;
}
*/

#weather p {
  font-size: 1.8rem;
}

#recommendation {
  display: flex;
  justify-content: flex-end;
}

#recommendation p {
  font-size: 1.8rem;
  max-width: 18em;
}

footer {
  background-color: rgba(0, 0, 0, 0.6);
  padding: 0 var(--page-padding);
  height: var(--footer-height);
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer a {
  font-size: 1.4rem;
}
