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

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
}

.container {
  width: 100vw;
}

* {
  font-family: "Lato", sans-serif;
}

h1 {
  font-weight: 700;
  font-size: 40px;
  color: rgb(27, 27, 27);
}

h2 {
  font-weight: 400;
  font-size: 22px;
  color: rgb(27, 27, 27);
}

h3 {
  font-weight: 200;
  font-size: 14px;
  color: rgb(27, 27, 27);
}

p {
  font-weight: 100;
}

* {
  font-family: Arial, Helvetica, sans-serif;
}

#hero {
  height: 80vh;
  background-image: url("../images/oil-full.webp");
  background-repeat: no-repeat;
  background-size: cover;
}
#hero h2 {
  padding: 10px;
  color: whitesmoke;
  text-align: center;
  font-size: 30px;
}
#hero hr {
  color: dimgray;
  width: 60%;
}
#hero #welcome {
  height: 100%;
  display: flex;
  align-items: center;
  color: whitesmoke;
  width: 70%;
  margin: auto;
}
#hero #welcome h1 {
  color: whitesmoke;
  font-size: 36px;
  padding: 40px;
  border-width: 0;
  border-radius: 5px;
  font-weight: bolder;
  background-color: rgba(10, 10, 10, 0.4);
  margin: auto;
}

#about-us {
  display: flex;
  flex-direction: row;
  width: 100%;
  min-height: 400px;
}
#about-us .col {
  width: 50%;
  padding: 20px 50px 20px 50px;
}
#about-us .col h1 {
  padding: inherit;
  color: green;
}
#about-us .col h2 {
  padding: inherit;
}
#about-us .col p {
  padding: inherit;
  line-height: 1.5rem;
  color: dimgray;
}
#about-us .col-bg {
  flex-grow: 1;
  background-image: url("../images/person-refinery.webp");
  background-size: cover;
  background-repeat: no-repeat;
}
@media screen and (max-width: 800px) {
  #about-us {
    flex-direction: column;
  }
  #about-us .col {
    width: 90%;
    padding: 20px 10px 20px 10px;
  }
}

#services {
  display: flex;
  flex-direction: column;
  background-color: whitesmoke;
}
#services h1 {
  padding: 20px;
  margin: auto;
  color: green;
}
#services p {
  color: dimgray;
  line-height: 1.5rem;
}
#services .row {
  display: flex;
  flex-direction: row;
}
#services .row .col {
  width: 50%;
  align-content: center;
  padding: 20px;
}
#services .row .col img {
  width: 100%;
}
@media screen and (max-width: 800px) {
  #services .row {
    flex-direction: column;
  }
  #services .row .col {
    width: 90%;
  }
}

#products {
  background-color: green;
  color: white;
  display: flex;
  align-items: top;
  flex-direction: column;
}
#products h1 {
  padding: 20px;
  color: white;
  margin: auto;
}
#products h2 {
  color: white;
}
#products p {
  line-height: 1.5rem;
}
#products .row {
  display: flex;
  flex-direction: row;
  padding: 10px 25px 0 25px;
  align-items: start;
}
#products .row .col {
  width: 30%;
  padding: 10px 20px 10px 20px;
  text-align: center;
  margin: 0 auto;
}
@media screen and (max-width: 800px) {
  #products .row {
    flex-direction: column;
  }
  #products .row .col {
    width: 90%;
  }
}

#contact-us {
  display: flex;
  flex-direction: column;
}
#contact-us h1 {
  margin: 20px auto;
  color: green;
}
#contact-us h2 {
  margin: 20px auto;
}
#contact-us h3 {
  margin: auto;
}
#contact-us .button {
  color: white;
  margin: 20px auto;
  padding: 10px;
  border-radius: 3px;
  background-color: green;
  border-width: 0;
}

#end-cap {
  display: flex;
  flex-direction: column;
  padding: 30px;
  background-color: black;
  color: whitesmoke;
}
#end-cap h5, #end-cap h4 {
  margin: auto;
  padding: 20px;
}