
body {
    font-family: Arial, sans-serif;
    margin: 20px;
    background: #ffffff;
}


/* TAB BAR */
#tabBar {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

#tabBar button {
    padding: 8px 14px;
    border: 1px solid #ccc;
    background: white;
    cursor: pointer;
    border-radius: 4px;
}

#tabBar button:hover {
    background: #eaeaea;
}

/* INLINE MESSAGES */

#message {
    display: none;
    color: red;
    font-weight: bold;
    font-size: 20px;
    margin-bottom: 10px;
}

#message2 {
    display: none;
    color: green;
    font-weight: bold;
    font-size: 20px;
    margin-bottom: 10px;
}


/* GENERAL BUTTONS */
.btn {
    padding: 10px 16px;
    background: #ffffff;
    color: black;
    font-size: 18px;
    border: solid;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
}

.btnclose {
    padding: 10px 16px;
    background: #ffffff;
    color: #ff9900;
    font-size: 18px;
    border: solid;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
}

.btntitle {
    padding: 10px 16px;
    background: #ffffff;
    color: #ff9900;
    font-size: 18px;
    font-weight: bold;
    border: solid;
    border-radius: 8px;
    cursor: none;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
}


.btn2 {
    padding: 10px 16px;
    background: #ffffff;
    color: black;
    font-size: 14px;
    font-weight: bold;
    border: solid;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);

}

.btn3 {
    padding: 10px 16px;
    background: #ffffff;
    color: black;
    font-size: 14px;
    font-weight: bold;
    border: solid;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
}

.btn4 {
    padding: 10px 16px;
    background: #ffffff;
    color: black;
    font-size: 14px;
    font-weight: bold;
    border: solid;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
}

.btn5 {
    padding: 10px 16px;
    background: #ffffff;
    color: black;
    font-size: 14px;
    font-weight: bold;
    border: solid;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
}

.btn6 {
    padding: 10px 16px;
    background: ffffff;
    font-size: 14px;
    font-weight: bold;
    border: solid;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
}

.btn7 {
    padding: 10px 16px;
    background: ffffff;
    font-size: 14px;
    font-weight: bold;
    border: solid;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
}



/* Standard hover style */
btn:hover {
  background-color: #ffffff;
}


/* Hover styles for hover-capable devices */
@media (hover: hover) {
  button:hover {
    background-color: #c0c0c0;
  }
}

/* DASHBOARD GRID */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    width: 100%;
    margin-top: 10px;
}

.dash-section {
    background: white;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #ccc;
    box-shadow: 0 px 2px rgba(0,0,0,0.05);

}

.dash-section h3 {
    margin-top: 0;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 6px;
}

#categorySelect {
    width: 100%;
    padding: 6px;
    font-size: 14px;
}

.dash-start {
    margin-top: 20px;
}


/* GAME AREA BUTTON GRID */
#buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    width: 100%;
    margin-top: 15px;
}

#buttons .btn {
    padding: 10px;
    font-size: 19px;
    width: 100%;
    border-radius: 6px;
    margin: 0;
}

/* CORRECT / WRONG BUTTON COLORS */
.correct {
    background: #4caf50 !important;
}

.wrong {
    background: #f44336 !important;
}

/* PROGRESS BARS */
.bar {
    width: 100%;
    height: 12px;
    background: #ddd;
    border-radius: 6px;
    margin: 8px 0;
    overflow: hidden;
}

.barFill {
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
}

/* TIMER BAR — ORANGE STRIPED */
#timerFill {
    background: repeating-linear-gradient(
        45deg,
        #ff9800,
        #ff9800 10px,
        #ffa726 10px,
        #ffa726 20px
    );
}

/* SCORE BAR — GREEN */
#scoreFill {
    background: #4caf50;
}

/* QUESTION PROGRESS BAR — BLUE */
#progressFill {
    background: #2196f3;
}

.barLabel {
    font-size: 14px;
    margin-bottom: 10px;
}

/* TABS */
.tab {
    display: none;
}

.tab h2 {
    margin-top: 0;
}

/* RESULTS */
#resultsList details {
    background: white;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
}

#resultsList summary {
    cursor: pointer;
    font-weight: bold;
}

/* ACHIEVEMENTS */
#achievementsList {
    background: white;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.accuracy-anim {
    display: inline-block;
    animation: spin 0.3s ease-out;
}

@keyframes spin {
    from { transform: rotate(0deg) scale(0.1); opacity: 0; }
    to   { transform: rotate(360deg) scale(1); opacity: 1; }
}

.accuracy-bar {
    width: 45%;
    height: 8px;
    background: #eee;
    border-radius: 10px;
    overflow: hidden;
    margin: 10px 0;
}

.accuracy-fill {
    height: 100%;
    background: linear-gradient(90deg, #0040ff, #00aaff);
    transition: width 0.2s ease;
}

.score-bar {
    width: 50%;
    height: 6px;
    background: #eee;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 4px;
}

.score-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff9ad5, #ff5fa2);
    transition: width 0.4s ease;
}
