@import url('https://fonts.cdnfonts.com/css/montepetrum');
@import url('https://fonts.cdnfonts.com/css/odin-rounded');

:root {
  --purple: #9D00FF; 
  --purple-light: #F4E2FF;
  --teal: #00BFA6;
  --pink: #FF007A;
  --light-gray: #F2F2F2;
  --odin: 'Odin Rounded';
  --mont: 'montepetrum';
}

html {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh; 
  margin: 0;
  padding: 0;
  font-family: var(--odin), sans-serif;
}

.main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  color: var(--pink);
  max-width: 1000px;
  width: 100%;
  margin: auto;
}

.main-body {
  flex-grow: 1;
  max-width: 1000px;
  width: 100%;
  margin: auto;
  font-family: 'Odin Rounded', sans-serif;
}

footer {
  margin-top: auto; /* Pushes the footer to the bottom */
  /* Add any other existing footer styles here */
  background-color: #f1f1f1; /* Example background */
  padding: 10px;          /* Example padding */
  text-align: center;     /* Example text alignment */
}

.header-left {
  display: flex;
  align-items: center;
}

.logo {
  width: auto; /* Adjust size as needed */
  height: 100px;
  margin-right: 10px;
}

.site-title {
  font-size: 5em;
  margin: 0;
  font-family: montepetrum, sans-serif;
}

.header-right {
  display: flex;
  gap: 15px;
}

.account-link, .signin-link {
  color: var(--purple);
  text-decoration: none;
  font-size: 1em;
  font-family: 'Odin Rounded', sans-serif;
}

.account-link:hover, .signin-link:hover {
  text-decoration: underline;
}

.search-box {
  box-sizing: border-box;
  width: 100%;
  padding: 0.5rem;
  font-size: 2rem;
  border: 2px solid var(--purple);
  background: var(--purple-light);
  border-radius: 5px;
}

/* Container for the scrollable banner */
.item-row {
  display: flex;
  overflow-x: auto; /* Enables horizontal scrolling */
  gap: 15px; /* Spacing between items */
  padding: 10px 0;
  scroll-snap-type: x mandatory; /* Ensures smooth snapping when scrolling */
}

/* Individual item styling */
.item {
  background: #fff;
  border: 1px solid var(--purple-light);
  border-radius: 5px;
  padding: 10px;
  width: 150px;
  flex-shrink: 0; /* Prevents items from shrinking */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  scroll-snap-align: start; /* Ensures each item snaps into place */
}

.item img {
  width: 100%;
  border-radius: 5px;
  margin-bottom: 5px;
}

.item h3 {
  font-size: 16px;
  color: #333;
}

.item p {
  font-size: 14px;
  color: #666;
}

/* Optional: Hide scrollbar for aesthetic */
.item-row::-webkit-scrollbar {
  display: none;
}
.item-row {
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

.item {
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition */
  /* Add padding, border, or any other styles as needed */
}

.item:hover {
  transform: scale(1.05); /* Slightly scale up the product item */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); /* Add a shadow for depth */
}

.product-container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.product-container .main-title {
  font-family: var(--mont);
  letter-spacing: 0.1rem;
  font-weight: 900;
  font-size: 3rem;
}

.product-container .sub-title {
  font-family: var(--mont);
  letter-spacing: 0.1rem;
  font-weight: 300;
  font-size: 3rem;
  text-align: right;
}

.product-container .title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  max-width: 600px;
  margin: auto;
}

.product-container .product-main-section {
  display: flex;
  align-items: flex-start; /* Align items to the top of the container */
  gap: 20px; /* Space between the image and the details container, adjust as needed */
  width: 100%;
  max-width: 600px;
  margin: auto;
  flex-wrap: wrap;
}

.product-image-container {
  flex-shrink: 0; /* Prevent the image from shrinking */
}

.product-details-container {
  display: flex;
  flex-direction: column; /* Stack the details vertically */
  justify-content: flex-start; /* Align items to the top */
  width: 50%;
}

#variant-container {
  display: flex;
  gap: 10px; /* Space between variant options, adjust as needed */
  margin-bottom: 10px; /* Space below the variant container */
}

.add-to-favorites {
  margin-bottom: 10px; /* Space below the add-to-favorites button */
  font-size: 1.5rem; /* Adjust the size as needed */
  cursor: pointer; /* Make it look clickable */
}

.price-history {
  font-size: 1.2rem; /* Adjust the size as needed */
  font-weight: bold; /* Make it stand out */
}

.store-stock-container {
  display: none;
  justify-content: space-between; /* Pushes items to the sides */
  align-items: center; /* Aligns items vertically in the center */
  flex-wrap: wrap; /* Allows wrapping on smaller screens if needed */
  gap: 10px; /* Space between items, adjust as needed */
  background: var(--light-gray);
  padding: 1rem;
  border-radius: 1rem;
  margin: 1rem;
}

.store-stock-container.show-stock {
  display: flex;
}

.store-logo,
.store-name {
  display: inline-block;
}

.store-price {
  display: inline-block;
  margin-left: auto; /* Pushes these items to the right */
}


.loading {
  display: none;
}

.card-hand {
  position: relative;
  width: 250px;
  height: 300px;
  margin: auto;
  perspective: 1000px;
}

/* Basic card styling */
.card-hand .card {
  font-family: var(--mont);
  position: absolute;
  width: 152px;
  height: 212px;
  border-radius: 10px;
  backface-visibility: hidden;
  transform-origin: bottom center;
  transition: transform 2s ease; /* Smooth transition */
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
  font-size: 100px;
  text-align: center;
  line-height: 150px;
  background: url('/images/single-card.png')
}

/* Fan-out and retract animations */
@keyframes fanOut {
  0% { transform: rotate(0deg) translateX(var(--original)) translateY(var(--original)); }
  10% { transform: rotate(0deg) translateX(var(--original)) translateY(var(--original)); }
  33% { transform: rotate(var(--rotate)) translateX(var(--translate)) translateY(var(--translateY)); }
  66% { transform: rotate(var(--rotate)) translateX(var(--translate)) translateY(var(--translateY)); }
  90% { transform: rotate(0deg) translateX(var(--original)) translateY(var(--original)); }
  100% { transform: rotate(0deg) translateX(var(--original)) translateY(var(--original)); }
	}

/* Card fan-out styles */
.card-hand .card:nth-child(1) { --rotate: -45deg; --original: -9px; --translate: -120px; --translateY: -90px; animation: fanOut 2s forwards infinite; }
.card-hand .card:nth-child(2) { --rotate: -30deg; --original: -6px; --translate: -80px; --translateY: -50px; animation: fanOut 2s forwards infinite; }
.card-hand .card:nth-child(3) { --rotate: -15deg; --original: -3px; --translate: -40px; --translateY: -20px; animation: fanOut 2s forwards infinite; }
.card-hand .card:nth-child(4) { --rotate: 0deg; --original: 0px; --translate: 0px; --translateY: -10px; animation: fanOut 2s forwards infinite; }
.card-hand .card:nth-child(5) { --rotate: 15deg; --original: 3px; --translate: 40px; --translateY: -20px; animation: fanOut 2s forwards infinite; }
.card-hand .card:nth-child(6) { --rotate: 30deg; --original: 6px; --translate: 80px; --translateY: -50px; animation: fanOut 2s forwards infinite; }
.card-hand .card:nth-child(7) { --rotate: 45deg; --original: 9px; --translate: 120px; --translateY: -90px; animation: fanOut 2s forwards infinite; }

.variant-button {
  border: 0.1rem solid black;
  background: var(--light-gray);
  font-family: var(--odin);
  font-size: 1.5rem;
  border-radius: 0.5rem;
  padding: 0.5rem;
  cursor: pointer;
}

.variant-button.active {
  background: var(--purple-light);
  border-color: var(--pink);
}

.product-stock-container a {
  text-decoration: none;
  color: var(--purple);
}

.product-stock-container a:visited {
  text-decoration: none;
  color: var(--purple);
}

.store-logo-image {
  height: 3rem;
}



/***************
ACCOUNT PAGE
***************/
#addListOptions {
  display: flex;             /* Make it a flex container */
  flex-direction: column;    /* Stack children vertically (span above ul) */
  align-items: flex-end;     /* Align children to the right edge */
  position: relative;        /* Optional: Good for positioning dropdowns */
  width: fit-content;        /* Make the container only as wide as needed */
  margin-left: auto;         /* Push the whole container to the right */
  margin-right: 2em;
}

#listImportMenu {
  list-style: none;
  padding: 0;
  margin: 5px 0 0 0; /* Add a little space above the menu */
  width: fit-content; /* Make the menu only as wide as its content */
  background: var(--purple-light);
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

#listImportMenu li {
  padding: 0.5rem 1rem; /* Add some horizontal padding */
  border: 1px solid var(--purple);
  /* Remove individual border-radius if the parent ul has one */
  color: var(--purple);
  cursor: pointer;
  white-space: nowrap; /* Prevent text wrapping */
  text-align: left; /* Usually dropdown items are left-aligned */
  /* Remove border between items if desired */
  border-bottom: none;
}

#listImportMenu li:first-child {
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}

#listImportMenu li:last-child {
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  border-bottom: 1px solid var(--purple); /* Add bottom border back */
}


#listImportMenu li:hover {
  background-color: #e2d4f0; /* Lighten background on hover */
}

#addListBtn, #addListSubmit {
    margin: 1rem 0;
    border: 0.1rem solid black;
    background: var(--light-gray);
    font-family: var(--odin);
    font-size: 1.5rem;
    border-radius: 0.5rem;
    padding: 0.5rem;
    cursor: pointer;
    display: inline-block;
    color: black;
    text-decoration: none;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black */
  z-index: 1000; /* Ensure it's above other content */
  display: flex;             /* Enable flexbox */
  justify-content: center;   /* Center horizontally */
  align-items: center;  
}

#listLinkContainer,
#listDataContainer {
  background-color: white;    /* Give them a background */
  padding: 20px 30px;         /* Add some padding */
  border-radius: 8px;         /* Round the corners */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Add a shadow */
  display: flex;              /* Use flexbox for internal layout */
  flex-direction: column;     /* Stack input/textarea and button vertically */
  gap: 15px;                  /* Add space between input/textarea and button */
  width: 80%;                 /* Set a width */
  max-width: 400px;           /* Set a maximum width */
  /* Keep the hidden class logic */
}

.hidden {
  display: none !important;
}
