* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background-color: #181818;
  color: #222;
}

/* ETUSIVUN KUVA */

.hero {
  width: 100%;
  height: 100vh;

  background-image: url("images/hero.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;

  display: flex;
  justify-content: center;
  align-items: center;

  text-align: center;
}

/* Kuvan päällä oleva teksti */

.overlay {
  background-color: rgba(0, 0, 0, 0.55);
  color: white;

  padding: 40px;
  margin: 20px;

  border-radius: 10px;
  max-width: 700px;
}

.hero h1 {
  margin: 0;
  font-size: 64px;
}

.hero p {
  font-size: 22px;
  margin: 20px 0 35px;
}

.button {
  display: inline-block;

  padding: 14px 28px;

  background-color: white;
  color: #222;

  text-decoration: none;
  font-weight: bold;

  border-radius: 5px;
}

.button:hover {
  background-color: #ddd;
}

/* SISÄLTÖ */

main {
  background-color: #f1eee7;

  max-width: 900px;
  margin: 0 auto;

  padding: 80px 25px;
}

section {
  margin-bottom: 100px;
}

h2 {
  font-size: 40px;
  margin-bottom: 20px;
}

section p {
  font-size: 20px;
  line-height: 1.7;
}

.work {
  border-top: 1px solid #aaa;
  padding-top: 50px;
}

/* FOOTER */

footer {
  background-color: #222;
  color: #aaa;

  text-align: center;
  padding: 35px;
}

/* PUHELIN */

@media (max-width: 600px) {

  .hero h1 {
    font-size: 42px;
  }

  .hero p {
    font-size: 18px;
  }

  .overlay {
    padding: 25px 20px;
  }

  h2 {
    font-size: 32px;
  }

  section p {
    font-size: 18px;
  }
}