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

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

body {
    background-color: #000000;
    color: white;
    font-family: 'Press Start 2P', 'Courier New', monospace;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.03) 2px,
            rgba(255, 255, 255, 0.03) 4px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.03) 2px,
            rgba(255, 255, 255, 0.03) 4px
        );
    pointer-events: none;
    z-index: 1;
}

.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 2;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    color: #ff7b98;
    font-size: 4.6rem;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 0px #000, 4px 4px 0px rgba(0,0,0,0.3);
    font-family: 'Press Start 2P', 'Courier New', monospace;
    line-height: 1.3;
    margin-bottom: 15px;
}

h2 {
    color: white;
    font-size: 1.4rem;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 0px #000, 4px 4px 0px rgba(0,0,0,0.3);
    font-family: 'Press Start 2P', 'Courier New', monospace;
    line-height: 1.2;
    margin-top: 10px;
    margin-bottom: 100px;
}

.lilb-under-subtitle {
    height: 160px;
    width: auto;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    display: block;
    margin: -120px auto 0 auto;
}

.three-column-layout {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    flex: 1;
    align-items: start;
}

.left-panel {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-top: -100px;
}

.info-graphic {
    max-width: 100%;
    height: auto;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.center-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.canvas-container {
    position: relative;
    width: 400px;
    height: 400px;
    border: 3px solid #333;
    background-color: #000;
    border-radius: 8px;
}

#pfpCanvas {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 5px;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.dropzone-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.8);
    color: #59e0dc;
    font-size: 1.2rem;
    font-weight: normal;
    text-align: center;
    pointer-events: none;
    transition: opacity 0.3s ease;
    font-family: 'Press Start 2P', 'Courier New', monospace;
    line-height: 1.4;
    text-shadow: 2px 2px 0px #000, 4px 4px 0px rgba(0,0,0,0.3);
    border: 3px solid #59e0dc;
    border-radius: 8px;
    z-index: 3;
}

.dropzone-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.overlay-selector {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 0px 0 10px 0;
    transform: translateY(-10px);
}

.overlay-toggle-btn {
    background-color: #333;
    color: #59e0dc;
    border: 3px solid #59e0dc;
    padding: 8px 12px;
    font-size: 0.6rem;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 8px;
    font-family: 'Press Start 2P', 'Courier New', monospace;
    text-shadow: 1px 1px 0px #000;
    box-shadow: 2px 2px 0px #000;
    transition: all 0.1s ease;
}

.overlay-toggle-btn.active {
    background-color: #59e0dc;
    color: #333;
    box-shadow: 4px 4px 0px #000;
}

.overlay-toggle-btn:hover {
    background-color: #59e0dc;
    color: #333;
    transform: translateY(-2px);
    box-shadow: 4px 4px 0px #000;
}

.overlay-toggle-btn:active {
    transform: translateY(2px);
    box-shadow: 1px 1px 0px #000;
}

.controls {
    display: flex;
    gap: 30px;
}

.control-btn {
    background-color: #333;
    color: #ff7b98;
    border: 3px solid #ff7b98;
    padding: 10px 16px;
    font-size: 0.7rem;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 8px;
    font-family: 'Press Start 2P', 'Courier New', monospace;
    text-shadow: 1px 1px 0px #000;
    box-shadow: 2px 2px 0px #000;
    transition: all 0.1s ease;
}

.control-btn:hover {
    background-color: #ff7b98;
    color: #333;
    transform: translateY(-2px);
    box-shadow: 4px 4px 0px #000;
}

.control-btn:active {
    transform: translateY(2px);
    box-shadow: 1px 1px 0px #000;
}

.right-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(70px);
}

.copy-text {
    text-align: left;
}

.copy-text p {
    color: #59e0dc;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 90px;
    font-weight: normal;
    text-shadow: 2px 2px 0px #000, 4px 4px 0px rgba(0,0,0,0.3);
    font-family: 'Press Start 2P', 'Courier New', monospace;
    text-align: left;
}

footer {
    display: flex;
    justify-content: flex-end;
    margin-top: -90px;
    padding-top: 5px;
    align-items: flex-end;
    padding-right: 20px;
    padding-left: 50px;
    position: relative;
    top: -30px;
    gap: 10px;
}

.footer-text {
    color: white;
    font-family: 'Press Start 2P', 'Courier New', monospace;
    font-size: 0.6rem;
    text-shadow: 1px 1px 0px #000, 2px 2px 0px rgba(0,0,0,0.3);
}

.tut-logo {
    height: 110px;
    width: auto;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

/* Responsive design */
@media (max-width: 1200px) {
    .three-column-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .left-panel, .right-panel {
        order: 2;
    }
    
    .center-panel {
        order: 1;
    }
    
    h1 {
        font-size: 5.6rem;
    }
    
    h2 {
        font-size: 1.2rem;
    }
    
    .lilb-under-subtitle {
        height: 140px;
    }
    
    .copy-text p {
        font-size: 1.4rem;
    }
    
    .tut-logo {
        height: 90px;
    }
}

@media (max-width: 600px) {
    .canvas-container {
        width: 300px;
        height: 300px;
    }
    
    h1 {
        font-size: 4rem;
    }
    
    h2 {
        font-size: 1rem;
    }
    
    .lilb-under-subtitle {
        height: 120px;
    }
    
    .copy-text p {
        font-size: 1rem;
    }
    
    .control-btn {
        font-size: 0.6rem;
        padding: 8px 12px;
    }
    
    .tut-logo {
        height: 70px;
    }
}
