﻿.hist-cont {
    max-height: 300px;
    overflow: auto;
}

.link-button {
    background: none;
    border: none;
    color: gray;
    text-decoration: underline;
    cursor: pointer;
    font: inherit;
    padding: 0;
    margin-left: 5px;
}

    .link-button:hover {
        color: darkgray;
    }

mjx-container[jax="CHTML"][display="true"] {
    display: block;
    text-align: left !important;
}

    mjx-container[jax="CHTML"][display="true"] * {
        font-family: initial !important;
    }



.trainer-result {
    height: 111px !important;
    background: linear-gradient(to bottom, var(--bg-light) 80%, var(--primary) 77% 100%);
}

.result-row-reset {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 3px;
    margin-top: 8px;
    padding-top: 3px;
}

.reset {
    all: unset;
    display: inline-block;
    box-sizing: border-box;
    cursor: pointer;
    font: inherit;
    font-size: 80%;
    color: white;
    font-weight: 700;
}

.typical-block {
    align-items: stretch !important;
    padding-bottom: 6px;
}

.btn-check {
    background-color: #4f46e5;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.exercise {
    background-color: #f0f4ff;
    border-radius: 10px;
    margin-bottom: 20px;
}

@media (min-width: 200px) {
    .exercise {
        font-size: 0.9rem;
        padding-left: 10px;
    }
}

@media (min-width: 400px) {
    .exercise {
        font-size: 1.1rem;
    }
}

@media (min-width: 500px) {
    .exercise {
        font-size: 1.2rem;
        padding-left: 15px;
    }
}

.input-area {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    flex-direction: row;
    flex-wrap: wrap;
}

    .input-area input[type="text"] {
        flex: 1;
        padding: 10px;
        font-size: 1rem;
        border-radius: 6px;
        border: 1px solid #ccc;
        font-weight: 600;
    }



.mg-levels {
    justify-content: center;
}

.checkbox-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    background-color: var(--bg-light);
    border-radius: 12px;
    padding: 1rem 2rem;
}

.math-check input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 1.2rem;
    height: 1.2rem;
    border: 2px solid #888;
    border-radius: 4px;
    display: inline-block;
    position: relative;
    cursor: pointer;
    vertical-align: middle;
    transition: all 0.2s ease;
}

    .math-check input[type="checkbox"]::after {
        content: "";
        position: absolute;
        left: 4px;
        top: 0px;
        width: 5px;
        height: 10px;
        border: solid white;
        border-width: 0 2px 2px 0;
        transform: rotate(45deg);
        opacity: 0;
        transition: opacity 0.15s ease;
    }

    .math-check input[type="checkbox"]:checked {
        background-color: var(--color-primary);
        border-color: var(--color-primary);
    }

        .math-check input[type="checkbox"]:checked::after {
            opacity: 1;
        }

.math-check label {
    margin-left: 0.4rem;
    cursor: pointer;
}

.math-check {
    display: flex;
    align-items: center;
    font-size: 1rem;
}

@media (max-width: 600px) {
    .checkbox-container {
        justify-content: center;
    }

    .math-check {
        flex: 1 1 calc(50% - 1rem);
        justify-content: center;
    }
}

.points-cont {
    height: 20px !important;
    margin-top: px;
    margin-bottom: 5px;
}

#ContentPlaceHolder1_TableHistory {
    border-collapse: collapse;
    width: 100%;
    font-family: Arial, sans-serif;
}

    #ContentPlaceHolder1_TableHistory th {
        padding: 8px;
        background-color: #f0f0f0;
        text-align: center;
        vertical-align: middle;
    }


    #ContentPlaceHolder1_TableHistory td {
        padding: 8px;
        text-align: center;
        vertical-align: middle;
        word-break: keep-all;
        white-space: nowrap;
        background: transparent;
    }


    #ContentPlaceHolder1_TableHistory tr:nth-child(even) {
        background-color: #f9f9f9;
    }
