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

body {
  font-family: Arial, sans-serif;
  background-color: #cccccc;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

body::after {
  content: '';
  position: fixed;
  bottom: 0;
  right: 0;
  width: 80%;
  height: 80%;
  background-image: url('/public/machines.jpg');
  background-size: contain;
  background-position: bottom right;
  background-repeat: no-repeat;
  z-index: 0;
  opacity: 0.9;
}

.container {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.header {
  position: absolute;
  top: 0;
  right: 60px;
  z-index: 10;
}

.logo-section {
  text-align: center;
}

.logo {
  width: 120px;
  height: auto;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  /* justify-content: center; */
  align-items: flex-start;
  padding: 200px 20px 120px;  /* Yläreuna (200px), sivut (20px), alareuna (120px) */
  position: relative;
}

.text-section {
  max-width: 900px;
  margin-bottom: 60px;
}

h1 {
  font-size: 42px;
  line-height: 1.4;
  color: #ff6600;
  font-weight: normal;
}

.image-section {
  display: none;
}

.footer {
  background-color: transparent;
  padding: 30px 60px;
  text-align: center;
}

.footer p {
  font-size: 20px;
  color: #ff6600;
  font-weight: bold;
  letter-spacing: 0.5px;
}

.footer a {
  color: #ff6600;
  text-decoration: none;
  font-weight: bold;
}

.footer a:hover {
  text-decoration: underline;
}

@media (max-width: 1024px) {
  h1 {
    font-size: 32px;
  }

  .header {
    top: 0;
    right: 30px;
  }

  .logo {
    width: 100px;
  }

  .main-content {
    padding: 60px 30px 80px;
  }

  .footer p {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 24px;
  }

  .header {
    position: static;
    text-align: center;
    padding: 10px 20px;
  }

  /* Mobiilissa taustakuva keskellä ja suurempi */
  body::after {
    width: 100%;
    height: 50%;
    background-position: center center;
    bottom: 10%;
  }

  .logo {
    width: 80px;
  }

  .main-content {
    padding: 40px 20px 60px;
  }

  .footer {
    padding: 20px;
  }

  .footer p {
    font-size: 14px;
  }
}
