* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Abel", sans-serif !important;
  /* font-family: 'Montserrat', sans-serif; */
}

body {
  width: 100%;
  height: 100vh;
  background: url("../img/bg10.jpg") no-repeat center center fixed;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

.container {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: linear-gradient(
    to right bottom,
    rgba(250, 237, 250, 0.7),
    rgba(155, 148, 152, 0.3)
  );
  backdrop-filter: blur(0.1rem);
}

.content {
  width: 30%;
  height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 1.5rem;
  box-shadow: 0 0 1rem 0 rgba(0, 0, 0, 0.4);
  background: url("../img/bg10.jpg") no-repeat center center fixed;
}

#title {
  width: 100%;
  margin: 1rem 0rem;
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.3rem;
  color: #790058;
  font-weight: bold;
}

.search_container {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: 100%;
  margin: 4.5rem 0rem;
  padding: 0rem 0.5rem;
  height: 10rem;
  justify-content: space-around;
  align-items: center;
}

.search_input {
  width: inherit;
  border: none;
  background-color: inherit;
  text-align: center;
  font-size: 3rem;
  transition: all 0.5s ease;
  font-family: "Abel", sans-serif;
  color: #290452;
}

.search_input:hover,
.search_input:active,
.search_input:focus {
  cursor: pointer;
  outline: none;
  color: whitesmoke;
}

.search_btn {
  padding: 1rem 0rem;
  border-radius: 0.55rem;
  width: 50%;
  border: none;
  color: whitesmoke;
  font-weight: lighter !important;
  background-image: linear-gradient(
    to left,
    rgba(255, 88, 114, 0.6),
    rgba(41, 4, 82, 0.7)
  );
  transition: all 0.9s ease;
}

.search_btn:hover,
.search_btn:active,
.search_btn:focus {
  cursor: pointer;
  outline: none;
  background-image: linear-gradient(
    to left,
    rgba(255, 88, 114, 0.4),
    rgba(41, 4, 82, 0.6)
  );
  font-size: 1rem;
  letter-spacing: 0.3rem;
}

.details {
  color: whitesmoke;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  transition: all 0.8s ease;
  overflow: hidden;
}

.hide {
  height: 0;
  visibility: hidden;
  opacity: 0;
}

.show {
  visibility: visible;
  opacity: 1;
  height: 100%;
}

.main_temp {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.desc_temp {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  font-size: 1.5rem;
}

.align_center {
  text-align: center;
}

hr {
  width: 100%;
}

.alert {
  position: absolute;
  top: 0;
  right: 0;
  margin: 1rem;
  height: auto;
  width: 25rem;
  padding: 0.5rem 0.5rem 0.5rem 0.9rem;
  z-index: 1;
  background: rgba(255, 225, 199, 0.5);
  border-radius: 0.3rem;
  box-shadow: 0 0.4rem 0.8rem 0 rgb(0 0 0 / 20%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
}

.btn-round {
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  background: none;
  border: none;
  transition: all 0.5s ease;
}

.btn-round:hover,
.btn-round:active,
.btn-round:focus {
  -moz-transform: rotate(180deg);
  -webkit-transform: rotate(180deg);
  transform: rotate(180deg);
  -ms-transform: rotate(180deg);
  outline: none;
  font-weight: bolder;
}

.temp {
  font-size: 4.5rem;
}

.capitalize {
  text-transform: capitalize;
}

.loading_container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loading_container img {
  -webkit-animation: spin 2s linear infinite;
  -moz-animation: spin 2s linear infinite;
  animation: spin 2s linear infinite;
}

.footer {
  text-align: center;
}

@-moz-keyframes spin {
  100% {
    -moz-transform: rotate(360deg);
  }
}
@-webkit-keyframes spin {
  100% {
    -webkit-transform: rotate(360deg);
  }
}
@keyframes spin {
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

/* FOR MOBILE PORTRAIT */
/* ======================================================= */
@media only screen and (max-width: 600px) {
  .content {
    width: 100%;
    height: 100vh;
    border-radius: 0;
    box-shadow: none;
  }

  .container {
    background-color: whitesmoke;
    background-image: none;
    backdrop-filter: unset;
  }

  .alert {
    height: auto;
    width: 70%;
    overflow: hidden;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 225, 199, 0.8);
  }
}

@media only screen and (max-width: 320px), (max-width: 360px) {
  .search_container {
    margin: 1.9rem 0rem;
  }
}

@media only screen and (width: 768px) {
  .content {
    width: 80%;
    height: 80vh;
  }
}

@media only screen and (width: 1024px) {
  .content {
    width: 60%;
    height: 75vh;
  }
}

@media only screen and (width: 280px) {
  .search_container {
    margin: 3rem 0rem;
  }
  .temp {
    font-size: 3.5rem;
  }
  .desc_temp {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    font-size: 1.2rem;
  }
}
/* ======================================================= */
/* END OF MOBILE PORTRAIT */

/* START OF MOBILE LANDSCAPE */
/* ======================================================= */
@media only screen and (max-width: 812px) and (orientation: landscape) {
  .content {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: row;
    align-items: center;
    border-radius: 0;
    box-shadow: none;
  }

  .details {
    background-image: linear-gradient(
      to right bottom,
      rgba(250, 237, 250, 0.7),
      rgba(155, 148, 152, 0.3)
    );
    color: #290452;
  }
}
/* ======================================================= */
/* END OF MOBILE LANDSCAPE */
