* {
  padding: 0;
  margin: 0;
  -webkit-user-select: none;  /* Chrome all / Safari all */
  -moz-user-select: none;     /* Firefox all */
  -ms-user-select: none;      /* IE 10+ */
  user-select: none;   
}

.main {
  background-image: url("./images/pexels-kai-pilger-1341279.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;  
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100vh;
  gap: 20px;
  justify-items: center;
}


.input {
  margin: 2rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  justify-self: end;
  margin-right: 4rem;
}

.input > input:first-child {
  border-radius: 7px;
  border: none;
  background-color: rgba(255, 255, 255, 100%);
  padding: 0.7rem;
  font-size: large;
  z-index: 2;
}

.weather__card {
  max-width: 500px;
  color: white;
  font-family: roboto, sans-serif;
  padding: 1.5rem;
  box-sizing: border-box;
  background-color: rgba(182, 182, 182, 0.4);
  width: 100%;
  align-self: center;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  border-radius: 15px;
}

.weather__metrics > .container > *{
  display: flex;
  font-size: 1.2rem;
  letter-spacing: 1px;
  gap: 5px;
  align-items: center;
}

.weather__metrics > .container > * > *:first-child{
  color: rgb(197, 197, 197);
}

.weather__metrics > .container {
  margin-left: 4rem;
  padding-left: 1rem;
  border-left: 2px solid rgba(255, 255, 255, 50%);
  display: grid;
  grid-template-columns: 1fr;
  align-content: center;
}

.weather__metrics {
  display: flex;
  padding-top: 1rem;
}

.weather__description {
  font-size: 2rem;
}

.weather__city {
  font-size: 3rem;
}

.weather__temp {
  font-size: 6rem;
  font-weight: 500;
  position: relative;
  letter-spacing: 3px;
}

.weather__temp--C::after {
  content: '\00B0 C';
  font-size: 3rem;
  position: absolute;
  top: 0rem;
}

.weather__temp--F::after {
  content: '\00B0 F';
  font-size: 3rem;
  position: absolute;
  top: 0rem;
}

.weather__feels > p:last-child {
  position: relative;
}

.weather__feels--C > p:last-child:after {
  content: '\00B0 C';
  font-size: 1rem;
  position: absolute;
  top: -0.3rem;
}

.weather__feels--F > p:last-child:after {
  content: '\00B0 F';
  font-size: 1rem;
  position: absolute;
  top: -0.3rem;
}

.form-switch--position {
margin-left: 10px;
}

.form-switch--position > .form-check-label{
  color: white;
  font-size: large;
}

#city-not-found {
  color: rgb(148, 7, 7);
  border-radius: 7px;
  border: none;
  background-color: rgba(255, 255, 255, 70%);
  padding: 0.7rem;
  font-size: large;
  transition: transform 300ms ease-in-out;
  position: absolute;
  z-index: 1;
}

.alter-transition {
  color: rgb(255, 255, 255);
  transform: translateX(-120px)
}

@media only screen and (max-width: 600px) {
  .input {
    justify-self: center;
    margin-right: 2rem;
  }
  .alter-transition {
    color: rgb(255, 255, 255);
    transform: translateY(90px)
  }
  .weather__card {
    width: auto;
  }
  .weather__temp {
    font-size: 3rem;
  }
}