/*This is just so we know how to set the font family for each*/
/*font-family: 'Jost', sans-serif;*/
/*font-family: 'Piazzolla', serif;*/
html {
  --bordeaux: #591139;
  --chardonnay: #f1eb9e;
}

/*HEADER*/
header {
  background-color: var(--chardonnay);
  height: 112px;
  display: flex; /*this targets all the header direct childs - logo, links as a whole, basket*/
  align-items: center; /*aligns vertically*/
  justify-content: center; /*aligns horizontally, like MS Word*/
  column-gap: 10vw;
  /*the next lines are to make the header fixed on the top*/
  position: fixed;
  top: 0;
  width: 100%;
}
#header-logo {
  height: 40px;
}
.basket-div {
  display: grid; /*this grid contains the basket-icon and counter-display*/
  justify-items: end; /*for the basket and number to line up*/
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  padding-top: 1rem;
}

/* The following 3 lines of code was adapted from https://stackoverflow.com/questions/11374059/make-an-html-svg-object-also-a-clickable-link Accessed: 2023-12-06 */
#basekt-link {
  display: inline-block;
  z-index: 1;
}

#counter-display {
  grid-column: 1;
  grid-row: 1;
  z-index: 3; /*shows the number of items in the basket and is placed on top of the basket and within the basket-div grid*/
  margin-top: 0.75rem;
  margin-right: 3.5rem;
  color: var(--chardonnay);
}
#counter-display-detailed {
  grid-column: 1;
  grid-row: 1;
  z-index: 3; /*shows the number of items in the basket and is placed on top of the basket and within the basket-div grid*/
  margin-top: 0.75rem;
  margin-right: 3.5rem;
  color: var(--chardonnay);
}
#basket-icon {
  height: 35px;
  padding-left: 40px;
  padding-right: 40px;
  grid-column: 1;
  grid-row: 1;
  z-index: -1;
}
#basket-icon-detailed {
  height: 35px;
  padding-left: 40px;
  padding-right: 40px;
  grid-column: 1;
  grid-row: 1;
  z-index: -1;
}
.header-navigation-ul {
  padding-left: 0;
  column-gap: 5vw;
  display: flex; /*makes the top-menu links appear horizontally on one line*/
}
.top-menu-links {
  font-family: "Jost", sans-serif;
  font-size: 1rem;
  color: black;
  list-style: none; /*Setting the list style to "none" removes the bulletpoints*/
  text-decoration: none; /*Setting the text decoration to "none" removes the lines underneath*/
}
.top-menu-links:hover {
  text-decoration: underline; /*When you hover over the top-menu links they get underlined*/
}

/* DROPDOWN TOP MENU - Our vineyards */
.dropdown-menu-links {
  font-family: "Jost", sans-serif;
  font-size: 1rem;
  color: black;
  list-style: none; /*Setting the list style to "none" removes the bulletpoints*/
  text-decoration: none; /*Setting the text decoration to "none" removes the lines underneath*/
}
.dropdown-menu-links li:hover {
  text-decoration: underline; /* the underline on hover does not work if "li" is not specified */
}
.dropdown-content {
  display: none; /* dropdown content is hidden by default */
  position: absolute; /*makes the dropdown appear below "our vineyards" in stead of on top of "our vineyards"*/
  z-index: 1;
  text-align: center;
  padding-left: 0; /* removes default padding (not needed) */
  padding-top: 5px; /* adds padding to position the dropdown menu better... */
  padding-bottom: 5px; /* ...and makes it less sensitive to close while not exactly on a link */
}
.dropdown-content li {
  display: block; /* displays list items horizontally instead of vertically */
  padding-left: 15px;
  padding-right: 15px;
  padding-top: 15px;
  padding-bottom: 15px;
  background-color: var(--chardonnay);
  margin-left: -15px; /* aligns the dropdown mobile to the center of "our vineyards" link */
}
.vineyards-dropdown:hover .dropdown-content {
  display: inline-block; /* this allows to show the dropdown menu on hover */
}

/*Bellow is what happens to the header when the screen is under 800px which is a small tablet or phone size*/
/*To get our objects in two lines we display items in a grid (no longer using a flexbox). And we asign our elements - logo, basket, navigation to the corresponding grid template areas*/
@media screen and (max-width: 800px) {
  header {
    height: 100px;
    display: grid;
    grid-template-areas:
      "logo basket"
      "navigation navigation";
  }
  #header-logo {
    grid-area: logo;
    padding-top: 0.5rem;
  }
  #basket-icon {
    padding-left: 0;
    padding-right: 0;
    margin-right: 1rem;
  }
  #counter-display {
    margin-right: 2rem;
  }
  #basket-icon-detailed {
    padding-left: 0;
    padding-right: 0;
    margin-right: 1rem;
  }
  #counter-display-detailed {
    margin-right: 2rem;
  }
  .basket-div {
    grid-area: basket;
    margin-top: 0.5rem;
  }
  .header-navigation {
    grid-area: navigation;
  }
  .header-navigation-ul {
    column-gap: 7vw;
    margin-top: 0;
    margin-bottom: 5px;
  }
}

/*MAIN*/
/*900px-680px*/
main {
  margin-top: 112px;
  display: grid;
  grid-template-columns: 1fr repeat(6, 90px) 1fr;
  grid-template-rows: auto;
  column-gap: 20px;
}
.six_column_content {
  grid-column: 2 / span 6;
}
.eight_column_content {
  grid-column: 2 / span 6; /*eight column content, though bigger, still can be "squished" into six columns*/
}
/*above 900px*/
@media screen and (min-width: 900px) {
  main {
    margin-top: 112px;
    display: grid;
    grid-template-columns: 1fr repeat(8, 90px) 1fr;
    grid-template-rows: auto;
    column-gap: 20px;
  }
  .six_column_content {
    grid-column: 3 / span 6;
  }
  .eight_column_content {
    grid-column: 2 / span 8;
  }
}
/*below 800px*/
/*since header height changes at 800px we need the margin to be smaller too to remove the gap between the header and hero*/
@media screen and (max-width: 800px) {
  main {
    margin-top: 100px;
  }
}

/*content that repeats on several pages*/
p {
  font-family: "Jost", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  text-align: center;
}
h1 {
  /*for region hero titles*/
  grid-column: 2;
  grid-row: 1;
  z-index: -1;
  font-family: "Piazzolla", serif;
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--chardonnay);
  margin-top: auto;
  margin-bottom: auto;
}
h2 {
  /*"Otago wines", "Rioja wines", etc.*/
  font-family: "Jost", sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 3rem;
  text-align: center;
}
.h3 /*yes, it is a class on <p>*/ {
  /*shopping cart and checkout headings/titles*/
  margin-top: 80px;
  margin-bottom: 50px;
}
h4 /*used for wine name on detail, cart, and checkout section titles*/ {
  font-family: "Piazzolla", serif;
  font-size: 1.125rem;
  font-weight: 800;
  text-align: left;
  margin-bottom: 0;
}
/*product cards section for the region pages and product page*/
.product-cards-section {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 3rem;
}
.big-button {
  background-color: var(--bordeaux);
  border-style: solid;
  border-width: 1px;
  font-family: "Jost", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: white;
}
.big-button:hover {
  background-color: var(--chardonnay);
}
.big-button:active {
  background-color: black;
}

/*HOME PAGE*/
/*hero - look for this lower*/
.bestseller-section {
  display: flex;
  gap: 20px;
  margin-bottom: 10vh;
}
.bestseller-figure {
  width: 200px;
  margin: 0;
}
.bestseller-img {
  width: 200px;
}
figcaption {
  font-family: "Jost", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: black;
}
a {
  text-decoration: none; /*for bestsellers, removes the uderline for the text/link*/
}

/*REGION PAGES + ABOUT US*/
/*Hero container for regions (and about) is now separate from to home page hero*/
.hero_container_regions {
  grid-column: 1 / span 8;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 1fr;
  justify-items: center;
}
/*otago page*/ /*bordeaux page*/
.otago-image-group,
.bordeaux-image-group {
  display: flex; /*to get the specific layout of the pictures*/
  flex-direction: column;
  flex-wrap: wrap; /*flex-wrap so that all the pictures wouldn't be in one row but wrap where needed to fit the grid*/
  gap: 20px;
  margin-bottom: 5rem;
  height: 640px; /*set hight to get the pictures to wrap*/
}
.about-image-group {
  display: flex; /*to get the specific layout of the pictures*/
  flex-direction: column;
  flex-wrap: wrap; /*flex-wrap so that all the pictures wouldn't be in one row but wrap where needed to fit the grid*/
  gap: 20px;
  height: 640px; /*set hight to get the pictures to wrap*/
  margin-bottom: 2rem;
  margin-top: 2rem;
}
/*rioja page*/
.rioja-image-group {
  display: flex;
  flex-wrap: wrap; /*flex-wrap so that all the pictures wouldn't be in one row but wrap where needed to fit the grid*/
  gap: 20px;
  margin-bottom: 5rem;
}
.region-img-small-width {
  width: 310px;
}
.rioja-img-long {
  width: 640px;
}
.about-img-long {
  width: 640px;
  margin-bottom: 2rem;
  margin-top: 2rem;
}

/*ALL PRODUCTS/WINES*/
/* This is for the filter to work */
/*all the product cards at the bottom that are hidden but needed for the filter*/
#our_19_products {
  display: none;
}

.dropdown-box-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border: 1px solid black;
  background-color: white;
  margin-top: 2rem;
  cursor: pointer;
}

#filter-dropdown-arrow {
  height: 15px;
  margin-left: auto;
}

/* The .show-dropdown class is added so the JS code can modify the values of other classes */
.show-dropdown #filter-dropdown-arrow {
  transform: rotate(180deg);
}

.filter-dropdown-anchor {
  font-family: "Jost", sans-serif;
  font-size: 1rem;
}

.dropdown-box-bottom {
  display: none; /* display: flex; */
  justify-content: space-between;
  align-items: flex-start;
  padding: 1rem;
  border-left: 1px solid black;
  border-right: 1px solid black;
  border-bottom: 1px solid black;
  background-color: white;
}

/* This is the change that the function in filter-dropdown.js makes */
.show-dropdown .dropdown-box-bottom {
  display: flex;
}

.dropdown-box-category {
  /*"Wine type", "Region", "Price range"*/
  font-family: "Jost", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  text-align: start;
  margin-top: 0;
}

.filter-dropdown-type {
  /*<ul> for type*/
  display: block;
  list-style: none;
  margin-top: 0;
  margin-bottom: 0;
  padding-left: 0;
}

.filter-dropdown-region {
  /*<ul> for region*/
  display: block;
  list-style: none;
  margin-top: 0;
  margin-bottom: 0;
  padding-left: 0;
}

.filter-dropdown-price {
  /*<ul> for price*/
  display: block;
  list-style: none;
  margin-top: 0;
  margin-bottom: 0;
  padding-left: 0;
}

.filter-dropdown-container {
  /*"Red""White""bordeaux""La Rioja" etc. It is for the the checkbox text*/
  font-family: "Jost", sans-serif;
  font-size: 1rem;
}

.filter-dropdown-value {
  /*for the <li> tags*/
  display: grid;
  grid-template-columns: min-content 1fr min-content; /*checkbox, text, flag*/
  grid-template-rows: 1fr;
  justify-items: start;
  align-items: center;
}

.filter-dropdown-checkbox {
  grid-column: 1;
}

.filter-dropdown-container {
  grid-column: 2;
}

.filter-dropdown-flag {
  grid-column: 3;
}

input[type="checkbox"] {
  accent-color: var(--chardonnay);
  /* The accent-color CSS property sets the accent color for user-interface controls generated by some elements. https://developer.mozilla.org/en-US/docs/Web/CSS/accent-color */
  margin: none;
}

.filter-dropdown-flag {
  width: 25px;
  margin: 5px;
}
/*this is originaly the empty div where the filtered wines are placed inside after filtering*/
#filtered_wines {
  margin-top: 4rem;
}

/* Dropdown menu for mobile */
@media screen and (max-width: 680px) {
  .dropdown-box-bottom {
    flex-direction: column;
  }
  .dropdown-box-category {
    margin-top: 1rem;
    margin-bottom: 1rem;
  }
}

/*DETAILED PAGE*/
/*there is a 2x2 section that contains the bottle on the left side, wine head on right top and wine details on right bottom*/
/*for mobile size it goes into a flex with dircetion: column*/
#detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  margin-top: 5vh;
}
.wine-head {
  grid-column: 2;
  grid-row: 1;
}
.wine-details {
  grid-column: 2;
  grid-row: 2;
}
.bottle-background-group-detailed {
  grid-column: 1;
  grid-row: 1 / span 2;
  /*bottle-background-group is also a grid itself for positioning the yellow rectangle under the bottle*/
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr;
  justify-items: center;
  align-items: center;
}
.bottle-image-detailed {
  height: 496px;
  grid-column: 2;
  grid-row: 1;
  z-index: -1; /*because our header has z-index 0 by default and the bottle needs to go underneath the header when scrolling the page down*/
}
.yellow-rectangle-detailed {
  height: 215px;
  width: 310px;
  margin-top: 7rem;
  background-color: var(--chardonnay);
  opacity: 50%;
  grid-column: 1 / span 3;
  grid-row: 1;
  z-index: -2; /*below the bottle image*/
}
p.detailed-region {
  /*in the wine-head, region of the wine*/
  text-align: left;
  margin: 0;
}
.price {
  text-align: left;
  font-size: 2rem;
  font-weight: 700;
}
.sek {
  font-size: 1rem;
}
#detail-page-addtobasket-button {
  margin-bottom: 1rem;
}
.characteristic {
  text-align: left;
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
}
.characteristic span {
  font-weight: 400;
}
.p-detail {
  /*paragraph about the wine on detailed page*/
  text-align: left;
  margin-top: 2rem;
  margin-bottom: 3rem;
}

/*This will be a media querie for the mobile*/
@media screen and (max-width: 680px) {
  main {
    margin-top: 100px;
    display: grid;
    grid-template-columns: 1fr repeat(4, 66px) 1fr;
    grid-template-rows: auto;
    column-gap: 20px;
  }
  .six_column_content {
    grid-column: 2 / span 4;
  }
  .eight_column_content {
    grid-column: 2 / span 4;
  }
  /*bestsellers go one under the other with changing the flex direction*/
  .bestseller-section {
    display: flex;
    flex-direction: column;
    align-items: center; /*crucial to get the bestsellers in the middle of the page*/
  }
  /*region picture sizes need to be adjusted too*/
  .region-img-small-width {
    width: 157px;
  }
  .rioja-img-long {
    width: 324px;
  }
  .about-img-long {
    width: 324px;
    margin-top: 0;
    margin-bottom: 0;
  }
  .rioja-image-group,
  .otago-image-group,
  .bordeaux-image-group {
    gap: 10px;
    height: 325px;
  }
  .about-image-group {
    gap: 10px;
    height: 325px;
    margin-top: 0;
    margin-bottom: 0;
  }
  /*detail page*/
  #detail-grid {
    display: flex;
    flex-direction: column;
    margin-top: 0;
  }
  .bottle-image-detailed {
    height: 416px;
  }
  .yellow-rectangle-detailed {
    height: 180px;
  }
  /*product card sizes are adjusted in a separate media querie underneath the PRODUCT CARD css*/
}

/*SHOPPING-CART*/
/*this page contains eight column content*/
/*eight column content fits great above 900px (find that in the media query above 900px)*/
/*however, outside the media querie (680-900) the content looks closer to the mobile - flex direction is column*/
#shopping-cart-flex {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.bottle-text-flex /*groups bottle and text to keep them next to each other (otherwise they would be one below the other since the flex direction is column)*/ {
  display: flex;
  height: 500px; /*for the opened dropdown to fit*/
  align-items: flex-start;
}
.price-and-dropdown-flex {
  display: flex; /*to get the price and dropdown to be horizontally next to each other*/
}
#bottle-background-group-shopping-cart {
  margin-right: 1rem;
}
#shopping-cart-price {
  margin-top: 1rem; /*to align it with the dropdown*/
  margin-left: 1rem; /*get some space between price and dropdown*/
}
.order-summary1 {
  width: 311px;
  background-color: var(--chardonnay);
  height: 90px;
  margin-bottom: 5vh;
  display: flex;
}
#proceed-button {
  height: 56px;
  width: 418px;
  margin-bottom: 90px;
  /*other values defined for the class .big-button*/
}
#bottle-image-shopping-cart {
  height: 320px;
  /*other values defined for .bottle-image-detailed*/
}
#yellow-rectangle-shopping-cart {
  width: 200px;
  height: 139px;
  margin-top: 3rem;
  /*other values defined for .yellow-rectangle-detailed*/
}
h4.shopping-cart {
  /*other values defined for h4*/
  margin-top: 0;
  width: 257px;
}

/*above 900px*/
@media screen and (min-width: 900px) {
  #shopping-cart-flex {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start; /*when in one row on big screen, the items align to the top of the page*/
    justify-content: space-between; /*puts the neseccary space between bottle+text and the order summary without having to put on margins*/
  }
  main {
    margin-top: 112px;
    display: grid;
    grid-template-columns: 1fr repeat(8, 90px) 1fr;
    grid-template-rows: auto;
    column-gap: 20px;
  }
  .eight_column_content {
    grid-column: 2 / span 8;
  }
}
@media screen and (max-width: 680px) {
  #bottle-image-shopping-cart {
    height: 150px;
  }
  #yellow-rectangle-shopping-cart {
    width: 94px;
    height: 65px;
    margin-top: 2.5rem;
  }
  h4.shopping-cart {
    font-size: 1rem;
    width: 215px;
  }
  .order-summary1 {
    width: 100%;
  }
  #proceed-button {
    width: 324px;
  }
}
/*bottle count dropdown in the shopping cart page*/
#bottle-count-dropdown-button {
  width: 90px;
  height: 55px;
  background-color: white;
  border-style: solid;
  border-width: 1px;
  display: flex; /*to display the number and arrow*/
  align-items: center; /*vertically*/
  padding-left: 2.5rem; /*makes the number inside the button appear in the middle*/
  margin-top: 1rem;
}
.bottle-count-dropdown-ul {
  display: none;
  margin: 0; /*removes the default*/
  padding: 0;
}
.bottle-count-dropdown-li {
  list-style: none;
  width: 88px;
  padding-top: 1rem;
  padding-bottom: 1rem;
  font-family: "Jost", sans-serif;
  font-size: 1rem;
  text-align: center;
  background-color: white;
  border-style: solid;
  border-top-style: none; /*so they don't overlap*/
  border-width: 1px;
}
#dropdown-arrow {
  height: 10px;
  margin-left: auto;
}
.bottle-count-dropdown-div:hover .bottle-count-dropdown-ul {
  display: block; /* this allows to show the dropdown menu on hover */
}
.bottle-count-dropdown-div:hover #dropdown-arrow {
  transform: rotate(180deg);
  /*rotates the dropdown arrow on hover*/
}

/*CHECKOUT*/
/*the whole page is devided in two columns, left for the form, right for the checkout summary*/
#checkout-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 20px;
}
.checkoutform {
  grid-column: 1;
  margin-bottom: 5vh;
}
#checkout-summary {
  grid-column: 2;
}
/*left column - form*/
input[type="text"] {
  /* This targets only the text type of "input" */
  display: block;
  /* box-sizing: border-box - It includes the padding and the border in the elements widht and height */
  /* The following 1 line of code was adapted from: https://www.w3schools.com/css/css3_box-sizing.asp Accessed: 2023-12-06 */
  box-sizing: border-box;
  width: 100%; /*of the parent .checkoutform*/
  height: 55px;
  font-family: "Jost", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  margin-top: 1rem;
}
#pay-button {
  height: 55px;
  width: 100%;
  margin-top: 1rem;
}
/*right column - checkout summary*/
.picture-price-dropdown-group {
  margin-top: 5vh;
  margin-bottom: 5vh;
  display: flex;
  height: 400px;
  align-items: flex-start;
  /*within this flex there is the "bottle-background-group-checkout" group that is a grid, dropdown + price */
}
.bottle-background-group-checkout {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr;
  justify-items: center;
  align-items: center;
}
.bottle-image-checkout {
  height: 255px;
  grid-column: 2;
  grid-row: 1;
  z-index: -1;
}
.yellow-rectangle-checkout {
  height: 110px;
  width: 158px;
  margin-top: 4rem;
  background-color: var(--chardonnay);
  opacity: 50%;
  grid-column: 1 / span 3;
  grid-row: 1;
  z-index: -2;
}
/*the yellow order summary window, displayed as flex*/
.order-summary {
  background-color: var(--chardonnay);
  height: 90px;
  width: 100%;
  margin-bottom: 5vh; /*this is needed for mobile view, but doesn't affect anything on desktop, I put it here so I don't have to create another media querie just for that*/
  display: flex;
}
#order-summary-p {
  font-family: "Jost", sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  text-align: left;
  margin: 0;
  margin-left: 1rem;
  padding-top: 1rem;
}
#total-amount-p {
  font-family: "Jost", sans-serif;
  font-size: 1.25rem;
  font-weight: 400;
  text-align: left;
  margin: 0;
  margin-left: 1rem;
}
#checkout-price {
  margin: 0;
  margin-bottom: 1rem;
}
.total-price-sek {
  font-size: 1rem;
  font-weight: 700;
  margin-right: 1rem;
  margin-top: 3rem;
}
#total-price {
  margin-left: auto; /*aligns total price to the left side of the order summary flexbox*/
}

@media screen and (max-width: 680px) {
  #checkout-section {
    display: flex;
    flex-direction: column;
  }
  .picture-price-dropdown-group {
    display: none;
  }
}

/* HERO */
.hero_container {
  grid-column: 1 / span 8;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 1;
  justify-items: center; /*for region titles to be centered*/
}
/*.hero_image class is on home page, region pages and about page too*/
.hero_image {
  grid-column: 1 / span 3;
  grid-row: 1;
  z-index: -2;
  width: 100%;
  height: 366px;
  display: flex; /*for "overflow"*/
  justify-content: center; /*the picture crops equaly from both sides*/
  overflow: hidden;
}
.hero_quote {
  grid-column: 1;
  grid-row: 1;
  z-index: -1;
  font-family: "Piazzolla", serif;
  font-weight: 400;
  color: var(--chardonnay);
  margin-top: auto;
  margin-left: auto;
  margin-bottom: auto;
  font-size: 1.25rem;
  text-align: left;
  padding-left: 2rem;
}
.hero_quote_text {
  display: block; /*so every line appears in a new line*/
}
.hero_quote_italic {
  font-family: "Piazzolla", serif;
  font-style: italic;
  font-weight: 600;
}
/*This quote is first invisible but then it appears under the hero image when we get to the phone screen size*/
.hero_quote_under {
  display: none;
}

/*These are all the media quaries that, among other things, make the quote responsive.*/
@media screen and (max-width: 1217px) {
  .hero_container {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .hero_quote {
    margin-left: -9rem;
    grid-column: 1;
  }
}

@media screen and (max-width: 1110px) {
  .hero_container {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .hero_quote {
    margin-left: -4rem;
    grid-column: 1;
  }
}

/*Here the initial quote dissapears and the one under appears*/
@media screen and (max-width: 934px) {
  .hero_container {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .hero_quote {
    display: none;
  }
  .hero_quote_under {
    display: block;
    font-family: "Piazzolla", serif;
  }
}
/*above 900px*/
@media screen and (min-width: 900px) {
  .hero_container {
    grid-column: 1 / span 10;
  }
  .hero_container_regions {
    grid-column: 1 / span 10;
  }
}

@media screen and (max-width: 680px) {
  .hero_container {
    grid-column: 1 / span 6;
  }
  .hero_image {
    height: 200px;
  }
  .hero_quote_under {
    display: block;
  }
  .hero_container_regions {
    grid-column: 1 / span 6;
  }
  h1 {
    font-size: 1rem;
  }
}

/*RECEIVED*/
.received-text {
  font-family: "Jost", sans-serif;
  font-size: 1.5rem;
  margin-top: 56px;
  margin-bottom: 56px;
}
.received-text-two {
  font-family: "Jost", sans-serif;
  font-size: 1.5rem;
  margin-top: 56px;
  margin-bottom: 21px;
}
#check-mark {
  width: 65px;
  height: 65px;
}

#continueshopping-button {
  width: 418px;
  height: 56px;
  margin-bottom: 108px;
}
.received_column_content {
  grid-column: 3 / span 4;
  place-items: center;
  display: flex;
  align-items: center;
  flex-direction: column;
}

.logo-received {
  width: 291px;
  height: 99px;
  margin-bottom: 84px;
}

.animation-container {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1r;
}

#animation-0 {
  z-index: 1;
  grid-column: 1;
  grid-row: 1;
}
#animation-1 {
  z-index: 1;
  grid-column: 1;
  grid-row: 1;
  opacity: 0;
  animation-name: appear1;
  animation-duration: 2.5s;
  animation-delay: 0.5s;
}
#animation-2 {
  z-index: 2;
  grid-column: 1;
  grid-row: 1;
  opacity: 0;
  animation-name: appear1;
  animation-duration: 2.5s;
  animation-delay: 0.7s;
}
#animation-3 {
  z-index: 3;
  grid-column: 1;
  grid-row: 1;
  opacity: 0;
  animation-name: appear1;
  animation-duration: 2.5s;
  animation-delay: 0.8s;
}
#animation-4 {
  z-index: 4;
  grid-column: 1;
  grid-row: 1;
  opacity: 0;
  animation-name: appear1;
  animation-duration: 2.5s;
  animation-delay: 1.1s;
}
#animation-5 {
  z-index: 5;
  grid-column: 1;
  grid-row: 1;
  opacity: 0;
  animation-name: appear1;
  animation-duration: 2.5s;
  animation-delay: 1.2s;
}
#animation-6 {
  z-index: 6;
  grid-column: 1;
  grid-row: 1;
  opacity: 0;
  animation-name: appear1;
  animation-duration: 2.5s;
  animation-delay: 1.3s;
}
#animation-7 {
  z-index: 7;
  grid-column: 1;
  grid-row: 1;
  opacity: 0;
  animation-name: appear1;
  animation-duration: 2.5s;
  animation-delay: 1.7s;
}
#animation-8 {
  z-index: 8;
  grid-column: 1;
  grid-row: 1;
  opacity: 0;
  animation-name: appear1;
  animation-duration: 2.5s;
  animation-delay: 1.8s;
}
#animation-9 {
  z-index: 9;
  grid-column: 1;
  grid-row: 1;
  opacity: 0;
  animation-name: appear1;
  animation-duration: 2.5s;
  animation-delay: 1.9s;
}
#animation-95 {
  z-index: 9;
  grid-column: 1;
  grid-row: 1;
  opacity: 0;
  animation-name: appear1;
  animation-duration: 2.5s;
  animation-delay: 2s;
}
#animation-10 {
  z-index: 10;
  grid-column: 1;
  grid-row: 1;
  opacity: 0;
  animation-name: appear1;
  animation-duration: 2.5s;
  animation-delay: 2.4s;
  animation-fill-mode: forwards;
}

@keyframes appear1 {
  0% {
    opacity: 0;
  }
  20% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@media screen and (min-width: 900px) {
  .received_column_content {
    grid-column: 4 / span 4;
  }
}

@media screen and (max-width: 680px) {
  .received_column_content {
    grid-column: 2 / span 4;
  }
  #continueshopping-button {
    width: 324px;
  }
}

/*PRODUCT CARD*/
.product-card-container-w-button {
  width: 200px;
}
.flag {
  margin: 3px;
  width: 45px;
}
.p-wine-name-productcard {
  font-family: "Jost", sans-serif;
  text-align: left;
  font-size: 1.125rem;
  line-height: 100%;
  margin-top: 0;
  margin-bottom: 1rem;
  margin-left: 3px;
  height: 36px;
}
.product-card-img-background-group {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr;
  justify-items: center;
  align-items: center;
  margin-bottom: 1rem;
}
.bottle-image-productcard {
  height: 175px;
  grid-column: 2;
  grid-row: 1;
  z-index: -1;
}
.price-productcard {
  font-family: "Jost", sans-serif;
  font-weight: bold;
  font-size: 1.125rem;
  padding-top: 3.5rem; /*because the rectangle is a little lower behind the bottle, the text also needed to be lower*/
  grid-column: 3;
  grid-row: 1;
  z-index: -1;
}
.sek-productcard {
  font-size: 0.7rem;
}
.yellow-rectangle {
  height: 66px;
  width: 138px;
  margin-left: auto;
  margin-top: 3.5rem; /*to get our rectangle a little lower behind the bottle*/
  background-color: var(--chardonnay);
  opacity: 50%;
  grid-column: 1 / span 3;
  grid-row: 1;
  z-index: -2;
}
/*our one product card that is clickable needed to be placed in an anchor tag, by default all text turned blue so here I made it back to black*/
a {
  color: black;
}
.product-card-container:hover {
  .yellow-rectangle {
    background-color: var(--bordeaux);
  }
}
.addtobasket-button {
  width: 100%; /*it takes 100% of the parent div whick is the product-card-container-w-button div with a set width 200px*/
  height: 47px;
  background-color: var(--bordeaux);
  border-style: solid;
  border-width: 1px;
  font-family: "Jost", sans-serif;
  font-weight: 400;
  font-size: 1rem;
  color: white;
  /*to align the items in the button i turned it into a flexbox*/
  display: flex;
  align-items: center;
  justify-content: space-around;
  transition-delay: 0.015s;
}
.button-basket {
  width: 25px;
}
.addtobasket-button:hover {
  background-color: var(--chardonnay);
}
.addtobasket-button:active {
  background-color: black;
}

@media screen and (max-width: 680px) {
  .product-card-container-w-button {
    width: 152px;
  }
  .flag {
    width: 33px;
  }
  .p-wine-name-productcard {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    height: 48px;
  }
  .bottle-image-productcard {
    height: 125px;
  }
  .price-productcard {
    font-size: 1rem;
  }
  .sek-productcard {
    font-size: 0.6rem;
  }
  .yellow-rectangle {
    height: 46px;
    width: 108px;
  }
}

/*FOOTER*/
footer {
  background-color: var(--chardonnay);
  height: 136px;
  display: flex;
  align-items: center; /*aligns vertically*/
  justify-content: space-around; /*aligns horizontally in center but works better with resizing than "justify-content: center;"*/
}
#footer-logo {
  height: 20px;
}
.footer-icons {
  height: 40px;
  padding: 1vw;
}
.p-footer {
  font-family: "Jost", sans-serif;
  font-size: 0.875rem;
  margin-top: 0;
  margin-bottom: 0;
  text-align: left;
}
/*The icons now resize at 800px, we still don't know why it didn't work in the previous media querie, because it should have. But at least it works in a seperate one now.*/
@media screen and (max-width: 800px) {
  .footer-icons {
    height: 30px;
  }
}
