* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 600;
    text-align: center;
}

h2 {
    margin: 0px;
    padding: 5px;
}

p {
    margin-bottom: 1rem;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

div#main {
    text-align: center;
}

div#main form {
    display: inline-block;
    text-align: left;
    margin-top: 20px;
}

/* exam */

.exam-columns {
    display: grid;
    gap: 20px;
    margin-bottom: 20px;
}

.exam-column {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
}

.exam-column div {
    border: 1px solid #000;
    border-radius: 0.5em;
    margin-bottom: 0.5em;
    padding: 0.5em;
    width: 100%;
}

.exam-column div.correct {
    background-color: green !important;
    color: #fff;
}

.exam-column div.incorrect {
    background-color: red !important;
    color: #fff;
}

.exam-column div:hover {
    background-color: #e2e6ea;
}

.in-progress .exam-column{
    opacity: 0.5;
}

.exam-column div.selected {
    background-color: #007bff;
    color: #fff;
    border-color: #0056b3;
}

#counters {
display: flex;
justify-content: center;
gap: 20px;
}

.panel {
    float: left;
}

.clearfix::after {
    content: "";
    clear: both;
    display: table;
}

.error-count {
    width: 3em;
}

.right {
    position: absolute;
    right: 0px;
}

button {
    margin: 5px;
    padding: 10px 20px;
    font-size: 16px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.exam-eval ul {
    list-style-type: none;
    padding: 0;
    font-size: 2em;
    margin: 1rem;
}

@media print {
    @page {
        margin: 10px;
    }

    h1, h2, h3, button, .panel {
        display: none;
    }

    .exam-column {
        display: flex;
        flex-direction: column;
        justify-content: center;
        height: 12.5vh;
        page-break-inside: avoid;
        break-inside: avoid;
        font-weight: bold;
    }
    
    .exam-column div {
        flex: 0 0 auto;
    }
}
