body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
    user-select: none;
}

header {
    font-size: 1rem;
    display: flex;
    justify-content: center;
    gap: 5px;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

header a {
    color: inherit;
    text-decoration: none;
}

header a:hover {
    text-decoration: underline;
}

h1 {
    font-weight: 200;
}

p {
    line-height: 2rem;
}

main {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    font-size: 1.5em;
    min-height: 60vh;
    box-sizing: border-box;
    width: 50vw;
    margin: 0 auto;
    margin-top: 50px;
    margin-bottom: 500px;
    user-select: none;
    align-items: center;
    justify-content: center;
}

/* 🟣 NEW: Bouncing Square styles */
#square {
    width: 300px;
    height: 300px;
    background: black;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    user-select: none;
    transition: transform 0.3s ease, background 0.3s ease;
    color: white;
    font-size: 1.2rem;
    text-align: center;
    padding: 10px;
    position: absolute;
    left: 50%;
    top: 40%;
    transform: translate(-50%, -50%);
}

#square:active {
    cursor: grabbing;
    transform: scale(1.05) translate(-50%, -50%);
}

@media (max-width: 900px) {
    main {
        font-size: 1.2em;
    }

    #square {
        width: 120px;
        height: 120px;
        font-size: 1rem;
    }
}
