body {
  margin: 0;
}

main {
  max-width: 1024px;
  width: 100%;
  margin: 0 auto;
}

main > section {
  width: 100%;
}

/* SITE HEADER */
.site-header {
  background: #384A55;
  background: linear-gradient(0deg, rgba(56, 74, 85, 1) 0%, rgba(56, 74, 85, 1) 20%, rgba(0, 0, 0, 1) 100%);
  display: flex;
  margin-bottom: 2%;
}

.site-logo {
  flex: 1 1;
}

.site-menu {
  flex: 1 1;
  display: flex;
  align-items: end;
}

.site-menu > a,
.site-menu > a:link,
.site-menu > a:visited {
  text-decoration: none;
  display: block;
  font-family: Verdana;
  font-size: 32px;
  color: white;

  padding: 5px 10px;
}

.site-menu > a:hover {
  text-decoration: underline;
  text-decoration-color: #a6f6a6;

}

.site-menu > a.active,
.site-menu > a.active:hover {
  background-color: white;
  color: black;
  text-decoration: none;

  border-top-right-radius: 0.3125em;
  border-top-left-radius: 0.3125em;
}

/* PRODUCTS SECTION  */
.product-tile {
  display: block; 
  width: 280px; 
  border: 2px solid black; 
  border-radius: 10px; 
  overflow: hidden;

  margin: 20px;
  padding: 5px;

  color: black;
}

.product-tile:link,
.product-tile:visited {
  text-decoration: none;
  color: black;
}

.product-pic {
  display: block;
  position: relative;

  border-bottom: 3px dashed black;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.product-pic-print {
  position: absolute;
  top: 70px;
  left: 50%;
  width: 30%;

  transform: translateX(-50%);
}

.product-name {
  display: block;
  font-size: 18px;
}

.product-price {
  display: block;
  font-size: 28px;
  text-align: right;
}

.product-special {
  color: red;
  text-align: center;
  display: block;
}

.product-list {
  display: flex;
  flex: 1 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

@media screen and (min-width: 768px) {
 .product-list {
    font: 32px Arial;

    display: flex;
    flex-direction: row;
  }
}

.special-offer {
  font-size: 33px;
  display: flex;

  align-items: center;

}

.special-offer-header {
  font-weight: bolder;
  text-decoration: underline;
  text-decoration-color: red;
  text-transform: uppercase;
  text-align: right;
}

.product-price.old-price {
  text-decoration: line-through;
}

.product-price.new-price {
  font-weight: bolder;
}


/* PRODUCT DETAILS PAGE */

.product-details {
  font-family: Arial;

  display: flex;
  flex-direction: column;
}

@media screen and (min-width: 768px) {
  .product-details {
    flex-direction: row;
  }
}

.product-details .column {
  width: 100%;
  margin: 0 1%;
}

.product-details-name {
  font-size: 38px;
  margin-bottom: 0.2em;
}

.product-details-price {
  font-size: 24px;
}

@keyframes special-offer-arrow-left {
  0% {
    transform-origin: 100px 100px;
    transform: translateX(-200%) rotate(10deg);
  }

  100% {
    transform-origin: 100px 100px;
    transform: translateX(-200%) rotate(0deg);
  }
}

@keyframes special-offer-arrow-right {
  0% {
    transform-origin: 100px 100px;
    transform: translateX(85%) scaleX(-1) rotate(-10deg);
  }

  100% {
    transform-origin: 100px 100px;
    transform: translateX(85%) scaleX(-1) rotate(0deg);
  }
}

.special-offer {
  position: relative;
}
.special-offer .arrow {
  position: absolute;
  left: 50%;
}
.special-offer .arrow.left {
  transform: translateX(-200%);
  animation: special-offer-arrow-left 0.3s infinite;
  animation-direction: alternate;
}
.special-offer .arrow.right {
  animation: special-offer-arrow-right 0.3s infinite;
  animation-direction: alternate;
}

dl {
  display: flex;
  flex-wrap: wrap;
}

dl dt, dl dd {
  display: block;
  flex-basis: 50%;
  margin-left: 0;
}

/* BUTTONS */

.button-group {
  display: flex; 
  justify-content: space-between;
}

.button-group.vertical {
  flex-direction: column;
}

.button, a.button:link, a.button:-webkit-any-link , a.button:visited {
  border: none;
  border-radius: 0.125em;
  color: white;
  background-color: #222;

  font-size: 40px;

  padding: 0.25em 0.75em;
  margin: 1%;

  text-decoration: none;
}

.button[disabled] {
  cursor: no-drop;
  background-color: gray;
}

.button.small, a.button.small {
  font-size: 20px;
}
