@import "./reset.css";
@import url(https://fonts.googleapis.com/css?family=Rubik:300,regular,500,600,700,800,900,300italic,italic,500italic,600italic,700italic,800italic,900italic);
:root {
  --opacity: 0.8;
}

html,
body {
  min-height: 100vh;
}

body {
  font-family: "Rubik", sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 40px;
  background: url("../img/lukasz-lada-LtWFFVi1RXQ-unsplash.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Header */
.header {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 15px 30px;
  background: transparent;
}
.title {
  color: #fff;
  opacity: var(--opacity);
  font-weight: 500;
  line-height: 1.8;
  font-size: 44px;
  margin-bottom: 20px;
}

.form {
  display: flex;
  height: 54px;
  background-color: #fff;
  opacity: var(--opacity);
  border-radius: 6px;
}
.input {
  padding: 15px;
  font-weight: 300;
  font-size: 20px;
  line-height: 1;
  color: #000;
  border-radius: 6px;
  transition: all 0.3 ease-in;
}

.btn {
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  color: #fff;
  width: 145px;
  height: 54px;
  background: #b993d6; /* fallback for old browsers */
  background: -webkit-linear-gradient(to bottom, #8ca6db, #b993d6); /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(
    to bottom,
    #8ca6db,
    #b993d6
  ); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */

  border-radius: 6px;
  transition: all 0.3s ease-in;
}

.btn:hover {
  background: #4776e6; /* fallback for old browsers */
  background: -webkit-linear-gradient(to top, #8e54e9, #4776e6); /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(
    to top,
    #8e54e9,
    #4776e6
  ); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
}

/* Card */
.card {
  color: #3d3d3d;
  display: flex;
  flex-direction: column;
  row-gap: 10px;
  position: relative;
  padding: 30px;
  width: 500px;
  max-height: 100%;
  background-color: #fff;
  opacity: var(--opacity);
  border-radius: 6px;
  box-shadow: 0 5px 20px rgba(27, 108, 114, 0.25);
  transition: all 0.3s ease-in;
}

.card::before {
  position: absolute;
  left: 10px;
  bottom: -10px;
  z-index: -1;
  content: "";
  display: block;
  width: calc(100% - 20px);
  height: 136px;
  background-color: #fff;
  opacity: var(--opacity);
  border-radius: 6px;
  /* box-shadow: 0 5px 20px rgba(27, 108, 114, 0.25); */
}

.card-error {
  color: #3d3d3d;
  display: flex;
  row-gap: 10px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 30px;
  width: 500px;
  max-height: 100%;
  background-color: #fff;
  opacity: var(--opacity);
  border-radius: 6px;
  box-shadow: 0 5px 20px rgba(27, 108, 114, 0.25);
}
.card-error {
  text-align: center;
  opacity: var(--opacity);
  font-size: 24px;
}

.card-country {
  font-weight: 500;
  font-size: 28px;
  line-height: 1;
}

.card-country span {
  display: inline-block;
  vertical-align: text-top;
  padding: 3px 5px;
  background-color: red;
  border-radius: 6px;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
}

/* .card-city {
} */
.card-weather {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card-value {
  font-size: 72px;
  line-height: 1;
}

.card-img {
  width: 40%;
}

.card-value sup {
  font-size: 50%;
}
.card-localtime {
  font-size: 16px;
  font-weight: 300;
}

.card-description {
  font-size: 20px;
  line-height: 1.2;
}

/* Footer */

.footer {
  margin-top: auto;
  padding: 10px 15px 28px;
  font-size: 14px;
  line-height: 1;
  text-align: center;
  width: 100%;
  background: transparent;

  color: #2e7695;
}

.footer a {
  color: #fff;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

.footer a:hover {
  background: #b993d6; /* fallback for old browsers */
  background: -webkit-linear-gradient(to bottom, #8ca6db, #b993d6); /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(
    to bottom,
    #8ca6db,
    #b993d6
  ); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
  padding: 5px 10px;
  color: #000;
  border-radius: 6px;
}

/* Media */

@media only screen and (max-width: 768px) {
  body {
    row-gap: 20px;
  }
  .title {
    font-size: 34px;
  }
  .card {
    width: 300px;
  }
  .card-error {
    width: 300px;
  }
  .card-error__message {
    font-size: 15px;
  }
  .input {
    width: 210px;
    font-size: 15px;
  }
  .btn {
    width: 70px;
    font-size: 15px;
  }
}
