:root {
    --bg-color: #1a1a1a;
    --glow-color: rgba(139, 0, 0, 0.45);
    --spinner-border-color: white;
}

html.light {
    --bg-color: #f0f0f0;
    --glow-color: rgba(139, 0, 0, 0.25);
    --spinner-border-color: black;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    overflow-x: hidden;
    transition: background-color 0.4s ease;
    font-size: 16px;
    font-family: system-ui, sans-serif;
}

.spinner {
    width: min(550px, 90vw);
    height: min(550px, 90vw);
    aspect-ratio: 1 / 1;
    border: 8px dotted var(--spinner-border-color);
    background-image: url('jesusprayer.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 50%;
    /* animation: spin 40s linear infinite; */
    box-shadow: 0 0 50px var(--glow-color), 
                0 0 100px var(--glow-color), 
                0 0 160px var(--glow-color);
    cursor: pointer;
    transition: filter 0.3s ease;
    margin-top: 25px;
}

.spinner.paused {
    animation: none;
    transform: rotate(0deg) !important;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}

.cornerBtnWrapper {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    z-index: 100;
    background: rgba(255, 255, 255, 0.15);
    padding: 10px;
    border-radius: 50px;
    backdrop-filter: blur(8px);
}

.themeControls {
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    gap: 20px;
    background: rgba(255, 255, 255, 0.15);
    padding: 10px;
    border-radius: 50px;
    backdrop-filter: blur(8px);
    margin-bottom: 30px;
}

.themeControls label {
    margin-right: 5px;
    font-weight: bold;
}

html.light .theme-controls {
    background: rgba(0, 0, 0, 0.1);
}

.theme-icon, .theme-toggle, .gear-icon {
    cursor: pointer;
    transition: transform 0.2s;
}

.theme-icon:hover { transform: scale(1.15); }
.theme-toggle:hover { transform: scale(1.1); }

.gear-icon {
    width: 32px;
    height: 32px;
}

.gear-icon:hover {
    transform: scale(1.25);
}

.speed-control {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: inherit;
}

.speed-control label {
    font-size: 1.1rem;
    opacity: 0.9;
}

.speed-slider {
    width: 320px;
    accent-color: #8b0000;
}

html.light .speed-slider {
    accent-color: #b22222;
}

.speed-value {
    font-family: monospace;
    font-size: 1.1rem;
    min-width: 3ch;
}

.tinytext {
    font-size: 0.85rem;
    opacity: 0.7;
    text-align: center;
}

.btn-container {
    margin: 50px 0 50px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    max-width: 90vw;
}

.btn-container button {
    padding: 12px 24px;
    font-size: 1.05rem;
    background: rgba(139, 0, 0, 0.85);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid white;
}

.btn-container button:hover {
    background: rgba(139, 0, 0, 1);
    transform: translateY(-2px);
}

html.light .btn-container button {
    background: rgba(139, 0, 0, 0.75);
}

.static-image img {
    display: block;
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    margin: 0 auto;
}

.settings-container {
    max-width: 560px;
    padding: 50px 40px;
    background: rgba(255, 255, 255, 0.432);
    border-radius: 20px;
    box-shadow: 0 0 40px rgba(0,0,0,0.4);
    margin: 40px auto;
    color: inherit;
}

html.light .settings-container {
    background: #ffffff;
    box-shadow: 0 0 40px rgba(0,0,0,0.15);
}

.setting-group {
    margin-bottom: 32px;
}

.setting-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
}

.close-btn {
    padding: 0;
    margin: 0;
    font-size: 60px;
    cursor: pointer;
    color: inherit;
    opacity: 0.6;
    transition: all 0.2s;
}

.close-btn:hover {
    opacity: 1;
    transform: scale(1.15);
}

.footer-text {
    margin-top: 200px;
    margin-bottom: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.432);
    font-size: smaller;
}

.footer-link {
    color: rgba(255, 255, 255, 0.432);
    text-decoration: none;
}
.footer-link:hover {
    text-decoration: underline;
}

#displayArea {
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
}