/* Custom CSS for maths.kurr.xyz */

body {
    font-family: consolas, monospace;
    font-size: medium;
}

/* Table Styles */
#shapes, #customers {
    font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
    width: 80%;
    border-collapse: collapse;
}

#shapes th, #customers th {
    font-size: 1em;
    text-align: left;
    padding-top: 5px;
    padding-bottom: 4px;
    background-color: #009ac8;
    color: #fff;
}

#shapes td, #customers td {
    font-size: 0.8em;
    border: 1px solid #CCCCCC;
    padding: 3px 7px 2px 7px;
}

#shapes tr.alt td, #customers tr.alt td {
    color: #000;
    background-color: #DDE6EB;
}

#shapes td, #customers td {
    text-align: left;
    font-family: consolas;
    font-size: large;
}

#shapes td.alt, #customers td.alt {
    text-align: left;
    font-family: consolas;
    font-size: large;
    text-decoration: underline;
}

#customers td {
    text-align: right;
}

#customers td.alt {
    text-align: right;
}

/* Custom Font for Handwriting */
@font-face {
    font-family: "tracefont";
    src: url("/static/fonts/TRACEDOTFONT.TTF") format("truetype");
}

p.customfont {
    font-family: "tracefont", Verdana, Tahoma;
}

/* Handwriting Practice Styles */
.handwriting-practice {
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #ddd;
}

.handwriting-practice-sheet {
    margin: 20px 0;
    padding: 40px;
    border: 2px solid #333;
    background-color: #f9f9f9;
    font-size: 48px;
}

.handwriting-text {
    font-family: "tracefont", cursive;
    letter-spacing: 2px;
    line-height: 60px;
}

/* Question Display Styles */
table[cellpadding] {
    margin: 10px 0;
    border-spacing: 2px;
}

table[cellpadding] td {
    padding: 5px;
}

/* Form Styles */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input[type="radio"] {
    margin-right: 5px;
}

/* Button Styles */
.btn {
    padding: 8px 16px;
    margin-right: 5px;
    border-radius: 4px;
    cursor: pointer;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #545b62;
}

/* Accordion Styles */
.accordion-item {
    border: 1px solid #dee2e6;
    margin-bottom: 0;
}

.accordion-button {
    padding: 12px 20px;
}

.accordion-body {
    padding: 15px 20px;
}

/* Container and Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col-sm-2, .col-sm-8 {
    flex: 0 0 auto;
    padding-right: 15px;
    padding-left: 15px;
}

.col-sm-2 {
    width: 16.666667%;
}

.col-sm-8 {
    width: 66.666667%;
}

/* Jumbotron Styles */
.jumbotron {
    padding: 48px 0;
    margin-bottom: 48px;
}

.jumbotron-fluid {
    padding: 0;
}

.jumbotron-fluid > .container {
    padding-right: 0;
    padding-left: 0;
}

.bg-primary {
    background-color: #007bff;
}

.text-white {
    color: white;
}

/* List Group Styles */
.list-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.list-group-item {
    position: relative;
    display: block;
    padding: 0.75rem 1.25rem;
    border: 1px solid rgba(0, 0, 0, 0.125);
    text-decoration: none;
    color: #007bff;
}

.list-group-item:hover {
    background-color: #f8f9fa;
}

.list-group-item.active {
    background-color: #007bff;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .col-sm-2 {
        width: 100%;
    }
    
    .col-sm-8 {
        width: 100%;
    }
}
