@font-face {
    font-family: 'Noto Sans JP';
    font-weight: 400;
    src: url('/assets/fonts/NotoSansJP-Regular.woff2') format('woff2'),
         url('/assets/fonts/NotoSansJP-Regular.woff') format('woff');
}

@font-face {
    font-family: 'Noto Sans JP';
    font-weight: 500;
    src: url('/assets/fonts/NotoSansJP-Medium.woff2') format('woff2'),
         url('/assets/fonts/NotoSansJP-Medium.woff') format('woff');
}

@font-face {
    font-family: 'Noto Sans JP';
    font-weight: 600;
    src: url('/assets/fonts/NotoSansJP-SemiBold.woff2') format('woff2'),
         url('/assets/fonts/NotoSansJP-SemiBold.woff') format('woff');
}

* {
  font-family: 'Noto Sans JP', sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  color: #333;
}

body {
  background-color: #F1F5F9;
}

#check-javascript {
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

#no-javascript-message-wrapper {
    display: none;
}

nav {
  /* max-width: 90rem; */
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 1.5rem;
  background-color: white;
  display: grid;
  grid-template-columns: auto auto auto;
  grid-template-areas:
    "smoothie smoothie smoothie"
    "login signup shopping-cart"
    "recipe . review";
  gap: 1.1rem;
  text-align: center;
  border-bottom: 1px solid gray;
  align-items: center;
}

#smoothie {
  grid-area: smoothie;
  margin: 0 auto;
}

.home-logo {
    display: flex;
    width: fit-content;
    align-items: center;
}

#recipe {
    grid-area: recipe;
}

#review {
    grid-area: review;
}

#login {
  grid-area: login;
}

#signup {
    grid-area: signup;
}

#shopping-cart {
  grid-area: shopping-cart;
}

#nav-logout {
    grid-area: nav-logout;
}

#nav-logout-button {
    background: none;
    border: none;
    font: inherit;
    border-bottom: solid 3px transparent;
    cursor: pointer;
}

a {
  /* color: #333; */
  text-decoration: none;
}

.blue-border-bottom {
    border-bottom: solid 3px transparent;
}

#blue-now {
    border-bottom: solid 3px #86aed1;
}

#content-wrapper {
    margin: 0 auto;
    width: 100%;
    max-width: 60rem;
    display: flex;
    flex-flow: column;
}

.class-for-logout-form-wrapper {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: 5rem; /* Location of the box */
    padding-bottom: 5rem;
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.1); /* Black w/ opacity */
}

.adjust-width-wrapper {
    margin: 0 auto;
    max-width: 60rem;
    padding: 10px 10px;
    /* padding: 0.8rem 1.4rem; */

}

.adjust-width {
    width: 100%;
    background-color: white;
    margin: 0 auto;
    /* width: 90%; */
    padding: 1rem;
    border-radius: 1rem;
    text-align: center;
    align-items: center;
    box-shadow: 0 0 10px 10px #86aed1;
}

.close-div {
    /* grid-column: 1 / -1; */
    font-weight: bold;
    font-size: 1.5rem;
    line-height: 1.5rem;
    cursor: pointer;
    margin-left: auto;
    width: fit-content;

    margin-bottom: 1rem;
}

.cancel-or-logout {
    margin: 1rem auto 0;
}

.inside-cancel-or-logout {
    display: flex;
    column-gap: 0.6rem;
}

.cancel {
  box-shadow: 0px 0px 0px 1px #333 inset;
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 1rem;
  background-color: #F1F5F9;
  /* color: #333; */
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  /* text-align: center; */
  flex: 1;
}

.logout2 {
  border: none;
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 1rem;
  background-color: #679a7d;
  /* color: #333; */
  color: #f6f6f6;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  /* text-align: center; */
  flex: 1;
}

#add-kitchen-error-wrapper {
    max-width: 60rem;
    margin: 0 auto;
    width: 100%;
}

#add-kitchen-error {
    margin-top: 2rem;

    display: flex;
    column-gap: 1rem;
    align-items: flex-start;
    max-width: 100%;
    /* margin: 0 1rem; */
    background-color: #f8c3b6;
    padding: 1rem;
    border-radius: 1rem;
    text-align: center;

    border: 1px solid gray;

    margin-right: 1rem;
    margin-left: 1rem;
}

#inside-add-kitchen-error {
    display: inline-block;
    text-align: left;
    margin: 0 auto;
}

.closebtn-error {
  font-weight: bold;
  font-size: 1.5rem;
  line-height: 1.5rem;
  cursor: pointer;
}

main {
    max-width: 100%;
    margin: 0 1rem;
}

#sidebar {
    max-width: 100%;
    margin: 0 1rem;
    text-align: center;

    margin-top: 2rem;
}

#display-area {
    background-color: white;
    padding: 1rem;
    border-radius: 1rem;
    width: 100%;
    border: 1px solid gray;
}

.display-explanation {
    display: inline-block;
    text-align: left;
    margin: 0 auto;
}

#thick-hr {
    color: #F1F5F9;
    margin: 1rem 0 1rem 0;
}

#display-options {
    display: flex;
    flex-direction: column;
    row-gap: 1rem;
}

#selected-display-option {
    box-shadow: 0px 0px 0px 3px #007185 inset;
}

#display-option-store {
    display: inline-block;
    text-align: left;
    margin: 0 auto;
}

.display-option {
    background: none;
	color: inherit;
	border: none;
	/* padding: 0; */
	font: inherit;
	/* cursor: pointer; */
	outline: inherit;

    box-shadow: 0px 0px 0px 1px #333 inset;
    padding: 0.75rem 1.75rem;
    border-radius: 1rem;
    cursor: pointer;

    width: 100%;
}

.display-option:hover {
    box-shadow: 0px 0px 0px 1px #007185 inset;
}

.recipe-info {
    display: grid;
    /* grid-template-columns: auto-fit; */
    row-gap: 0.2rem;
    background-color: white;
    margin: 2rem auto;
    /* width: 90%; */
    padding: 1rem;
    border-radius: 1rem;
    /* text-align: center; */
    word-break: break-all;
    border: 1px solid gray;
}

.close-div {
    /* grid-column: 1 / -1; */
    font-weight: bold;
    font-size: 1.5rem;
    line-height: 1.5rem;
    cursor: pointer;
    margin-left: auto;
    width: fit-content;
}

.bigger-ingredient-image-wrapper {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: 5rem; /* Location of the box */
    padding-bottom: 5rem;
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.1); /* Black w/ opacity */
}
.bigger-ingredient-image {
    margin: 0 auto;
    width: fit-content;
    /* max-width: 60rem; */
    /* padding: 0.6rem 0.6rem; */
    padding: 10px 10px;
    /* padding: 0.8rem 1.4rem; */
}

.inside-bigger-ingredient-image {
    display: grid;
    row-gap: 1rem;
    width: 100%;
    background-color: white;
    margin: 0 auto;
    /* width: 90%; */
    padding: 1rem;
    border-radius: 0.5rem;
    /* text-align: center; */
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 10px 10px #86aed1;
}

.bigger-ingredient-img-element {
    max-width: 100%;
    height: auto;
    border-radius: 0.25rem;
}

.bigger-smoothie-image-wrapper {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: 5rem; /* Location of the box */
    padding-bottom: 5rem;
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.1); /* Black w/ opacity */
}
.bigger-smoothie-image {
    margin: 0 auto;
    width: fit-content;
    /* max-width: 60rem; */
    /* padding: 0.6rem 0.6rem; */
    padding: 10px 10px;
    /* padding: 0.8rem 1.4rem; */
}

.inside-bigger-smoothie-image {
    display: grid;
    row-gap: 1rem;
    width: 100%;
    background-color: white;
    margin: 0 auto;
    /* width: 90%; */
    padding: 1rem;
    border-radius: 0.5rem;
    /* text-align: center; */
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 10px 10px #86aed1;
}

.bigger-smoothie-img-element {
    max-width: 100%;
    height: auto;
    border-radius: 0.25rem;
}

/* .clickable { */
/*     display: grid; */
/*     grid-auto-flow: row; */
/*     row-gap: 0.6rem; */
/*     justify-content: end; */
/* } */

.add-to-kitchen-from-recipe {
    border: none;
    /* padding: 0.75rem 2.25rem; */
    /* border-radius: 30px; */
    padding: 0.35rem 0.75rem;
    border-radius: 0.25rem;
    background-color: #679a7d;
    color: #f6f6f6;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    width: fit-content;
    margin-left: auto;
    /* justify-self: end; */
}

.message-for-order-method {
    /* display: none; */
    width: fit-content;
    margin-left: auto;
}

.order-method {
    color: #007bff;
    cursor: pointer;
}

.error-message-div {
    justify-self: end;
    text-align: right;
}

.out-of-stock-text {
    /* justify-self: end; */
    color: red;
}
.no-deal-in-text {
    /* justify-self: end; */
    color: red;
}

.ingredient-container {
    margin-bottom: 1rem;
}

.smoothie-info {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.smoothie-title {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.smoothie-description {
    display: inline-block;
    text-align: left;
    margin: 0 auto;
}

.wow-hr {
    color: rgba(23,23,23,0.2);
    margin-bottom: 1rem;
}

.smoothie-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 1rem;
}

.ingredient-img-wrap {
    display: flex;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
}
.smoothie-img-wrap {
    display: flex;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
}

.ingredient-smoothie-img {
  max-width: 100%;
  height: auto;
  border-radius: 0.25rem;
}

.footer {
    padding: 1.5rem;
    background-color: #475569;
    margin-top: 2rem;
}

#smoothie-footer-title {
    color: white;
}

#smoothie-footer-slogan {
    color: white;
}

.footer-title {
    font-weight: 500;
    color: white;
    margin-top: 1rem;
}

.footer ul {
    list-style: none;
}

.footer li {
    line-height: 2rem;
}

.footer a {
    text-decoration: none;
}

.r-footer {
    display: grid;
    grid-template-columns: 1fr;
}

.box li {
    border: 1px solid white;
    border-radius: 1rem;
    margin-top: 1rem;
}

.box a, .box button {
    display: inline-block;
    width: 100%;
    color: white;
    padding: 0.75rem 1.75rem;
}

.b-footer {
    display: block;
    text-align: center;
    margin-top: 1rem;
}
.copyright {
    color: white;
}
#copyright-big {
    display: none;
}

#footer-for-media {
    display: flex;
    column-gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

#footer-for-media > li {
    pointer-events: none;
    cursor: default;
}

.footer-media-svg {
    pointer-events: auto;
    cursor: pointer;
    width: 3rem;
    border-radius: 50%;
}

@media screen and (min-width: 600px) {
  nav {
    grid-template-columns: auto auto auto auto auto;
    grid-template-areas:
      ". smoothie smoothie smoothie ."
      "recipe review login signup shopping-cart";
  }

    .ingredient-container {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
    }

    .ingredient-img-wrap {
      margin-right: 1rem;
      /* flex-basis: 10rem; */
      /* flex-shrink: 0; */
      /* flex-grow: 0; */
    }
    .smoothie-img-wrap {
      margin-right: 1rem;
      /* flex-basis: 10rem; */
      /* flex-shrink: 0; */
      /* flex-grow: 0; */
    }

    .right {
        visibility: hidden;
    }
}

@media only screen and (min-width: 768px) {
  .blue-border-bottom:hover {
    cursor: pointer;
    border-bottom: solid 3px #86aed1;
  }

  nav {
    grid-template-columns: auto auto auto auto auto auto auto auto auto auto;
    grid-template-areas:
      "smoothie . . recipe review . . login signup shopping-cart";
  }

    main {
        width: 65%;
        margin: 0 1rem;
        /* padding: 0.8rem 1.4rem; */
        /* padding: 0.8rem 0 0 1.4rem; */
    }

    #sidebar {
        width: 30%;
        margin: 0 1rem;
        padding-top: 2rem;
        position: sticky;
        top: 0;
        height: 100%;
        /* display: flex; */
        /* justify-content: center; /1* Align horizontal *1/ */
        /* align-items: center; */
        /* padding: 2.8rem 1.4rem 0 0; */
        text-align: center;
    }

    #content-wrapper {
        margin: 0 auto;
        max-width: 60rem;
        display: flex;
        flex-flow: row;
        justify-content: space-between;
    }

    .r-footer {
        grid-template-columns: repeat(3, auto);
        column-gap: 1.5rem;
        justify-content: space-around;
    }
    #terms-grid-item {
        grid-column: 2 / 3;
        margin-top: 1rem;
    }
    #media-grid-item {
        grid-column: 3 / -1;
        margin-top: 1rem;
        justify-self: start;
    }
    .footer-title {
        margin-top: initial;
    }
    .box li {
        border: initial;
        border-radius: initial;
        margin-top: initial;
    }
    .box a, .box button {
        display: initial;
        width: initial;
        padding: initial;
    }
    #footer-useful-info-lists {
        display: grid;
        grid-template-rows: repeat(2, auto);
        grid-auto-flow: column;
        column-gap: 1rem;
    }
    #footer-for-media {
        margin-top: initial;
    }
    .b-footer {
        display: none;
    }
    #copyright-big {
        display: block;
    }
}

@media only screen and (min-width: 992px) {
    .r-footer {
        grid-template-columns: repeat(4, auto);
    }
    #terms-grid-item {
        grid-column: initial;
        margin-top: initial;
    }
    #media-grid-item {
        grid-column: 1 / -1;
        margin-bottom: -1rem;
        justify-self: center;
    }
}

@media only screen and (min-width: 1200px) {
    .r-footer {
        grid-template-columns: repeat(5, auto);
    }
    #media-grid-item {
        grid-column: initial;
        margin-top: initial;
        margin-bottom: initial;
    }
}
