/* JK TRYK APS 2022 - SOREN OLIN */

* {
  box-sizing: border-box;
  margin:0px;
}

body {
  font-family: Arial;
  padding: 0px;
  background: #f1f1f1;
}

/* Header / banner. Keep the established imagery and theme colour. */
.header {
  padding: 30px;
  text-align: center;
  background: white url(../images/baggrund.png) no-repeat;
  background-size: cover;
  position: static;
}
.header > img {
  max-width: 100%;
  height: auto;
}
.header h1 { font-size: 50px; }

/* All navigation actions occupy the complete bar height. */
.topnav {
  z-index: 99;
  display: flex;
  align-items: stretch;
  height: 52px;
  background-color: #909C84;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  position: sticky;
  top: 0;
  box-shadow: rgba(0, 0, 0, 0.25) 0 3px 5px;
}
.topnav .shop-nav-logo {
  order: 0;
  display: block;
  flex: 0 0 auto;
  align-self: center;
  width: auto;
  height: 42px;
  margin: 0 0 0 20px;
}
.topnav a,
.topnav .OpenMenuButton {
  order: 1;
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 0;
  padding: 0 16px;
  border: 0;
  background-color: transparent;
  color: #f2f2f2;
  text-align: center;
  text-decoration: none;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 180ms ease-in-out, color 180ms ease-in-out;
}
.topnav .shop-nav-checkout {
  order: 2;
  margin-left: auto;
}
.topnav .shop-nav-cart {
  order: 3;
  margin-right: 10%;
}
.topnav .shop-nav-cart-icon {
  font-size: 1.5rem;
  line-height: 1;
}
.topnav a:hover,
.topnav .OpenMenuButton:hover,
.topnav a:focus-visible,
.topnav .OpenMenuButton:focus-visible,
.topnav .OpenMenuButton[aria-expanded="true"] {
  background-color: rgba(255, 255, 255, 0.15);
  color: #fff;
}
.topnav a:focus-visible,
.topnav .OpenMenuButton:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: -3px;
}
.topnav .shop-basket-count {
  position: absolute;
  top: 1px;
  right: 1px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: #f00;
  color: #fff;
  border-radius: 9px;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
  font-weight: bold;
  pointer-events: none;
}

@media (max-width: 600px) {
  .topnav .shop-nav-logo {
    height: 36px;
    margin-left: 10px;
  }
  .topnav a,
  .topnav .OpenMenuButton {
    padding: 0 10px;
    font-size: 0.9rem;
  }
  .topnav .shop-nav-cart { margin-right: 0; }
}
@media (max-width: 420px) {
  .topnav { flex-wrap: wrap; height: auto; min-height: 48px; }
  .topnav .shop-nav-logo { height: 36px; }
  .topnav a,
  .topnav .OpenMenuButton { height: 48px; }
  /* The return link occupies its own row when the screen is very narrow. */
  .topnav > a:not(.shop-nav-checkout) {
    order: 4;
    flex-basis: 100%;
    justify-content: flex-start;
    height: 40px;
    padding-left: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .topnav a,
  .topnav .OpenMenuButton { transition: none; }
}

/* Grid layout */
.gridview {
  padding-left: 10%;
  padding-right: 10%;
  margin: 5px;
}

.gridview .card {
  border-radius: 0.25rem;
  background-color: white;
  padding: 20px;
  margin-top: 20px;
  box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.25);
}

.gridview .card:hover {
  cursor: pointer;
}

/* Footer */
.footer {
  padding: 20px;
  text-align: center;
  background: #909C84;
  margin-top: 20px;
}

.footer p {
  color:white; 
  font-size:10px;
}

/* Responsive */
@media screen and (max-width: 800px) {
  .leftcolumn, .rightcolumn {   
    width: 100%;
    padding: 0;
  }
}

/* ========================= */
/* CART DRAWER (RIGHT SIDE)  */
/* ========================= */

.DrawerMenu {
  position: fixed;
  z-index: 99;
  width: 100vw;
  height: 100vh;
  top: 0;
  bottom: 0;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  display: grid;
  grid-template-areas: "OVERLAY MENU";
  grid-template-columns: 5fr 15fr;
}

@media (min-width: 30em) {
  .DrawerMenu {
    grid-template-columns: 1fr auto;
  }
}

[data-menu]:checked ~ .DrawerMenu {
  transform: none;
}

.Menu {
  display: block;
  transform: translateX(30%);
  opacity: 0.1;
  color: #fff;
  transition: all 500ms cubic-bezier(0.4, 0.0, 0.2, 1);
  transition-delay: 0;
  grid-area: MENU;
  background-color: grey;
  box-sizing: border-box;
  padding: 24px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 30em) {
  .Menu {
    min-width: 400px;
  }
}

[data-menu]:checked ~ .DrawerMenu .Menu {
  transform: none;
  opacity: 0.95;
  transition-delay: 300ms;
}

.Menu a {
  text-decoration: none;
  color: #FFFFFF80;
  display: block;
  padding: 16px 0;
}

.Menu a:hover {
  color: #CFFA00;
}

.MenuOverlay {
  display: block;
  grid-area: OVERLAY;
}

[data-menu]:not(:checked) ~ .DrawerMenu .MenuOverlay {
  pointer-events: none;
}

/* ========================= */
/* CART ICON (TRASH)         */
/* ========================= */

.trash-btn {
  color: #bbb;
  font-size: 15px;
  text-decoration: none;
  transition: color 0.15s ease;
}

.trash-btn:hover {
  color: #f66;
}