@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');

:root {
  --color1: #F8B195;
  --color2: #F67280;
  --color3: #000000;
  --color4: #6C5B78;
  --color5: #355C7D;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 14px;
}

body {
  background-image: linear-gradient(315deg, #b787e6 0, #c582dd 5.56%, #d27dd3 11.11%, #dc79c8 16.67%, #e575bc 22.22%, #ec73b0 27.78%, #f171a4 33.33%, #f47097 38.89%, #f6708b 44.44%, #f6727f 50%, #f47573 55.56%, #f17868 61.11%, #ed7c5e 66.67%, #e78054 72.22%, #e0854b 77.78%, #d98a43 83.33%, #d08e3d 88.89%, #c69338 94.44%, #bc9735 100%);
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  font-family: 'Poppins', sans-serif;
  color: #fff;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

p {
  font-size: 1.6rem;
  line-height: 1.5;
}

img {
  width: 100%;
  max-width: 320px;
}

.container {
  width: 100%;
  /* margin: 0 auto; */
}

.main-container {
  display: flex;
  justify-content: center;
  align-items: center; 
  flex-direction: column;
  width: 100%;
  max-width: 320px;
  height: 80vh;
  background: url(./images/6.jpg) no-repeat center;
  background-size: cover;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.main-container::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, 
      rgba(0,0,0,0),
      rgba(0,0,0, .6));
  z-index: 0;
}

.top {
  text-align: center;
  z-index: 999;
}

.top h1 {
  margin: 10px;
  color: #fff;
  line-height: 2;
  letter-spacing: 2.2px;
}

.top input {
  /* display: block; */
  width: 80%;
  margin: 0 auto;
  padding: 10px;
  margin-bottom: 5px;
  outline: none;
  border: none;
}

.search {
  position: relative;
}

.top input {
  background-color: rgba(0, 0, 0, .5);
  border: solid 2px var(--color2);
  border-radius: 10px 0 10px 0;
  text-indent: 50px;
  font-size: 14px;
  color: #fff;
}

.top button {
  width: 15%;
  position: absolute;
  border: none;
  outline: none;
  background-color: var(--color2);
  border-radius: 0 0 5px 0;
  top: 0;
  padding: .9rem;
  right: 2rem;
  cursor: pointer;
  transition: all .3s;
} 

.top button:hover {
  background-color: var(--color2);
} 

.top button:active {
  transform: scale(.98);
  color: var(--color5);
  font-size: 15px;
}


.top input:focus {
  font-size: 15px;  
  text-indent: 3px;
}

.search input::placeholder {
  color: rgb(190, 188, 188);
}

.top .error {
  color: white;
  font-size: 14px;
}

.icon {
  text-align: center;
  padding-top: 15px;
}

.location {
  padding-bottom: 15px;
  text-align: center;
  line-height: 1.8;
}

.location .city {
  font-size: 20px;
  font-weight: bold;
}

.current {
  position: relative;
  width: 100%;
  padding-top: 10px;
}

.current::before {
  content: "";
  position: absolute;
  top: -2%;
  transform: translateX(150px);
  left: 0;
  width: 5%;
  height: 2px;
  background-color: var(--color1);
}

.current::after {
  content: "";
  position: absolute;
  bottom: -10%;
  left: 50%;
  transform: translateX(12%);
  left: -0;
  width: 80%;
  height: 2px;
  background-color: var(--color1);
}

.current > * {
  padding-bottom: 5px;
}

.temp {
  text-align: center;
  font-weight: bold;
  width: 30%;
  padding: 2px 2px;
  transform: translateX(116%);
  border-radius: 5px 0 5px 0;
  background-color: var(--color5);
}

.weather-icon {
  width: 4rem;
  height: 4rem;
}