/* main stylesheet */

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  background-color: white;
  margin: auto;
}


/* ---- Header ---- */

#frontpage-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem;
}

.slogan {
  margin-top: 20px;
  font-variant: small-caps;
  transform: rotate(-5deg);
}

header {
  background-color: #b910e4;
  color: white;
  height: 60px;
  padding-top: 8px;
  padding-bottom: 4px;
  margin-bottom: 20px;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 1;
  box-shadow: 0 8px 10px 0 rgba(0, 0, 0, 0.2);
}


/* ---- Main content ---- */

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1rem;
}

#frontpage {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-evenly;
  align-items: center;
  margin-top: 6rem;
}

#disclaimer {
  margin-left: 10%;
  margin-right: 10%;
}


/* ---- Footer ---- */

footer {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  background-color: #b910e4;
  color: white;
  padding: 6px 10px;
  margin-top: 40px;
  font-size: small;
}

footer a {
  color: white;
}

footer p {
  margin: 0px;
}

.footer-bullet {
	vertical-align: 2px;
}

.footer-email {
  vertical-align: middle;
}

.opskrift-container {
  position: relative;
  display: inline-block;
}

.opskrift-tekst {
  position: absolute;
  top: 110px;
  left: 5px;
  font-size: 2.5rem;
  font-weight: bold;
  font-family: Arial;
  letter-spacing: -1px;
  text-transform: uppercase;
  transform: rotate(-15deg);
  color: #b910e4;
  border: 4px solid #b910e4;
  border-radius: 10px;
  padding: 0 6px 0 4px;
  background-color: rgba(255, 255, 255, 0.5);
}


/* ---- Challenge product list ---- */

.product-list {
  display: flex;
  flex-wrap: wrap;
}

.product-container {
  border: 1px solid #ccb57e;
  background-color: #f4edda;
  padding: 20px;
  margin: 10px;
  width: 302px;
  border-radius: 15px;
}

.product-container p {
  margin: 6px 0px;
}

.product-image-container {
  position: relative;
  display: inline-block;
}

.product-image {
  height: 300px;
  width: 300px;
  border: 1px solid #ccb57e;
  border-radius: 15px;
  background-color: white;
}

.product-name {
  font-size: large;
  font-weight: bold;
}

.product-category {
  font-style: italic;
}


/* ---- Challenge product image overlays ---- */

.product-image-link {
  position: absolute;
  bottom: 10px;
  left: 10px;
}

.product-link {
  position: absolute;
  top: 10px;
  left: 10px;
}

.product-campaign {
  position: absolute;
  bottom: 10px;
  right: 10px;
}

.product-rating {
  position: absolute;
  top: -10px;
  right: -10px;
}

.dancake-link-icon {
  width: 40px;
  height: auto;
}

.zoom-icon {
  width: 25px;
  height: auto;
}

.calendar-icon {
  width: 25px;
  height: auto;
}

.rating-icon {
  width: 70px;
  height: auto;
}

.rating-icon path {
  stroke: black;
  stroke-width: 2;
}

.rating-icon text {
   font-size: 3rem;
   text-anchor: middle;
   font-family: Arial
}

.icon {
  filter: opacity(40%);
}

.icon:hover {
  filter: opacity(100%);
}
