body {
    background: #111;
    color: #0f0;
    font-family: 'Courier New', Courier, monospace;
    margin: 0;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.splash-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.splash-screen h1 {
    margin: 10px 0;
    font-size: 2.5em;
}

.splash-screen p {
    margin: 5px 0;
    font-size: 1em;
}

#loading-message {
    margin: 10px 0;
    font-size: 1em;
}

#start-button {
    margin-top: 20px;
    background: #111;
    color: #0f0;
    border: 1px solid #0f0;
    padding: 5px 10px;
    cursor: pointer;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1em;
    text-transform: uppercase;
}

#start-button:disabled {
    background: #333;
    color: #666;
    border: 1px solid #666;
    cursor: not-allowed;
}

#start-button:hover:not(:disabled) {
    background: #0f0;
    color: #111;
}

.container {
    max-width: 100%;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1, h2 {
    text-align: center;
    margin: 10px 0;
}

.section {
    border: 1px solid #0a0;
    padding: 10px;
    margin: 10px 0;
    width: 100%;
    max-width: 700px;
    box-sizing: border-box;
    text-align: center;
}

.stats p {
    margin: 2px 0;
}

.stats button {
    display: block;
    margin: 5px auto;
}

.chart-controls {
    text-align: center;
    margin: 5px 0;
}

.chart-controls button {
    margin: 0 2px;
}

#price-chart {
    width: 100%;
    max-width: 700px;
    height: auto;
    aspect-ratio: 3 / 1;
    background: #111;
    border: 1px solid #0a0;
    display: block;
    margin: 0 auto;
}

ul {
    list-style: none;
    padding: 0;
    margin: 5px 0;
}

li {
    margin: 5px 0;
    text-align: center;
}

button {
    background: #0a0;
    color: #111;
    border: 1px solid #0f0;
    padding: 2px 5px;
    cursor: pointer;
    font-family: 'Courier New', Courier, monospace;
    text-transform: uppercase;
}

button:disabled {
    background: #555;
    cursor: not-allowed;
}

button:hover:not(:disabled) {
    background: #0f0;
}

.actions {
    text-align: center;
}

.actions label {
    margin-right: 5px;
}

.actions input {
    background: #222;
    color: #0f0;
    border: 1px solid #0a0;
    padding: 2px;
    font-family: 'Courier New', Courier, monospace;
    text-align: center;
}

.actions br {
    display: block;
    margin: 5px 0;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #111;
    border: 1px solid #0f0;
    padding: 10px;
    text-align: center;
}

#notification-container {
    position: fixed;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 1000;
}

.notification {
    background-color: #0f0;
    color: black;
    padding: 10px;
    border: 1px solid #0a0;
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
    max-width: 300px;
    font-family: 'Courier New', monospace;
}

.notification.show {
    opacity: 1;
}

.notification.fade-out {
    opacity: 0;
}

.news-ticker {
    width: 100%;
    max-width: 700px;
    overflow: hidden;
    background: #222;
    border: 1px solid #0a0;
    padding: 5px;
    margin: 10px 0;
    text-align: center;
    white-space: nowrap;
    box-sizing: border-box;
    position: relative;
    height: 30px; /* Ensure enough height for text */
}

#ticker-text {
    position: absolute;
    white-space: nowrap;
    display: inline-block;
    color: #0f0; /* Ensure text is visible */
    top: 50%; /* Center vertically */
    transform: translateY(-50%); /* Adjust for vertical centering */
}

#btc-balance {
    transition: color 0.5s ease;
}

.donation-section {
    text-align: center;
    margin: 20px 0;
}
.donation-section p {
    margin: 5px 0;
}
.donation-section p:nth-child(2) {
    font-family: monospace;
    word-break: break-all;
}

.highlight {
    color: #0f0 !important;
    animation: flash 0.5s;
}

@keyframes flash {
    0%, 100% { color: #0f0; }
    50% { color: #fff; }
}

@media (max-width: 700px) {
    h1, h2 {
        font-size: 1.2em;
    }
    button {
        padding: 2px 5px;
        font-size: 0.9em;
    }
    .chart-controls button {
        margin: 1px;
    }
    .actions label, .actions span, .actions button {
        margin: 2px;
    }
}
