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

:root {
  --main-yellow: rgb(231, 195, 119);
  --main-gray: rgb(41, 41, 41);
}

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

body {
  background-color: var(--main-gray);
  overflow-x: hidden;
  position: fixed;
  height: 100%;
  min-height: 100%;
  font-family: 'Ubuntu', sans-serif;
}

/* HAMBURGER */
.menu {
  display: block;
  width: 42px;
  /* less width = square hamburger */
  height: 32px;
  position: relative;
  cursor: pointer;
  visibility: hidden;
  z-index: 55;
}

.menu .bar {
  position: absolute;
  height: 8px;
  width: 100%;
  background: var(--main-yellow);
  transition: 0.5s;
}
.menu .bar:nth-child(1) {
  top: 0px;
}
.menu .bar:nth-child(2) {
  top: 16px;
}
.menu .bar:nth-child(3) {
  top: 32px;
}
.menu.is-active .bar:nth-child(1) {
  transform: rotate(45deg) translate(6px, 16px);
}
.menu.is-active .bar:nth-child(2) {
  opacity: 0;
}
.menu.is-active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -16px);
}

header #contacts {
  background-color: var(--main-yellow);
  text-align: center;
  padding: 0.25em 0;
}
header a, a:visited, a:hover {
  color: var(--main-gray);
  text-decoration: none;
}
#logo {
  width: fit-content;
}
#logo img {
  height: 10em;
}

.nav-wrapper {
  display: flex;
  padding: 0.5em 2em 0 2em;
  justify-content: space-between;
  background-color: rgba(0, 0, 0, 0.6);
  overflow-x: hidden;
}

.nav-items {
  list-style: none;
  display: flex;
  transition: 0.5s;
}

.nav-link {
  font-size: 1.3em;
  padding: 0 1.5em;
  transition: 0.5s;
}
.nav-link::after {
  content: '';
  display: block;
  width: 0%;
  margin: auto;
  transition: 0.5s;
}
.nav-link:hover::after {
  background-color: var(--main-yellow);
  width: 100%;
  height: 3px;
}

.nav-link a {
  color: var(--main-yellow);
  text-decoration: none;
}
.active {
  right: 0;
}
@media screen and (max-width: 920px) {
  nav {
    position: absolute;
    top: 10em;
    right: -500px;
    overflow-x: hidden;
    transition: 0.5s;
  }

  .nav-items {
    flex-direction: column;
  }
  .nav-link:first-child {
    border-top: 1px dotted var(--main-yellow);
  }
  .nav-link:last-child {
    border-bottom: 3px solid var(--main-yellow);
    border-bottom-left-radius: 0.3em;
  }
  .nav-link {
    background-color: rgba(7, 7, 7, 0.9);
    padding: 0.5em;
    border-left: 1px solid var(--main-yellow);
  }

  .menu {
    visibility: visible;
    margin-top:5em;
    margin-right: 2em;
  }
}

@media screen and (max-width: 420px) {
  nav {
    position: absolute;
    top: 8em;
    right: -500px;
    overflow-x: hidden;
    transition: 0.5s;
  }
  #logo img {
    height: 7em;
  }
  #hero .wrapper h1 {
    font-size: 2.25em;
  }
  .nav-items {
    flex-direction: column;
  }
  .nav-link:first-child {
    border-top: 1px dotted var(--main-yellow);
  }
  .nav-link:last-child {
    border-bottom: 3px solid var(--main-yellow);
    border-bottom-left-radius: 0.3em;
  }
  .nav-link {
    background-color: rgba(7, 7, 7, 0.9);
    padding: 0.5em;
    border-left: 1px solid var(--main-yellow);
  }

  .menu {
    visibility: visible;
    margin-top:2em;
    margin-right: 1em;
  }
  footer .wrapper {
    display: flex;
    flex-direction: column;
    justify-items: center;
    justify-content: space-evenly;
    align-items: flex-start;
    background-color: inherit;
  }
  footer {
    display: flex;
    justify-content: center;
  }
}

/* Hero Section */
#hero {
  background-image: url("/static/img/image-three-machines.jpg");
  background-repeat: no-repeat;
  overflow-x: hidden;
}

#hero .wrapper {
  padding: 0 3em;
  z-index: 2;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
}

#hero h1 {
  padding: 2em 0;
  background-color: rgb(7, 7, 7);
  background: linear-gradient(90deg, var(--main-yellow) 0%, #ffb514 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -moz-background-clip: text;
  -webkit-text-fill-color: transparent;
  -moz-text-fill-color: transparent;
  color: var(--main-yellow);
  font-size: 3em;
  text-align: center;
}

#hero h2 {
  background-color: rgb(7, 7, 7);
  background: linear-gradient(90deg, var(--main-yellow) 0%, #ffb514 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -moz-background-clip: text;
  -webkit-text-fill-color: transparent;
  -moz-text-fill-color: transparent;
  color: var(--main-yellow);
  font-size: 1.7em;
  text-align: center;
}

span.suuri {
  font-size: larger;
}

span.pieni {
  font-size: smaller;
}

#hero ul {
  padding: 1.5em 0;
  text-align: center;
  font-size: 1.5em;
  color: #fff;
  list-style: none;
}

#hero .list-item {
  padding: 1em 0;
  transition: all 0.5s ease;
  cursor: pointer;
}

#hero .list-item:hover {
  background-color: rgba(231, 195, 119, 0.6);
  border-radius: 0.2em;
  color: rgb(7, 7, 7);
  transition: all 0.5s ease;
}

/* UNELMA SECTION */

#unelma {
  background: linear-gradient(90deg, var(--main-yellow) 0%, #fff 50%, var(--main-yellow) 100%);
  text-align: center;
  display: flex;
  justify-content: center;
}

#unelma .wrapper {
  padding: 1em 3em;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  /* box-shadow: 0 1em 1em 1em #ffb514; */
  width: 100%;
}

#unelma h1 {
  font-size: 2.5em;
  padding: 1em 0.5em;
  background: linear-gradient(180deg, var(--main-yellow) 0%, #ffb514 100%);
  -moz-text-fill-color: transparent;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  -moz-background-clip: text;
}

#unelma .shadow {
  border-radius: 0.4em;
  /* box-shadow: -1em 0 1em 0.2em rgba(255, 136, 0, 0.5), 1em 0 1em 0.2em rgba(255, 136, 0, 0.5); */
  height: 100%;
  background-color: rgb(7, 7, 7);
  background: linear-gradient(45deg, rgb(41, 41, 41) 0%, rgb(19, 19, 19) 100%);
}

#unelma p {
  padding: 1em 2em;
  line-height: 1.5em;
  color: #fff;
  font-size: 1.2em;
}

/* TURVALLISUUS */
#turvallisuus {
  background-image: url("/static/img/image-safety-first.jpg");
  height: 100%;
  z-index: 3;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;

}

#turvallisuus .wrapper {
  background-color: rgba(7, 7, 7, 0.5);
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  text-align: center;
  padding-bottom: 5rem;
}

#turvallisuus .text-wrapper {
  width: 75%;
  padding-top: 5em;
}

#turvallisuus h1 {
  font-size: 3em;
  padding-bottom: 2em;
  background: linear-gradient(270deg, var(--main-yellow) 0%, #ffb514 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -moz-background-clip: text;
  -webkit-text-fill-color: transparent;
  -moz-text-fill-color: transparent;
}

#turvallisuus p {
  font-size: 1.5em;
  color: #000;
  background: linear-gradient(90deg, rgba(231, 195, 119, 0.8) 0%, rgba(255, 181, 20, 0.5) 100%);
  padding: 1.5em 1em;
  border-radius: 0.2em;
  text-align: center;
}


/* YHTEYS */


#yhteys {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1em 0;
  background: linear-gradient(180deg, var(--main-gray) 0%, var(--main-yellow)100%);
  color: #000;
}

#yhteys h1 {
  font-size: 2em;
  background: linear-gradient(180deg, var(--main-gray) 0%, #0a0907 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -moz-background-clip: text;
  -webkit-text-fill-color: transparent;
  -moz-text-fill-color: transparent;
  z-index: 5;
}

#yhteys .wrapper {
  border-radius: 0.5em;
  background-color: rgba(255, 212, 112, 0.8);
  width: 80%;
  padding: 0.5em;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 3;
}

#yhteys .wrapper form {
  display: flex;
  flex-direction: column;
  width: 100%;
}

#yhteys form button {
  padding: 1em 0;
  margin-top: 1em;
}

/* FOOTER */
footer {
  padding-bottom: 1em;
  min-height: 8em;
  background-color: var(--main-yellow);
}

footer .wrapper {
  display: flex;
  justify-content: space-evenly;
  align-items: flex-start;
  background-color: inherit;
}

footer h1 {
  padding: 0.5rem 0;
  font-size: 1.3em;
}

footer a {
  text-decoration: none;
  color: #000;
}

footer img {
  height: 4em;
}
/* YRITYS */
#yritys p {
  padding: 1.5em 0;
  text-align: center;
  font-size: 1.5em;
  color: #fff;
  list-style: none;
}

#kalusto ul {
    padding: 1.5em 0;
    text-align: center;
    font-size: 1.5em;
    color: #fff;
    list-style: none;
}
#kalusto li {
  padding: 1em 0;
  transition: all 0.5s ease;
  cursor: pointer;
}

#kalusto li:hover {
  background-color: rgba(231, 195, 119, 0.6);
  border-radius: 0.2em;
  color: rgb(7, 7, 7);
  transition: all 0.5s ease;
}

.vuokrakone {
  display: flex;
  flex-direction: row;
  justify-content: center;
  width: 100%;
}

.vuokrakone h2 {
  font-size: 1.7em;
  text-align: center;
}
.vuokrakone .image {
  flex: 1 1 0;
  padding: 0.5em;
}
.vuokrakone .image img {
  max-width: 100%;
  border-radius: 0.2em;
}

.vuokrakone .info {
  padding: 0.5em;
  flex: 1 1 0;
  text-align: center;
  width: 50%;
  word-wrap: break-word;
  hyphens: manual;
}

.vuokrakone .datasheet {
  text-align: left;
}
