/* Poppins Font-family */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');


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

:root {
  --BACKGROUND-COLOR: #1CBBCF;
  --COLOR: #5b548a;
}


/* GENERAL */
/* button {
  cursor: pointer;
}

button:focus{
  outline: 2px solid var(--COLOR);
} */

input:focus {
  outline: none;
}

h1, h2{
  font-weight: 500;
}


/* PAGE LAYOUT */
body {
  display: flex;
  justify-content: center;
  align-items: center;
  
  min-height: 100vh;
  padding: 1rem;

  /* background-color: black; */
  background-image: url(../assets/images/fog.jpg);

  font-family: "Poppins", sans-serif;

  color: white;
}

.card {
  position: relative;
  z-index: 1;

  flex: 0 1 28.75rem;

  min-height: 650px;
  border-radius: 1rem;
  padding: 2rem;

  background-image: linear-gradient(135deg, #00feba, #5b548a);

  box-shadow: 1px 1px 10px 1px rgba(0, 0, 0, 0.527);

  overflow: hidden;
}

/*SEARCH SECTION*/
.search {
  position: relative;

  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;

  margin-bottom: 2.5rem;
}

.search__bar {

  width: 97.5%;
  border: none;
  border-radius: 1.8em;
  padding: 0.6em 1em;

  font-size: 1rem;
}

/*  Loading state*/
.show {
  display: flex;
  justify-content: center;
  align-items: center;

  width: 1.5em;
  height: 1.5em;
  border: 3px solid #fff;
  border-radius: 50%;
  border-top: 3px solid #1CBBCF;

  animation: spin 1s linear infinite;
}

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




/*HERO SECTION*/
.hero__section {
  display: flex;
  flex-flow: column nowrap;
  align-items: center;
  justify-content: start;

  margin-bottom: 2.5rem;
}

.hero__icon {
  margin-bottom: 1.5rem;
}

.temperature {
  font-size: 5rem;
}

.location {
  font-size: 3rem;
  text-align: center;
}

/*MORE INFO*/
.weather__data {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
}

.data__col {

  display: grid;
  grid-template-columns: repeat(2, auto);
  column-gap: 0.3rem;
}

.data {
  display: flex;
  flex-flow: column nowrap;
}

.data__value {
  font-size: 2rem;
  font-weight: 600;

  line-height: 180%;
  white-space: nowrap;
}

.data__title {
  font-size: 1.3rem;
  font-weight: 500;

  white-space: nowrap;
}

/* Pop UP & Pop DOWN */
/* Figure out how to hide the notification and swipe-up once out of the Card range */
.notification{
  position: absolute;
  top: -2rem;
  left: 1rem;
  right: 1rem;

  border: none;
  border-radius: 0 0 1.8em 1.8em;
  padding: 0.5em 1em;

  font-size: 0.8rem;
  font-weight: 600;

  color: black;
  background-image: linear-gradient(135deg,  #fe0044, #838a54);

  transition: transform 1000ms;

  overflow: hidden;
  text-align: center;
}

.notification-down {
  transform: translateY(1.8rem);
}

.swipe-up {
  position: absolute;
  z-index: 1;
  left: -8rem;

  animation-name: slide;
  animation-duration: 8000ms;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-direction: normal;

  color: black;

  font-weight: 600;
}

@keyframes slide {
  0% {
    transform: translateX(0rem) ;
  }
  100% {
    transform: translateX(37rem) ;
  }
}


/* Implement Landscape view */