*,
*:before,
*:after {
    box-sizing: inherit;
}

html {
    /*overflow-x: clip;*/
    scroll-behavior: smooth;
    box-sizing: border-box;
    background-color: #008080;
    /*overflow-x: hidden;*/
}

body {
    /*overflow-x: clip;*/
    margin: 0;
    padding: 0px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.2rem;
    line-height: 1.6;
    letter-spacing: 0.5px;
}

a {
    text-decoration: none;
    color: white;
    border-radius: 8px;
}

img {
    max-width: 100%;
    height: auto;
}

main {
    margin-left: 0;
    /* Centers the container */
    margin-right: auto;
    width: 100%;
    /* Ensures it fills the space on smaller screens */
}

/* 1. Full-width Outer Wrapper */
.outer {
    width: 100%;
    /*background-color: #FFF8DC;*/
    background-color: #E6B89C;

    padding: 20px;
}

/* 2. Constrained Inner Container */
.inner {
    max-width: 1300px;
    margin-inline: auto;
    /* Centers the div */
    padding: 0 20px;
    /* Padding so content doesn't hit screen edges on mobile */
}

#myBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    font-size: 18px;
    border: none;
    outline: none;
    background-color: red;
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 4px;
}

#myBtn:hover {
    background-color: #555;
}

.stay-top {
    position: fixed;
    width: 100%;
    z-index: 1;
    top: 0;
}


nav {
    background-color: black;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    height: 70px;
    position: relative;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

/* Desktop Links */
.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li a {
    color: white;
    text-decoration: none;
    padding: 0 15px;
    font-size: 1.1rem;
    transition: color 0.3s;
    padding: 1rem 2rem;
    letter-spacing: 1.5px;
}

.nav-menu li a:hover {
    color: black;
    background-color: #008080;
}

/* Sandwich Button (hidden on desktop) */
.sandwich-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

hr {
    border: 1px solid silver;
    margin-top: 30px;
    margin-bottom: 30px;
}

.main-logo {
    font-size: 1.6rem;
    font-weight: bold;
    letter-spacing: 2px;
    /* 1. The Multi-color Gradient */
    /* Note: We start and end with the same color (#ff8a00) for a seamless loop */
    background: linear-gradient(to right,
            #ff8a00,
            #e52e71,
            #8a2be2,
            #00d4ff,
            #ff8a00);

    /* 2. Make the background wider than the text so we can move it */
    background-size: 200% auto;

    /* 3. Clip the background to the text and make text transparent */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;

    animation: moveGradient 4s linear infinite;
}

/* 5. Define the movement */
@keyframes moveGradient {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

.green-link {
    border: none;
    display: inline-block;
    padding: 8px 16px;
    vertical-align: middle;
    overflow: hidden;
    border-radius: 10px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    background-color: green;
    text-align: center;
    cursor: pointer;
    white-space: normal;
}

.green-link:hover {
    color: black;
    font-weight: bold;
    background-color: silver;
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.8);
}

.blue-link {
    border: none;
    display: inline-block;
    padding: 8px 16px;
    vertical-align: middle;
    overflow: hidden;
    border-radius: 10px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    background-color: blue;
    text-align: center;
    cursor: pointer;
    white-space: normal;
}

.blue-link:hover {
    color: black;
    font-weight: bold;
    background-color: silver;
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.8);
}

.group-container {
    max-width: 1200px;
    /* Wider container to accommodate larger images */
    margin: auto;
    margin-bottom: 30px;
    background: #2F4F4F;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.group-heading {
    margin-bottom: 25px;
    border-left: 5px solid #007bff;
    padding-left: 15px;
}

/* Updated Grid for 150px images */
.div-table-row {
    display: grid;
    /* Column 1 is now 180px to fit a 150px image + some breathing room */
    grid-template-columns: 180px 1fr auto;
    align-items: start;
    /* Aligns content to the top since images are tall */
    gap: 25px;
    padding: 20px;
    border-bottom: 1px solid white;
}

.div-table-col {
    text-align: left;
    li{
        margin-bottom: 12px
    }
}


.header {
    background-color: #1e3131;
    font-weight: bold;
    align-items: center;
}

/* Image Styling */
.product-img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    /* Keeps aspect ratio if your images aren't perfectly square */
    border-radius: 8px;
    display: block;
}

.description-text {
    line-height: 1.4;
}

.buy-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

/* Responsive Breakpoint - Stacks sooner for larger images */
@media screen and (max-width: 768px) {
    .header {
        display: none;
    }

    .div-table-row {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .div-table-col {
        p{
            text-align: left;
        }
        ul{
            text-align: left;
        }
        text-align: center;
    }

    .product-img {
        margin: 0 auto 15px;
    }

    .buy-btn {
        width: 100%;
    }
}

h3{
    margin-bottom: 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    /* Pushes title left and button right */
    align-items: center;
    /* Centers them vertically */
    padding: 5px 15px;
    width: 100%;
    text-align: center;
    align-items: center;
    color: white;
    background-color: blue;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    /* Adding that shadow! */
}

.modal-form {
    z-index: 3;
    display: none;
    padding-top: 50px;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    justify-items: center;
    height: 100%;
    overflow: auto;
    border-radius: 20px;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4)
}

.second-form {
    width: 100%;
    background-color: white;
    max-width: 1000px;
}

.tab-item {
    background: NONE;
    border: solid 1px black;
    width: 100px;
    height: 60px;
    padding: 8px 16px;
    cursor: pointer;
}

.tab-item:hover {
    background-color: aqua;
}

.close-btn {
    background: NONE;
    border: solid 1px white;
    width: 60px;
    height: 60px;
    font-size: 48px;
    cursor: pointer;
    color: white;
    line-height: 1;
}

.close-btn:hover {
    color: black;
    /* Turns red when you hover */
    background-color: aqua;
}

.close-button {
    border: none;
    display: inline-block;
    padding: 20px;
    width: 100%;
    vertical-align: middle;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    font-weight: bold;
    background-color: inherit;
    text-align: center;
    cursor: pointer;
    background-color: silver;
    border-radius: 15px;
    white-space: nowrap;
}

.close-button:hover {
    box-shadow: 0 8px 5px 0 rgba(0, 0, 0, 0.2), 0 6px 10px 0 rgba(0, 0, 0, 0.19)
}



.animate-zoom {
    animation: animatezoom 0.6s
}

@keyframes animatezoom {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}