*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  border: 0;
  box-sizing: border-box;
}
body:has(dialog[open]) {
  overflow: hidden;
}
object {
  pointer-events: none;
}
button {
  font-family: inherit;
  font-size: 1rem;
}

a {
  text-decoration: none;
  color: black;
  cursor: pointer;
  display: block;
}

#cart-show {
  cursor: pointer;
}
#cart-show object {
  cursor: pointer;
  width: 30px;
  height: 30px;
}
#cart-show object:hover #cart-svg-filler {
  fill: "black";
}
main {
  min-height: 85vh;
  width: 100%;
  display: grid;
  grid-template-rows: 1fr;
  grid-template-columns: 1fr;
}

.deco {
  font-family: "EB Garamond", serif;
}
main.nothome {
  margin-top: 6rem;
}

#homepage {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  /*top: 0;*/
  /*animation: image 30s infinite normal;*/
}
#homepage .hero-wrapper {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  position: relative;
}
.hero-wrapper .hero-link {
  position: absolute;
  bottom: 10%;
  right: 10%;
  border: 1px solid white;
  border-radius: 1px;
}
.hero-wrapper .hero-link a {
  padding: 0.5rem;
  color: white;
}
.hero-wrapper img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: 50% 0%;
  display: block;
}
#homepage .card-wrapper {
  width: 100%;
  overflow: hidden;
}
.card-wrapper .card {
  width: 23%;
  overflow: hidden;
  position: relative;
  font-size: 0.9rem;
}
.card-wrapper .card.large {
  width: 46%;
}
/*.card-wrapper :nth-child(odd) {
  top: 16%;
}*/
.card .carddescr p {
  margin-block-start: 0.2rem;
  margin-block-end: 0.5rem;
}
.card .carddescr {
  position: absolute;
  right: 5px;
  bottom: 0%;
}
.card a {
  color: #000000;
  text-decoration: none;
  text-transform: cau;
  font-size: 1rem;
  /*display: flex;
  flex-direction: column;
  align-items: flex-end;*/
  position: relative;
}

.card .hovereff img {
  display: block;
  position: relative;
  -webkit-transition: all 1s;
  transition: all 1s;
  width: 100%;
}

.card .hovereff {
  height: 100%;
  overflow: hidden;
  position: relative;
  text-align: center;
  border-radius: 0px;
}
.card .hovereff:hover img {
  transform: scale(110%);
}

body {
  padding: 0 0vw 0 0vw;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 1rem;
  background-color: var(--clr-bg-light);
  height: 100%;
  image-rendering: smooth;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: auto;
  -ms-interpolation-mode: nearest-neighbor;
}

hr {
  border: 0;
  height: 1px;
  background-image: linear-gradient(
    to left,
    rgba(var(--clr-mid-grey-triple), var(--opacity-high)),
    rgba(var(--clr-mid-grey-triple), var(--opacity-none)),
    rgba(var(--clr-mid-grey-triple), var(--opacity-high))
  );
  margin-block-start: 0.1rem;

  margin-block-end: 0rem;
}

/*---------------CONTENT-------*/
.text-wall {
  margin: 0rem auto 2rem auto;
}
.text-wall ul {
  list-style-type: none;
}
.content {
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  background-color: var(--clr-bg-light);
  flex-direction: row;
  gap: 1rem;
}
#about {
  height: 100%;
  width: 70%;
  display: flex;
  flex-direction: column;
  justify-content: left;
  padding-left: 2vw;
}

#contact {
  height: 65vh;
  height: calc(65vh);
  width: 70%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-left: 2vw;
}

.exit-modal {
  position: absolute;
  margin: 10px;
  top: 0;
  right: 0;
}

/*!footer  */
footer {
  /* height: calc(25vh); */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  font-weight: 300;
  background-color: var(--clr-bg-light);
}
header a,
footer a {
  color: var(--clr-font-light);
}
footer a:hover {
  text-decoration: underline;
}
footer.home {
  top: 15vh;
}
.footer-company-menu {
  min-height: 15vw;
  width: 100%;
  display: grid;
  gap: 1rem;
  grid-template:
    "logo company information social signup" 1fr
    "legal legal legal legal legal" 2rem
    / 2fr 1fr 1fr 1fr 2fr;
}

.social {
  height: 40px;
  width: 40px;
  margin: 0.5vh 0.5vh 0vh 0.5vh;
}
footer .subscription-placeholder {
  grid-area: signup;
  /*background-image: url(/mwmain/public_html/main/img/footerimg.jpg);*/
  background-position: center;
  background-size: cover;
  width: 100%;
  height: 100%;
}
footer .logo-holder {
  grid-area: logo;
  font-weight: 400;
}
footer .company-links {
  grid-area: company;
}

footer .buyer-information {
  grid-area: information;
}
footer .social-links {
  grid-area: social;
}
footer .legal-links {
  grid-area: legal;
}

#cookie-informer {
  position: fixed;
  background-color: #f8f8f8;
  left: 2rem;
  bottom: 2rem;
  max-width: 50%;
  filter: drop-shadow(0px 0px 0.5rem #aaaaaa);
  display: none;
}
#cookie-informer p {
  padding: 2rem;
}

#cookie-informer button {
  cursor: pointer;
  background-color: black;
  color: white;
  width: 4rem;
}
#shipside {
  position: sticky;
  top: 6rem;
  max-height: fit-content;
  min-width: fit-content;
}
dialog {
  z-index: 500;
}
#dialog-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(0, 0, 0, 0.25);
}

#dialog-backdrop.visible {
  display: block;
}
@media (orientation: landscape) {
  .portrait {
    display: none;
  }
}
@media (orientation: portrait) {
  .landscape {
    display: none;
  }
}
@media (orientation: portrait) {
  .hero-wrapper .hero-link {
    right: 5%;
  }
  .card-wrapper .card {
    width: 46%;
    max-width: 46%;
    font-size: 1rem;
    /* height: 48%; */
  }
  .card-wrapper .card.large {
    width: 100%;
    max-width: 100%;
  }
  .card-wrapper {
    justify-content: space-between;
  }
  .f-accent {
    font-size: var(--font-size-topic);
  }
  html {
    font-size: 0.7rem;
  }
  button {
    font-size: 1.1rem;
  }

  #about,
  #contact {
    width: 90%;
  }
  nav .main-menu-button {
    width: 1.5rem;
    height: 1.5rem;
  }
  .exit-modal svg {
    width: 1.5rem;
    height: 1.5rem;
  }

  .care-label {
    height: 2.5rem;
    width: 2.5rem;
    padding: 2px;
    margin-right: 1rem;
  }

  .footer-company-menu {
    grid-template:
      "logo logo signup signup" auto
      ". company information social" 1fr
      "legal legal legal legal" 2rem
      / 1fr 1fr 1fr 1fr;
  }
  .social {
    height: 80px;
    width: 80px;
    margin: 1vh 1vh 0vh 1vh;
  }
  #cookie-informer {
    max-width: 85%;
  }
}
