.ruler {
    position: relative;
    width: 50%;
    height: 20%;
    border: 1px solid;
    background: linear-gradient(0deg, rgb(23, 131, 194), #ddd);
    font-size: 90%;
    text-align: center;
    font-weight: bold;
    vertical-align: middle;
    margin-top: 3%;
    resize: horizontal;
    overflow: auto;
    min-width: 20px;
    box-sizing: border-box;
    color: black;
}

.card {
    position: relative;
    width: 200px;
    height: 170px;
    border: 1px solid;
    background: linear-gradient(60deg, rgb(23, 131, 194), #ddd);
    font-size: 90%;
    text-align: center;
    font-weight: bold;
    vertical-align: middle;
    margin-top: 5%;
    min-height: 40px;
    min-width: 40px;
    resize: both;
    overflow: auto;
    box-sizing: border-box;
    color: black;
}

#card_v {
    background: linear-gradient(-30deg, rgb(23, 131, 194), #ddd);
}

.description-block, .ruler-block, .card-block {
    position: relative;
    width: 90%;
    max-width: 100%;
    overflow: visible;
}
.loader-block {
    max-width: 100%;
    overflow: visible;
}

.description-block{
    margin-top: 3%;
}

.card-block {
    min-height: 550px;
    height: 100%;
}

.question-container {
    position: relative;
    width: 90%;
    margin-top: 3%;
}

.variant-container {
    position: relative;
    width: 100%;
    margin-top: 0px;
}

.instruction-list {
    font-size: 1.5rem;
}

.typesetting-bar {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: 30px;
    margin-bottom: 20px;
    width: 30%;
}

.help-icon {
    position: relative;
    bottom: 5%;
    /* right: 20px; */
    z-index: 1000;
    color: #007bff;
}

.help-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    max-height: 80%;
    overflow-y: auto;
}

.help-content {
    font-size: 1.5rem;
    padding: 20px;
    text-align: center;
    overflow-y: auto;
}

.help-content img {
    margin-right: 5%;
    margin-top: 2%;
    margin-bottom: 2%;
}

.help-content button {
    margin-top: 15px;
}

.close-button {
    position: absolute;
    top: 0px;
    right: 0px;
    background: none;
    border: none;
    font-size: 45px;
    font-weight: bold;
    cursor: pointer;
    color: #333;
    transition: color 0.3s ease;
    line-height: 1;
}
  
.close-button:hover {
    color: #ff0000;
}