/* Base Styles */
:root {
    --primary-color: #7b1f1d;
    --secondary-color: #d03531;
    --dark-color: #302627;
    --light-color: #f4f4f4;
    --font-family: "Poppins", sans-serif;
    --font-size-xl: 3rem;
    --font-size-lg: 1.8rem;
    --font-size-md: 1.5rem;
    --font-size-sm: 1.2rem;
    --padding: 10px 20px;
}

body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--font-family);
    background-color: white;
}

#banner {
    height: 200vh;
    width: 100vw;
    background: url("./static/zipper2.svg");
    background-position-y: var(--scrollY);
    background-position-x: var(--scrollX);
    background-size: auto 100vh;
    background-repeat: no-repeat;
}

#container {
    background: white;
    width: 100vw;
    box-shadow: 0px -10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 20px 20px 0 0;
    margin-top: -20vh;
}

#content {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 40px 20px;
    background: white;
}

#logo {
    position: sticky;
    top: 0;
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--dark-color);
    text-align: center;
    padding: var(--padding);
    margin-bottom: 40px;
    background-color: white;
    border-bottom: 2px solid #eee;
    z-index: 10;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;

    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#logo.small {
    flex-direction: row;
}

#logo img {
    max-width: 300px;
    width: 100%;
    transition: max-width 0.3s ease;
    padding: 10px;
}

#logo .logo-text {
    display: inline;
}

#logo.small img {
    max-width: 120px;
}

.text-block {
    margin-bottom: 50px;
    font-size: var(--font-size-md);
    line-height: 1.6;
    color: var(--text-color);
}

.text-block h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.text-block p {
    margin-bottom: 20px;
}

#footer {
    padding: 0 0 20px 0;
    font-size: var(--font-size-sm);
    text-align: center;
    background-color: var(--light-color);
    color: #777;
}

#sep {
    background: url("./static/sep.svg") repeat-x;
    height: 30px;
    margin-bottom: 10px;
}

.center {
    text-align: center;
}

/* Responsive Countdown */
#countdown {
    font-family: "IBM Plex Mono", monospace;
    font-size: 10rem;
    font-weight: 700;
    color: var(--dark-color);
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: -2px;
}

/* Product Cards */
.product-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 50px;
}

.product-card {
    position: relative;
    background-color: white;
    border-radius: 15px;
    flex: 1;
    min-width: 280px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    overflow: hidden;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.product-card .product-body {
    padding: 10px 30px 30px;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.product-card h3 {
    color: var(--dark-color);
    font-size: var(--font-size-lg);
    font-weight: 500;
    margin-bottom: 10px;
}

.product-card p {
    color: #444;
    font-size: var(--font-size-sm);
    margin-bottom: 20px;
    font-weight: 300;
}

.product-card img {
    width: 100%;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.product-card .limited-edition-banner {
    position: absolute;
    top: 50px;
    right: -100px; /* Adjusted to keep the text visible */
    min-width: 300px;
    background-color: red;
    color: white;
    padding: 5px 20px; /* Reduced padding to fit the text */
    font-size: 12px;
    font-weight: bold;
    transform: rotate(50deg);
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 10;
    pointer-events: none;
    white-space: nowrap; /* Prevents text from wrapping */
}

/* Pre-register Button */
.preregister_button {
    display: inline-block;
    padding: 15px 40px;
    font-size: 1.5rem;
    font-weight: 500;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    text-decoration: none;
    transition:
        transform 0.2s ease,
        background-position 0.4s ease;
    background-size: 200%;
}

.preregister_button:hover,
.preregister_button:focus {
    animation: gradient_shift_hover 0.4s ease forwards;
    transform: scale(1.05);
}

.preregister_button:active {
    animation: gradient_shift_click 1.5s ease infinite;
    transform: scale(0.95);
}

@keyframes gradient_shift_hover {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

@keyframes gradient_shift_click {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Responsive Design Adjustments */
@media (max-width: 768px) {
    #countdown {
        font-size: 6rem;
    }

    .product-cards {
        flex-direction: column;
    }

    .product-card {
        margin-bottom: 20px;
    }

    .preregister_button {
        font-size: 1.2rem;
        padding: 12px 30px;
    }
}

@media (max-width: 480px) {
    #countdown {
        font-size: 4rem;
    }

    #logo {
        font-size: 2rem;
    }

    .preregister_button {
        font-size: 1rem;
        padding: 10px 25px;
    }
}

.trial,
.victory {
    text-decoration: none;
}

.trial {
    color: #5a7a4d;
}

.victory {
    color: #455387;
}
