/* Geral */
* {
  padding: 0;
  margin: 0;
  font-family: "Ubuntu", sans-serif;
}

:root {
    --color-black: #121315;
    --color-blue: #427aa1;
    --color-blue-dark: #0045C5;
    --color-white: #EBF2FA;
}

body {
  background: var(--color-blue);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;

  background-position: center;
  background-size: cover;
}

.hide {
  display: none !important;
}

#svg {
    position: absolute;
    opacity: 0.5;
}

.container {
    position: relative;
    background-color: var(--color-black);
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    padding: 2rem;
    color: var(--color-white);
    border-radius: 1rem;
    max-width: 400px;
}

/* Form */
.form h3 {
  margin-bottom: 1rem;
}

.form-input-container {
  display: flex;
}

.form input {
  padding: 0.8rem;
  border: none;
  flex: 1;
  border-radius: 4px;
}

.form button {
  padding: 0.8rem;
  min-width: 50px;
  margin-left: 8px;
  background-color: var(--color-blue);
  color: var(--color-black);
  border: none;
  cursor: pointer;
  border-radius: 4px;
}

/* Clima */
#weather-data,
#error-message,
#loader,
#suggestions {
  border-top: 1px solid var(--color-white);
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  text-align: center;
}

#weather-data h2 {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0.6rem;
}

#weather-data h2 i {
  font-size: 1rem;
}

#weather-data span {
  margin: 0.6rem;
}

#temperature {
  font-size: 4rem;
}

#country {
  height: 15px;
}

#description-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0.6rem 0;
}

#description {
  text-transform: capitalize;
  font-weight: bold;
}

#details-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

#details-container #humidity {
  border-right: 1px solid var(--color-white);
  margin: 0.6rem;
  padding: 0.6rem;
}

/* Loader */
#loader i {
  animation: rotate 1.5s linear infinite;
}

@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}

/* Sugestões */
#suggestions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

#suggestions button {
  min-width: 150px;
  margin: 0.8rem;
  padding: 0.6rem 0.9rem;
  border-radius: 10rem;
  border: none;
  background-color: var(--color-blue);
  color: var(--color-white);
  cursor: pointer;
  font-weight: bold;
  transition: 0.4s;
}

#suggestions button:hover {
  opacity: 1;
  background-color: var(--color-blue-dark);
}