:root {
  --color-grey-50: ;
  --color-grey-100: ;
  --color-grey-200: ;
  --color-grey-300: ;
  --color-grey-400: ;
  --color-grey-500: ;

  --primary-color-50: #72d7ff;
  --primary-color-100: #2685aa;
  --primary-color-200: #1d6986;
  --primary-color-250: #195b75;
  --primary-color-300: #12485e;
  --primary-color-500: #0e313f;
  --primary-color-600: #0c2731;
  --primary-color-800: #06151b;
  --primary-color-900: #000f14;
  /* --primary-color-600: #015337; */

  --primary-contrast-color-20: rgb(250, 250, 250);
  --primary-contrast-color-50: rgb(238, 238, 238);
  --primary-contrast-color-100: rgb(216, 216, 216);
  --primary-contrast-color-200: rgb(172, 172, 172);
  --primary-contrast-color-300: rgb(124, 124, 124);
  --primary-contrast-color-400: rgb(88, 88, 88);
  --primary-contrast-color-450: rgb(41, 41, 41);
  --primary-contrast-color-500: rgb(31, 31, 31);
  --primary-contrast-color-600: #0a0a0a;

  --error-color-100: rgb(254, 173, 173);
  --error-color-200: rgb(254, 90, 90);
  --error-color-300: rgb(255, 70, 70);
  --error-color-500: red;
  --error-color-700: rgb(189, 0, 0);

  --space-05: 0.125rem;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;

  --border-radius-small: 4px;
  --border-radius-medium: 6px;

  --font-size-2: 0.8rem;
  --font-size-3: 1rem;
  --font-size-4: 1.05rem;
  --font-size-5: 1.1rem;
  --font-size-6: 1.2rem;
  --font-size-7: 1.5rem;
  --font-size-8: 1.8rem;
  --font-size-9: 2rem;
  --font-size-10: 2.3rem;

  --header-font: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --alternative-font: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
  --content-font: 'Courier New', Courier, monospace;
}

body {
  background-color: var(--primary-contrast-color-100);
  width: 100%;
  margin: 0 auto;
  color: var(--primary-contrast-color-500);
  font-family: var(--content-font);
}

* {
  box-sizing: border-box;
}

main > h1 {
  /* margin-top: 0; */
  text-align: center;
  margin-top: - var(--space-4);
  margin-bottom: var(--space-6);
  font-size: var(--font-size-10);
  text-align: center;
  font-family: var(--header-font);
  font-weight: 900;
  padding-bottom: var(--space-2);
  border-bottom: 4px solid var(--primary-contrast-color-500);
}

h1,
h2,
h3 {
  font-family: var(--header-font);
}


li,
ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.link {
  text-decoration: underline;
  color: var(--primary-color-200);
}

.link:hover,
.link:active {
  color: var(--primary-color-100);
}

/* universal styling for the header: */

header {
  background-color: var(--primary-color-900);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 0 var(--space-4) 0 var(--space-4);
  color: var(--primary-contrast-color-50);
  box-shadow: 1px 4px 8px var(--primary-contrast-color-500);
  z-index: 2;
  font-family: var(--header-font);
  font-weight: 400;
  height: 4.5rem;
  /* max-width: 100vw; */
  /* font-family: 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif; */
}

header > div {
  height: 100%;
  /* margin-right: var(--space-2); */
}

header > div > div {
  height: 100%;
}

header > div > div {
  max-width: 60rem;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  font-size: 1.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  margin: 0;
}

header a {
  text-decoration: none;
}

/* this is the header logo for tiny screens */
#tiny-logo {
  display: none;
}

/* basket badge styling */

.badge.filled {
  background-color: var(--primary-contrast-color-50);
  border-radius: 40px;
  padding: 0.2rem 0.9rem 0.3rem 0.8rem;
  color: var(--primary-color-900);
  font-weight: 600;
}

#mobile-nav-element .badge {
  background-color: var(--primary-contrast-color-100);
  color: var(--primary-contrast-color-500);
}

/* Mobile styling for the header */
#desktop-nav-element {
  display: none;
}

#mobile-nav-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 2.25rem;
  height: 2.25rem;
  background-color: transparent;
  border: none;
  padding: 0;
  /* margin-right: var(--space-05); */
}

#mobile-nav-btn div {
  box-sizing: border-box;
  width: 100%;
  border: 0.16rem solid var(--primary-contrast-color-50);
  border-radius: var(--border-radius-small);
}

#mobile-nav-btn:active div {
    border-color: var(--primary-color-300);
}

#mobile-nav-menu {
    /* text-align: center; */
    position: fixed;
    top: 4.5rem;
    left: 0;
    height: calc(100vh - 6.5rem);
    width: 100%;
    height: 100%;
    background-color: var(--primary-contrast-color-500); /* maybe this should be a dark grey??? */
    display: flex;
    flex-direction: column;
    align-items: center;
    display: none;
    font-family: var(--header-font);
    z-index: 2;
}

#mobile-nav-element {
    display: flex;
    flex-direction: column;
    width: 90%;
}

#mobile-nav-element ul {
    height: 100%;
    display: flex;
    flex-direction: column;
} 

#mobile-nav-element a {
    color: var(--primary-contrast-color-50);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--border-radius-medium)
}

#mobile-nav-element li,
#mobile-nav-element form {
    margin-top: var(--space-8);
    font-size: 2rem;
    text-align: center;
}

.website-nav-element button {
    background-color: transparent;
    border: 2px solid var(--primary-color-200);
    color: var(--primary-color-200);
    padding: var(--space-2) var(--space-4);
}

.website-nav-element a:hover,
.website-nav-element a:active,
.website-nav-element button:hover,
.website-nav-element button:active {
    background-color: rgba(255, 255, 255, 0.2);
}

/* this will make sure that the main content sits below the header: */
main {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
    margin: 6.5rem auto 0 auto;
    max-width: 60rem;
}

.sit-right {
  text-align: right;
}

@media (max-width: 19rem) {
  #mobile-nav-element a {
    font-size: var(--font-size-8);
    padding: var(--space-2) var(--space-3);
  }
}

@media (max-width: 25rem) {
  main {
    padding-left: var(--space-2);
    padding-right: var(--space-2);
  }


  header h1 {
    display: none;
  }
  
  #tiny-logo {
    display: block;
  }
}

/* nav settings for desktop mode */
@media (min-width: 44rem) {
  main {
    margin: 0 auto 0 auto;
  }

  #desktop-nav-element {
    display: block;
  }

  #mobile-nav-btn {
    display: none;
  }

  header {
    position: relative;
  }

  main {
    padding-top: var(--space-6);
  }

  header nav ul {
    display: flex;
    justify-content: space-evenly;
  }

  header nav ul * {
    margin: auto;
    margin-left: 0.5rem;
    display: inline-block;
    color: var(--primary-color-20);
  }

  header nav a {
    font-size: var(--font-size-5);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--border-radius-medium);
  }

  /* header nav a:hover,
  header nav a:active {
    background-color: rgba(255, 255, 255, 0.2);
  } */
}

.card {
  width: 100%;
  height: 100%;
  background-color: var(--primary-contrast-color-100);
  color: var(--primary-contrast-color-500);
  border: 1px solid var(--primary-contrast-color-500);
  border-radius: var(--border-radius-medium);
  padding: var(--space-2);
  box-shadow: 2px 4px var(--border-radius-small) var(--primary-contrast-color-400);
  overflow: hidden;
}

.card > div {
  display: flex;
  flex-direction: row;
}


.card img {
  height: 10rem;
  width: 10rem;
  border-radius: var(--border-radius-small);
  object-fit: cover;
  margin-right: var(--space-05);
}

.card h3 {
  margin: 0;
  text-align: center;
}

.card > div > div {
  padding: var(--space-3);
  margin: 0 auto 0 auto;
}

.product-card {
  /* these next few styles are to ensure that the container div is center vertically in the scenario that the card is resized(with js) in order to equal the same amount as the maximum height card. */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-card > button {
  display: none;
}

/* for the product card items */
.product-card * {
  text-decoration: none;
}

.product-card > div > img {
  align-self: center;
}

.product-card > div > div {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-card > div > div > div {
  margin-top: var(--space-2);
  text-align: center;
}

.product-card > div > div > div > span {
  display: block;
}

.product-card button {
  margin-top: var(--space-2);
}

.price {
  font-weight: 700;
}

/* .product-card mobile styles */
@media (max-width: 24.5rem) {
  .product-card img {
    height: 8rem;
    width: 8rem;
  }

  .product-card > div {
    display: flex;
    flex-direction: row;
    align-items: center;
  }

  .product-card > div > div {
    min-height: 8rem;
    padding: var(--space-1) 0.3rem;
  }
}

@media (max-width: 22rem) {

  .product-card > div > div > div > button {
    display: none;
  }

  .product-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* align-items: center; */
  }

  /* .product-card > div > div {
    min-height: 8rem;
    padding: var(--space-1) 0.3rem;
  } */

  .product-card > button {
    display: inline-block;
    width: 100%;
    /* width: fit-content; */
    margin: var(--space-2) auto 0 auto;
  }
}

@media (max-width: 18rem) {
  .product-card img {
      height: 7rem;
      width: 7rem;
  }

  .product-card > div > div {
    min-height: 7rem;
  }
}


.btn {
  cursor: pointer;
  font-family: var(--alternative-font);
  padding: var(--space-2) var(--space-6);
  background-color: var(--primary-color-300);
  color: var(--primary-contrast-color-100);
  border: 1px solid var(--primary-contrast-color-300);
  border-radius: var(--border-radius-medium);
  font-weight: 900;
}

.btn-small {
  padding: var(--space-2) var(--space-4);
}

.btn:hover,
.btn:active {
  background-color: var(--primary-color-200);
  border-color: var(--primary-color-300);
}

.btn-alt-colour {
  background-color: var(--primary-contrast-color-100);
  color: var(--primary-color-500);
  border: 1px solid var(--primary-color-500);
}

.btn-alt-colour:hover,
.btn-alt-colour:active {
  background-color: rgba(255, 255, 255, 0.25);
  border: 1px solid var(--primary-color-300);
}

/* #logout-button {
    background-color: antiquewhite;
    color: black;
} */

/* Authentication Success/Failure styles:*/
/* I have these here instead of the auth-forms css file because once the user is logged in they are redirected to the home page and they get a little message saying log in success. */
.alert {
  margin-top: var(--space-1);
  margin-bottom: var(--space-3);
  text-align: center;
  font-size: 1.3rem;
  font-weight: 600;
}

.alert p {
  display: inline;
  /* padding: var(--space-1); */
  padding: 0.4rem;
  border-radius: var(--border-radius-small);
  line-height: 0.9rem;
}

.alert .error {
  color: var(--error-color-700);
  background-color: var(--error-color-100);
}

.alert .success {
  color:  rgb(74, 142, 74);
  background-color: rgba(0, 255, 0, 0.35);
}




input, select {
  font: inherit;
  border-radius: var(--border-radius-small);
  border: 1px solid var(--primary-color-600);
}

.label-input-sec {
  margin-top: var(--space-4);
  display: flex;
  flex-direction: column;
}

.group-with-last-sec {
  margin-top: var(--space-2);
}

.label-input-sec label {
  margin-bottom: 0.15rem;
}

input[name="quantity"] {
  max-width: 3rem;
  /* border-radius: var(--border-radius-small); */
  padding: var(--space-2) 0 var(--space-2) var(--space-3);
  /* border: 2px solid var(--primary-contrast-color-300); */
  border-radius: var(--border-radius-medium);
  font-weight: 600;
}


/* styling for the "Need something else?" section */

#need-something-else {
  border-top: 4px solid var(--primary-contrast-color-500); 
  text-align: center;
}

#need-something-else > h2 {
  margin-top: var(--space-3);
}

#need-something-else > p {
  font-weight: 900; 
  font-family: var(--content-font);
}

#need-something-else > p:first-of-type {
  margin-top: -0.2rem;
}

#need-something-else > p#email-address {
  font-weight: 900; 
  font-size: var(--font-size-6); 
  font-family: var(--header-font); 
  font-weight: bold;
  margin-top: -0.6rem;
}

@media (max-width: 25rem) {
  #need-something-else > p:first-of-type {
      margin-top: -0.5rem;
  }

  #need-something-else > p#email-address {
      font-size: var(--font-size-6); 
      font-family: Calibri, sans-serif;
  }
}

@media (max-width: 23rem) {
  #need-something-else > p:first-of-type {
      margin-top: -0.6rem;
  }

  #need-something-else > p {
      font-family: Calibri, sans-serif;
  }

  #need-something-else > p#email-address {
      font-size: var(--font-size-5); 
      font-family: Calibri, sans-serif;
      font-weight: 900;
  }
}

@media (max-width: 20rem) {
  #need-something-else > p:first-of-type {
      margin-top: -0.5rem;
  }
  

  #need-something-else > p#email-address {
      font-size: 0.97rem; 
      /* margin-top: -0.9rem; */
  }
}