html,
label,
body {
    font-family: Proxima Soft, sans-serif;
    height: 100%;
    font-size: 14px;
    
}
.icon-container {
    flex-wrap: wrap;
}

@media print {
    body {
        display: none;
    }
 }
.problem-view
{
    -webkit-user-select: none; /* Chrome/Safari/Opera */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE/Edge */
    user-select: none; /* Standard syntax */
}
.form-group label {
    font-weight:bold;
}
pre {
    border-radius: unset;
}


a {
    color: #3485cb;
    text-decoration: none;
}
.text-warning {
    color: orange !important;
}
.pre {
    white-space: pre-wrap;
    display: block;
    padding: 1.5px;
    font-size: 12px;
    font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
    word-break: break-all;
    word-wrap: break-word;
    background-color: #F0F0F0;
    border-radius: 0.25rem;
}
.pre p {
    margin: 0;
}
.contest-countdown {
    padding: 20px;
    font-size: 10vw;
}
.contest-title,
.nav-item,
.news-view .news-meta,
.problem-index-list tr td:nth-child(3),
.problem-index-list tr th:nth-child(3),
.rating-top,
.solution-index table,
.solution-index table th,
.table-problem-list th,
.text-center {
    text-align: center;
    vertical-align: middle;
}

.news-view {
    max-width: 1000px;
    margin: auto;
}
.news-view .news-title {
    font-size: 26px;
    font-weight: bold;
    text-align: center;
    margin: 10px 0px;
}
.news-view .news-meta {
    height: 24px;
    color: rgb(153, 153, 153);
    font-size: 12px;
    text-align: center;
    line-height: 24px;
    background: rgb(243, 243, 243);
}
.news-view .news-content {
    font-size: 17px;
    line-height: 33px;
    color: rgb(51, 51, 51);
}

.nav-item {
    font-weight:600;
}
.wrap {
    min-height: 100%;
    height: auto;
    margin: 0 auto -60px;
    padding: 0 0 60px;
}

.wrap > .container {
    background-color: #FFF;
}

.container-fluid {
    padding-left: 40px;
    padding-right: 40px;
}

.footer {
    height: auto;
    background-color: #f5f5f5;
    border-top: 1px solid #ddd;
    padding-top: 10px;
    padding-bottom: 3px;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index:10
}

#header {
    background-color: #006179;
    margin-bottom: 0;
    border: medium none;
}
.page-header {
    margin: 0;
    border-bottom: 0;
}
.page-header .navbar-brand img {
    width: 178px;
    height: 52px;
}
.text-bold {
  font-weight: bold;
}
.well-done {
    color: green;
    font-weight: bold;
}

.text-center {
    text-align: center;
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}


.nav li > form > button.logout {
    padding: 15px;
    border: none;
}

@media(max-width:767px) {
    .nav li > form > button.logout {
        display:block;
        text-align: left;
        width: 100%;
        padding: 10px 15px;
    }
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
}

.nav > li > form > button.logout:focus {
    outline: none;
}

.solution-search {
    padding-bottom: 20px;
}
.html-output {
    word-wrap: break-word;
}
.html-output img {
    max-width: 100%;
}
/*
 * Blog posts
 */
.blog {
    padding: 0 30px;
}
.blog-main {
    font-size: 18px;
    line-height: 1.5;
}
.blog-post {
    margin-bottom: 60px;
}
.blog-post-title {
    margin-bottom: 5px;
    }
.blog-post-meta {
    margin-bottom: 20px;
    color: #999;
}
/* Sidebar modules for boxing content */
.sidebar-module {
    padding: 15px;
}
.sidebar-module-inset {
    padding: 15px;
    background-color: #f5f5f5;
    border-radius: 4px;
}
.sidebar-module-inset p:last-child,
.sidebar-module-inset ul:last-child,
.sidebar-module-inset ol:last-child {
    margin-bottom: 0;
}
.index-discuss-item {
    padding: 5px;
    margin-bottom: 5px;
    border-bottom: 1px solid #eee;
    width: 100%;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}
.discuss-title {
    word-wrap:break-word;
    word-break:break-all;
}

.content-wrapper {
    padding: 9px 0px;
    font-family: Proxima Soft;
    font-size: 15px;
    font-style: normal;
    font-weight: normal;
    line-height: 2em;
}

.content-wrapper img {
    max-width: 100%;
}

.form-signin {
    max-width: 650px;
    padding: 3rem;
    margin: 0 auto;
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 10px;
}
.form-signin .form-signin-heading,
.form-signin .checkbox {
    margin-bottom: 10px;
}
.form-signin .checkbox {
    font-weight: normal;
}

.form-control, .btn 
{
    border-radius: 0.375rem;
}
.form-signin .form-control {
    position: relative;
    height: auto;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    padding: 10px;
    font-size: 16px;
}
.form-signin .form-control:focus {
    z-index: 2;
}

.box {
    border: 1px solid #ddd;
    background: #fbfbfb;
    margin-bottom: 15px;
}

.contest-title {
    text-align: center;
    margin-top: 0;
    font-weight: 700;
}

.solution-index table, .solution-index table th {
    text-align: center;
}

.table th, .table td {
    padding: 0.5rem;
    vertical-align: middle;
}

.btn-group {
    margin-right: 5px;
}

.btn-selected {
    background-color: #ccc; /* Màu xám */
    color: #ffffff; /* Màu chữ trắng */
}

.table-overview {
    margin: 0 auto;
    width: 50%;
    min-width: 500px;
}

.table-overview td, .table-overview th {
    font-weight: 400;
    border-top: 0 !important;
}

.table-overview th {
    text-align: right;
}
.table-problem-list {
    margin: 0 auto;
    width: 50%;
    min-width: 600px;
}
.table-problem-list th {
    text-align: center;
}
.table-problem-list td {
    text-align: left;
}
.rating-index tr td:nth-child(2),
.rating-index tr th:nth-child(2) {
    width:8rem;
    text-align: center;
}

.rating-index tr td:nth-child(1),
.rating-index tr th:nth-child(1){
    text-align: center;
    width:2.5rem
}

.rating-index tr td:nth-child(4),
.rating-index tr th:nth-child(4){
    text-align: center;
    width:3.5rem
}

.problem-index-list tr td:nth-child(1),
.problem-index-list tr th:nth-child(1),
.problem-index-list tr td:nth-child(3),
.problem-index-list tr th:nth-child(3),
.problem-index-list tr td:nth-child(4),
.problem-index-list tr th:nth-child(4)
 {
    text-align: center;
}

.problem-index-list thead tr td:nth-child(2),
.problem-index-list thead tr th:nth-child(2) {
    text-align: center;
}

.solved {
    background-color: #AAE2AB;
}

.solved-first {
    background-color: #57B257;
    color: #FFF;
}

.attempted {
    background-color: #F67B51;
}

.pending {
    background-color: #DCDCDC;
}

.legend-strip {
    clear: both;
}

.table-rank th {
    text-align: center;
    vertical-align: middle;
}

.table-rank td {
    text-align: center;
}
.table-rank tr:hover {
    background-color: #f5f5f5;
}
.table-rank th, .table-rank td {
    vertical-align: middle;
}

.table-problem-cell {
    font-size: 14px;
    padding: 0 !important;
    margin: 0;
    text-align: center;
}
.table-problem-cell small {
    font-weight: normal;
}
.score-solved {
    width: 40px;
    border-color: silver;
    border-right: 0 !important;
}
.score-time {
    width: 60px;
    border-left: 0 !important;
    font-weight: normal;
}

.problem-list-tags {
    float: right;
}

.problem-list-tags .label {
    margin: 2px;
}
.tag-group {
    padding: 0;
}
.custom-radio {
    display: inline;
    margin-right: 10px;
}
.alert-light
{
    color: #343a40;
    background-color: #f8f9fa;
}
.tag-group-item {
    display: inline-block;
    background-color: #DDD;
    margin-right: 3px;
    margin-bottom: 5px;
    padding: 5px 7px;
    border-radius: 2px;
    color: #555;
    font-size: 12px;
    text-decoration: none;
    white-space: nowrap;
    transition-timing-function: ease;
    transition-duration: 0.2s;
    transition-property: background-color;
}

.test-for-popup {
    margin: 0;
    /* border: none; */
}

.btn-copy {
    float: right;
    color: #888 !important;
    cursor: pointer;
    border: 1px solid rgb(185, 185, 185);
    padding: 3px;
    margin: 1px;
    line-height: 1.1rem;
    text-transform: none;
    text-decoration: none !important;
}
.btn-copy:hover {
    background-color: #def;
}
.w-25 {
    width: 25%!important;
}

.list-view .card-columns .card .card-header a{
    color: #212529 !important;
}

.contest-index thead tr td:nth-child(1),
.contest-index thead tr th:nth-child(1) {
    text-align: center;
}

.contest-index tr td:nth-child(2),
.contest-index tr th:nth-child(2) {
    text-align: center;
}

.contest-index tr td:nth-child(3),
.contest-index tr th:nth-child(3) {
    text-align: center;
}

.contest-index tr td:nth-child(4),
.contest-index tr th:nth-child(4) {
    text-align: center;
}


.bg-firstblood {
    background-color: #E0FFE4;
}

.bg-isyou {
    background-color: rgba(171, 188, 196, 0.28);
}

.bg-tablehead {
    background-color: #F9FAFB;
}

.modal-dialog h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 400;
}

.CodeMirror {
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 0.25rem;
}

.noscrollbar::-webkit-scrollbar {
    display: none;
}

.noscrollbar {
    scrollbar-width: none;
}

nav div li div.dropdown-menu.show {
    right: 0;
    left: auto;
}

.table thead tr {
    background-color: #F9FAFB;
}

.table thead th {
    border-bottom: 0;
    vertical-align: middle;
    text-align: center;
}

.user-index tr td:nth-child(1),
.user-index tr th:nth-child(1) {
    width:8rem;
    text-align: center;
}

.standings-table td {
    display: table-cell;
    vertical-align: middle;
}

.hutech-nav {
    background: #e9ecef;
    background-color: #fff;
    box-shadow: 0 1px 6px 0 rgba(32, 33, 36, 0.28);
}

.navbar-expand-lg .navbar-nav .nav-link {
    padding-left: 0.8rem;
    padding-right: 0.8rem;
}

.search-submit a.btn {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.problem-view .markdown p code {
    border: 1px solid #ddd !important;
    background: #f6f6f6 !important;
    padding: 3px !important;
    border-radius: 3px !important;
    font-size: 14px !important;
}

rating-index tr td:first-child,
.rating-index tr td:nth-child(3),
.rating-index tr th:first-child,
.rating-index tr th:nth-child(3) {
  text-align: center;
  width: 60px;
}
.rating-index tr td:nth-child(4),
.rating-index tr th:nth-child(4) {
  text-align: center;
  width: 100px;
}
.rating-one {
  font-size: 120px;
  color: gold;
}
.rating-two {
  margin-top: 20px;
  font-size: 100px;
  color: silver;
}
.rating-three {
  margin-top: 40px;
  font-size: 80px;
  color: #b87333;
}
.rating-one-name {
  margin-top: 0;
}
.rating-two-name {
  margin-top: 9px;
}
.rating-three-name {
  margin-top: 17px;
}

.rated-user {
    text-decoration: none !important;
  }
  .rated-user {
    font-weight: 700;
  }
  .user-black {
    color: #000 !important;
    font-weight: 400 !important;
  }
  .user-fire,
  .user-red {
    color: red !important;
  }
  .user-yellow {
    color: #bb0 !important;
  }
  .user-violet {
    color: #a0a !important;
  }
  .user-orange {
    color: #ff8c00 !important;
  }
  .user-blue {
    color: #00f !important;
  }
  .user-cyan {
    color: #03a89e !important;
  }
  .user-green {
    color: green !important;
  }
  .user-gray {
    color: gray !important;
  }
  .user-admin {
    color: #000 !important;
  }
  .test-for-popup {
    margin: 0;
    border: none;
  }

  .nav.nav-tabs {
    font-size: 15px;
    font-weight: 700;
    display: flex;
    justify-content: center;
    }
  .progress {
    height: 25px;
    margin-bottom:10px;
  }
  .progress-bar {
    line-height: 25px;
    font-weight: bold;
  }
  .solved {
    background-color: #aae2ab;
  }
  .solved-first {
    background-color: #57b257;
    color: #fff;
  }
  .attempted {
    background-color: #f67b51;
  }
  .pending {
    background-color: #dcdcdc;
  }
  .legend-strip .table-legend:not(:first-child) {
    margin-left: 20px;
  }
  .table-legend {
    border: 1px solid #cbcbcb;
    padding: 4px;
    border-radius: 4px;
    margin-top: 8px;
    margin-bottom: 15px;
    color: #82868b;
    padding: 10px;
  }
  .table-legend .legend-leader,
  .table-legend .legend-status,
  .table-legend .legend-whoami {
    width: 23px;
    height: 23px;
    border-radius: 2px;
    display: inline-block;
    vertical-align: middle;
  }
  .table-legend .legend-label {
    display: inline;
    font-size: 14px;
    margin-top: 2px;
  }
  .list-group-item p {
    font-weight: bold;
  }

  .select2-container--bootstrap.input-lg .select2-selection--single, .input-group-lg .select2-container--bootstrap .select2-selection--single, .form-group-lg .select2-container--bootstrap .select2-selection--single {
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    font-family: Proxima Soft, sans-serif;
    
    height: 46px;
    box-sizing: border-box;
    padding: 10px;
    font-size: 16px;
    line-height: 1.67;
    /* padding: 10px 31px 10px 16px; */
}
.select2-container--bootstrap .select2-selection--single .select2-selection__placeholder {
    color: #6c757d;
}

.select2-container--bootstrap .select2-selection--single .select2-selection__rendered {
    color: black;
    padding: 0;
}

@media only screen and (max-width: 767px) {
    #message-container {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 9999;
    }
    
    #message {
        background-color: white;
        padding: 20px;
        text-align: center;
        font-size: 18px;
        color: red;
        font-weight: bold;
    }
    .wrap.show-on-small-screen {
        display: none;
    }

    #message-container.show-on-small-screen {
        display: flex;
    }

    #message.show-on-small-screen {
        display: block;
    }
}

@media only screen and (min-width: 768px) {
    #message {
        display: none;
    }
}

@media screen and (min-width: 993px) and (max-width: 1350px) {
    .fix-container {
        padding-top: 30px;
    }
}

.badge-warning {
    color: saddlebrown;
}

.custom-badge
{
    font-size: 95%;
}
.nav-pills .nav-link {
    border-radius: 0.375rem;
}
#bootstrap-toast-container {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 9999;
}

.toast {
    position: relative;
    background-color: white;
    padding: 10px;
    border-radius: 5px;
    font-size: 16px;
    display: none;
    text-align: center;
}
.custom-toast {
    position: relative;
    background-color: #f8f9fa;
    color: red;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    font-size: 16px;
    display: none;
    text-align: center;
}

.custom-toast.show {
    display: block;
}


.iframe-container {
    position: relative;
    
}

#fullscreen-btn {
    position: absolute;
    background-color: whitesmoke;
    top: 0;
    right: 0;
    z-index: 99;
}

.custom-column {
    background-color: yellow; /* Màu nền */
    color: red; /* Màu chữ */
}

pre, code, kbd, samp {
    font-size: 1em !important;
}

.list-courses {
    width: 100%;
    display: inline-block;
    margin-bottom: 20px;
}

.title-block {
    margin: 0 0 25px;
    font-size: 28px;
    color: var(--title-block-color);
}

.list-courses .row {
    flex-wrap: wrap;
    display: flex;
    width: calc(100% + 30px);
}

.list-courses .course-item {
    margin-bottom: 30px;
}

.list-courses .wrap-course-item {
    background: var(--white-color);
    box-shadow: 0 5px 15px 0 rgba(133,142,176,.15);
    border-radius: 5px;
}
.course-thumb {
    position: relative;
}
.image-cap.show {
    display: block;
}
.image-cap {
    display: none;
    height: 150px;
    object-fit: cover;
    width: 100%;
    margin-bottom: 20px;
}

.logo-cap.show {
    display: block;
}

.logo-cap {
    background-color: #fff;
    border-radius: .25rem;
    bottom: -1rem;
    box-shadow: 0 2px 8px 0 #00000026, 0 2px 4px 0 #00000026;
    display: none;
    height: auto;
    inset-inline-start: 1.5rem;
    padding: .5rem;
    position: absolute;
    width: 7.25rem;
}

.view-content {
    padding: 15px;
    position: relative;
}

.view-content .course-description {
    margin-bottom: 20px;
    color: #42526e;
    line-height: 1.5;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    min-height: 60px;
    max-height: 3em;
}

.popover-course {
    box-shadow: 0 0.0625rem 0.125rem #00000026, 0 0.0625rem 0.25rem #00000026;
    outline: none;
    overflow: hidden;
}

.banner {
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    height: 300px; 
}

.text-over {
    z-index: 2; /* Đảm bảo phần văn bản nằm trên hình ảnh */
}

.text-wrapper {
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.9); /* Nền mờ cho văn bản */
    border-radius: 10px;
    margin: 0; /* Nếu cần, loại bỏ khoảng cách */
}

.text-title {
    font-size: 2rem; /* Kích thước phông chữ cho tiêu đề */
    color: #333; /* Màu chữ */
    margin-bottom: 15px;
}

.search-area {
    max-width: 100%;
}

.search-form .input-group {
    width: 100%;
}

.search-form .form-control {
    border: 1px solid #ddd;
    border-radius: 0.25rem 0 0 0.25rem; /* Bo tròn góc trái */
}

.search-form .btn {
    border-radius: 0 0.25rem 0.25rem 0; /* Bo tròn góc phải */
    border: 1px solid #007bff;
    color: #fff;
    background-color: #007bff;
}

.banner-image {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1; /* Đặt hình ảnh phía sau phần văn bản */
}

.banner-image img {
    max-width: 100%;
    height: auto;
    border-radius: 0 0 10px 0; /* Bo tròn góc dưới bên trái của hình ảnh */
}

.course-info .row {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f8f9fa; /* Màu nền nhẹ */
    border-radius: 5px; /* Bo tròn góc */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Bóng đổ nhẹ */
    transition: all 0.3s ease; /* Hiệu ứng chuyển đổi */
}

.course-info i {
    color: #007bff; /* Màu icon */
    margin-right: 8px;
    min-width: 20px; /* Đảm bảo icon đều có độ rộng tối thiểu */
}

.custom-timeline ul {
    --col-gap: 2rem;
    --row-gap: 2rem;
    --line-w: 0.25rem;
    display: grid;
    grid-template-columns: var(--line-w) 1fr;
    grid-auto-columns: max-content;
    column-gap: var(--col-gap);
    list-style: none;
    width: min(60rem, 90%);
    margin-inline: auto;
}

/* line */
.custom-timeline ul::before {
    content: "";
    grid-column: 1;
    grid-row: 1 / span 20;
    background: rgb(225, 225, 225);
    border-radius: calc(var(--line-w) / 2);
}

/* row gaps */
.custom-timeline ul li:not(:last-child) {
    margin-bottom: var(--row-gap);
}

/* card */
.custom-timeline ul li {
    grid-column: 2;
    --inlineP: 1.5rem;
    margin-inline: var(--inlineP);
    grid-row: span 2;
    display: grid;
    grid-template-rows: min-content min-content min-content;
}

/* date */
.custom-timeline ul li .custom-date {
    --dateH: 3rem;
    height: var(--dateH);
    margin-inline: calc(var(--inlineP) * -1);
    text-align: center;
    background-color: var(--accent-color);
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    display: grid;
    place-content: center;
    position: relative;
    border-radius: calc(var(--dateH) / 2) 0 0 calc(var(--dateH) / 2);
}

/* date flap */
.custom-timeline ul li .custom-date::before {
    content: "";
    width: var(--inlineP);
    aspect-ratio: 1;
    background: var(--accent-color);
    background-image: linear-gradient(rgba(0, 0, 0, 0.2) 100%, transparent);
    position: absolute;
    top: 100%;
    clip-path: polygon(0 0, 100% 0, 0 100%);
    right: 0;
}

/* circle */
.custom-timeline ul li .custom-date::after {
    content: "";
    position: absolute;
    width: 2rem;
    aspect-ratio: 1;
    background: var(--bgColor);
    border: 0.3rem solid var(--accent-color);
    border-radius: 50%;
    top: 50%;
    transform: translate(50%, -50%);
    right: calc(100% + var(--col-gap) + var(--line-w) / 2);
}

/* title descr */
.custom-timeline ul li .custom-title,
.custom-timeline ul li .custom-descr {
    background: var(--bgColor);
    position: relative;
    padding-inline: 1.5rem;
}

.custom-timeline ul li .custom-title {
    overflow: hidden;
    padding-block-start: 1.5rem;
    padding-block-end: 1rem;
    font-weight: 500;
}

.custom-timeline ul li .custom-descr {
    padding-block-end: 1.5rem;
    font-weight: 300;
}

/* shadows */
.custom-timeline ul li .custom-title::before,
.custom-timeline ul li .custom-descr::before {
    content: "";
    position: absolute;
    width: 90%;
    height: 0.5rem;
    background: rgba(0, 0, 0, 0.5);
    left: 50%;
    border-radius: 50%;
    filter: blur(0.5px);
    transform: translate(-50%, 50%);
}

.custom-timeline ul li .custom-title::before {
    bottom: calc(100% + 0.125rem);
}

.custom-timeline ul li .custom-descr::before {
    z-index: -1;
    bottom: 0.25rem;
}

@media (min-width: 40rem) {
    .custom-timeline ul {
        grid-template-columns: 1fr var(--line-w) 1fr;
    }

    .custom-timeline ul::before {
        grid-column: 2;
    }

    .custom-timeline ul li:nth-child(odd) {
        grid-column: 1;
    }

    .custom-timeline ul li:nth-child(even) {
        grid-column: 3;
    }

    /* start second card */
    .custom-timeline ul li:nth-child(2) {
        grid-row: 2/4;
    }

    .custom-timeline ul li:nth-child(odd) .custom-date::before {
        clip-path: polygon(0 0, 100% 0, 100% 100%);
        left: 0;
    }

    .custom-timeline ul li:nth-child(odd) .custom-date::after {
        transform: translate(-50%, -50%);
        left: calc(100% + var(--col-gap) + var(--line-w) / 2);
    }

    .custom-timeline ul li:nth-child(odd) .custom-date {
        border-radius: 0 calc(var(--dateH) / 2) calc(var(--dateH) / 2) 0;
    }
}
