/* assets/css/style.css - Winter Polar Theme */
:root {
    --bg: #a7ddff;
    --card-bg: rgba(255, 255, 255, 0.85);
    --accent: #0b3b6f;
    --primary: #2196f3;
    --primary-dark: #1565c0;
    --pixel-size: 8px;
}

* {
    box-sizing: border-box;
    font-family: 'Poppins', 'Inter', system-ui, Arial, sans-serif;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100%;
    background: linear-gradient(#dff6ff 0%, #a7ddff 50%, #6fc0ff 100%);
    overflow-x: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #0b3b6f;
}

/* Tiled pixelated scene layer */
.scene {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: 
        url("../images/snowflake.svg") repeat,
        url("../images/ice_slab.svg") repeat-x bottom,
        linear-gradient(transparent, rgba(255, 255, 255, 0.02));
    background-size: 40px 40px, 480px 160px;
    opacity: 0.95;
}

/* Foreground sprites */
.sprite {
    position: absolute;
    image-rendering: pixelated;
    z-index: 1;
    transform: translateZ(0);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.sprite.small {
    width: 64px;
    height: auto;
}

.sprite.medium {
    width: 140px;
    height: auto;
}

.sprite.large {
    width: 220px;
    height: auto;
}

/* Sprite positions */
#polarBear {
    left: 8%;
    bottom: 6%;
}

#penguin {
    left: 24%;
    bottom: 18%;
}

#sealA {
    left: 52%;
    bottom: 10%;
}

#sealB {
    left: 72%;
    bottom: 22%;
}

#manFishing {
    right: 6%;
    bottom: 8%;
}

/* Content card */
.card {
    z-index: 2;
    width: min(920px, 92%);
    background: var(--card-bg);
    padding: 28px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(5, 20, 40, 0.2);
    backdrop-filter: blur(6px);
    position: relative;
    margin: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

/* Pixel style headings */
h1, h2, h3 {
    margin: 0 0 12px 0;
    color: var(--accent);
    text-shadow: 2px 2px 0 rgba(255, 255, 255, 0.4);
}

h1 {
    font-size: 28px;
    letter-spacing: 1px;
}

h2 {
    font-size: 24px;
}

h3 {
    font-size: 20px;
}

/* Inputs */
input[type="text"], 
input[type="email"], 
textarea, 
select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    border: 3px solid rgba(6, 40, 80, 0.08);
    background: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    outline: none;
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.03);
    transition: all 0.3s;
    font-family: inherit;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus,
select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    font-family: inherit;
    font-size: 16px;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(-1px);
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .card {
        padding: 20px;
        margin: 15px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    h2 {
        font-size: 20px;
    }
    
    .sprite.medium {
        width: 100px;
    }
    
    .sprite.large {
        width: 160px;
    }
}

@media (max-width: 480px) {
    .card {
        padding: 15px;
    }
    
    h1 {
        font-size: 20px;
    }
    
    .sprite {
        display: none; /* Hide sprites on very small screens */
    }
    
    body {
        padding: 10px;
    }
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}