* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Disable browser smoothing for sharp pixels */
    -webkit-font-smoothing: none;
    -moz-osx-font-smoothing: unset;
    text-rendering: optimizeSpeed;
}

body {
    font-family: 'Arial', sans-serif;
    background: #000000;
    color: white;
    min-height: 100vh;
    overflow-x: auto;
    overflow-y: auto;
    margin: 0;
    padding: 0;
}

.container {
    width: 100%;
    height: 100vh;
    padding: 0px;
    text-align: center;
    position: relative;
}



.pixel-counter {
    font-size: 1.2rem;
    margin-top: 20px;
    margin-bottom: 20px;
    color: #00ff00;
    font-weight: bold;
}



.pixel-svg {
    width: 1000px;
    height: 100%;
    background: transparent;
    display: block;
    margin: 0;
    overflow: visible;
    min-width: 1000px;
    transform-origin: 0 0;
    will-change: transform;
    transition: transform 0.1s ease-out;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    shape-rendering: crispEdges;
    /* Additional properties for sharp rendering */
    -webkit-font-smoothing: none;
    -moz-osx-font-smoothing: unset;
    text-rendering: optimizeSpeed;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.svg-container {
    width: 1000px;
    height: auto;
    background: transparent;
    overflow-x: scroll;
    overflow-y: scroll;
    border: none;
    position: relative;
    min-width: 1000px;
    margin: 50px auto; /* Center horizontally */
    cursor: crosshair;
    user-select: none;
}

.svg-container:active {
    cursor: crosshair;
}

.pixel-rect {
    fill: #00ff00;
    stroke: none;
}

/* Make SVG rectangles more visible and sharp */
.pixel-svg rect {
    stroke-width: 0;
    shape-rendering: crispEdges;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    /* Force sharp rendering */
    vector-effect: non-scaling-stroke;
    paint-order: fill;
}

/* SVG height is set dynamically by JavaScript */

/* @keyframes pixelGlow {
    0% {
        background-color: #00ff00;
        box-shadow: 0 0 1px #00ff00;
    }
    100% {
        background-color: #00cc00;
        box-shadow: 0 0 2px #00cc00;
    }
} */

/* Responsive design */
@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
    }
    
    .pixel-counter {
        font-size: 1rem;
    }
}

/* Loading animation */
/* .loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 255, 0, 0.3);
    border-radius: 50%;
    border-top-color: #00ff00;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
} */

/* Zoom controls */
.zoom-controls {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    /* background: rgba(0, 0, 0, 0.8); */
    padding: 10px;
    /* border-radius: 8px;
    border: 1px solid rgba(0, 255, 0, 0.3); */
    z-index: 1000;
}

.zoom-btn {
    background: rgba(0, 255, 0, 0.2);
    border: 1px solid #00ff00;
    color: #00ff00;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.2s ease;
    min-width: 40px;
}

.zoom-btn:hover {
    background: rgba(0, 255, 0, 0.3);
    box-shadow: 0 0 8px rgba(0, 255, 0, 0.4);
}

.zoom-btn:active {
    background: rgba(0, 255, 0, 0.4);
    transform: scale(0.95);
}

.zoom-level {
    color: #00ff00;
    font-size: 12px;
    font-weight: bold;
    min-width: 50px;
    text-align: center;
}



/* Mobile responsive zoom controls */
@media (max-width: 768px) {
    .zoom-controls {
        top: 10px;
        right: 10px;
        padding: 8px;
        gap: 8px;
    }
    
    .zoom-btn {
        padding: 6px 10px;
        font-size: 12px;
        min-width: 35px;
    }
    
    .zoom-level {
        font-size: 11px;
        min-width: 45px;
    }
} 