html, body {
    margin: 0;
    width: 100%;
    height: 100%;
    background: #ff8f8f;
}

body {
    display: flex;
    flex-direction: column;     /* header on top, content below */
    align-items: center;
    min-height: 100vh;
}

.header {
    width: 100%;
    padding: 10px 20px;
    color: white;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
}

.content {
    flex: 1;                    /* takes the remaining space */
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

img {
    max-width: 90vw;
    max-height: 80vh;           /* leave a bit of room for the header */
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    cursor: pointer;
    user-select: none;
    -webkit-user-drag: none;
}

/* keep your animations the same */
@keyframes jump {
    0%   { transform: translateY(0); }
    30%  { transform: translateY(-30px); }
    55%  { transform: translateY(0); }
    75%  { transform: translateY(-8px); }
    100% { transform: translateY(0); }
}

img.jump {
    animation: jump 0.4s ease-out;
}

@keyframes shake {
    0%   { transform: translateX(0); }
    15%  { transform: translateX(-15px); }
    30%  { transform: translateX(12px); }
    45%  { transform: translateX(-10px); }
    60%  { transform: translateX(8px); }
    75%  { transform: translateX(-5px); }
    90%  { transform: translateX(3px); }
    100% { transform: translateX(0); }
}

img.shake {
    animation: shake 0.5s ease-out;
}

.header a {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 6px 12px;
}
