/* --- DARK THEME --- */
:root {
    --bg-color: #1a1a1a;
    --card-bg: #242424;
    --btn-primary: #801f8d;
    --btn-primary-hover: #2aa047;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    overflow-x: hidden;
}

.main-scroll {
    width: 100%;
    max-width: 800px;
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.screen-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* --- SETUP SCREEN --- */
h1 {
    font-family: Georgia, serif;
    font-size: 32px;
    font-weight: bold;
    margin-top: 40px;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.logo-placeholder {
    width: 140px;
    height: 140px;
    margin-bottom: 20px;
    background-image: url('Bible_Data/logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.form-group label {
    font-size: 16px;
    margin-bottom: 8px;
}

select {
    background-color: var(--card-bg);
    color: var(--text-main);
    border: 1px solid #444;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
    width: 200px;
    cursor: pointer;
    outline: none;
}

/* --- BUTTONS --- */
.ctk-btn {
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.primary-btn {
    background-color: var(--btn-primary);
    color: white;
    font-size: 16px;
    height: 50px;
    width: 200px;
    margin-bottom: 10px;
}
.primary-btn:hover { background-color: var(--btn-primary-hover); }

.secondary-btn {
    background-color: #3e3e3e;
    color: white;
    font-size: 14px;
    height: 40px;
    width: 200px;
}
.secondary-btn:hover { background-color: #4f4f4f; }

/* --- GAME SCREEN --- */
h2 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 16px;
}

#verse-display {
    width: 100%;
    max-width: 640px;
    background-color: var(--card-bg);
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 10px;
    text-align: left;
    font-size: 18px;
    line-height: 1.7;
}

.verse-num {
    font-size: 11px;
    color: var(--text-muted);
    margin-right: 3px;
}

.reference {
    margin-top: 14px;
    font-size: 14px;
    color: var(--text-muted);
    text-align: right;
}

.msg-text {
    font-size: 16px;
    font-weight: bold;
    min-height: 24px;
    margin-bottom: 10px;
}

select.swap {
    width: auto;
    font-size: inherit;
    padding: 0 4px;
    margin: 0 2px;
    border: 1px solid var(--btn-primary);
}

.ctrl-frame {
    display: flex;
    gap: 20px;
    margin: 10px 0;
}

.action-btn {
    background-color: var(--btn-primary);
    color: white;
    width: 100px;
    height: 35px;
    font-size: 14px;
}
.action-btn:hover { background-color: var(--btn-primary-hover); }

/* Message colors (used by the daily game's share message) */
.status-green { color: #2ecc71; }
.status-orange { color: #e67e22; }
.status-red { color: #e74c3c; }


.action-btn:disabled {
    background-color: #2e3b4e;
    color: #707070;
    cursor: not-allowed;
}

/* --- HOW TO PLAY MODAL --- */
#how-to-modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.modal-content {
    background-color: var(--card-bg);
    color: var(--text-main);
    padding: 30px 40px;
    border-radius: 8px;
    width: 80%;
    max-width: 500px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    text-align: left;
}
.modal-content h2 { margin-bottom: 15px; }
.close-btn {
    position: absolute;
    top: 15px; right: 20px;
    color: #aaaaaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.close-btn:hover { color: #ffffff; }
.modal-content ul { padding-left: 20px; line-height: 1.6; font-size: 1.05rem; }
.modal-content li { margin-bottom: 12px; }
.credits { margin-top: 25px; font-style: italic; color: #aaaaaa; font-size: 0.9rem; }

a.ctk-btn {
    text-decoration: none;
}

#other-games-btn {
    margin-top: 30px;
}