@import url("https://fonts.googleapis.com/css2?family=Bree+Serif&family=Nunito+Sans&family=Piazzolla:wght@500&family=Quicksand:wght@500&family=Rubik&family=Signika+Negative&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/* variables in css for colors */
:root {
  --main-bg: #1e272e;
  --main-color: #0097e6;
}

/* to maintain responsive ness */
html {
  font-size: 62.5%;
}

body {
  display: flex;
  flex-direction: column;
  height: 100vh;
  font-family: "Piazzolla", "rubik", "signika negative";
  font-weight: 500;
}

.row {
  margin: 0;
}
.main_menu {
  background-color: var(--main-bg);
}
.navbar {
  color: #fff;
  background-color: var(--main-bg);
  padding: 2rem 0;
}
.navbar li {
  margin-left: 2rem;
}
.navbar a {
  color: #fff;
  font-size: 1.8rem;
  font-family: "signika negative", "bree serif";
}
.navbar a:hover {
  color: var(--main-color);
}

.fa-snowflake {
  transition: all linear;
  animation: rot 2s linear infinite;
  color: var(--main-color);
}

@keyframes rot {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* main header */
.main_header_left {
  height: 70rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.main_header_left p {
  font-size: 2rem;
}
.main_header_left h1 {
  font-size: 4rem;
  margin: 1rem 0 5rem 0;
  text-transform: capitalize;
}
.main_header_left .text_clr {
  color: var(--main-color);
}
.main_header_left button {
  border: none;
  padding: 0.8rem 1.8rem;
  font-size: 1.4rem;
  border-radius: 2rem;
  text-transform: uppercase;
  box-shadow: 0 8px 6px -6px #000;
}
.main_header_left button:hover {
  box-shadow: 0 8px 6px -6px var(--main-color);
}

/* input fields */
.temp_form {
  width: 60%;
  position: relative;
  margin: 10rem auto 6rem;
}
.temp_form input[type="text"] {
  width: 100%;
  padding: 2rem 5rem 2rem 2rem;
  background: #1e202b;
  color: white;
  outline: none;
  border: none;
  font-size: 1.7rem;
  border-radius: 3rem;
}
::placeholder {
  color: #bfc1c8;
  font-family: "bree serif", "signika negative";
}

/* iput submit button */
.temp_form input[type="submit"] {
  position: absolute;
  top: 5px;
  right: 5px;
  bottom: 5px;
  border: none;
  background: #009ad8;
  padding: 0 3rem;
  border-radius: 3rem;
  color: white;
  font-size: 1.6rem;
}
.temp_form input[type="submit"]:hover {
  color: #009ad8;
  background-color: #fff;
}

/* temperature ka dibba */
.tempInformation {
  width: 40rem;
  margin: auto;
  min-height: 20rem;
  background-color: #323544;
  border-radius: 1rem;
  font-family: "roboto", "signika negative";
}
.top_layer {
  width: 100%;
  height: 20%;
  background-color: #2d303d;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 1rem;
}
.top_layer p {
  color: #fff;
  font-weight: 300;
  padding: 2rem;
  font-size: 1.4rem;
}
.main_layer {
  width: 100%;
  height: 80%;
  display: flex;
  flex-direction: column;
}
.main_layer #city_name {
  padding: 2rem 2rem;
  color: #bfc1c8;
  font-weight: 300;
  font-size: 2rem;
}
.main_layer .middle_layer {
  display: flex;
  justify-content: space-around;
  color: #fff;
}
.main_layer .middle_layer p,
.main_layer .middle_layer .fa {
  font-size: 7rem;
  font-weight: 900;
}

.fa {
  color: #009ad8;
}
sup {
  font-size: 6rem;
  margin-top: -2rem;
}
.data_hide {
  visibility: hidden;
  transform: all 0.3s linear;
}

.main_header_right {
  height: 70rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
/* error page style */
.errimg {
  width: 60rem;
  height: 30rem;
}
.main_header_right figure img {
  filter: drop-shadow(0 0.5rem 1rem rgba(0, 0, 0, 0.3));
}
figure {
  margin-bottom: 10rem;
}
footer {
  margin: auto;
  width: 100%;
  background-color: var(--main-bg);
  margin-bottom: 0px;
}
footer .footer_a {
  text-decoration: none;
  color: red;
  cursor: pointer;
}
footer p {
  margin: 0;
  text-align: center;
  color: #fff;
  line-height: 5rem;
  font-size: 1.4rem;
  font-family: "bree serif", "signika negative";
}

/* responsive code */
@media (max-width: 768px) {
  .main_header_left {
    height: auto;
    margin: 5rem 0;
  }
  .main_header_right {
    height: auto;
    margin-top: 3rem;
    margin-bottom: -9rem;
  }
  .temp_form {
    width: auto;
  }
  .tempInformation {
    width: auto;
  }
  .main_header_right figure img {
    height: 34rem;
  }
}

.fa-bars {
  color: white;
  font-size: 3rem;
}
