*, *::after, *::before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
:root {
  --dark: rgb(24,24,24);
  --dark-alpha: rgba(24,24,24, 0.9);
  --dark-alpha-5: rgba(24,24,24, 0.5);
  --gray-dark: rgb(48, 48, 48);
  --gray: rgb(85, 85, 85);
  --light: rgb(247, 247, 247);
  --font-family: "Prompt", sans-serif;
  --font: "Hind Madurai", sans-serif;
}
img {
  border-radius: 3px;
  margin-top: .7em;
  box-shadow: inset 0px 0px 20px 10px rgba(24,24,24, 0.6);
  align-self: center;
  object-fit: cover;
  max-width: 100%;
}
header {
  width: 100%;
  background-color: var(--dark);
  height: 5em;
  color: var(--light);
  border-bottom: 1px solid var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
}
header h1 {
  padding: 0.2em 0;
  text-transform: uppercase;
}
nav {
  color: var(--light);
  width: 100%;
  display: flex;
  margin-top: -1px;
  gap: 1em;
  justify-content: center;
  list-style: none;
  align-items: flex-start;
  padding: 0 0.2em;
}

ul {
  text-align: left;
  list-style: none;
}
a {
  text-decoration: none;
}
nav a {
  color: var(--light);
  padding: 1em 0.5em 0.2em 0.5em;
  font-size: 1em;
  max-width: 100%;
  height: 3em;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  background: var(--dark);
  border: 1px solid rgb(156, 156, 156);
  border-top: 0;
  transition: all 0.5s ease-out;
}
a:is(.active) {
  transition: all 0.5s ease-out;
  background: var(--dark-alpha-5);
}
body {
  min-height: 100vh;
  font-family: var(--font);
  background-color: var(--gray);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index:2;
}
main {
  flex: 1;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  z-index:1;
  background-image: url('./../img/vv_lg.png');
  background-size:contain;
  background-position: center;
  background-repeat: no-repeat;
}
footer {
  background-color: var(--dark);
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  border: 1px solid var(--light);
  border-bottom: 0;
  width: 99%;
  position: fixed;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--light);
  height: 3em;
}
img {
  min-height: 100vh;
  height: 360px;
}
.fixed {
  position:fixed;
  min-width: 100vw;
  width: calc(100%);
  overflow-x: scroll;
  scroll-behavior: smooth;
overflow-x: hidden;
  top: 8em;
  bottom: 3.5em;
}
section {
  height: calc(100vh - 8em);
  display: flex;
  flex-direction: row;
  gap: 50vw;
  color: var(--light);
}
article {
  min-width: 100vw;
  padding: 0 4em;
  text-align: center;
}
article h1 {
  font-size: 2em;
  margin-top: 0.2em;
}
article:not(#referenssit) ul {
  padding: 1em 3em;
  background: var(--dark-alpha);

  border-radius: 5px;
  border-bottom: 1px solid white;
  border-top: 1px solid var(--dark);
}
#referenssit ul {
  display: flex;
  flex-direction: column;
  gap: 10vh;
  padding: 0.2em 0.5em;
  background: none;
  align-items: center;
}
#referenssit li {
  background: var(--dark-alpha);
  display: flex;
  flex-direction: column;
  padding: 0.7em 0.5em;
  width: min-content;
  /* Borders */
  border-radius: 5px;
  border-bottom: 1px solid white;
  border-top: 1px solid var(--dark);
  min-width: fit-content;
}
@media only screen and (max-width: 520px) {
  #referenssit {
    padding: 0;
  }
  #referenssit ul {
    min-width: 90%;
  }
}
#referenssit li div:nth-child(2) {
  padding-top: 0.7em;
  border-top: 1px solid var(--light);
}


#palvelut ul {
  display: flex;
  justify-content: center;
}
#palvelut ul>div {
  display: flex;
  flex-direction: column;
  padding: 1em 0.5em;
  gap: 0.7em;
}
@media only screen and (min-width: 768px) {
  #palvelut ul>div {
    width: 60%;
  }  
}

#palvelut li {
  list-style: square;
}

#yhteystiedot li p {
  margin-bottom: 0.3em;
}

#yhteystiedot .title {
  font-weight: bold;
}
#yhteystiedot a {
  color: white;
}