/*Background*/
html {
  min-height: 100%;
  background-image: url("BackCake.png");
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
body {
  font-family: "Brush Script MT";
  margin: 0;
  padding: 0 1rem;
  box-sizing: border-box;
  min-height: 100vh;
  background: transparent;
}
button,
input,
select,
textarea {
  font-family: inherit;
}
body::after {
  content: "";
  display: block;
  height: 30px;
}
/* Header */
.logo {
  display: flex;
  justify-content: center;
  text-align: center;
  margin-top: 5rem;
  color: rgb(238, 8, 115);
  font-size: clamp(2.5rem, 8vw, 6rem);
  line-height: 1.1;
  text-shadow:
    5px 5px 10px rgba(161, 160, 160, 0.877),
    0px -5px 35px rgba(255, 255, 255, 0.74);
}
.slogan {
  font-family: "Brush Script MT", cursive, fantasy;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  text-decoration-color: darkslategray;
  gap: 3px;
  font-size: clamp(1.5rem, 5vw, 3rem);
  text-shadow: 2px 2px 4px rgba(161, 160, 160, 0.877);
  text-align: center;
  justify-content: center;
  margin-bottom: 20px;
}
.slogan2 {
  color: rgb(238, 8, 115);
  transform: rotate(10deg);
  flex: 0 1 auto;
}
/*Top Menu */
.topmenu {
  display: flex;
  flex-wrap: wrap;
  text-align: center;
  justify-content: center;
  flex-direction: row;
  gap: 10px;
  margin-bottom: 2rem;
  width: 100%;
  box-sizing: border-box;
}
.activetab {
  background: linear-gradient(170deg, rgb(214, 140, 208), rgb(204, 65, 169));
  box-shadow: 1px 1px 0px rgb(73, 86, 97);
  transform: translate(2px, 2px);
}
nav a {
  text-decoration: none;
  padding: 10px;
  color: black;
  border: 3px solid rgb(25, 118, 194);
  border-radius: 5px;
  box-shadow: 3px 3px 0px rgb(73, 86, 97);
  background: linear-gradient(170deg, rgb(121, 220, 245), rgb(94, 147, 182));
  height: fit-content;
  margin-top: auto;
  margin-bottom: auto;
}
nav a:link {
  background-color: rgb(142, 212, 230);
}
nav a:hover {
  background-color: rgb(175, 66, 175);
}
nav a:active {
  box-shadow: none;
  transform: translate(3px, 3px);
  background: linear-gradient(170deg, rgb(214, 140, 208), rgb(204, 65, 169));
}
nav a:link:last-child {
  margin-right: 0;
}
.navLinks {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.menuToggle {
  display: none;
}

/* HomePage*/
.Homepage {
  text-align: center;
}
.featureScroll {
  display: flex;
  margin: 0 auto;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 540px;
  background-color: linear-gradient(
    170deg,
    rgb(121, 220, 245),
    rgb(94, 147, 182)
  );
  border-radius: 8px;
  box-sizing: border-box;
}
.featureImage {
  display: block;
  max-width: 500px;
  width: 100%;
  height: auto;
  object-fit: contain;
  height: 400px;
}
.mySlides {
  position: relative;
  text-decoration: none;
  color: black;
  display: none;
  width: 500px;
  height: 100%;
  box-sizing: border-box;
}
.featureName,
.featureCaption {
  position: absolute;
  left: 20px;
  right: 20px;
  z-index: 1;
  margin: 0;
  color: white;
  text-shadow: 2px 2px 6px rgb(2, 68, 85);
  bottom: 4%;
}
.featureCaption2 {
  position: absolute;
  left: 20px;
  right: 20px;
  z-index: 1;
  margin: 0;
  color: white;
  text-shadow: 2px 2px 6px rgb(2, 68, 85);
  top: 60px;
}
.featureName {
  top: 10px;
}

.prev:hover {
  cursor: pointer;
  background: rgb(175, 66, 175);
}
.prev,
.next {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  margin-bottom: auto;
  width: 20px;
  height: 50px;
  flex: 0 0 auto;
  background: linear-gradient(170deg, rgb(214, 140, 208), rgb(204, 65, 169));
  border-radius: 8px;
  border-color: rgb(175, 66, 175);
}
.next:hover {
  cursor: pointer;
  background: rgb(175, 66, 175);
}
.recMenu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
/* Sections (Dietary Accomodations & FAQ) */
h2 {
  margin-bottom: -1rem;
  margin-top: 2rem;
}
/*Toggle-able Sidebar Table of Contents*/
.Sidebar {
  display: flex;
  order: -1;
  margin-top: 1rem;
  background: rgba(250, 235, 215, 0.836);
  border-radius: 10px;
  margin-right: 0.25rem;
  height: fit-content;
}

.SidebarContent {
  width: 17rem;
  transition: width 0.3s ease;
  overflow: hidden;
}
.BodyOrder {
  display: flex;
  box-sizing: border-box;
  width: 75%;
  max-width: 48rem;
  margin-inline: auto;
  padding: 1.5rem;
  border-radius: 20px;
  background-color: rgba(187, 176, 154, 0.42);
}

.FAQTitle {
  text-align: center;
}

.SectionBody {
  flex: 1 1 auto;
  padding: 20px;
  transition: margin-left 0.3s ease;
}

.SidebarSelector {
  display: flex;
  flex-direction: column;
}

.SectionSelector {
  margin-top: 20px;
  font-size: 15px;
  text-decoration: none;
  color: black;
}

.SectionSelector:hover {
  background: rgba(201, 188, 171, 0.836);
  cursor: pointer;
}

/* Toggle Logic */
#SidebarToggle:checked ~ .SidebarContent {
  width: 0;
  padding: 0;
}

#SidebarToggle:checked ~ .SectionBody {
  margin-left: 0;
}

#SidebarToggle:checked ~ .SidebarButton {
  transform: scale(-1);
  height: 1.5rem;
}

.SidebarButton:hover {
  cursor: pointer;
}

/* Home */
.highlight {
  display: flex;
  text-align: center;
  font-family: "Brush Script MT", cursive, fantasy;
  color: rgb(47, 125, 177);
  font-size: 30px;
  flex-direction: column;
}
.homepage {
  border: 1px solid #ddd;
  background-color: rgba(243, 241, 237, 0.836);
  padding: 15px;
  border-radius: 8px;
  opacity: 30%;
}

/*menu*/
.menu {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  padding: 20px;
}
.menuItem {
  border: 1px solid #ddd;
  background-color: rgba(243, 241, 237, 0.836);
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  color: black;
}
.menuItem:hover {
  cursor: pointer;
  background-color: rgba(250, 235, 215, 0.836);
}
.menuImage {
  max-width: 170px;
  border-radius: 8px;
}
.productDescription {
  text-align: left;
}

/* About */
.about {
  text-align: left;
  color: rgb(0, 100, 182);
  font-size: 20px;
  width: 75%;
  margin-inline: auto;
  padding: 1.5rem;
  border-radius: 20px;
  background-color: rgba(187, 176, 154, 0.42);
}

/* Contact */
.contactform {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  margin-left: 10%;
  margin-right: 10%;
  color: rgb(25, 118, 194);
}
.messageInfo {
  display: flex;
  flex-direction: column;
  max-width: 300px;
  text-align: left;
}
.textInput {
  min-height: 300px;
}
.send {
  padding: 10px;
  color: black;
  border: 3px solid rgb(25, 118, 194);
  border-radius: 5px;
  box-shadow: 3px 3px 0px rgb(73, 86, 97);
  background: linear-gradient(170deg, rgb(121, 220, 245), rgb(94, 147, 182));
  max-width: 60px;
  margin-left: auto;
}
.send:hover {
  background-color: rgb(175, 66, 175);
  cursor: pointer;
}
.send:active {
  box-shadow: none;
  transform: translate(3px, 3px);
  background: linear-gradient(170deg, rgb(214, 140, 208), rgb(204, 65, 169));
}

/* Tail */
.tail {
  color: rgb(238, 8, 115);
  font-size: 20px;
  font-family: "Brush Script MT", cursive, fantasy;
  text-align: center;
}

/* Product Page */
.productPage {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  align-items: center;
  color: black;
  box-sizing: border-box;
  width: 100%;
  max-width: 48rem;
  margin-inline: auto;
  padding: 1.5rem;
  border-radius: 20px;
  background-color: rgba(187, 176, 154, 0.42);
}

.productImage {
  max-width: 300px;
  width: 75%;
  height: auto;
  justify-content: center;
  align-items: center;
}
.productInfo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.productInfo ul {
  box-sizing: border-box;
  width: fit-content;
  max-width: 60%;
  margin: 0.75rem auto;
  padding-inline-start: 1.5rem;
  text-align: left;
}

.productInfo ul li::marker {
  content: "★  ";
  color: rgb(238, 8, 115);
}
.productPage .productDescription {
  text-align: center;
}
.addToCart {
  color: black;
  border: 3px solid rgb(25, 118, 194);
  border-radius: 5px;
  box-shadow: 3px 3px 0px rgb(73, 86, 97);
  background: linear-gradient(170deg, rgb(121, 220, 245), rgb(94, 147, 182));
  height: 2rem;
  margin-top: 3rem;
  width: 100px;
  margin: auto;
}
.addToCart:hover {
  background-color: rgb(175, 66, 175);
  cursor: pointer;
}
.addToCart:active {
  box-shadow: none;
  transform: translate(3px, 3px);
  background: linear-gradient(170deg, rgb(214, 140, 208), rgb(204, 65, 169));
}
.quatityControl {
  display: flex;
  align-items: center;
}
.quantityControl button {
  color: black;
  border: 3px solid rgb(25, 118, 194);
  border-radius: 5px;
  box-shadow: 3px 3px 0px rgb(73, 86, 97);
  background: linear-gradient(170deg, rgb(121, 220, 245), rgb(94, 147, 182));
}
.quantityControl button:hover {
  background-color: rgb(175, 66, 175);
  cursor: pointer;
}
.quantityControl button:active {
  box-shadow: none;
  transform: translate(3px, 3px);
  background: linear-gradient(170deg, rgb(214, 140, 208), rgb(204, 65, 169));
}
.quantity {
  width: 5ch;
  text-align: right;
}
.cartIcon {
  display: block;
  height: 3rem;
  margin: auto auto;
}
.cartCount {
  position: absolute;
  top: 41%;
  left: 52%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}
.cartBox {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
}
/* Cart Page*/
.cartItems {
  display: flex;
  justify-content: center;
  text-align: center;
  flex-direction: column;
}
.cartTable {
  border: 0.1rem solid rgb(121, 220, 245);
  background-color: rgba(187, 176, 154, 0.836);
  max-width: fit-content;
  border-collapse: collapse;
  margin: 0 auto;
}
.cartTable th {
  border: 0.4rem solid rgb(121, 220, 245);
}
.cartTable td {
  border: 0.2rem solid rgb(121, 220, 245);
}
.Checkout {
  display: flex;
  margin: 0 auto;
  text-align: center;
  color: black;
  border: 3px solid rgb(25, 118, 194);
  border-radius: 5px;
  box-shadow: 3px 3px 0px rgb(73, 86, 97);
  background: linear-gradient(170deg, rgb(121, 220, 245), rgb(94, 147, 182));
  max-width: 5rem;
}
.Checkout:hover {
  background-color: rgb(175, 66, 175);
  cursor: pointer;
}
.Checkout:active {
  box-shadow: none;
  transform: translate(3px, 3px);
  background: linear-gradient(170deg, rgb(214, 140, 208), rgb(204, 65, 169));
}
.clearCart {
  margin: 0 auto;
  text-align: center;
  color: black;
  border: 3px solid rgb(205, 222, 236);
  border-radius: 5px;
  box-shadow: 3px 3px 0px rgb(73, 86, 97);
  background: linear-gradient(170deg, rgb(172, 202, 209), rgb(255, 255, 255));
  max-width: 6rem;
}
.clearCart:hover {
  cursor: pointer;
  background-color: rgb(73, 86, 97);
}
.clearCart:active {
  box-shadow: none;
  transform: translate(3px, 3px);
}

.half-and-half-options {
  display: none;
}

.product-checkbox-group {
  display: flex;
  flex-direction: column;
}

.checks {
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.checkboxname {
  border: 3px solid rgb(205, 222, 236);
  box-shadow: 3px 3px 0px rgb(73, 86, 97);
  background: linear-gradient(170deg, rgb(172, 202, 209), rgb(255, 255, 255));
  margin: auto;
  border-radius: 5px;
  margin-bottom: 10px;
  font-size: 12px;
}

.product-option select {
  border: 3px solid rgb(205, 222, 236);
  box-shadow: 3px 3px 0px rgb(73, 86, 97);
  background: linear-gradient(170deg, rgb(172, 202, 209), rgb(255, 255, 255));
  margin: auto;
  border-radius: 5px;
  margin-bottom: 10px;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
}
.cartTable {
  font-family: Arial, Helvetica, sans-serif;
  font-size: large;
}
.cartTable td .productName {
  display: block;
  margin: 0 0 0.15rem;
  line-height: 1.1;
}
.cartTable td p {
  margin: 0.1rem 0;
}
.option {
  font-size: medium;
}
.comment {
  font-size: smaller;
}
.checkoutTitle {
  text-align: center;
  align-items: center;
  margin-bottom: 40px;
}
.checkout-summary {
  display: flex;
  flex-direction: column;
}
.checkout-price {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.5rem 0;
}
#checkout {
  box-sizing: border-box;
  width: 100%;
  max-width: 36rem;
  margin-inline: auto;
  padding: 1rem;
  justify-content: center;
  text-align: center;
}
#checkout fieldset {
  min-inline-size: 0;
  border: 0;
  padding: 0;
  margin: 0;
}

#checkout [hidden] {
  display: none !important;
}

#checkout .checkout.heading {
  margin: 1rem 0;
  max-width: none;
}

#paypal-button-container {
  width: 100%;
  max-width: 100%;
  margin: 1rem auto;
}
#fulfillment-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  width: 100%;
  margin-block: 1rem;
}
.fulfillment-button {
  flex: 1;
  min-width: 0;
  cursor: pointer;
  text-align: center;
}

.fulfillment-button input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.fulfillment-button span {
  text-decoration: none;
  padding: 10px;
  color: black;
  border: 3px solid rgb(25, 118, 194);
  border-radius: 5px;
  box-shadow: 3px 3px 0px rgb(73, 86, 97);
  background: linear-gradient(170deg, rgb(121, 220, 245), rgb(94, 147, 182));
  height: fit-content;
  margin-top: auto;
  margin-bottom: auto;
  justify-content: center;
}

/* Highlight the selected button */
.fulfillment-button input[type="radio"]:checked + span {
  box-shadow: none;
  transform: translate(3px, 3px);
  background: linear-gradient(170deg, rgb(214, 140, 208), rgb(204, 65, 169));
}

/* Keyboard accessibility */
.fulfillment-button input[type="radio"]:focus-visible + span {
  outline: 3px solid #2878d0;
  outline-offset: 3px;
}
@media (min-width: 600px) {
  #checkout .checkout-schedule {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #checkout label[for="scheduledDate"] {
    grid-area: 1 / 1;
  }
  #checkout label[for="scheduledTime"] {
    grid-area: 1 / 2;
  }
  #checkout #scheduledDate {
    grid-area: 2 / 1;
  }
  #checkout #scheduledTime {
    grid-area: 2 / 2;
  }
}
@media (max-width: 360px) {
  .fulfillment-options {
    gap: 20px;
  }

  .fulfillment-button span {
    min-height: 56px;
    padding: 12px 6px;
    font-size: 16px;
  }
}
#checkout .checkout-schedule input,
#checkout .checkout-schedule select,
#checkout #contact-fields input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
}
#contact-fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

#contact-fields input {
  box-sizing: border-box;
  width: 100%;
  max-width: 450px;
  padding: 10px;
}

#delivery-fields {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

#delivery-fields[hidden] {
  display: none;
}

#delivery-fields input {
  box-sizing: border-box;
  width: 100%;
  max-width: 450px;
  padding: 10px;
}

#checkout-summary {
  margin: 20px 0;
}

#delivery-status {
  color: #8a2d20;
}

.checkout-error {
  padding: 14px 16px;
  margin: 16px 0;
  border: 1px solid #dc3545;
  border-radius: 8px;
  background-color: #fff0f0;
  color: #a71d2a;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
}

.checkout-error:not([hidden]) {
  display: block;
}

#paypal-message {
  margin: 12px 0;
  font-size: 15px;
  line-height: 1.5;
}
.schedule-card {
  border: 1px solid #dedede;
  border-radius: 12px;
  padding: 20px;
  margin: 24px 0;
  background: #fff;
}

.schedule-card h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.schedule-card p {
  color: #666;
  line-height: 1.5;
}

.schedule-card fieldset {
  border: 0;
  padding: 12px 0;
  margin: 0 0 12px;
}

.schedule-card legend {
  font-weight: 600;
  margin-bottom: 10px;
}

.schedule-card fieldset label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 18px;
}

.schedule-card > label {
  display: block;
  font-weight: 600;
  margin: 14px 0 6px;
}

.schedule-card input[type="date"],
.schedule-card select {
  box-sizing: border-box;
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
  font: inherit;
}

#scheduleError {
  color: #b42318;
  margin-bottom: 0;
}

.scheduledTime {
  max-width: 450px;
}

/* Mobile Dropdown Navigation */
@media screen and (max-width: 600px) {
  .topmenu {
    position: sticky;
    position: -webkit-sticky;
    top: 0;
    justify-content: center;
    width: 100%;
    z-index: 1000;
    background: transparent;
    margin: 0;
    padding: 0;
  }

  .menuToggle {
    display: block;
    font-size: 2rem;
    border: 3px solid rgb(25, 118, 194);
    border-radius: 5px;
    background: linear-gradient(170deg, rgb(121, 220, 245), rgb(94, 147, 182));
    cursor: pointer;
    width: 80%;
    justify-content: center;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
  }

  .navLinks {
    display: none;
    position: absolute;
    top: 100%;
    transform: none;
    z-index: 100;
    flex-direction: column;
    align-items: stretch;
    width: 220px;
    padding: 10px;
    gap: 8px;
    background: rgba(250, 235, 215, 0.97);
    border: 2px solid rgb(25, 118, 194);
    border-radius: 8px;
    box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.2);
  }

  .navLinks.open {
    display: flex;
  }

  .navLinks a {
    text-align: center;
    margin: 0;
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }

  .navLinks .cartBox {
    align-self: center;
  }
}
