* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #fff;
    font-family: "Times New Roman", serif;
}

body {
    cursor: none;
}

#page {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    height: 56px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 12px;
    flex-shrink: 0;
}

main {
    flex: 1;
    position: relative;
    overflow: hidden;
}

footer {
    height: 26px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    font-size: 13px;
}

#logo {
    display: inline-block;
    text-decoration: none;
}

#logo:hover {
    opacity: 0.9;
}

#logo h1 {
    font-size: 25px;
    line-height: 1;
}

#logo span {
    display: block;
    font-size: 13px;
}

#logo h1,
#logo span {
    background: linear-gradient(
        90deg,
        red,
        orange,
        yellow,
        green,
        blue,
        indigo,
        violet
    );

    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

#stats {
    color: #000;
    text-align: right;
    font-size: 13px;
    line-height: 1.25;
}

#stats p,
#stats strong {
    color: #000;
}

#pixelCanvas {
    width: 100%;
    height: 100%;
    display: block;
    background: #fff;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

#pixelInfo {
    position: absolute;
    left: 8px;
    bottom: 8px;
    z-index: 100;

    padding: 5px 9px;

    color: #fff;
    font-size: 13px;
    font-weight: bold;

    background: linear-gradient(
        90deg,
        red,
        orange,
        yellow,
        green,
        blue,
        indigo,
        violet
    );
}

footer,
footer a,
footer span {
    color: #000;
}

footer a {
    font-weight: bold;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

#aboutPage {
    flex: 1;
    min-height: 0;
    position: relative;
    overflow: hidden;

    display: flex;
    justify-content: flex-start;
    align-items: flex-start;

    text-align: left;
}

#aboutBox {
    width: 760px;
    max-width: calc(100% - 60px);
    margin: 30px 0 0 30px;

    color: #000;
    font-size: 18px;
    line-height: 1.45;
    text-align: left;
}

#aboutBox h2{
    margin-bottom:18px;
    padding-bottom:8px;

    font-size:34px;
    font-weight:bold;

    color:#000;

    border-bottom:1px solid #bdbdbd;
}

#aboutBox h3{
    margin-top:22px;
    margin-bottom:12px;

    padding-bottom:5px;

    font-size:22px;
    font-weight:bold;

    color:#000;

    border-bottom:1px solid #d3d3d3;
}

#aboutBox p {
    margin-bottom: 8px;
    color: #000;
}

#aboutBox strong {
    color: #000;
}

.purchase-example {
    margin: 14px 0;
}

.purchase-example p {
    margin-bottom: 3px;
}

.agreement-text a,
.text-link {
    color: #000;
    font-weight: bold;
    text-decoration: underline;
    cursor: pointer;
}

.agreement-text a:hover,
.text-link:hover {
    text-decoration: none;
}

#rainbowCrosshair {
    position: absolute;
    width: 24px;
    height: 24px;
    z-index: 9999;

    display: none;

    transform: translate(-50%, -50%);
    pointer-events: none;
}

#rainbowCrosshair::before {
    content: "";

    position: absolute;
    top: 0;
    left: 11px;

    width: 2px;
    height: 24px;

    background: linear-gradient(
        red,
        orange,
        yellow,
        green,
        blue,
        indigo,
        violet
    );
}

#rainbowCrosshair::after {
    content: "";

    position: absolute;
    top: 11px;
    left: 0;

    width: 24px;
    height: 2px;

    background: linear-gradient(
        90deg,
        red,
        orange,
        yellow,
        green,
        blue,
        indigo,
        violet
    );
}

.trail {
    position: absolute;
    width: 8px;
    height: 8px;
    z-index: 9998;

    border-radius: 50%;
    pointer-events: none;

    background: conic-gradient(
        red,
        orange,
        yellow,
        green,
        cyan,
        blue,
        indigo,
        violet,
        red
    );

    transform: translate(-50%, -50%);
    animation: trailFade 0.8s linear forwards;
}

@keyframes trailFade {
    from {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    to {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.2);
    }
}

a,
button {
    cursor: pointer;
}