
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;
border: 2px solid #ff9900;
  border-radius: 50px 20px;



}

#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: #000000;
    color: #ff9900;
    font-size: 13px;
    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);
}

.btnstart {
    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);
    border: 2px solid #ff9900;
    border-radius: 50px 20px;

}

.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: 25%;
    height: 10px;
    background: #ddd;
    border-radius: 6px;
    margin: 8px 0;
    overflow: hidden;
}

.bar2 {
    width: 25%;
    height: 8px;
    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,
        #000000,
        #000000 10px,
        #737373 10px,
        #737373 20px
    );
}

/* SCORE BAR — GREEN */
#scoreFill {
        background: linear-gradient(90deg, #ffffff,
 		 #ebfaeb,
 		 #d6f5d6,
 		 #c2f0c2,
 		 #adebad,
 		 #99e699,
 		 #85e085,
 		 #70db70,
 		 #5cd65c,
 		 #47d147,
#006622,#006622,#006622
);
}

/* QUESTION PROGRESS BAR — BLUE */
#progressFill {
        background: linear-gradient(90deg, #ffffff,
#e6eeff,
 		 #ccddff,
 		 #b3ccff,
 		 #99bbff,
 		 #80aaff,
 		 #6699ff,
 		 #4d88ff,
 		 #3377ff,
 		 #1a66ff,
#002266,#002266,#002266


);

}

.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;
}

/* FLASHCARDS */
#flashcardsSection {
    width: 27%;
    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;
}