@font-face {
    font-family: 'Sansumu02-Regular';
    src: url("./fonts/Sansumu02-Regular.ttf") format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'Sansumu02-Regular', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f0f0; /* Light background to make the bar pop */
    overflow: hidden; /* Prevent scrollbars if bar is at absolute top */
}

#canvas-container {
    width: 100%;
    height: 100vh; /* Make canvas container fill the viewport so overlays can align to corners */
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Align to top */
    padding-top: 0;
    background-color: transparent;
    box-sizing: border-box;
}

/* Make the container a positioned parent for any overlays */
#canvas-container {
    position: relative;
}

canvas {
    /* The canvas itself will be sized by JS, but we ensure it doesn't overflow */
    max-width: 100%;
}

/* Optional controls to test the bar */
.controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background: #222;
    color: white;
    cursor: pointer;
    font-weight: bold;
}

button:hover {
    background: #444;
}

/* Donation pop-up in the right corner */
.donation-popup {
    position: absolute;
    right: 24px;
    top: 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    /* solid darker blue per request */
    background: #1A2040;
    color: white;
    padding: 16px 18px;
    border-radius: 12px;
    box-shadow: 0 10px 26px rgba(0,0,0,0.38);
    transform: translateX(120%);
    opacity: 0;
    transition: transform 300ms ease, opacity 300ms ease;
    z-index: 40;
    min-width: 340px;
}
.donation-popup.show {
    transform: translateX(0);
    opacity: 1;
}
.donation-popup img {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
}
.donation-popup .donation-text {
    font-size: 18px;
    line-height: 1.15;
}
.donation-popup .donation-text strong {
    display: block;
    font-weight: 700;
    font-size: 20px;
}