@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;400;500&display=swap');

/* add some spacing between elements */
.container {
    margin-top: 50px;
}

.form-check {
    margin-bottom: 10px;
}

.form-check-label {
    font-size: .875em;
}

.form-check-input[type=radio] {
    display: none;
}

.form-check-input[type=radio] + label:before {
    display: none;
}

.question-description {
    font-size: 3em;
}

button {
    margin: 5px 10px;
}

.options-wrapper {
    border: 2px solid #007bff;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.large-button {
    font-size: 2.2em;
}

.btn-order-word {
}

.btn-order {
    font-size: 2.2em;
    border-radius: 15px;
}

/* header style */
header {
    background-color: #007bff;
    color: #fff;
    padding: 10px;
}

/* layout for sticky footer */
html, body {
    height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* footer style: the footer fragment root has .footer-bar */
.footer-bar {
    margin-top: auto; /* push footer to bottom on short pages */
}

/* wrong answer style */
.wrong-answer {
    border-color: #dc3545;
    box-shadow: 0 0 10px #dc3545;
    animation: shake .5s;
}

/* correct answer style */
.correct-answer {
    border-color: #35dc45;
    box-shadow: 0 0 10px #35dc45;
}

.selected {
    border-color: #007bff;
    box-shadow: 0 0 10px #007bff;
}

.checkmark {
    color: green;
    font-size: 2.6em;
}

.xmark {
    color: red;
    font-size: 2.0em;
}

/* shake animation */
@keyframes shake {
    0% {
        transform: translateX(0);
    }
    20% {
        transform: translateX(-10px);
    }
    40% {
        transform: translateX(10px);
    }
    60% {
        transform: translateX(-10px);
    }
    80% {
        transform: translateX(10px);
    }
    100% {
        transform: translateX(0);
    }
}

/* Provide breathing room so the arrow/caret drawn around the box controls isn't clipped */
#box-controls > div.btn-group.btn-group-sm.flex-wrap {
    margin: 4px;
}

.chart-stat {
    height: 50vh;
}

.button-container {
    display: flex;
    justify-content: space-between;
}

.button-container button {
    flex-basis: 30%;
}

/*    vertical line */
.left-column {
    padding-right: 0;
    border-right: 1px solid #ccc;
}

.right-column {
    padding-left: 0;
}

/* only apply the divider to medium and larger screens */
@media (min-width: 768px) {
    .left-column {
        margin-right: -1px; /* offset the border */
    }

    .right-column {
        margin-left: -1px; /* offset the border */
        padding-right: 0;
        padding-left: 0;
    }
}

.like-button {
    display: inline-block;
    cursor: pointer;
    border: none;
}

.heart {
    color: red;
    margin-right: 5px;
    font-size: 4.0em;
}

.heart.empty {
    color: black;
}

.heart.filled {
}

.sortable-ghost {
    opacity: 0.5;
    background: #f0f0f0;
}
.drag-container {
    min-height: 100px;
    border: 1px dashed #ccc;
    padding: 10px;
    margin-bottom: 15px;
}
.drag-container button {
    margin: 5px;
}
#markdown-container table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed; /* evenly divides columns */
    text-align: justify; /* justify text inside cells */
}

#markdown-container th,
#markdown-container td {
    padding: 8px;
    border-bottom: 1px solid #555555; /* line under headers and rows */
    overflow-wrap: break-word; /* prevent overflow */
}

#markdown-container thead th {
    border-bottom: 2px solid #aaaaaa; /* thicker line under header */

}
/* Allow text wrapping and break long words in 'e' column */
td.wrap-text {
    white-space: normal !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 300px; /* optional: restrict width for better wrapping */
}
.row-selected {
    background-color: #d1e7dd !important; /* a soft green highlight */
}
.btn-order {
    touch-action: manipulation;
}

#priority-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: nowrap;
    align-items: center;
}
#priority-filters input {
    width: 80px;
}
