:root {
  --accent-light: #FCF7FA;
  --accent-dark: #1A1616;
  --secondary-light: #E0C0C0;
  --secondary-dark: #3F2B2B;
  --primary: #9E1E19;
  --primary-light: #A93D39;
  --main-font: Arial, Century Gothic, Verdana, Tahoma, Helvetica, sans-serif;
  --low-visibility: rgba(150, 100, 100, 0.5);
}


body {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  font-family: var(--main-font);
  background: var(--primary-light);
  overflow-x: hidden;
}

div {
  margin: 3%;
}


header {
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 99vw;
  min-width: 100%;
  height: max(8vh, 150px);
  overflow-x: hidden;
  box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.2); 
}

main {
  background: var(--accent-light);
  color: var(--secondary-dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 99vw;
  overflow-x: hidden;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  z-index: 3;
  margin: 1px;
}

a {
  text-decoration: none;
  color: inherit;
}

nav {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  max-width: 70%;
  height: 100%;
  background-color: inherit;
  color: var(--accent-dark);
  overflow-x: hidden;
}

footer {
  background: var(--accent-dark);
  color: var(--secondary-light);
  width: 100vw;
  overflow-x: hidden;
}
footer .container {
  display: flex;
  flex-direction: column;
  margin: 50px;
}
.copyright {
  color: var(--low-visibility);
  margin: max(3%, 50px);
}


article {
  display: flex;
  flex-direction: column;
  padding: 5%;
  margin-top: 5%;
  margin-left: 5%;
  margin-right: 5%;
  width: auto;
  overflow-x: hidden;
}

hr {
  opacity: 0.2;
  color: var(--secondary-light);
  width: 90%;
  /*margin-top: 20px;*/
  margin-bottom: 20px;
}

input, textarea {
  background-color: var(--accent-light);
  color: var(--accent-dark);
  border: none;
  margin: 3%;
  padding: 3%;
  width: min(300px, 90%);
  box-shadow: 0px 2px 8px 0px rgba(0, 0, 0, 0.2); 
  font-family: 'Courier New', Courier, monospace;
}

img {
  object-fit: contain;
}

button {
  background-color: var(--primary);
  color: var(--accent-light);
  border: none;
  margin: 3%;
  padding: 3%;
  width: min(300px, 90%);
}
.hamburger {
  padding: 5px;
  width: 100px;
  height: 100px;
  color: var(--primary);
  background-color: rgba(0, 0, 0, 0);
  z-index: 8;
}
.hamburger svg {
  margin: 0px;
  width: 40px;
  height: 40px;
}
#overlay {
  display: none;
  position: fixed;
  width: 100vw;
  height: 100vh;
  z-index: 9;
  background-color: rgba(0, 0, 0, 0.5);
  margin: 0;
}

.nav-item {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0px;
}
div.nav-item {
  padding: 1em;
}
div.nav-item:hover {
  background-color: var(--accent-dark);
  color: var(--accent-light);
  transition: color 0.3s, background-color 0.5s;
}


.contact-bar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100vw;
  min-height: min(40px, 8vh);
  background-color: var(--primary-light);
  color: var(--accent-light);
  padding: 0px;
  z-index: 5;
  overflow: hidden;
}
.contact-bar span {
  display: flex;
  align-items: center;
}
svg {
  margin: 8px;
}
.contact-bar .address {
  display: none;
}
.contact-bar .email {
  display: none;
}


.contact-info form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  align-items: center;
}
.contact-info button {
  margin: auto;
}
section.contact-info {
  margin: min(100px, 10vw);
}
.contact-info span {
  display: flex;
  align-items: center;
}
.contact {
  margin: 0;
}
.contact p {
  margin: 0;
}


article.services {
  margin-top: 0px;
}
.services {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100vw;
}
.services-intro {
  width: 80%;
}
.services .service-cards {
  display: flex;
  flex-direction: row;
  width: 100%;
  overflow-x: scroll;
  perspective: 1000px;
  margin-top: 0;
}
.card {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px;
  min-width: 250px;
  height: 20em;
  background-color: var(--accent-light);
  box-shadow: 0 8px 8px 0 rgba(0, 0, 0, 0.2);
}
.card img {
  height: 50%;
  width: 100%;
}
.card section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 90%;
  width: 90%;
}
.card section article {
  width: 100%;
  height: 50%;
  margin: 0;
}
.card h2 {
  font-size: 14pt;
  margin: 0;
  line-height: 20px;;
}
.card p {
  font-size: 10pt;
  margin: 0;
  margin-top: 10px;
}
.service-cards .card:hover {
  transform: translateZ(100px);
  transition: transform 0.3s ease-in-out;
}

.view-more {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px;
  min-width: 250px;
  height: 20em;
  background-color: var(--accent-light);
  box-shadow: 0 8px 8px 0 rgba(0, 0, 0, 0.2);
}
.view-more a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.view-more svg {
  width: 60%;
  height: 60%;
}
.view-more:hover {
  background-color: var(--accent-dark);
  color: var(--accent-light);
  transition: 
    background-color 200ms linear,
    color 200ms linear;
}


div.logo-name {
  display: flex;
  padding: 20px 60px 20px 30px;
  margin: 0;
}

div.search {
  /*not implemented*/
  display: none;
  margin: 0;
}


.gallery {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  aspect-ratio: 16/9;
  margin: 0;
}
.gallery .slideshow {
  width: 100%;
  aspect-ratio: 16/9;
  margin: 0;
  perspective: 1000px;
  overflow: hidden;
}
.gallery .slideshow:hover {
  display: block;
  animation-play-state: paused;
}
.gallery .slideshow .slide {
  width: 100%;
  height: 100%;
  position: absolute;
  margin: 0;
  z-index: 1;
  animation: slideshow 25s ease-in;
  animation-delay: calc( (var(--position) - 1) * 10s);
}
.gallery .slideshow .slide:hover {
  animation-play-state: paused;
}
.gallery .slideshow .slide img {
  width: 100%;
  margin: 0;
}
.slideshow div:hover {
  transform: translateZ(100px);
  z-index: 3;
  transition: transform 0.1s ease-in-out;
  animation-play-state: paused;
}


.business-hours ul {
  list-style: none;
  padding-left: 0;
}


section.nav-bar {
  display: flex;
  overflow-x: hidden;
}


article.introduction {
  display: flex;
  flex-direction: column;
  padding-top: 0px;
}


.side-note {
  font-size: 10pt;
  opacity: 0.8;
}
#service-sidenote {
  justify-content: center;
}


.hidden {
  display: none;
}


.disabled {
  opacity: 0.2;
}


@keyframes slideshow {
  0% {
  display: none;
  opacity: 0;
  left: -100%;
  aspect-ratio: 16/9;
  z-index: 2;
} 25% {
  display: block;
  opacity: 1;
  left: 0;
  aspect-ratio: 16/9;
  z-index: 2;
}
}

@keyframes zoom {
to {
  transform: translateZ(250px);
}
}

@keyframes spin {
from {
  transform: perspective(1000px) rotateX(-0deg) rotateY(0deg);
} to {
  transform: perspective(1000px) rotateX(-0deg) rotateY(360deg);
}
}

@media only screen and (min-width: 810px) {
  header {
    flex-direction: row;
    min-width: 100%
  }
  div.logo-name {
    padding: 20px 60px 20px 60px;
  }

  nav {
    width: 100%;
    justify-content: flex-end;
  }
  .nav-item {
    margin-left: 4%;
    margin-right: 4%;
  }
  .open-sidebar, .close-sidebar, #overlay {
    display: none;
  }

  main {
    width: 70vw;
  }

  .services {
    width: 80%;
  }
  .services-intro {
    width: 95%;
  }

  .contact-bar .address {
    display: flex;
  }
  .contact-bar .email {
    display: flex;
  }

  footer .container {
    flex-direction: row;
  }
}

@media only screen and (max-width: 810px) {
  #sidebar {
    flex-direction: column;
    justify-content: flex-start;
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: min(15em, 100%);
    z-index: 10;
    transition: right 300ms ease-out;
  }
  #sidebar.show {
    right: 0;
  }
  #sidebar .nav-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 3px;
    width: 100%;
  }
  #sidebar a {
    width: 100%;
    padding-left: 2.5em;
  }
  #sidebar.show ~ #overlay {
    display: block;
  }

  .nav-item div {
    width: 100%;
  }

}
