*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: sans-serif;
}

html {
  scroll-behavior: smooth;
}

.slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

#logo {
  position: absolute;
  top: 15%;
  margin-left: 15%;
  margin-right: 15%;
  text-align: center;
  font-size: 60px;
}

section {
  display: flex;
  height: 70vh;
  justify-content: center;
  align-items: center;
}

.hero {
  height: 60%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body {
  background-color: black;
  color: white;
}

.headline {
  position: absolute;
  top: 60%;
  left: 13%;
  font-size: 45px;
  transform: translate(-13%, -60%);
}

h2 {
  font-weight: bold;
}

h3 {
  text-align: center;
  margin-top: 2em;
}

.weatherForm {
  height: 15%;
  display: block;
}
.form-group {
  font-size: 1.2em;
  margin-bottom: 1em;
}
.form-control {
  font-size: 1.2rem;
}
label {
  font-weight: bold;
}

.button-container {
  display: flex;
  justify-content: center;
}

.btn {
  font-size: 1.2rem;
  padding: 10px;
  font-weight: bold;
  color: white;
  border: none;
  border-radius: 5px;
  margin-bottom: 2em;
}

.locationStyling {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.card img {
  display: block;
  width: 80px;
  align-self: center;
}

.card {
  margin: 1em;
  width: 25rem;
  background-color: darkgrey;
  color: black;
}

.alert {
  width: 70%;
  font-size: 1.2rem;
  margin: 1em auto;
}

p {
  font-size: 1.2rem;
}

h5 {
  font-size: 1.5rem;
}

.btn {
  width: 30rem;
  height: 3rem;
}

@media (max-width: 800px) or (max-height: 800px) {

  body {
    min-width: 300px;
    min-height: 500px;
  }

  section {
    max-height: 750px;
    min-height: 300px;
    min-width: 300px;
    height: 40vh;
    width: 100%;
    object-fit: scale-down;
  }

  #logo {
    top: 2em;
    font-size: 1.8rem;
  }

  .headline {
    font-size: 1.5rem;
    text-align: center;
    top: 7em;
    right: 15%;
  }

  .card {
    max-width: 400px;
    width: 70%;
  }

  .card img {
    width: 20%;
    min-width: 50px;
  }

  .weatherForm {
    max-height: 250px;
    height: auto;
    justify-content: center;
    align-items: center;
    object-fit: scale-down;
  }

  .container {
    width: 80%;
  }

  .form-control {
    height: 3rem;
  }

  .button-container {
    align-items: center;
  }

  .btn  {
    width: 60%;
    height: 3rem;
  }
}
