@media screen and (max-width: 768px) {
  /* Stack the navigation buttons vertically */
  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 10px;
  }

  nav li a {
    width: 90%; /* Buttons take up most of the screen width */
    max-width: 300px;
  }

  /* Make the text boxes (My Store / About Me) wider for small screens */
  .store-container,
  .about-container,
  .info-box {
    width: 90% !important;
    margin: 10px auto !important;
    box-sizing: border-box;
  }

  /* Adjust header text size so it doesn't wrap awkwardly */
  h1,
  .title {
    font-size: 1.5rem;
    text-align: center;
  }
  h2 {
    font-size: 0.8rem;
    text-align: center;
    margin: 0.5rem 0;
    padding: 0.5rem;
    border: 3px solid black;
    border-radius: 10px;
    background-color: white;

    /* Use flexbox to center text vertically inside the box */
    display: flex;
    align-items: center;
    justify-content: center;

    /* FIXES: */
    min-height: 4.5rem; /* Ensures "Red T-shirt" box is as tall as "Moto Jacket" */
    width: 90%;
    word-wrap: normal; /* Prevents breaking words */
    overflow-wrap: normal;
    hyphens: none; /* Stops "Leath-er" from happening */
  }
  /* Ensure the main pink container/nav bar spans the full width */
  nav {
    width: 100%;
    border-radius: 0; /* Looks cleaner on mobile to have flush edges */
  }
}
.note {
  font-family: Arial, sans-serif;
  font-size: 25px;
  color: black;
}
@keyframes change-color {
  14% {
    color: red;
  }
  28% {
    color: orange;
  }
  42% {
    color: yellow;
  }
  56% {
    color: lightgreen;
  }
  70% {
    color: lightblue;
  }
  84% {
    color: rgb(33, 134, 168);
  }
  100% {
    color: rgb(221, 106, 221);
  }
}
@keyframes change-border-color {
  14% {
    border-color: red;
  }
  28% {
    border-color: orange;
  }
  42% {
    border-color: yellow;
  }
  56% {
    border-color: lightgreen;
  }
  70% {
    border-color: lightblue;
  }
  84% {
    border-color: rgb(33, 134, 168);
  }
  100% {
    border-color: rgb(221, 106, 221);
  }
}
@keyframes fade-in-opacity {
  0% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}
p {
  font-family: Arial, sans-serif;
  font-size: 20px;
  color: black;
}
nav {
  background-color: rgb(255, 204, 204); /* nav bar color */
  height: 60px; /* taller than buttons */
  display: flex;
  align-items: center; /* vertical centering */
  padding: 0 20px; /* space on left/right */
  border-radius: 10px;
  border: 5px solid rgb(170, 229, 170);
}

@keyframes bounce {
  11% {
    transform: translateY(-10px);
  }
  22% {
    transform: translateY(0);
  }
  33% {
    transform: scale(-10px);
  }
  44% {
    transform: translateY(-10px);
  }
  55% {
    transform: translateY(0);
  }
  66% {
    transform: scale(-10px);
  }
  77% {
    transform: translateY(-10px);
  }
  88% {
    transform: translateY(0);
  }
  99% {
    transform: scale(-10px);
  }
}

@keyframes change-size {
  0% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.05);
  }
  50% {
    transform: scale(1.1);
  }
  75% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}
/* The pink container bar */
nav {
  background-color: rgb(255, 204, 204);
  padding: 15px 30px; /* Vertical and Horizontal padding */
  border: 3px solid rgb(170, 229, 170);
  border-radius: 15px;

  /* Layout */
  display: flex;
  justify-content: center; /* Centers the list of buttons */
  align-items: center; /* Centers them vertically */

  /* Width */
  width: 95%; /* Makes the bar wide */
  max-width: 1000px; /* Prevents it from getting too stretched on huge screens */
  margin: 20px auto; /* Centers the whole bar on the page */
  box-sizing: border-box; /* Includes padding in the width calculation */
}

/* The pink container bar */
nav {
  background-color: rgb(255, 204, 204);
  padding: 1.5% 2%; /* Scalable padding based on screen width */
  border: 0.2rem solid rgb(170, 229, 170);
  border-radius: 1rem;

  display: flex;
  justify-content: center;
  align-items: center;

  width: 95%;
  max-width: 1200px; /* Limits extreme stretching on ultra-wide monitors */
  margin: 1rem auto;
  box-sizing: border-box;
}

/* The horizontal list */
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;

  display: flex;
  flex-direction: row;
  gap: 2%; /* Gap scales with the container width */
  align-items: center;
  width: 100%;
  justify-content: space-around;
}

nav li {
  flex: 1; /* Each li takes up equal portion of the row */
  display: flex;
  justify-content: center;
  max-width: 300px; /* Prevents buttons from becoming too long */
}

/* The scalable buttons */
nav li a {
  display: inline-block;
  background-color: rgb(170, 229, 170);
  color: white;
  text-decoration: none;
  text-align: center;

  /* RELATIVE SIZING */
  width: 100%; /* Fills the flex-basis of the li */
  padding: 0.8rem 0; /* Vertical padding scales with text size */
  font-family: Arial, sans-serif;
  font-size: 1.1rem; /* Scales based on browser root font size */
  font-weight: bold;

  border-radius: 0.5rem;
  white-space: nowrap;
  transition:
    transform 0.2s,
    background-color 0.2s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

nav li a:hover {
  transform: scale(1.03);
  background-color: rgb(150, 210, 150);
}
.closet {
  font-family: Arial, sans-serif;
  font-size: 25px;
  color: black;
  margin-top: 10px;
  text-align: center;
}
.about-me {
  font-family: Arial, sans-serif;
  font-size: 20px;
  margin-top: 10px;
  padding: 10px;
  border-radius: 15px;
}
.store {
  font-family: Arial, sans-serif;
  font-size: 20px;
  color: black;
  margin-top: 10px;
  padding: 10px;
  border-radius: 15px;
}
img {
  cursor: url("pink-heart.svg"), auto;
  animation: fade-in-opacity 4s forwards;
  width: 100%;
  height: auto;
  display: block;
}
body {
  background-image: url("https://static.vecteezy.com/system/resources/thumbnails/008/101/685/small_2x/watercolor-loose-rose-flower-bouquet-with-gold-line-art-background-free-vector.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  cursor: url("pink-and-green-rounded-arrowhead.svg"), auto;
}
h1 {
  font-family: Arial, sans-serif;
  font-size: 40px;
  text-align: center;
}
h1:hover {
  animation: change-color 8s;
}
h2 {
  font-family: Arial, sans-serif;
  font-size: 30px;
  text-align: center;
  background-color: white;
  border: 5px solid black;
  border-radius: 10px;
}
h2:hover {
  animation:
    change-color 8s,
    change-border-color 8s;
}
.btn,
.pay-btn {
  font-family: Arial, sans-serif;
  font-size: 20px;
  background-color: white;
  color: black;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  display: inline-block;
  margin-top: 10px;
  cursor: url("white-and-pink-hand-pointer.svg"), pointer;
  border: 3px solid black;
}
.pay-btn {
  animation: bounce 8s;
  border: 5px solid green;
  color: green;
  font-weight: bold;
}
.btn:hover,
.pay-btn:hover {
  background-color: green;
  color: white;
  transform: scale(1.2);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}
.text {
  font-family:
    Lucida Console,
    monospace;
  font-size: 20px;
  color: black;
  margin-top: 10px;
}
.image-container {
  float: left;
  margin-right: 20px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.image-container:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}
.Aviator-Jacket,
.Red-T-shirt,
.Floral-Dress,
.Green-Tanktop {
  min-height: 550px; /* keeps minimum size */
  width: 90%;
  max-width: 80%;
  background-color: #eee;
  border-style: groove;
  border-radius: 15px;
  padding: 10px;
  margin: 0 auto 20px;
  box-sizing: border-box; /* ensures padding is included */
  overflow-wrap: break-word; /* forces long words to wrap */
}

.Aviator-Jacket,
.Red-T-shirt,
.order-summary,
.store {
  background-color: rgb(255, 204, 204);
  border: 10px groove lightgreen;
}
.order-summary {
  font-family: Arial, sans-serif;
  font-size: 20px;
  margin-top: 10px;
  padding: 10px;
  border-radius: 15px;
}
.items-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  row-gap: 5px; /* vertical spacing */
  column-gap: 1px; /* horizontal spacing – make middle closer */
}
.Green-Tanktop,
.Floral-Dress,
.about-me,
.thank-you {
  background-color: rgb(170, 229, 170);
  border: 10px groove lightblue;
}
.thank-you {
  font-family: Arial, sans-serif;
  font-size: 20px;
  margin-top: 10px;
  padding: 10px;
  border-radius: 15px;
}
#price-table {
  font-family: "Times New Roman", serif;
  background-color: greenyellow;
  margin: 0 auto;
  text-align: center;
}

.flex-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.box {
  background-color: rgb(170, 229, 170);
  font-family: Arial, sans-serif;
  width: 300px;
  height: 50px;
}
.box:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}
.tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted black;
}

.tooltip .tooltip-pic {
  visibility: hidden;
  text-align: center;
  border-radius: 6px;
  padding: 5px 10px;
  background-color: #555;
  color: #fff;

  /* Position on the right with spacing */
  position: absolute;
  left: 120%; /* space from element */
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;

  /* Smooth fade-in */
  opacity: 0;
  transition: opacity 0.3s;
}

/* Bigger arrow pointing left */
.tooltip .tooltip-pic::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -10px; /* distance from tooltip */
  transform: translateY(-50%);
  border-width: 10px 10px 10px 0; /* top right bottom left */
  border-style: solid;
  border-color: transparent #555 transparent transparent;
}

.tooltip:hover .tooltip-pic {
  visibility: visible;
  opacity: 1;
}

#total {
  background-color: rgb(135, 225, 32);
  font-family: Arial, sans-serif;
  width: 300px;
  height: 50px;
  animation: change-size 8s;
}

#total:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}
.thank-you {
  display: none;
  text-align: center;
  padding: 20px;
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  margin: 20px;
}

table,
th,
td {
  border: 1px groove black;
  border-collapse: collapse;
  padding: 10px;
}
footer {
  float: right;
  font-family: Arial, Sans-serif;
  font-size: 30px;
}
