:root {
    --primary-bg: #ffffff;
    --secondary-bg: #f5f5f5;
    --text-color: #333333;
    --shadow-box-bg: #ffffff;
    --border-color: #e0e0e0;
}

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

/* Fix scrollbar issue */
html {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8fafc;
    color: var(--text-color);
    min-height: 100vh;
    max-width: 100%;
}

/* Blob animations */
.blob {
    display: none;
}

/* Header enhancements */
header {
    position: relative;
    padding: 5rem 1rem;
    text-align: center;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    color: white;
    overflow: hidden;
    margin-bottom: 3rem;
}

header .content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

header h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    color: white;
    background: none;
    -webkit-text-fill-color: white;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.2;
}

header .subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    line-height: 1.4;
}

header .description {
    font-size: clamp(1rem, 2vw, 1.1rem);
    max-width: 650px;
    margin: 0 auto 2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.features-list {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.feature-item svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Remove the accent-line styles completely */
.accent-line {
    display: none;
}

/* Container enhancements */
.container {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4rem 3rem;
    padding: 2rem;
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
    align-items: start;  /* Align all grid items to the top */
}

/* Update shadow box wrapper to maintain consistent height */
.shadow-box-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 340px;  /* Increased from 300px to add more space */
}

/* Update shadow box styles */
.shadow-box {
    background: white;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    width: 200px;
    height: 200px;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    transform: none !important;
}

.shadow-box:hover {
    transform: none;
}

/* Box number and copied state */
.box-number {
    display: block;
    font-size: 1.2rem;
    color: #666;
    font-weight: 500;
}

/* Hide the code element that shows the shadow text */
.code {
    display: none;
}

/* Remove the previous tooltip styles */
.shadow-box::before,
.shadow-box::after {
    display: none;
}

/* Update black strip styles */
.box-tooltip {
    position: absolute;
    top: -32px;
    left: 50%;
    transform: translateX(-50%);
    background-color: black;
    color: white;
    padding: 6px 16px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s;
    white-space: nowrap;
    text-align: center;
    border-radius: 4px;
}

/* Add triangle arrow */
.box-tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid black;
}

/* Show both the strip and arrow on hover */
.shadow-box:hover .box-tooltip,
.shadow-box:hover .box-tooltip::after {
    opacity: 1;
}

/* Confetti animation */
.confetti {
    position: absolute;
    pointer-events: none;
    animation: confetti-rise 1.5s ease-out forwards;
    z-index: 1;
}

.confetti.star {
    width: 15px;
    height: 15px;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.confetti.circle {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.confetti.triangle {
    width: 12px;
    height: 12px;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.confetti.square {
    width: 8px;
    height: 8px;
}

@keyframes confetti-rise {
    0% {
        transform: translateY(0) rotate(0deg) scale(0);
        opacity: 1;
    }
    25% {
        transform: translateY(-50px) rotate(180deg) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-120px) rotate(360deg) scale(0.5);
        opacity: 0;
    }
}

/* Add a subtle glow effect to confetti */
.confetti.glow {
    filter: drop-shadow(0 0 3px rgba(255,255,255,0.7));
}

/* Update toast styles */
.toast {
    position: fixed;
    bottom: -50px; /* Start below the viewport */
    left: 50%;
    transform: translateX(-50%);
    background: #4CAF50;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 100;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    font-weight: 500;
}

.toast.show {
    opacity: 1;
    bottom: 20px; /* Final position */
}

/* Reset footer to original or remove if not needed */
footer {
    display: none;
}

/* Update property card styles to be below box */
.property-card {
    position: absolute;
    bottom: -105px;  /* Increased from -85px to move it further down */
    margin: 0 auto;
    background: #f1f5f9;
    padding: 12px 16px;
    border-radius: 8px;
    font-family: 'Menlo', 'Monaco', monospace;
    font-size: clamp(10px, 1.5vw, 11px);
    color: #475569;
    border: 1px solid #e2e8f0;
    width: min(260px, calc(100% + 40px));
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Update property content styles */
.property-card-content {
    display: inline-block;
    word-break: break-all;
    white-space: normal;
    line-height: 1.5;  /* Slightly increased line height */
}

.property-card .property-name {
    color: #3b82f6;
}

.property-card .property-value {
    color: #6366f1;
}

/* Remove transform from property card */
.shadow-box:hover .property-card {
    transform: none;
}

/* Update media queries for better mobile spacing */
@media (max-width: 1200px) {
    .container {
        grid-template-columns: repeat(3, 1fr);
        gap: 9rem 3rem;
        padding-top: 4rem;
    }
}

@media (max-width: 900px) {
    .container {
        grid-template-columns: repeat(2, 1fr);
        gap: 8rem 2rem;
        padding-top: 3rem;
    }
    
    .shadow-box-wrapper {
        height: 320px;  /* Reduce wrapper height */
    }
}

@media (max-width: 600px) {
    .container {
        grid-template-columns: repeat(1, 1fr);
        gap: 3rem 1rem;  /* Significantly reduced vertical gap */
        padding: 2rem 1rem;
    }

    .shadow-box-wrapper {
        height: 300px;  /* Further reduce wrapper height */
    }

    .shadow-box {
        width: 180px;
        height: 180px;
    }

    .property-card {
        bottom: -85px;  /* Reduce distance from box */
        width: 240px;  /* Slightly smaller width */
    }

    header {
        padding: 3rem 1rem;
        margin-bottom: 2rem;
    }

    .box-tooltip {
        font-size: 12px;
        padding: 4px 12px;
    }

    .box-number {
        font-size: 1rem;
    }

    .toast {
        width: 90%;
        max-width: 300px;
        font-size: 13px;
        text-align: center;
    }
} 