body {
    font-family: monospace;
    margin: 0;
    padding: 0;
    min-width: max-content;
}

body * {
    margin: 1px;
    border: 0;
}

.tabs {
    display: inline-grid;
    grid-template-columns: auto auto auto;
    padding: 0;
    margin: 0;
    justify-content: start;
    align-content: center;

}

.trap-block {
    cursor: pointer;
    border-bottom: 20px solid #8900FF;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    height: 0;
    width: 100px;
    margin: 2px auto;
    color: lightgray;
    text-align: center;
    line-height: 20px;
    margin-bottom: 0;
}

.trap-block.selected {
    /* color: #fff;
    border-bottom: 20px solid #A138FC; */
    color: #A138FC;
    border-bottom: 20px solid #ddd5e5;;
}

.tabs-content {
    border: 1px solid #A138FC;
    margin: 2px auto;
    margin-top: 0;
    /* overflow: scroll; */
}


.center {
    min-width: max-content;
    text-align: center;
    position: relative;
    margin: 5px;
    padding: 5px;
    top: 0;
    left: 0;
}

.work {
    display: flex;
    border: 1px solid black;
    height: fit-content;
    flex-direction: column;
    border-radius: 15px;
    padding: 3px;
    min-width: max-content;
    width: 99%;
}

.grid {
    min-width: 596px;
    display: inline-grid;
    grid-template-columns: auto auto auto auto;
    padding: 2px;
    margin: 1px auto;
    align-items: center;
    justify-content: space-between;
    align-content: center;
}

.grid * {
    border-bottom: 1px solid rgba(83, 83, 83, 0.4);
    margin: 2px 2px;
}

.grid label, .grid div {
    border: 0;
}

textarea {
    border: 1px solid black;
    min-width: 596px;
    height: 100%;
}

table {
    border-collapse: collapse;
    table-layout: fixed;
    min-width: min-content;
}

td {
    border: 1px solid #8900FF;
    padding: 3px;
    text-align: start;
    vertical-align: top;
    cursor: pointer;
}

@media screen and (max-width: 1220px) {
    td {
        font-size: 14px;
    }

    img.android {
        margin: 0;
        width: 16px;
    }
}

@media screen and (max-width: 1220px) {
    td {
        font-size: 10px;
    }

    img.android {
        margin: 0;
        width: 12px;
    }

}

@media screen and (max-width: 990px) {
    td {
        font-size: 8px;
    }

    img.android {
        margin: 0;
        width: 10px;
    }

}

@media screen and (max-width: 850px) {
    td {
        font-size: 6px;
    }

    img.android {
        margin: 0;
        width: 8px;
    }

}

.tablehead td {
    text-align: center;
    color: #4D008F;
}

th {
    border: 1px solid #8900FF;
    padding: 3px;
    text-align: center;
    font-weight: bold;
    background-color: #E6E6E6;

}

tr {
    width: 14.143%;
}

td br {
    content: "";
    margin: 17px;
    display: block;
    margin-bottom: -18px;
}

.close {
    display: none;
    pointer-events: none;
    transition: 0.5s all;
}

.modalbg {
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    min-width: -webkit-fill-available;
    height: 100vh;
    overflow: auto;
    background-color: rgba(255, 255, 255, 0.2);
    transition: 0.5s all;
    pointer-events: all;
}

.modal-div {
    cursor: pointer;
    position: fixed;
    top: 50vh;
    left: 50vw;
    transform: translate(-50%, -50%) scale(2);
    opacity: 1;
    width: max-content;
    height: max-content;
    z-index: 99999999;
    transition: transform 0.3s;
    border: solid 1px;
    background-color: rgba(255, 255, 255, 1);
    font-size: medium;
}

.modal-div br {
    content: "";
    margin: 15px;
    display: block;
    margin-bottom: -18px;
}
.modal-div img.android {
    margin: 0;
    width: 22px;
    vertical-align: middle;
}

#chart {
    width: 98%;
    margin: 2px;
}

#saveImage {
    margin: 1px;
    float: right;
}

select-checkbox {
    font-weight: bold;
}

[type=button] {
    border: 1px solid rgba(83, 83, 83, 0.4);
    border-radius: 5px;
}