/* =====================
     General Styles
     ===================== */
body {
    background: #f7fafc;
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    color: #222;
}

.container {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: 40px 5vw 24px 5vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

h1 {
    margin-top: 0;
    font-size: 2.2rem;
    letter-spacing: 1px;
    color: #2a5d8f;
}

/* =====================
     Controls Section
     ===================== */
.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 24px;
    justify-content: center;
}

.controls label {
    font-weight: 500;
}

.controls select,
.controls input[type="number"] {
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid #b0c4de;
    font-size: 1rem;
    width: 110px;
}

.controls button,
#shareCategoriesBtn {
    background: #2a5d8f;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 7px 18px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.controls button:hover,
#shareCategoriesBtn:hover {
    background: #1d4062;
}

/* =====================
     Timer Section
     ===================== */
.timer-area {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 18px;
}

#timerDisplay {
    font-size: 2rem;
    font-weight: bold;
    color: #2a5d8f;
    background: #eaf6ff;
    border-radius: 8px;
    padding: 4px 18px;
    border: 2px solid #2a5d8f;
    min-width: 90px;
    text-align: center;
}

#timerStart,
#timerPause,
#timerResume {
    background: #e67e22;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

#timerStart:hover,
#timerPause:hover,
#timerResume:hover {
    background: #b95c00;
}

/* =====================
     Game Area Section
     ===================== */
.game-area {
    width: 100%;
    margin-bottom: 18px;
}

.letter-area {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    margin-bottom: 12px;
    justify-content: center;
}

.letter {
    font-size: 2.5rem;
    font-weight: bold;
    color: #e67e22;
    background: #fbeee0;
    border-radius: 8px;
    padding: 4px 18px;
    border: 2px solid #e67e22;
    margin-left: 6px;
}

.categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
    font-size: 1.1rem;
    width: 100%;
    box-sizing: border-box;
    align-items: start;
}

.categories-list li {
    background: #eaf6ff;
    border-radius: 6px;
    padding: 8px 12px;
    border-left: 4px solid #2a5d8f;
    transition: background 0.2s;
}

.categories-list li:hover {
    background: #d0eaff;
}

/* Category number styling */
.cat-num {
    font-weight: bold;
    color: #2a5d8f;
    margin-right: 6px;
    min-width: 1.5em;
    display: inline-block;
    text-align: right;
}

/* =====================
     Footer & Misc
     ===================== */
footer {
    margin-top: 24px;
    text-align: center;
    color: #888;
    font-size: 0.95rem;
}

.logo {
    width: 36px;
    vertical-align: middle;
    margin-bottom: 6px;
}

.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 24px;
    justify-content: center;
}

.controls label {
    font-weight: 500;
}

.controls select,
.controls input[type="number"] {
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid #b0c4de;
    font-size: 1rem;
    width: 110px;
}


.controls button,
#shareCategoriesBtn {
    background: #2a5d8f;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 7px 18px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.controls button:hover,
#shareCategoriesBtn:hover {
    background: #1d4062;
}

.game-area {
    width: 100%;
    margin-bottom: 18px;
}

.letter-area {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    margin-bottom: 12px;
    justify-content: center;
}

.letter {
    font-size: 2.5rem;
    font-weight: bold;
    color: #e67e22;
    background: #fbeee0;
    border-radius: 8px;
    padding: 4px 18px;
    border: 2px solid #e67e22;
    margin-left: 6px;
}

.categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
    font-size: 1.1rem;
    width: 100%;
    box-sizing: border-box;
    align-items: start;
}

.categories-list li {
    background: #eaf6ff;
    border-radius: 6px;
    padding: 8px 12px;
    border-left: 4px solid #2a5d8f;
    transition: background 0.2s;
}

.categories-list li:hover {
    background: #d0eaff;
}

footer {
    margin-top: 24px;
    text-align: center;
    color: #888;
    font-size: 0.95rem;
}

.logo {
    width: 36px;
    vertical-align: middle;
    margin-bottom: 6px;
}