:root{
    font-family: Helvetica, Arial, sans-serif;
    font-size: 14px;
}

/* html {
    font-size: 14px;
} */

.under-construction{
    display: flex; 
    flex-direction: row;
    justify-content: space-between; 
    align-items: center; 
    height: 60vh; 
    width: 100vw;
}

.red_h {
    margin-left: 10px; margin-bottom: 10px; color: rgba(161, 36, 42, 1);
}

page-link a, .prev-page-link a {
    color: black;
}

a{
    color:black;
    transition: color 0.15s;
    -moz-transition:color 0.15s;
    -webkit-transition:color 0.15s;
    -ms-transition:color 0.15s;
    -o-transition:color 0.15s;
}
a:link {color: black} /* 未访问度的知链接道 */
a:visited {color: black} /* 已访问的链接 */
a:hover {
    color: rgba(161, 36, 42, 0.9);
    text-decoration: none;
} /* 鼠标移动到链接上 */
a:active {color: black} /* 选定回的链接 */
.forloop-a{
    color:black;
}
.forloop-a:hover{
    color:black;
}
.forloop-label {
    width: 100%;
}
.flex-box{
    display: flex;
    flex-direction: column;
}
.forloop-box{
    transition: all 0.15s;
    -moz-transition:all 0.15s;
    -webkit-transition:all 0.15s;
    -ms-transition:all 0.15s;
    -o-transition:all 0.15s;
    border-radius: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0px 0px 6px rgba(0,0,0,0.12);
}
.forloop-box:hover{
    box-shadow: 0px 0px 10px rgba(0,0,0,0.22);
}
.forloop-box div div{
    background-color: rgba(250, 250, 250, 0);
}
.forloop-head{
    padding: 1rem 2rem 1rem 2rem;
    background-color: rgba(250, 250, 250, 0.88);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
.forloop-info{
    padding: 1rem 2rem 1rem 1.6rem;
    background-color: whitesmoke;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    font-size: 0.95rem;
}
.forloop-h4{
    display: block;
    padding-bottom: 0;
    margin-bottom: 0;
    font-size: 1.25rem;
}
.forloop-floatbadge{
    position: relative; 
    bottom:2rem; 
    right:-98.5%; 
    float: right;
    width: 1rem;
    height: 0rem;
}
/* code{
    color: rgba(160,20,0,1);
} */

th, td {
    vertical-align:middle;
    text-align:justify;
}

.navbar {
    background: rgba(0,0,0,0.4);
}

.icon-bar{
    background: rgba(230, 182, 170, 1);
}

#home-top-nav {
    box-shadow:         0px 3px 10px rgba(36, 36, 36, .3);
    -webkit-box-shadow: 0px 3px 10px rgba(36, 36, 36, .3);
    -moz-box-shadow:    0px 3px 10px rgba(36, 36, 36, .3);
    -ms-box-shadow:     0px 3px 10px rgba(36, 36, 36, .3);
    -o-box-shadow:      0px 3px 10px rgba(36, 36, 36, .3);
    z-index:999;
}

#loading-bar {
    position: static;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 999;
    width: 100%;
    height: 36vh;
    background-color: white;
}

#loading-content {
    display: none;
}

.pagination .active .page-link {
    background: rgba(161, 36, 42, 0.8);
    border: solid 1px rgba(161, 36, 42, 0);
}

.pagination .active .page-link:hover {
    background: rgba(161, 36, 42, 0.9);
    border: solid 1px rgba(161, 36, 42, 0);
}

h3 {
    color: rgba(161, 36, 42, 0.8)
}

.container .table thead{
  background-color: rgb(192, 75, 81);
  color: rgba(236, 236, 236, 1);
}



/* navbar */

.nav .dropdown .dropdown-toggle {
    border-top: solid 2px rgba(161, 36, 42, 0);
    border-bottom: solid 2px rgba(161, 36, 42, 0);
    padding-left: 13px;
    padding-right: 13px;
    color: rgba(30, 30, 30, 0.88);
    font-weight: bold;
    transition:color 0.2s ease-in, border-top 0.6s;
    -moz-transition:color 0.2s ease-in, border-top 0.6s;
    -webkit-transition:color 0.2s ease-in, border-top 0.6s;
    -ms-transition:color 0.2s ease-in, border-top 0.6s;
    -o-transition:color 0.2s ease-in, border-top 0.6s;
}
.nav .nav_red {
    border-top: solid 2px rgba(161, 36, 42, 0);
    border-bottom: solid 2px rgba(161, 36, 42, 0);
    padding-left: 13px;
    padding-right: 13px;
    color: rgba(30, 30, 30, 0.88);
    font-weight: bold;
    transition:color 0.2s ease-in, border-top 0.6s, border-bottom 0.6s;
    -moz-transition:color 0.2s ease-in, border-top 0.6s, border-bottom 0.6s;
    -webkit-transition:color 0.2s ease-in, border-top 0.6s, border-bottom 0.6s;
    -ms-transition:color 0.2s ease-in, border-top 0.6s, border-bottom 0.6s;
    -o-transition:color 0.2s ease-in, border-top 0.6s, border-bottom 0.6s;
}
.nav .dropdown .dropdown-toggle:hover {
    color: rgba(161, 36, 42, 1);
    border-top: solid 2px rgba(161, 36, 42, 1);
    background: rgba(161, 36, 42, 0)
}
.navbar-nav, .navbar-right li {
    /* background-color: black; */
}
.nav .nav_red:hover {
    color: rgba(161, 36, 42, 1);
    border-top: solid 2px rgba(161, 36, 42, 1);
    border-bottom: solid 2px rgba(161, 36, 42, 1);
    background: rgba(161, 36, 42, 0);
}
.nav .dropdown .dropdown-toggle:focus {
    color: rgba(161, 36, 42, 1);
    border-bottom: solid 2px rgba(161, 36, 42, 0);
    border-top: solid 2px rgba(161, 36, 42, 1);
    background: rgba(161, 36, 42, 0)
}
.nav .dropdown .dropdown-menu{
    background: rgba(255, 255, 255, 0.8);
    border-bottom: solid 2px rgba(161, 36, 42, 1);
    min-width: 100px;
}
.nav .dropdown .dropdown-menu .dropdown-a{
    text-align: center;
}
.nav .dropdown .dropdown-menu .dropdown-a:hover{
    background: rgba(161, 36, 42, 0.36);
    color: rgba(250, 250, 250, 0.88);
}

#home-top-nav {
    background:rgba(255,255,255,1) center;
    -webkit-box-shadow: 0px 3px 10px rgba(36, 36, 36, .3);
    -moz-box-shadow:    0px 3px 10px rgba(36, 36, 36, .3);
    transition: all 0.2s ease-out;
    -webkit-transition: all 0.2s ease-out;
    -ms-transition: all 0.2s ease-out;
    -moz-transition: all 0.2s ease-out;
    -o-transition: all 0.2s ease-out;
    box-shadow:         0px 3px 10px rgba(36, 36, 36, .3);
    user-select: none;
    z-index:999;
}


.grey{
    color: rgba(30, 30, 30, 0.88);
    transition:color 0.6s;
    -moz-transition:color 0.6s;
    -webkit-transition:color 0.6s;
    -ms-transition:color 0.6s;
    -o-transition:color 0.6s;
}

.grey:hover{
    color: rgba(161, 36, 42, 1);
}

.navbar-header, .navbar-right{
    float: left;
}

/* 去除浮动 */
.checkbox-div {
    overflow: hidden;
}

input[type=checkbox], input[type=radio] {
    display: none;
}
/* .checkbox-div::after {
    content:'';
    clear: both;
    display: block;
} */


/* 主流浏览器还不完全支持position: sticky */
.sticky {
    position: sticky; 
    top:0; 
    background-color: white;
    z-index: 1;
}

/* detail页右边的fixed-btn */
.flex-left, .flex-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 80vh;
    width: 108px;
    overflow: visible;
    user-select: none;
}

.flex-left {
    align-items: flex-start;
}

.flex-right {
    align-items: flex-end;
}

.fixed-left, .fixed-right {
    position:fixed;
    z-index: 6; 
}

.fixed-left {
    left: 10px;
}

.fixed-right {
    right: 10px;
}

.flex-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 90px;
    height: 90px;
    border-radius: 16%;
    margin-top: 9px;
    margin-bottom: 9px;
    box-shadow: 0px 2px 22px 5px rgba(0, 0, 0, .15);
    -webkit-box-shadow: 0px 2px 22px 5px rgba(0, 0, 0, .15);
    -moz-box-shadow:    0px 2px 22px 5px rgba(0, 0, 0, .15);
    transition: all 0.36s ease-out;
    -webkit-transition: all 0.36s ease-out;
    -ms-transition: all 0.36s ease-out;
    -moz-transition: all 0.36s ease-out;
    -o-transition: all 0.36s ease-out;
    font-size: 14px;
    color: white;
}

.btn-right {
    border-top-right-radius: 100%;
    border-bottom-right-radius: 100%;
}

.btn-left {
    border-top-left-radius: 100%;
    border-bottom-left-radius: 100%;
}

input[type=radio]:checked + .flex-btn {
    background-color: rgba(161, 36, 42, 0.5);
}

input[type=radio] + .flex-btn {
    /* background: radial-gradient(circle farthest-corner, rgba(161, 36, 42, 0.36) 1%, rgb(255, 216, 216, 0.12) 120%); */
    background-color:rgba(133, 133, 133, 0.36);
}

input[type=radio] + .flex-btn:hover {
    /* background: radial-gradient(circle farthest-corner, rgba(161, 36, 42, 0.88) 1%, rgb(255, 216, 216, 0.66) 80%); */
    background-color:rgba(161, 36, 42, 0.88);
    /* border: rgba(47, 47, 47, 0.66) 6px solid; */
    border-radius: 100%;
    margin-top: 18px;
    margin-bottom: 18px;
    width: 108px;
    height: 108px;
}

.container {
    width: 80vw;
    padding-left: 6%;
    padding-right: 6%;
}

textarea[class=form-control], input[type=text], input[type=number] {
    border: none; 
    border-radius: 0;
    border-bottom:rgba(148, 148, 148, 0.6) 1px solid;
    box-shadow: none; 
    font-size: 20px; 
    padding-left: 0;
    margin-bottom: 3px;
    transition: all 0.36s ease-out;
    -webkit-transition: all 0.36s ease-out;
    -ms-transition: all 0.36s ease-out;
    -moz-transition: all 0.36s ease-out;
    -o-transition: all 0.36s ease-out;
}
textarea[class=form-control]:focus, input[type=text]:focus, input[type=number]:focus {
    border: none; 
    border-radius: 0;
    border-bottom:rgba(148, 148, 148, 0.6) 1px solid;
    padding-left: 12px;
    box-shadow: -3px 0px 0px 0px rgba(161, 36, 42, 0.88); 
}

input[type=number]:focus {
    padding-right: 52vw;
}

#pageNum {
    font-size: 1rem;
    outline: none;  
}
#pageNum:focus {
    border: none; 
    border-radius: 0;
    border-bottom:rgba(148, 148, 148, 0.6) 1px solid;
    padding-left: 0;
    outline: none;  
    box-shadow: none; 
}

#username:focus {
    box-shadow: none;
}

.table-full {
    width: fit-content;
    min-width: 36vw;  
}

.badge {
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

.badge-tips{
    position: relative;
    display: inline-block;
}

.badge-tips:hover:before{
    content: attr(eg-sentence);
    background-color: #E1E1EA;
    color: #444;
    padding: .8em 1em;
    position: absolute;
    top: -220%;
    left: -10%;
    min-width: 120%;
    white-space: pre; 
    z-index: 999;
}
.badge-tips:hover:after{
    content: "";
    position: absolute;
    top: -50%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #E1E1EA transparent transparent transparent;
    z-index: 999;
}