/* JK TRYK APS 2022 - SOREN OLIN */

* {
  box-sizing: border-box;
  margin:0px;
}

body {
  font-family: Arial;
  padding: 0px;
  background: #f1f1f1;
}

/* Header/Title */
.header {
  padding: 30px;
  text-align: center;
  background: white;
  background: url(../images/baggrund.png);
  background-repeat: no-repeat;
  background-size: cover;
  position: static;
}

.header h1 {
  font-size: 50px;
}

/* Top navigation */
.topnav {
  z-index: 99;
  overflow: hidden;
  background-color: #567C82;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  position: sticky;
  top: 0;
  box-shadow: rgba(0, 0, 0, 0.25) 0px 3px 5px;
}

.topnav img {
  float:left;
  position:relative;
  vertical-align:top;
  height:42px;
  margin-top:3px;
  margin-left:20px;
}

.topnav a {
  float: left;
  display: block;
  color: #f2f2f2;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}

.topnav a:hover {
  background-color: #ddd;
  color: black;
}

/* 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: #567C82;
  margin-top: 20px;
}

.footer p {
  color:white; 
  font-size:10px;
}

/* Responsive */
@media screen and (max-width: 800px) {
  .leftcolumn, .rightcolumn {   
    width: 100%;
    padding: 0;
  }
}

@media screen and (max-width: 400px) {
  .topnav a {
    float: none;
    width: 100%;
  }
}

/* ========================= */
/* CART DRAWER (RIGHT SIDE)  */
/* ========================= */

.OpenMenuButton {
  cursor: pointer;
  float:right;
  margin-right:10%;
  display: block;
  color: #f2f2f2;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}

.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;
}