* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  font-family: "Montserrat", sans-serif;
  color: rgb(255, 255, 255);
  background-image: linear-gradient(315deg, #c2118d 0%, #ff503c 74%);
  font-size: 20px;
}

@media (max-width: 550px) {
  body {
    display: flex;
    font-size: 15px;
    margin-top: 20%;
  }
}

h1 {
  text-transform: uppercase;
  text-align: center;
  padding: 10px;
}

.main-input {
  display: block;
}

@media (max-width: 550px) {
  .main-input {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
}

input {
  font-size: 16px;
  padding: 5px 10px;
  margin-top: 10px;
  background: none;
  border: none;
  color: #fff;
  border-bottom: 2px solid #ddd;
}

input::placeholder {
  color: #ddd;
  font-family: "Montserrat", sans-serif;
}

button {
  padding: 10px;
  margin: 0 0 0 20px;
  color: #fff;
  font-weight: bold;
  background: none;
  border-radius: 5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

@media (max-width: 550px) {
  button {
    margin: 20px 0;
    background-color: #795f46;
  }
}

button:hover {
  color: #333;
  background-color: #ddd;
}

.wrapper {
  max-width: 800px;
  width: 100%;
  padding: 20px 40px;
  background-color: rgba(0, 0, 0, 0.8);
  border: 2px solid white;
  border-radius: 25px;
}

.top {
  height: 300px;
}

.bottom {
  height: 140px;
}

.main-info {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 200px;
}

@media (max-width: 550px) {
  .top,
  .main-info {
    display: flex;
    flex-direction: column;
    height: 400px;
  }

  .bottom {
    height: 200px;
  }
}

.city-name {
  font-size: 40px;
}

@media (max-width: 550px) {
  .city-name {
    font-size: 25px;
    text-align: center;
  }
}

.headings,
.weather-info {
  display: flex;
  align-items: center;
}

.headings p,
.weather-info p {
  width: 33.3%;
  text-align: center;
}

.headings {
  height: 35%;
  text-transform: uppercase;
  font-weight: bold;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}

.weather-info {
  height: 65%;
  font-size: 26px;
}

@media (max-width: 550px) {
  .headings {
    flex-direction: column;
    font-size: 19px;
    align-items: flex-start;
    margin-top: 20px;
    gap: 30px;
    width: 50%;
    border-bottom: none;
    border-top: none;
    height: 0;
  }

  .weather-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
    margin-top: -5px;
  }
}

.photo {
  width: 140px;
  height: 140px;
  object-fit: contain;
}

.warning {
  margin-top: 10px;
  font-size: 14px;
  color: tomato;
}
