* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: #2980b9; /* fallback for old browsers */
  background: -webkit-linear-gradient(
    to left,
    #ffffff,
    #6dd5fa,
    #2980b9
  ); /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(
    to left,
    #ffffff,
    #6dd5fa,
    #2980b9
  ); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
}

.container {
  width: 28rem;
  border-radius: 7px;
  background: #fff;
  transition: all 1s ease;
  box-shadow: rgba(17, 17, 26, 0.1) 0px 4px 16px,
    rgba(17, 17, 26, 0.1) 0px 8px 24px, rgba(17, 17, 26, 0.1) 0px 16px 56px;
}

.container header {
  color: #2980b9;
  font-size: 21px;
  font-weight: 500;
  padding: 16px 15px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #bfbfbf;
}
header i {
  cursor: pointer;
  font-size: 0px;
  margin-right: 8px;
}

.container.active header i {
  font-size: 30px;
  margin-left: 5px;
  position: relative;
  transition: all 0.5s;
}
.container.active header i:hover {
  right: 5px;
}

.container .input {
  margin: 20px 25px 30px;
}

.container.active .input {
  display: none;
}

.input .info-txt {
  display: none;
  font-size: 17px;
  text-align: center;
  padding: 12px 10px;
  border-radius: 7px;
  margin-bottom: 15px;
}
.info-txt.error {
  display: block;
  color: #721c24;
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  font-weight: bold;
}
.info-txt.pending {
  display: block;
  color: #0c5460;
  background: #d1ecf1;
  border: 1px solid #bee5eb;
  font-weight: bold;
}
.input :where(input, button) {
  width: 100%;
  height: 55px;
  border: none;
  outline: none;
  border-radius: 7px;
  font-size: 18px;
}

.input input {
  border: 1px solid #bfbfbf;
  text-align: center;
  box-shadow: rgba(127, 127, 127, 0.35) 0px -50px 36px -28px inset;
}

.input input:is(:focus, :valid) {
  border: 2px solid #43affc;
}

.input .separator {
  height: 1px;
  width: 100%;
  margin: 25px 0;
  background: #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
}
.separator::before {
  content: "or";
  color: #ccc;
  font-size: 19px;
  padding: 0 15px;
  background: #fff;
}

.input button {
  color: #fff;
  cursor: pointer;
  font-weight: bold;
  background: #2980b9; /* fallback for old browsers */
  background: -webkit-linear-gradient(
    to left,
    #2980b9,
    #6dd5fa,
    #2980b9
  ); /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(
    to left,
    #2980b9,
    #6dd5fa,
    #2980b9
  ); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
  box-shadow: rgba(127, 127, 127, 0.35) 0px -50px 36px -28px inset;
}
.input button:hover {
  text-decoration: underline;
}
.container .weather {
  margin: 30px 0 0;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.container.active .weather {
  display: flex;
}

.weather img {
  max-width: 125px;
}

.weather .temp {
  display: flex;
  font-size: 72px;
  font-weight: 500;
}

.weather .temp .num {
  font-weight: 600;
}

.weather .temp .deg {
  font-size: 40px;
  margin: 10px 5px 0 0;
  display: block;
}

.weather .type {
  font-size: 21px;
  text-align: center;
  margin: -5px 20px 15px;
}

.weather .location {
  display: flex;
  align-items: center;
  font-size: 21px;
  margin-bottom: 30px;
}

.location i {
  font-size: 22px;
}

.weather .bottom {
  width: 100%;
  display: flex;
  align-items: center;
  border-top: 1px solid #bfbfbf;
  justify-content: space-between;
  justify-content: center;
}

.bottom .column {
  width: 100%;
  display: flex;
  padding: 15px;
  align-items: center;
  justify-content: center;
}

.column i {
  color: #43affc;
  font-size: 40px;
}

.column.humidity {
  border-left: 1px solid #bfbfbf;
}

.details .temp,
.humidity span {
  font-size: 18px;
  font-weight: 500;
  margin-top: -3px;
}

.details .temp .deg {
  margin: 0;
  font-size: 17px;
  padding: 0 2px 0 1px;
}

.details p {
  font-size: 14px;
  margin-top: -6px;
}
