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

html {
    /* Disable smooth scrolling to prevent animation during initial positioning */
    scroll-behavior: auto !important;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    color: #333;
    line-height: 1.6;
    width: 100%;
    height: 100%;
    overflow: auto;
    /* Match loading screen background color */
    background-color: #f6d365;
}

.container {
    padding: 20px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    /* Ensure container doesn't clip content */
    overflow: visible;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #2c3e50;
}

.scroll-info {
    background-color: rgba(248, 249, 250, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    position: fixed;
    top: 10px;
    z-index: 100;
    max-width: 800px;
    margin: 0 auto;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: background-color 0.3s ease;
}

.scroll-info:hover {
    background-color: rgba(248, 249, 250, 0.95);
}

.metrics-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 15px;
}

.metric {
    flex: 1;
    min-width: 200px;
    margin: 0 10px 15px;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 5px;
}

.metric h2 {
    font-size: 16px;
    margin-bottom: 5px;
    color: #3498db;
}

.metric p {
    font-size: 24px;
    font-weight: bold;
}

.reset-button {
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 5px;
}

.reset-button:hover {
    background-color: #2980b9;
}

.reset-button:active {
    background-color: #1c638e;
    transform: translateY(1px);
}

.scroll-area {
    margin-top: 160px; /* More space for the fixed header */
    padding: 20px;
    background-color: #e9ecef;
    border-radius: 8px;
    text-align: center;
    overflow: visible;
    position: relative;
}

.spacer {
    width: 10000px;
    height: 10000px;
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    margin-top: 20px;
    margin-left: 20px;
    border-radius: 8px;
    position: relative;
    overflow: visible;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Enhanced grid pattern to make it more visible - 1000px grid */
.spacer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        /* Vertical lines */
        repeating-linear-gradient(to right, 
            transparent, 
            transparent 99px, 
            rgba(255, 255, 255, 0.2) 99px, 
            rgba(255,255,255,0.2) 100px,
            transparent 100px
        ),
        /* Horizontal lines */
        repeating-linear-gradient(to bottom, 
            transparent, 
            transparent 99px, 
            rgba(255,255,255,0.2) 99px, 
            rgba(255,255,255,0.2) 100px,
            transparent 100px
        );
    pointer-events: none;
    border-radius: 8px;
}

/* Main grid lines at 5000px - forms the centered cross */
.spacer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Create darker lines at 5000px in both directions */
    background-image:
        /* Vertical center line */
        linear-gradient(to right,
            transparent 4999px,
            rgba(0,0,0,0.5) 4999px,
            rgba(0,0,0,0.5) 5001px,
            transparent 5001px
        ),
        /* Horizontal center line */
        linear-gradient(to bottom,
            transparent 4999px,
            rgba(0,0,0,0.5) 4999px,
            rgba(0,0,0,0.5) 5001px,
            transparent 5001px
        );
    pointer-events: none;
    border-radius: 8px;
    z-index: 1;
} 