/* Pixel Art Style */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

body {
    font-family: 'Press Start 2P', cursive;
    background-color: #0f172a;
    color: #f8fafc;
    overflow: hidden;
}

.font-geist-mono {
    font-family: 'Press Start 2P', monospace;
}

/* Pixel Border */
.pixel-border {
    position: relative;
    border: 4px solid #f8fafc;
    border-radius: 0;
    box-shadow: 0 0 0 4px #0f172a;
}

.pixel-bg {
    background-color: #1e293b;
    background-image: 
        linear-gradient(to right, rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 8px 8px;
}

/* Buttons */
.pixel-btn {
    background-color: #334155;
    color: #f8fafc;
    border: 4px solid #475569;
    padding: 12px;
    text-align: center;
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.1s ease;
    outline: none;
}

.pixel-btn:hover:not(:disabled) {
    background-color: #475569;
    transform: translate(-2px, -2px);
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2);
}

.pixel-btn:active:not(:disabled) {
    transform: translate(0, 0);
    box-shadow: none;
}

.pixel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Water Animation */
#water {
    background: linear-gradient(180deg, #1e40af 0%, #1e3a8a 100%);
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 80%;
}

/* Fishing Line */
#fishing-line {
    position: absolute;
    top: 0;
    width: 2px;
    background-color: #f8fafc;
    transform-origin: top center;
}

/* Fish Animation */
.fish {
    position: absolute;
    transition: transform 0.5s ease;
}

.fish.caught {
    transition: transform 1s ease-in;
}

/* Notification Pop-up */
.notification {
    padding: 16px 24px;
    background-color: rgba(0, 0, 0, 0.8);
    border: 4px solid #f8fafc;
    color: #f8fafc;
    font-size: 14px;
    animation: popup 0.5s forwards, fadeout 0.5s 2s forwards;
    pointer-events: none;
    max-width: 80%;
    text-align: center;
}

/* Bubbles */
.bubble {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    opacity: 0.7;
    animation: bubble-float linear infinite;
}

@keyframes bubble-float {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-100px) translateX(20px);
        opacity: 0.4;
    }
    100% {
        transform: translateY(-200px) translateX(0);
        opacity: 0;
    }
}

@keyframes popup {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeout {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 640px) {
    .pixel-border {
        border-width: 3px;
        box-shadow: 0 0 0 3px #0f172a;
    }
    
    .pixel-btn {
        padding: 8px;
        font-size: 10px;
    }
}

/* Ensure proper sizing on all devices */
@media (max-height: 700px) {
    #game-area {
        max-height: 100vh;
    }
}
