/* Global reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body and layout setup */
html, body {
    background-image: url(/images/background2.png);
    font-family: 'Open Sans', sans-serif; /* Apply Open Sans */
    font-weight: 400; /* Regular weight for body text */
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: #1a1a1a; /* Dark background */
    background-size: cover; /* Ensures the image covers the entire screen */
    background-repeat: no-repeat; /* Prevents the image from repeating */
    background-position: center; /* Centers the image */
    background-attachment: fixed; /* Keeps the background fixed when scrolling */
    animation: panBackground 70s linear infinite;
    color: #e0e0e0; /* Light text color */
}

/* Apply Open Sans to headings with a bold weight */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700; /* Bold weight for headings */
    color: #ffffff; /* White text for headings */
}

p {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400; /* Regular weight for body text */
    color: #e0e0e0; /* Light text color */
}

@keyframes panBackground {
    0% {
        background-position: 0% center; /* Start from the left */
    }
    50% {
        background-position: 100% center; /* Move to the right */
    }
    100% {
        background-position: 0% center; /* Start from the left */
    }
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #222222; /* Dark header background */
    background-position: center;
    background-size: cover;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 10;
}

.logo-container {
    float: left;
    margin-right: 20px; /* Space between logo and other header elements */
}

.logo-container img {
    max-width: 75px; /* Maximum width of the image */
    height: auto;     /* Maintain aspect ratio */
    display: block; /* Prevents extra space below image */
}

header h1 {
    font-size: 3rem;  /* Adjust the size as needed */
    font-weight: bold;
    text-align: center;
    border: #ffffff;
    color: #ffffff;     /* White text for header */
}

/* Navigation */
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex; /* Default horizontal layout */
}

nav ul li {
    margin-left: 20px; /* Spacing between links */
}

nav ul li a {
    text-decoration: none;
    color: #e0e0e0; /* Light text color */
    font-size: 16px;
}

nav ul li a:hover {
    color: #bb1c1c; /* Red hover effect */
}

ul li {
    position: relative;   
    padding-top: 10px;
    font-size: 1rem;
    color: #e0e0e0; /* Light text color */
    margin-bottom: 0px;
    z-index: 1;
}

/* Main content area */
main {
    flex-grow: 1;
    padding: 20px; /* Reduce padding */
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Align content to the top */
    z-index: 1;
}

/* Section styling */
section {
    margin-bottom: 10px;
}

h2 {
    position: relative;
    background-color: #222222; /* Dark background for headings */
    padding-top: 10px;
    font-size: 3rem;
    color: #ffffff; /* White text for headings */
    margin-bottom: 0px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    z-index: 1;
}

#unique-grading {
    position: relative;
    background-color: #222222; /* Dark background for headings */
    padding-top: 10px;
    font-size: 3rem;
    color: #ffffff; /* White text for headings */
    margin-bottom: 0px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    z-index: 1;
}

h3 {
    position: relative;
    background-color: #2d2d2d; /* Dark background for headings */
    padding-top: 10px;
    font-size: 2rem;
    color: #ffffff; /* White text for headings */
    margin-bottom: 0px;
    z-index: 1;
}

main section.about-us h3 {
    background-color: #222222;
}

h4 {
    position: relative;   
    padding-top: 10px;
    font-size: 2rem;
    color: #ffffff; /* White text for headings */
    margin-bottom: 0px;
    z-index: 1;
}

h5 {
    position: relative;   
    align-self: center;
    padding-top: 10px;
    font-size: 2rem;
    color: #ffffff; /* White text for headings */
    margin-bottom: 0px;
    z-index: 1;
}

h6 {
    position: relative;   
    padding-top: 10px;
    font-size: 2rem;
    color: #ffffff; /* White text for headings */
    margin-bottom: 0px;
    z-index: 1;
}

/* About Us Section */
.about-us p {
    position: relative;
    background-color: #222222; /* Dark background for paragraphs */
    padding: 10px;
    padding-left: 40px;
    padding-right: 40px;
    font-size: 1rem;
    line-height: 1.6;
    color: #e0e0e0; /* Light text color */
    margin-bottom: 0px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    z-index: 1;
}

p2 {
    position: relative;   
    padding-top: 10px;
    font-size: 1rem;
    color: #e0e0e0; /* Light text color */
    margin-bottom: 0px;
    z-index: 1;
}
/* Slideshow container */
.slideshow-container {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 500px;
    overflow: hidden;
    display: flex !important;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
    z-index: 3; /* Above petals and other content */
    background: rgba(26, 26, 26, 0.3); /* Slight background to make container visible */
    visibility: visible !important;
}

/* Slideshow track */
.slideshow-track {
    display: flex;
    position: relative;
    height: 100%;
    width: 100%;
    visibility: visible !important;
}

/* Individual slide */
.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.5s ease-in-out, transform 1.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 1.5s;
    transform: translateX(100%); /* Start off-screen to the right */
    z-index: 1;
}

/* Make first slide visible by default as fallback - override all other rules */
.slide:first-child {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(0) !important;
    z-index: 2 !important;
    display: flex !important;
}

.slide.active {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(0) !important; /* Slide centered */
    z-index: 2;
    transition: opacity 1.5s ease-in-out, transform 1.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s;
}

.slide.exiting {
    transform: translateX(100%); /* Exit to the right */
    opacity: 0;
    z-index: 1;
}

.slide img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 3px;
    display: block !important; /* Ensure images are visible */
    visibility: visible !important; /* Force visibility */
}

/* Mobile-first adjustments */
@media (max-width: 768px) {
    .slideshow-container {
        height: auto;
        min-height: 60vh; /* More flexible minimum */
        padding: 10px 0;
        margin: 1rem 0;
    }
    
    .slide img {
        max-height: 80vh !important;  /* More aggressive height */
        max-width: 95vw !important;   /* More aggressive width */
        min-width: 250px;             /* Prevent too small */
        min-height: 250px;            /* Prevent too small */
        object-fit: contain;
    }
}

@media (max-width: 480px) {
    .slideshow-container {
        min-height: 50vh; /* Even more compact */
    }
    
    .slide img {
        max-height: 85vh !important;
        max-width: 98vw !important;
        border-radius: 2px; /* Slightly smaller radius */
    }
}

/* Slideshow wrapper */
.slideshow-wrapper {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    position: relative;
    visibility: visible !important;
}

/* Featured cards section */
.featured-cards {
    display: block !important;
    visibility: visible !important;
    position: relative;
    z-index: 3;
}

/* Slideshow container adjustments */
.slideshow-container {
    width: 100%;
    height: 70vh;
    min-height: 500px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0 0; /* Remove bottom margin since button container will handle spacing */
}

/* Button container */
.slideshow-button-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 30px 0;
    padding: 0 20px; /* Add some padding on sides for mobile */
}

/* Button styling */
.slideshow-button {
    display: inline-block;
    padding: 15px 30px;
    background-color:#222222;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    width: auto; /* Let the button size to its content */
    max-width: 100%; /* Ensure it doesn't overflow on mobile */
}

.slideshow-button:hover {
    background-color: #d31919;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.7);
}

@media (max-width: 768px) {
    .slideshow-container {
        height: 50vh;
        min-height: 300px;
    }
    .slideshow-button {
        padding: 12px 24px;
        font-size: 1rem;
    }
}
/* Premium Labels Section */
.premium-labels {
    background-color: rgba(51, 51, 51, 0.8); /* 0.8 = 80% opacity */
    padding: 20px 20px;
    text-align: center;
    margin-top: 0px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(0px); /* Optional: adds a slight blur to content behind */
}

.premium-labels-header {
    margin-top: 0px;
    background-color: #222222; /* Darker background for header */
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 4px 4px 6px rgba(0, 0, 0, 0.5); /* Shadow for the header */
}

.premium-labels-header h2 {
    font-size: 2.5rem;
    color: #ffffff; /* White text for headings */
    margin: 0;
}

.label-grid {
    display: flex;
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center items horizontally */
    gap: 20px; /* Space between label items */
}

.label-item {
    background-color: #2d2d2d; /* Dark background for label items */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5); /* Shadow for each label item */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 90%; /* Increase width for larger images */
    max-width: 600px; /* Increase maximum width */
}

.label-item:hover {
    transform: translateY(-10px); /* Lift effect on hover */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.7); /* Stronger shadow on hover */
}

.label-image {
    width: 100%; /* Make images fill the container */
    height: auto;
    border-radius: 10px;
}

/* Falling petals container */
.falling-petals {
    position: absolute;
    top: 0px; /* Adjust to be below the header (e.g., header height is 80px) */
    height: 100vh;
    left: 0;
    right: 0;
    bottom: 0; /* Ensure full height for falling */
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* Petal styling */
.petal {
    position: absolute;
    width: 7vw; /* Make the petal width scale relative to the window width */
    height: auto;
    opacity: 0; /* Start invisible */
    animation-timing-function: linear;
    animation: fall-path-2 20s infinite linear; /* Apply fall animation */
}

/* Petal animations for various paths */
@keyframes fall-path-1 {
    0% {
        top: -10%;  /* Start above the screen */
        left: 10%;  /* Start in the center */
        transform: translateX(0) rotate(0deg);  /* No movement or rotation at the start */
        opacity: .9;  /* Start invisible */
    }
    100% {
        top: 110%;  /* End below the screen */
        left: 10%;  /* Keep in the center */
        transform: translateX(0) rotate(360deg);  /* Complete rotation */
        opacity: 0;  /* Fade out */
    }
}

@keyframes fall-path-2 {
    0% {
        top: -10%;  /* Start above the screen */
        left: 30%;  /* Start in the center */
        transform: translateX(0) rotate(0deg);  /* No movement or rotation at the start */
        opacity: .9;  /* Start invisible */
    }
    100% {
        top: 110%;  /* End below the screen */
        left: 30%;  /* Keep in the center */
        transform: translateX(0) rotate(360deg);  /* Complete rotation */
        opacity: 0;  /* Fade out */
    }
}

@keyframes fall-path-3 {
    0% {
        top: -10%;  /* Start above the screen */
        left: 50%;  /* Start in the center */
        transform: translateX(0) rotate(0deg);  /* No movement or rotation at the start */
        opacity: .9;  /* Start invisible */
    }
    100% {
        top: 110%;  /* End below the screen */
        left: 50%;  /* Keep in the center */
        transform: translateX(0) rotate(360deg);  /* Complete rotation */
        opacity: 0;  /* Fade out */
    }
}

@keyframes fall-path-4 {
    0% {
        top: -10%;  /* Start above the screen */
        left: 70%;  /* Start in the center */
        transform: translateX(0) rotate(0deg);  /* No movement or rotation at the start */
        opacity: .9;  /* Start invisible */
    }
    100% {
        top: 110%;  /* End below the screen */
        left: 70%;  /* Keep in the center */
        transform: translateX(0) rotate(360deg);  /* Complete rotation */
        opacity: 0;  /* Fade out */
    }
}

@keyframes fall-path-5 {
    0% {
        top: -10%;  /* Start above the screen */
        left: 90%;  /* Start in the center */
        transform: translateX(0) rotate(0deg);  /* No movement or rotation at the start */
        opacity: .9;  /* Start invisible */
    }
    100% {
        top: 110%;  /* End below the screen */
        left: 90%;  /* Keep in the center */
        transform: translateX(0) rotate(360deg);  /* Complete rotation */
        opacity: 0;  /* Fade out */
    }
}

/* Petal animation assignments */
.petal:nth-child(1) { animation: fall-path-1 15s infinite; animation-delay: 0s; }
.petal:nth-child(2) { animation: fall-path-2 18s infinite; animation-delay: 1s; }
.petal:nth-child(3) { animation: fall-path-3 21s infinite; animation-delay: 2s; }
.petal:nth-child(4) { animation: fall-path-4 24s infinite; animation-delay: 3s; }
.petal:nth-child(5) { animation: fall-path-1 25s infinite; animation-delay: 4s; }
.petal:nth-child(6) { animation: fall-path-2 25s infinite; animation-delay: 4s; }
.petal:nth-child(7) { animation: fall-path-3 25s infinite; animation-delay: 4s; }
.petal:nth-child(8) { animation: fall-path-4 25s infinite; animation-delay: 4s; }

/* Navigate Button Styling */
.navigate-button {
    background-color: #2d2d2d; /* Dark background for button */
    color: #ffffff; /* White text */
    padding: 15px 30px; /* Comfortable padding */
    font-size: 1.1rem; /* Slightly larger text */
    border: none; /* Remove default border */
    border-radius: 8px; /* Rounded corners */
    cursor: pointer; /* Pointer cursor on hover */
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transitions */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5); /* Subtle shadow */
    position: absolute; /* Positioning the button absolutely */
    left: 10%; /* Align to the left */
    top: 45%; /* Vertically center it */
    z-index: 1; /* Ensure the button is above other content */
}

/* Hover Effect */
.navigate-button:hover {
    background-color: #bb1c1c; /* Red hover effect */
    transform: translateY(-3px); /* Slight lift effect */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.7); /* Stronger shadow on hover */
}

/* Active Effect (when clicked) */
.navigate-button:active {
    background-color: #7a1212; /* Darker red when clicked */
    transform: translateY(0); /* Reset lift effect */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5); /* Reset shadow */
}

/* General styling */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #e0e0e0; /* Light text color */
    background-color: #1a1a1a; /* Dark background */
    overflow-x: hidden;
    width: 100%;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #222222; /* Dark header background */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container img {
    max-width: 150px;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 15px;
}

nav ul li {
    margin: 0;
}
/* hyperlinks */

a {
    color: #ff3333; /* Unvisited links - white */
    text-decoration: none; /* Optional: removes underline */
    transition: color 0.3s ease; /* Smooth color transition */
}

/* Visited links */
a:visited {
    color: #ff3333; /* Visited links - red */
}

/* Hover state */
a:hover {
    color: #ff6666; /* Lighter red when hovered */
    text-decoration: underline; /* Optional: adds underline on hover */
}

/* Active/focus state */
a:active, a:focus {
    color: #ff0000; /* Bright red when clicked */
}

nav ul li a {
    text-decoration: none;
    color: #e0e0e0; /* Light text color */
    font-weight: bold;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #ff5757; /* Red hover effect */
}

.menu-toggle {
    display: none;
}

h1 {
    text-align: center;
    color: #d31919; /* Red text for headings */
    margin-bottom: 20px;
}
/* Main content styling */
.container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: #333333; /* Dark background for container */
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 480px) {
    .order-form {
      width: 100%;
      padding: 10px;
    }
    
    .form-group input, 
    .form-group select, 
    .form-group textarea {
      width: 100%;
      max-width: 100%;
    }
  }

  /* Add this to your existing CSS */
fieldset {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 10px;
    border: 1px solid #555555;
    border-radius: 5px;
  }
  
  @media (max-width: 480px) {
    fieldset {
      min-width: 0; /* Critical for iOS fieldset sizing */
      width: calc(100% - 20px); /* Accounts for padding */
      margin: 0 10px; /* Adds breathing room */
    }
    
    /* Ensure inputs inside fieldsets don't overflow */
    fieldset input, 
    fieldset select, 
    fieldset textarea {
      max-width: 100%;
    }
  }
.order-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}



.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #e0e0e0; /* Light text color */
}

.form-group input,
.form-group textarea {
    padding: 10px;
    border: 1px solid #555555; /* Dark border */
    border-radius: 5px;
    font-size: 1rem;
    background-color: #2d2d2d; /* Dark background for inputs */
    color: #e0e0e0; /* Light text color */
}

.form-group textarea {
    resize: none;
}

.card-descriptions fieldset {
    border: 1px solid #555555; /* Dark border */
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 10px;
}

.card-descriptions fieldset label {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
    color: #e0e0e0; /* Light text color */
}

.total-price {
    font-weight: bold;
    font-size: 1.2rem;
    text-align: center;
    margin-top: 20px;
    color: #e0e0e0; /* Light text color */
}

.submit-button {
    background-color: #ff5757; /* Red background for button */
    color: #ffffff; /* White text */
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background-color: #e14e4e; /* Darker red on hover */
}

/* Footer styling */
footer {
    text-align: center;
    padding: 10px 0;
    background-color: #333333; /* Dark background for footer */
    color: #e0e0e0; /* Light text color */
    margin-top: 20px;
    font-size: 0.9rem;
}

/* Responsive design */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .menu-toggle {
        display: block;
    }
}

/* Modal Styling */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Enable scrolling if needed */
    background-color: rgba(0, 0, 0, 0.5); /* Black with opacity */
}

.modal-content {
    background-color: #333333; /* Dark background for modal */
    margin: 10% auto; /* Center the modal vertically */
    padding: 20px;
    border-radius: 10px;
    width: 80%; /* Adjust width as needed */
    max-width: 800px; /* Limit maximum width */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    position: relative;
}

.close-button {
    color: #e0e0e0; /* Light text color */
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: #ffffff; /* White text on hover */
    text-decoration: none;
    cursor: pointer;
}

.tos-link {
    color: #bb1c1c; /* Red text for links */
    text-decoration: underline;
    cursor: pointer;
}

/* TOS Modal Content */
.tos-content {
    max-height: 400px; /* Adjust height as needed */
    overflow-y: auto; /* Enable vertical scrolling */
    overflow-x: hidden; /* Disable horizontal scrolling */
    padding: 10px;
    border: 1px solid #555555; /* Dark border */
    border-radius: 5px;
    background-color: #2d2d2d; /* Dark background for content */
    margin-top: 10px;
    white-space: pre-wrap; /* Preserve line breaks and wrap text */
    word-wrap: break-word; /* Break long words to prevent overflow */
    font-family: 'Open Sans', sans-serif; /* Match your site's font */
    font-size: 14px; /* Adjust font size for readability */
    line-height: 1.6; /* Improve readability with line spacing */
    color: #e0e0e0; /* Light text color */
}

.label-preview {
    margin: 20px 0; /* Keep top and bottom margin */
    padding: 0 10px; /* Reduce left and right padding */
    text-align: center;
    width: 100%; /* Ensure it takes the full width */
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns */
    grid-template-rows: repeat(4, 1fr); /* 4 rows */
    gap: 10px; /* Space between images */
    width: 100%; /* Ensure the grid takes the full width */
    max-width: 100%; /* Remove max-width restriction */
    margin: 0; /* Remove margin to fill the space */
}

.image-grid img {
    width: 100%; /* Make images fill their grid cells */
    height: auto; /* Maintain aspect ratio */
    border-radius: 10px; /* Optional: Add rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Optional: Add a shadow */
}

@media (max-width: 600px) {
    .image-grid {
        grid-template-columns: 1fr; /* Switch to 1 column on small screens */
        grid-template-rows: repeat(8, auto); /* Adjust rows for mobile */
    }
}

.research-link {
    text-decoration: underline;
    color: #bb1c1c; /* Red text for links */
    cursor: pointer;
}

.research-link:hover {
    color: #ff5757; /* Lighter red on hover */
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #2d2d2d; /* Dark background for modal */
    padding: 20px;
    width: 50%;
    margin: 15% auto;
    border-radius: 8px;
    text-align: center;
}

/* Highlight missing fields */
input:invalid, input:focus:invalid {
    border: 1px solid #ff5757 !important; /* Red border for invalid fields */
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #333333; /* Dark background for modal */
    padding: 20px;
    border-radius: 8px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    position: relative;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #e0e0e0; /* Light text color */
}

.close-button:hover {
    color: #ff5757; /* Red text on hover */
}

#missingFieldsList {
    text-align: left;
    margin: 10px 0;
    padding-left: 20px;
}

#missingFieldsList li {
    color: #ff5757; /* Red text for missing fields */
    font-weight: bold;
}

.close-button {
    float: right;
    font-size: 24px;
    cursor: pointer;
    color: #e0e0e0; /* Light text color */
}

/* Slideshow Container */
.label-slideshow-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    padding: 20px 60px; /* Add padding for arrows */
}

/* Slideshow */
.label-slideshow {
    flex: 1;
    width: 100%;
    text-align: center;
    position: relative;
}

/* Hide all slides by default */
.label-slide {
    display: none;
}

/* Show first slide by default */
.label-slide:first-child {
    display: block;
}

/* Slide images */
.label-slide img {
    width: 100%;
    max-width: 600px; /* Limit image width */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

/* Back of the label */
.label-back {
    margin-top: 20px; /* Space between front and back labels */
    width: 100%;
    max-width: 600px; /* Match front label width */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

/* Caption text */
.label-caption {
    margin-top: 20px; /* Space between back label and caption */
    font-size: 1.2rem;
    color: #e0e0e0; /* Light text color */
}

/* Navigation arrows */
.label-prev, .label-next {
    cursor: pointer;
    padding: 16px;
    color: #e0e0e0; /* Light text color */
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%; /* Make arrows circular */
    user-select: none;
    transition: background-color 0.3s ease;
    font-size: 1.5rem; /* Increase arrow size */
    flex-shrink: 0; /* Prevent arrows from shrinking */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    line-height: 1;
    border: none;
}

.label-prev {
    left: 0; /* Position left arrow */
}

.label-next {
    right: 0; /* Position right arrow */
}

.label-prev:hover, .label-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Footer */
footer {
    z-index: 10;
    background-color: #333333; /* Dark background for footer */
    color: #e0e0e0; /* Light text color */
    text-align: center;
    padding: 20px;
    position: relative;
    width: 100%;
    margin-top: auto;
}