#container {
    width: fit-content;
    margin: 20px auto;
}

body {
    background-color: #669999;
    color: #003333;
    margin: 0;
    font-family: "ＭＳ Ｐゴシック", sans-serif;
}

a:link {
    color: #CCFFCC;
}

a:visited {
    color: #CCFFCC;
}

a:active {
    color: #FFFFCC;
}

div {
    font-size: 12px;
}

p,
.white {
    color: #ffffff;
}

#top-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    margin-bottom: 10px;
}

#top-banner span {
    padding: 0 5px;
}

/* New styles for the image-based counter */
#visitor-counter-images {
    display: flex; /* Makes the digit images line up horizontally */
    align-items: center;
    gap: 1px; /* Optional: adds a tiny space between digits */
    padding: 0 8px; /* Adds some space around the counter itself */
}

.layout-table {
    border-collapse: collapse;
    border-spacing: 0;
    font-size: 0;
}

.layout-table td {
    padding: 0;
}

img {
    border: 0;
    display: block;
}

.content-cell {
    vertical-align: top;
    text-align: left;
}

.content-cell div {
    padding: 10px;
}

#content-left {
    background-image: url('images/grKan.png');
}

#content-right {
    background-image: url('images/DoImage.png');
}
/* Update this rule in your csb.css file */
/* Update this rule in your csb.css file */
#jumping-soap {
    position: fixed;
    /* This is the key change */
    top: 0;
    left: 0;
    width: 32px;
    height: 32px;
    background-image: url('images/soa.png');
    background-repeat: no-repeat;
    background-size: 128px 64px;
    background-position: 0 0;
    image-rendering: pixelated;
    z-index: 1000;
}
/* Change this rule name in your csb.css file */
.solid-object {
    position: relative; /* This is crucial for accurate position detection */
}
/* Add these new rules for the debug visuals */
#debug-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Allows clicks to pass through */
    z-index: 9999; /* Stays on top of everything */
}

.debug-box {
    position: absolute;
    box-sizing: border-box; /* Ensures border is included in size */
}

.debug-box-soap {
    background-color: rgba(255, 0, 0, 0.5); /* Semi-transparent red */
    border: 1px solid red;
}

.debug-box-collidable {
    background-color: rgba(0, 0, 255, 0.5); /* Semi-transparent blue */
    border: 1px solid blue;
}


/* Update this rule in your csb.css file */
#player-character {
    position: fixed;
    top: 0;
    left: 0;
    width: 32px;  /* This scales the element to be 2x the sprite size */
    height: 32px;
    background-image: url('images/MyChar.png');
    background-repeat: no-repeat;
    /* THIS IS THE KEY FIX: Use the original spritesheet dimensions */
    /* Assumes the original MyChar.png is 128px wide */
    background-size: 160px;
    image-rendering: pixelated;
    z-index: 999;
}
.debug-box-player {
    background-color: rgba(0, 255, 0, 0.5); /* Semi-transparent green */
    border: 1px solid lime;
}

/* Add these new rules for the Key Debugger */
#key-debug-ui {
    position: fixed;
    top: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px;
    font-family: monospace;
    font-size: 14px;
    border: 1px solid #555;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.key-display {
    padding: 2px 4px;
    border-radius: 3px;
    background-color: #333;
    transition: background-color 0.05s, color 0.05s;
}

.key-display.pressed {
    background-color: #2b9c3d; /* Green */
    color: #fff;
}

.key-display.triggered {
    background-color: #e5c317; /* Yellow */
    color: #000;
}

.bullet {
    position: fixed;
    width: 32px;
    height: 32px;
    background-image: url('images/Bullet.png');
    background-repeat: no-repeat;
    background-position: -32px 0; /* Doubled from -16px */
    background-size: 256px 384px;  /* Assumes 128x16 original, now doubled */
    image-rendering: pixelated;
    z-index: 998;
}

.caret {
    position: fixed;
    width: 32px;
    height: 32px;
    background-image: url('images/Caret.png');
    background-size: 640px 480px; /* Assumes 128x16 original, now doubled */
    image-rendering: pixelated;
    z-index: 1001; /* Above the soap */
}
