@import "/static/css/rich.css";

body {
    padding-top: 5px !important;
}

h1.test-title {
    font-size: 24px;
    line-height: 52px;
    text-align: center;
    color: #333333;
    border-bottom: 1px solid #cccccc;
    margin-bottom: 10px;
}

/* info-bar ***********************************************************************************************************/
.info-bar {
    display: flex;
    flex-flow: row;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    margin-bottom: 12px;
}

.info-bar > div {
    width: 50%;
    display: flex;
    flex-flow: row;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #888888;
}

.info-bar > div > span {
    display: inline-block;
    line-height: 30px;
}

.info-bar > div > span:first-child {
    margin-right: 5px;
    color: #cccccc;
    font-size: 12px;
    padding-top: 0.1em;
}

/* test-info **********************************************************************************************************/
.test-info {
    display: flex;
    flex-flow: column;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 38px;
    text-align: left;
    color: #666666;
    margin-bottom: 10px;
}

#guide>div.test-info>h2 {
    display: block;
    font-size: 18px;
    color: #454545;
    text-align: center;
    line-height: 1em;
    padding-bottom: 16px;
    border-bottom: 1px solid #dddddd;
    margin-bottom: 20px;
    position: relative;
    width: 100%;
    padding-top: 10px;
}

#guide>div.test-info>h2>span.title-line {
    position: absolute;
    width: 100px;
    height: 3px;
    background-color: #1a9120;
    bottom: -1px;
    left: 50%;
    margin-left: -50px;
}

.test-info > div.tip-info,
.test-info > div.result-info{
    display: flex;
    flex-flow: row;
    align-items: center;
    justify-content: center;
}

.test-info > div.tip-info{
    font-size: 16px;
    line-height: 32px;
    color: #454545;
}

.test-info > div.tip-icon {
    text-align: center;
    font-size: 42px;
    margin-bottom: 20px;
    color: #1a9120;
}

.test-info > div.result-info{
    font-size: 16px;
    line-height: 32px;
    color: #0081ff;
}

/* test-questions *****************************************************************************************************/
.test-questions {
    position: relative;
}

.question-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1;
}

.question-item>h3 {
    font-size: 16px;
    color: #454545;
    line-height: 38px;
    margin-bottom: 18px;
}

.question-item > ul.options {
    display: flex;
    flex-flow: column;
    align-items: center;
    justify-content: center;
}

.question-item > ul.options > li {
    display: flex;
    flex-flow: row;
    align-items: center;
    justify-content: start;
    font-size: 14px;
    color: #888888;
    box-sizing: border-box;
    padding: 10px;
    margin-bottom: 12px;
    width: 100%;
    border: 1px solid #dddddd;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
}

.question-item > ul.options > li:hover {
    background-color: #1a9120;
    color: #ffffff;
    transform: scale(1.01);
}

.question-item > ul.options > li:active {
    background-color: #4d7e13;
    color: #ffffff;
    transform: scale(0.99);
}

.question-item {
    display: none;
}

.error-message {
    color: #ff0000;
    font-size: 16px;
}

/* progress ***********************************************************************************************************/
#progress-block {
    position: fixed;
    bottom: 10px;
    left: 0;
    width: 100%;
}

#progress-block #question-num {
    display: flex;
    flex-flow: row;
    align-items: center;
}

#progress-block #progress-bar {
    width: 100%;
    height: 8px;
    margin: 10px auto;
    background-color: #dddddd;
    border-radius: 5px;
    overflow: hidden;
}

#progress-block #progress-bar > div {
    width: 0;
    height: 8px;
    background-color: #1a9120;
    transition: width 0.5s;
}

#btn-bar {
    display: flex;
    flex-flow: row;
    align-items: center;
    justify-content: space-between;
}

#btn-bar > div.btn {
    width: 100px;
    height: 32px;
    background-color: #ffffff;
    color: #999999;
}

#btn-bar > div.btn:hover {
    color: #454545;
}

/* test-loading *******************************************************************************************************/
.test-loading {
    display: flex;
    flex-flow: row;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    height: 50px;
}

.test-loading>div {
    display: inline-block;
    line-height: 1em;
    margin: 0 5px;
}

/* tester-form ********************************************************************************************************/
.tester-form{
    width: 100%;
    padding: 8px 10px;
}

.tester-form .form-row{
    width: 100%;
    display: flex;
    flex-flow: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 12px 0;
}


.tester-form .form-row h3{
    font-size: 16px;
    line-height: 1em;
    color: #999999;
    display: block;
    text-wrap: nowrap;
    text-align: right;
}

.tester-form .form-row input.input-text,
.tester-form .form-row>div{
    width:100%;
}

.tester-form .form-row input.input-text{
    height: 36px;
    padding: 0 5px;
    font-size: 16px;
    color: #00a6ff;
}

.tester-form .form-row div.field-items,
.tester-form .form-row div.field-items label
{
    display: flex;
    flex-flow: row;
    align-items: center;
}

.tester-form .form-row div.field-items{
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px;
}

.tester-form .form-row div.field-items label{
    justify-content: center;
    gap: 4px;
    font-size: 16px;
    line-height: 1em;
    color: #666666;
    background-color: #f1f1f1;
    padding: 5px 10px;
    border-radius: 8px;
}

.tester-form .form-row div.field-items label input{
    width: 14px;
    height: 14px;
}

.error-msg{
    background-color: #fff3f4;
    color: #ff4f4f;
    font-size: 14px;
    line-height: 2.8em;
    text-align: center;
    border-radius: 8px;
}