@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;
}

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

#order-method-area {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* row-gap: 1rem; */
    margin: 2rem auto 0;

    background-color: white;
    padding: 1rem;
    border-radius: 1rem;
    /* word-break: break-all; */
    border: 1px solid gray;
}

#tip-wrapper-home {
    display: flex;
    background-color: white;
    padding: 1rem;
    border-radius: 1rem;
    word-break: break-all;
    border: 1px solid gray;
    width: 100%;

    margin: 2rem auto 0;
    align-items: flex-start;
    flex-direction: column;
}

.tip-image {
    max-width: 100%;
    height: auto;

    margin: 0 auto 0.5rem;
}

/* #order-method-wrapper { */
    /* margin-top: 2rem; */
    /* text-align: center; */
/* } */

#order-method {
    border: none;
    padding: 0.35rem 0.75rem;
    border-radius: 0.25rem;
    background-color: #679a7d;
    color: #f6f6f6;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    width: fit-content;
}
#selected-order-method {
    font-size: 1rem;

    display: flex;
    flex-direction: column;
    align-items:flex-start;
}
#colon-delivery {
    display: none;
}
#colon-pickup {
    display: none;
}
/* #change-order-method { */
    /* text-align: center; */
/* } */
#a-change-order-method {
    color: #007bff;
}
#create-a-recipe {
    margin-top: 1rem;
}
#a-create-a-recipe {
    border: none;
    padding: 0.35rem 0.75rem;
    border-radius: 0.25rem;
    background-color: #679a7d;
    color: #f6f6f6;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    width: fit-content;
}

#table-for-unit-price-changes {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    margin: 2rem auto 0;
    padding: 1rem;
    background-color: white;
    border-radius: 1rem;
    border: 1px solid gray;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
}
#title-for-unit-price-change-table {
    font-size: 1.5rem;
    text-align: center;
}
#unit-price-change {
    display: grid;
    grid-template-columns: repeat(7, auto);
    align-items: center;
    column-gap: 1rem;
    /* justify-content: space-evenly; */
    overflow-x: auto;
    /* padding: 0 2rem; */
}
.unit-price-change-title {
    font-weight: 500;
}
.hr-line {
    grid-column: 1 / -1;
    color: #F1F5F9;
}
.hr-line:last-of-type {
    display: none;
}
.arrow-right {
    width: 3rem;
}

#more-price-change {
    justify-self: end;
    margin-top: 1rem;
}
#a-more-price-change {
    color: #007bff;
}

.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";
  }

    #order-method-area {
        width: 65%;
    }

    #tip-wrapper-home {
        flex-direction: row;

        width: 85%;
    }

    .tip-image {
        margin: 0 0.5rem 0 0;
    }

    /* #a-create-a-recipe { */
    /*     padding: 0.75rem 1.75rem; */
    /* } */

    /* #order-method { */
    /*     padding: 0.75rem 1.75rem; */
    /* } */

    #unit-price-change {
        justify-content: space-evenly;
        overflow-x: 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";
  }

    /* #selected-order-method { */
    /*     flex-direction: row; */
    /* } */

    #colon-delivery {
        display: inline-block;
    }

    #colon-pickup {
        display: inline-block;
    }

    .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) {
    #tip-wrapper-home {
        width: 65%;
    }

    .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;
    }
}
