@import url("reset.css");
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@100;400&display=swap");
body {
  background: linear-gradient(to bottom, #4c4c4c, #222222);
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-style: normal;
  --page-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}
a:hover {
  text-decoration: underline;
  color: #999;
}
.gallery img,
#assortiment img {
  width: 100%;
}

/* header */
header {
  display: flex;
  flex-direction: row;
  width: var(--page-width);
  align-items: center;
}
header > * {
  height: 100%;
  min-width: 0;
}
#logo {
  flex: 250 250 fit-content;
  background-color: white;
  background-image: url(../img/logo.png);
  background-size: 100px;
  background-position: center;
  background-repeat: no-repeat;
  aspect-ratio: 1;
}
#slides {
  flex: 600 600 fit-content;
  background-image: url(../img/rotator/1.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  aspect-ratio: 60/25;
  animation: 60s ease-in-out infinite normal slides;
}
@keyframes slides {
  0% {
    background-image: url(../img/rotator/1.png);
    opacity: 1;
  }
  10% {
    opacity: 0;
  }
  20% {
    background-image: url(../img/rotator/2.png);
    opacity: 1;
  }
  30% {
    opacity: 0;
  }
  40% {
    background-image: url(../img/rotator/3.png);
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
  60% {
    background-image: url(../img/rotator/4.png);
    opacity: 1;
  }

  70% {
    opacity: 0;
  }
  80% {
    background-image: url(../img/rotator/5.png);
    opacity: 1;
  }

  90% {
    opacity: 0;
  }
  100% {
    background-image: url(../img/rotator/1.png);
    opacity: 1;
  }
}

/* menu */
nav {
  position: sticky;
  top: 0;
  width: var(--page-width);
  background: linear-gradient(to right, #4c4c4c, #222222) repeat scroll 0 0
    rgba(0, 0, 0, 0);
  border: 1px solid black;
}
nav > ul {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 0.5rem;
  justify-content: space-evenly;
}
nav > ul > li {
  list-style-type: none;
  font-size: large;
  padding: 0.5rem;
  text-align: center;
}

/* main content */
#content {
  width: var(--page-width);
  padding: 1rem;
  text-align: justify;
}

/* description list*/
#description {
  padding-top: 1rem;
}
#description li {
  list-style-position: inside;
  padding-left: 1rem;
}

/* footer*/
footer {
  width: var(--page-width);
  border-top: 1px solid black;
  display: flex;
  flex-flow: row nowrap;
  justify-content: flex-end;
  align-items: center;
}
footer > * {
  flex: 0 0 content;
  padding: 1rem;
}
footer > p {
  font-size: small;
}
/* assortiment */
#assortiment {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
}

/* galleryindex */
#gallery-index {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  grid-auto-flow: row;
}
#gallery-index > div {
  text-align: center;
}
#gallery-index > div > a > p {
  padding: 1rem 0;
}
/* galleries */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.1rem;
}
#contact {
  display: flex;
  flex-direction: column;
}
#contact > div {
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
}
#contact > div > *:first-child {
  font-weight: bold;
}

@media (min-width: 992px) {
  body {
    --page-width: 60%;
  }
  #gallery-index {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  .gallery {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
  .content {
    padding: 4rem;
  }
  #contact {
    flex-direction: row;
    justify-content: space-evenly;
  }
}
