.katten-img {
    grid-row: 4 / 6;
    grid-column: 3 / 4;
    align-self: end;
    justify-self: end;
    height: 170px;
}

.privileged-info {
    border-radius: 3px;
    font-size: var(--font-base);
    padding: 12px 17px;
    color: #000;
    border: none;
    text-decoration: none;
    text-align: center;
    background-color: #f9c6a7;
}

.filter_list {
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    margin: -7.5px;
    justify-content: flex-start;
}

.filter_list-item {
    padding: 7.5px;
}

.horizontal_item {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
}

.horizontal_item-button_group {
    margin: -10px -20px;
}

.horizontal_item-button_group .button {
    margin: 10px 20px;
}

.horizontal_item-offset {
    margin-right: 20px;
}

.horizontal_item-centered {
    justify-content: center;
}

.divider_list {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, 280px);
    row-gap: 20px;
}

.divider_list-flex {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    margin: -10px 0;
    width: 100%;
}

.divider_list-flex>.divider_list-item {
    margin: 10px 0;
    flex: 0 0 auto;
    min-width: 180px;
}

.divider_list-flex.compact>.divider_list-item {
    margin: 0;
    min-width: unset;
}

.divider_list-flex.compact .image_info-image-sub_header {
    width: 1.625rem;
    height: 1.625rem;
}

.divider_list-item {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border-left: 1px solid var(--divider-color-1);
    padding: 0 15px;
    line-height: 1.47;
}

.divider_list-item-first {
    border-left: 1px solid transparent;
    padding-left: 0;
}

.divider_list-item-result {
    font-size: 13px;
}

.divider_list-item-date {
    font-size: var(--font-xsmall);
    color: var(--color-gray);
}

.divider-separated-list > *:not(:first-child) {
    border-left: 1px solid var(--divider-color-3);
    padding-left: 5px;
    margin-left: 5px;
}

.explanation_table-description {
    white-space: pre-wrap;
}

.explanation_table-solution {
    white-space: pre-wrap;
}

.card {
    background: var(--containers-background);
    margin: 9px 0;
    padding: 1px 16px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    box-shadow: 0 1px 20px 0 rgba(0, 0, 0, 0.08);
    border-radius: 3px;
}

.card>* {
    margin: 15px 0;
}

.result_header {
    font-size: var(--font-small);
}

.result_header-box {
    display: flex;
    flex-direction: column;
    min-height: 40px;
}

a.result_header-link {
    text-decoration: none;
}

a.result_header-link:hover .divider_list-item-headline {
    text-decoration: underline;
}

.result_progress {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    background: var(--containers-background);
    width: 100%;
}

.result_progress-border {
    border: 1px solid #cecece;
    padding: 9px 13px;
    border-radius: 22px;
}

.result_progress-value {
    position: absolute;
    text-align: left;
    left: 100%;
    font-size: var(--font-xxsmall);
    color: var(--bright-text-color);
    font-weight: bold;
    z-index: 9;
}

.result_progress-value-large {
    font-size: var(--font-base);
}

.is-result_progress-value-small {
    text-align: left;
}

.result_progress-personality {
    margin-bottom: 16px;
}

.result_progress-slider {
    appearance: none;
    width: 100%;
    /* TODO fix color */
    background-image: linear-gradient(to left, #52bb50, var(--color-warning), var(--color-error));
    border-radius: 9.5px;
    height: 19px;
    display: flex;
    flex-direction: row;
    align-items: center;
    position: relative;
}

.result_progress-slider-candidates {
    margin: 10px 0;
}

.result_progress-slider-personality {
    background-image: linear-gradient(to left, #f4965e, #9c66a4);
}

.result_progress-slider-text {
    position: absolute;
    font-size: var(--font-xxsmall);
    letter-spacing: 1.1px;
    color: var(--bright-text-color);
    text-transform: uppercase;
    font-weight: 600;
}

.result_progress-slider-text-right {
    right: 10px;
}

.result_progress-slider-text-left {
    left: 10px;
}

.result_progress-slider-marker {
    height: 152%;
    margin-left: 10%;
    filter: var(--progress-slider-marker-filter);
}

.result_progress-slider-marker-large {
    height: 172%;
}

.result_progress-slider-large {
    border-radius: 15.5px;
    height: 24px;
}

.result_progress-uncompleted .result_progress-slider {
    background: var(--containers-background-contrast);
    width: 100%;
}

.result_progress-uncompleted-status {
    background-color: var(--color-success);
    width: 10px;
    height: 10px;
    border-radius: 100%;
    position: absolute;
    left: 5px;
    z-index: 2;
}

.result_progress-uncompleted .result_progress-value {
    text-align: left;
    right: auto;
    left: 20px;
    color: var(--text-color);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.result_progress-completed .result_progress-slider {
    width: 100%;
}

.result_progress-completed-status {
    background-color: var(--color-success);
    width: 10px;
    height: 10px;
    border-radius: 100%;
    position: absolute;
    left: 5px;
}

.result_progress-completed .result_progress-value {
    text-align: left;
    right: auto;
    left: 20px;
    color: #ffffff;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.short_info {
    width: 100%;
    padding: 19px 12% 19px 30px;
    background-color: var(--containers-background-contrast);
    font-weight: 300;
    font-size: var(--font-base);
    border-left: 7px solid var(--color-purple);
    border-radius: 3px;
    line-height: 1.6;
}

.is-select-information {
    position: relative;
}

.is-select-information.height-restricted {
    overflow: hidden;
}

.is-select-information .fadeout {
    display: flex;
    justify-content: center;
    align-items: end;
    position: absolute;
    bottom: 0px;
    height: 50px;
    width: calc(88% - 30px);
}
.is-select-information.height-restricted .fadeout {
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(243,243,249,0.75) 25%, rgba(243,243,249,1) 50%);
}

.is-select-information .fadeout .show-more-link {
    margin-bottom: 1px;
}

.short_info.has_date {
    padding-bottom: 30px;
}

.plagiarism-warning {
    color: var(--color-warning);
}

.plagiarism-warning-high {
    color: var(--color-error);
}

.plagiarism-warning-confirmed {
    color: var(--color-error);
}

.plagiarism-warning-cleared {
    color: #cecece;
}

@media screen and (max-width: 1450px) {
    .report_grid-filler {
        display: none;
    }
}

.report_grid-full-flex {
    display: flex;
    flex-direction: row;
    margin: 0;
    flex-wrap: wrap;
}

.report_grid-full-flex-item {
    margin: 15px;
}

.report_grid-full-flex-summary {
    flex: 1 1 300px;
    padding-bottom: 10px;
}

.report_grid-skill {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    margin: -15px -30px;
}

.report_grid-skill-stats {
    flex-grow: 1;
    flex-direction: row;
    justify-content: space-around;
}

.report_grid-skill-item {
    padding: 15px 30px;
    height: 100%;
}

.report_grid-skill-item-border {
    padding: 5px 30px 5px 0;
    border-left: 1px solid var(--divider-color-1);
}

.report_grid-skill-item-border-content {
    padding-left: 30px;
    height: 100%;
}

.report_grid-full-flex-skill {
    flex: 3 1 700px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap-reverse;
    align-items: center;
    padding: 40px 20px;
}

.report_grid-skill-info {
    flex: 0 3 450px;
    height: 100%;
    /*padding: 20px 0;*/
}

.report_grid-skill-graphic {
    flex: 0 1 370px;
    height: auto;
}

.report_grid-skill-graphic-container {
    /*margin: 0 23px 0 40px;*/
    margin: 0;
}

.report_grid-skill-info-text {
    font-size: var(--font-large);
    line-height: 1.53;
    color: var(--text-color);
    margin-top: 0;
    font-weight: 300;
    padding-top: 7px;
}

@media screen and (max-width: 720px) {
    .report_grid-skill {
        justify-content: center;
    }

    .report_grid-skill-info {
        flex-grow: 1;
    }
}

.checkbox-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 200px);
    row-gap: 8px;
}

.programming_language-list {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, 210px);
    row-gap: 20px;
}

.programming_language-logo {
    font-size: 64px;
    display: flex;
    align-items: center;
}

a.programming_language-link:hover {
    text-decoration: none;
}

a.programming_language-link:hover .programming_language-name {
    text-decoration: underline;
}

.programming_language-name {
    margin-left: 10px;
    font-size: var(--font-base);
    font-weight: 500;
}

.submission_table {
    margin-top: 22px;
}

.submission_download_edit .download_zip_archive {
    margin-right: 10px;
}

.report_grid-full .input_group-problems {
    width: 50%;
    margin-top: 20px;
}

.files_submitted {
    display: flex;
    align-items: center;
}

.file_source-content {
    padding: 5px 0;
}

.file_source-content-test {
    display: flex;
    flex-direction: column;
}

.file_source-content-file {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.file_source-text {
    font-size: var(--font-large);
}

.test_file-container {
    border-bottom: 1px solid var(--divider-color-1);
    padding: 20px 0;
}

.test_file-container:last-child {
    border-bottom: none;
}

.horizontal-fullwidth_wrapper {
    max-width: 100%;
    width: 100%;
    overflow: auto;
    overflow-x: auto;
}

.horizontal_link_list-fullwidth_wrapper {
    max-width: 100%;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
}

.horizontal_link_list {
    display: flex;
    align-items: center;
}

.horizontal_link_list-text {
    margin-right: 10px;
    font-size: var(--font-large);
}

.horizontal_link_list-link {
    margin-right: 5px;
    padding: 0 5px;
    font-size: var(--font-large);
    border-right: 1px solid var(--divider-color-1);
}

.horizontal_link_list-link:last-child {
    border-right: none;
}

.detailed_feedback {
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 30px;
    /* border-bottom: none; */
}

.detailed_feedback h3 {
    font-size: var(--font-large);
    margin-bottom: 15px;
}

.detailed_feedback .form-control {
    width: 30%;
    margin-bottom: 10px;
}

.detailed_feedback .arrow {
    position: absolute;
    width: 0;
    height: 40px;
    margin-left: 150px;
    color: #ffffff;
}

.detailed_feedback .arrow:before {
    content: "";
    position: absolute;
    right: 100%;
    top: -15px;
    width: 0;
    height: 0;
    border-top: 40px solid transparent;
    border-right: 40px solid #fff;
    border-bottom: 40px solid transparent;
    transform: rotate(-90deg);
}

.detailed_feedback-output {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-top: none;
    background: var(--blockquote-background);
    padding: 30px;
}

.detailed_feedback-output h3 {
    font-size: var(--font-large);
    margin: 20px 0 15px;
}

.detailed_feedback-output .input_group-problems {
    width: 100%;
}

.detailed_feedback-output .problem-input {
    background: var(--blockquote-background);
}

.summary_list {
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.summary_list-item {
    margin: 8px 0;
    color: var(--color-gray);
    font-size: var(--font-base);
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.summary_list-item-light {
    width: 18px;
    height: 18px;
    background-color: var(--color-light-gray);
    margin-right: 12px;
    border-radius: 100%;
}

.summary_list-item.is-active {
    color: var(--text-color);
}

.speedometer {
    position: relative;
    height: 100%;
}

.speedometer-small .speedometer-svg,
.speedometer-small {
    height: 130px;
    width: 237px;
    padding: 0;
}

.speedometer-small .speedometer-text {
    top: 10px;
}

.speedometer-small .speedometer-text.speedometer-header {
    top: 80px;
}

.speedometer-svg {
    display: block;
    height: 100%;
}

.speedometer-text {
    position: absolute;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    top: 30px;
    left: 0;
    right: 0;
    bottom: 0;
    font-size: var(--font-4xlarge);
    font-weight: 600;
    letter-spacing: -1px;
    color: var(--text-color);
}

.speedometer-header {
    top: 110px;
    font-size: var(--font-xlarge);
    font-weight: 400;
}

.speedometer-fill {
    --initialStroke: 0;
    stroke-opacity: 0;
    stroke-dasharray: var(--initialStroke);
    stroke-dashoffset: var(--initialStroke);
    stroke: url("#linear");
    fill: none;
    stroke-linecap: round;
    stroke-miterlimit: 10;
    stroke-width: 24px;
}

.speedometer-background {
    fill: none;
    stroke: var(--speedometer-background);
    stroke-linecap: round;
    stroke-miterlimit: 10;
    stroke-width: 24px;
}

.difficulty_number {
    font-size: var(--font-xsmall);
    letter-spacing: -0.5;
    padding: 3px 8px;
    background-color: var(--base-chip-color);
    border-radius: 11.5px;
    color: var(--bright-text-color);
    font-weight: 600;
}

.difficulty_number-problems_table {
    margin-right: 9px;
}

.difficulty_number-problem_view {
	min-width: 2.5em;
	height: 2.5em;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0.5em;
	border-radius: 6px;
}

.difficulty_easy {
    background: var(--color-easy);
}

.difficulty_medium {
    background: var(--color-medium);
    color: var(--table-odd-background);
}

.difficulty_hard {
    background: var(--color-hard);
}

.fa-chart-column {
    color: var(--button-inverted-highlight);
    font-size: var(--font-large);
}

.tests-headline {
    margin-bottom: -6px;
}

.candidate-remove {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
}

.candidate-remove-link {
    color: #ec4f31;
}

.icon_link {
    color: var(--text-color);
    margin: 8px;
}

.icon_link-container {
    margin: -8px;
}

.icon_link-remove {
    color: #ec4f31;
}

.tests-information_grid {
    flex: 1 0 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr) 4fr;
    gap: 15px;
    margin-top: 24px;
}

.tests-information_grid-item {
    display: flex;
    flex-direction: column;
    line-height: 1.47;
}

.tests-result {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    margin: -7.5px;
    width: 100%;
}

.tests-result>* {
    margin: 7.5px;
}

.info_label {
    font-size: var(--font-xsmall);
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--color-gray);
    text-transform: uppercase;
}

.fill-flex {
    flex: 1 0 200px;
}

.static_link:hover {
    text-decoration: none;
}

.important_text {
    font-size: 30px;
    color: var(--text-color);
}

.compact .important_text {
    font-size: 20px;
}

.book-page {
    border-radius: 5px;
    box-shadow: 0 1px 20px 0 rgba(0, 0, 0, 0.08);
    background-color: var(--containers-background);
    padding: 27px;
    min-height: 100%;
    position: relative;
}

.book-page-fixed_width {
    max-width: 700px;
    margin: 0 auto;
}

.book-page-static {
    background-color: transparent;
    box-shadow: none;
    padding: 0;
    position: relative;
}

@media screen and (min-width: 465px) {
    .book-page-container {
        flex: 1 0 400px;
    }
}

@media screen and (max-width: 500px) {
    .book-page {
        flex: 1 0 250px;
    }

    .login-kattis-password {
        padding: 20px 0;
    }
}

.book-container {
    position: relative;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    flex: 1;
    gap: 25px
}

.book-page-heading {
    text-align: center;
    margin-top: 10px;
    font-family: "Merriweather", serif;
    font-weight: 500;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--divider-color-1);
}

.book-page-paragraph {
    margin: 0 0 25px;
    line-height: 28px;
    font-family: "Merriweather", serif;
    font-weight: 300;
    font-size: var(--font-small);
}

.book-bookmark {
    cursor: pointer;
    z-index: 9;
}

.book-bookmark-text {
    background-color: var(--bookmark-background);
    padding: 20px 10px;
    position: relative;
    writing-mode: vertical-lr;
    transform: scale(-1);
    color: var(--text-color);
    text-transform: uppercase;
    font-size: var(--font-xsmall);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.book-bookmark-text-subtext {
    color: #76767b;
    font-weight: 500;
}

.book-bookmark-text-icon {
    padding-top: 10px;
    color: #76767b;
}

.book-close {
    position: absolute;
    top: 18px;
    right: 18px;
    cursor: pointer;
    font-size: var(--font-xsmall);
    white-space: nowrap;
}

.book-close-tabs {
    width: 40px;
    padding-left: 5px;
    cursor: pointer;
    font-size: var(--font-xsmall);
    white-space: nowrap;
}

.book-close-icon {
    margin-right: 2px;
    font-size: var(--font-xxsmall);
}

.attribute_list-book {
    margin: 40px 0 5px;
}

.attribute_list-item {
    width: 100%;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    border-top: 1px solid var(--divider-color-1);
    padding: 20px 0;
}

.metadata_list-item {
    width: 100%;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    border-top: 1px solid var(--divider-color-1);
    padding: 20px 0;
}

.metadata_list-item:first-child {
    border-top: none;
}

.metadata_list-label {
    font-size: var(--font-small);
    font-weight: 500;
    letter-spacing: 1px;
}

.metadata_list-downloads {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 22px;
}

.problem_input {
    border-radius: 5px;
    border: solid 1px var(--divider-color-1);
    background-color: var(--containers-background-contrast);
    padding: 14px 13px;
    font-family: Courier, monospace;
    font-variant-ligatures: none;
    overflow: auto;
    overflow-wrap: break-word;
    max-width: 900px;
    display: flex;
    white-space: pre;
}

.problem_input .copy-to-clipboard {
    position: sticky;
    right: 0;
    margin: -6px 0 0 auto;
}

.select2-container .title {
    vertical-align: middle;
}

.select2-container .country-flag,
.select2-container .subdivision-flag,
.select2-container .affiliation-logo {
    overflow: hidden;
    text-overflow: ellipsis;
}

.select2-container .country-flag img,
.select2-container .subdivision-flag img,
.select2-container .affiliation-logo img {
    margin-right: 5px;
    vertical-align: middle;
}

.select2-container .country-flag img,
.select2-container .subdivision-flag img {
    max-width: 20px;
    max-height: 20px;
    border-radius: 50%;
}

.select2-container .country-flag img,
.select2-container .affiliation-logo img {
    max-width: 20px;
    max-height: 20px;
}

.country-flag img,
.subdivision-flag img {
    max-width: 20px;
    max-height: 20px;
    border-radius: 50%;
    border: 1px rgb(137, 137, 146) solid;
}

.affiliation-logo img {
    max-width: 20px;
    max-height: 20px;
    border-radius: 0;
    border: none;
}

/***** Tab navigation *****/

.tab-nav {
    display: none; /* mobile-first approach */
    gap: 20px;
    flex-wrap: nowrap;
    overflow-x: visible;
    border-bottom: 1px solid var(--divider-color-1);
}

.problem-view-tab-nav {
    overflow-x: auto;
    width: calc(100% - 40px);
    border-bottom: none;
    /* Hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.problem-view-tab-nav::-webkit-scrollbar { /* WebKit hide scrollbar */
    display: none;
}

.problem-view-tab-nav-container {
    align-items: baseline;
    border-bottom: 1px solid var(--divider-color-1);
}

.tab-nav-item {
    white-space: nowrap;
    padding-bottom: 10px;
    font-weight: bold;
    position: relative;
}

.tab-nav-item.has-icon {
    margin-right: 16px;
}

.tab-nav-item.has-icon i {
    position: absolute;
    right: -16px;
    top: 3px
}

.tab-nav-item.active {
    border-bottom: 5px solid #f4965e;
}

.tab-nav-item.active,
.tab-nav-item.active a {
    color: var(--text-color);
}

.tab-nav-item.tab-nav-dropdown {
    position: relative;
    cursor: pointer;
    z-index: 100;
    transition: border 0.2s ease;
}

.tab-nav-item.tab-nav-dropdown .dropdown-menu {
    opacity: 0;
    position: absolute;
    top: 34px;
    background-color: var(--containers-background-shadowed);
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);
    min-width: 200px;
    transition: all .5s ease;
    transform: scaleY(0);
    transform-origin: left top;
}

.tab-nav-item.tab-nav-dropdown .dropdown-menu.dropdown-menu-right {
    right: 0;
}

.tab-nav-item.tab-nav-dropdown.open {
    border-bottom: 5px solid #f4965e;
}

.tab-nav-item.tab-nav-dropdown.open .dropdown-menu {
    display: block;
    opacity: 1;
    transform: scaleY(1);
}

.tab-nav-item.tab-nav-dropdown .dropdown-menu .dropdown-item {
    display: block;
    position: relative;
    padding: 15px 20px;
    border-bottom: 1px solid var(--divider-color-1);
    font-size: small;
    font-weight: normal;
    color:var(--text-color);
}

.tab-nav-item.tab-nav-dropdown .dropdown-menu .dropdown-item.has-icon-right {
    padding-right: 40px;
}

.tab-nav-item.tab-nav-dropdown .dropdown-menu .dropdown-item.has-icon-right i {
    position: absolute;
    right: 16px;
    top: 15px
}

.tab-nav-item.tab-nav-dropdown .dropdown-menu .dropdown-item.active {
    background-color: var(--containers-background-shadowed-contrast);
}

.tab-nav-item.tab-nav-dropdown .dropdown-menu .dropdown-item:hover {
    background-color: var(--containers-background-shadowed-contrast);
    text-decoration: none;
}

.tab-nav-item.tab-nav-dropdown .dropdown-menu .dropdown-item:last-child {
    border-bottom: none;
}

.tab-nav-item.tab-nav-js {
    cursor: pointer;
}

@media screen and (min-width: 770px) {
    .tab-nav {
        display: flex;
    }
}

/***** Table column adjustments *****/

/* Commentary page */

#table-messages td[data-col="time"i] {
    vertical-align: top;
    max-width: 150px;
    width: 150px;
}

#table-messages td[data-col="message"i] {
    vertical-align: top;
    min-width: 250px;
    max-width: 300px;
}

#table-messages td[data-col="problems"i] {
    vertical-align: top;
    min-width: 100px;
}

#table-messages td[data-col="teams"i] {
    vertical-align: top;
    min-width: 100px;
}


/* Admin global users */

#table-globalusers td[data-col="user"i] {
    min-width: 180px;
}

/* Admin new users */

#table-newusers td[data-col="user"i] {
    min-width: 170px;
    word-break: keep-all;
}

#table-newusers td[data-col="email"i],
#table-newusers td[data-col="country"i],
#table-newusers td[data-col="affiliation"i] {
    word-break: keep-all;
}

#table-newusers td[data-col="membersince"i] {
    min-width: 90px;
}

#table-newusers td[data-col="country"i] {
    min-width: 130px;
}

#table-newusers td[data-col="affiliation"i] {
    min-width: 220px;
}

#table-newusers td[data-col="score"i] {
    min-width: 100px;
    word-break: keep-all;
}

/* Job posts page */

#table-jobposts td[data-col="company_name"i] {
    min-width: 150px;
}

#table-jobposts td[data-col="company_name"i],
#table-jobposts td[data-col="job_title"i],
#table-jobposts td[data-col="job_url"i] {
    min-width: 150px;
}

#table-jobposts td[data-col="visible"i] {
    text-align: center;
}

#table-jobposts td[data-col="hostnames"i] {
    min-width: 200px;
}

#table-jobstats td[data-col="job_ad"i]{
    min-width: 200px;
}

/* Contests page */

#table-contests-ongoing td[data-col="name"i],
#table-contests-upcoming td[data-col="name"i],
#table-contests-past td[data-col="name"i],
#table-contests-unpublished td[data-col="name"i] {
    min-width: 200px;
}

#table-contests-ongoing td[data-col="length"i],
#table-contests-upcoming td[data-col="length"i],
#table-contests-past td[data-col="length"i],
#table-contests-unpublished td[data-col="length"i] {
    min-width: 110px;
}

#table-contests-ongoing td[data-col="start"i],
#table-contests-upcoming td[data-col="start"i],
#table-contests-unpublished td[data-col="start"i] {
    min-width: 110px;
}

#table-contests-past td[data-col="end"i],
#table-contests-unpublished td[data-col="end"i] {
    min-width: 110px;
}

#table-contests-ongoing td[data-col="remaining"i] {
    min-width: 110px;
}

/* Statistics page */
#table-submission-counts-judgement-problem th[data-col="stat"i] {
    min-width: 60px;
}

#table-submission-counts-lang-jugdement th[data-col="lang"i],
#table-submission-counts-lang-problem th[data-col="lang"i]
{
    min-width: 140px;
}

/* Student list page */

.students_table th.author {
    min-width: 220px;
    width: 20%;
}

.students_table th.stats {
    width: 25%;
    min-width: 140px;
    max-width: 140px;
}

.students_table th.stats a.col-title {
    max-width: 90%;
    margin-right: 4px;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/***** End: Table column adjustments *****/

.accordion-list {
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--divider-color-1);
}
.accordion-item {
    overflow: hidden;
}
.accordion-item > label {
    display: flex;
    justify-content: space-between;
    padding: 1em;
    font-weight: bold;
    cursor: pointer;
    border-top: 1px solid var(--divider-color-1);
}
.accordion-item:first-child > label {
    border-top: none;
}
.accordion-item > label em {
    display: block;
    padding-top: 5px;
    color: var(--color-light-gray);
    font-weight: normal;
}
.accordion-item > label:hover {
    background: rgba(243, 243, 249, 0.3);
}
.accordion-item > label::after {
    font-family: "Font Awesome 5 Free", sans-serif;
    content: "\f107";
    width: 1em;
    height: 1em;
    text-align: center;
    transition: all .35s;
    margin-top: auto;
    margin-bottom: auto;
}
.accordion-item .accordion-content {
    max-height: 0;
    padding: 0 1em;
    transition: all .35s;
    overflow: hidden;
}
.accordion-item > input:checked + label {
    border-bottom: 1px solid var(--divider-color-1);
    background: rgba(243, 243, 249, 0.3);
}
.accordion-item > input:checked + label::after {
    transform: rotate(-180deg);
}
.accordion-item input:checked ~ .accordion-content {
    max-height: 100vh;
    padding: 1em;
}

.confirm {
    position: relative;
    width: 660px;
    max-width: 100%;
    background: var(--containers-background);
}

.confirm-backdrop {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999999;
    padding: 20px;
}

.confirm-content {
    padding: 26px 22px;
}

.confirm-title {
    font-size: var(--font-xxxlarge);
    font-weight: bold;
}

.confirm-message {
    margin-top: 22px;
    font-size: var(--font-small);
    font-weight: 300;
    line-height: 1.6;
}

.upload_files_button {
    position: relative;
    cursor: pointer;
}

.upload_files_button-input {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.upload_files_button-input::-webkit-file-upload-button {
    cursor: pointer;
}

.personality {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
}

.personality-description {
    flex: 1 0 320px;
    max-width: 400px;
    margin-right: 46px;
    line-height: 1.67;
}

.personality-result {
    padding: 24px 16px 23px 19px;
    border-radius: 3px;
    background-color: var(--containers-background-contrast);
    flex: 1 1 400px;
    max-width: 1000px;
}

.personality-result-list {
    font-weight: 300;
}

.personality-result-content {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.personality-result-content-text {
    flex: 1 1 auto;
}

.personality-result-content-button {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    padding-top: 20px;
}

.personality-collapse {
    transition: max-height ease-out 0.5s;
    max-height: 0;
    overflow: clip;
}

.logout-container {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
}

/* Multi-choice tests (intelligence and personality) */

.start-test {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    width: 705px;
    padding: 32px 32px 0 30px;
    border-radius: 5px;
}

.start-test-content {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
}

.start-test-content p {
    max-width: 477px;
    word-break: break-word;
}

.start-test-highlight {
    display: block;
    padding-top: 29px;
}

.start-test-buttons {
    padding: 30px 0;
    grid-row: 2 / 3;
}

.start-kattis-logo {
    grid-row: 1 / 3;
    justify-items: end;
    align-self: end;
}

.start-kattis-logo img {
    display: block;
    max-width: 197px;
    max-height: 173px;
}

@media (max-width: 660px) {
    .start-test {
        grid-template-rows: auto;
        width: 336px;
    }

    .start-kattis-logo {
        grid-row: 3 / 4;
        justify-self: center;
    }

    .start-test-buttons {
        padding-top: 0;
    }

    .start-test-buttons .button {
        width: 100%;
        margin: 20px 0 0;
    }
}

/* Intelligence tests */

.intelligence_test {
    width: 100%;
    max-width: 705px;
    padding: 0 25px;
    background-color: var(--containers-background);
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    box-shadow: 0 1px 20px 0 rgba(0, 0, 0, 0.08);
    border-radius: 5px;
}

.intelligence_test-header {
    padding: 31px 24px 10px 0;
    border-bottom: 1px solid var(--divider-color-1);
}

.intelligence_test-pattern {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 145px));
    justify-content: center;
    column-gap: 20px;
    row-gap: 25px;
    padding: 20px 0;
}

.intelligence_row {
    grid-template-columns: repeat(4, minmax(0, 145px));
}

@media (max-width: 500px) {
    .intelligence_test-buttons-answers {
        text-align: center;
    }
}

.intelligence_test-pattern-image {
    border-radius: 5px;
    background-color: var(--containers-background);
    border: 3px solid transparent;
    display: flex;
    justify-content: center;
    align-items: center;
}

.intelligence_test-pattern-selected_answer {
    border: 3px solid var(--containers-background-contrast);
}

.intelligence_test-pattern-selected_answer.is-no_answer {
    background-color: var(--bubble-background);
    border: 3px solid var(--bubble-backgrounde);
    pointer-events: none;
    color: var(--bubble-background);
}

.intelligence_test-pattern-selected_answer.is-no_answer::after {
    content: "?";
    color: var(--bright-text-color);
    font-size: 60px;
    font-weight: 500;
    position: absolute;
}

.intelligence_test-pattern-selected_answer.is-no_answer img {
    display: none;
}

.intelligence_test-pattern-image img {
    width: 100%;
    filter: var(--intelligence-test-filter);
}

.intelligence_test-answers {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 145px));
    column-gap: 20px;
    row-gap: 25px;
    justify-content: center;
    padding: 23px 0;
    border-top: 1px solid var(--divider-color-1);
}

.intelligence_test-feedback {
    text-align: center;
    padding-bottom: 30px;
}

.intelligence_test-feedback-title {
    font-weight: bold;
    font-size: var(--font-xlarge);
    margin: 0;
    padding-top: 18px;
}

.intelligence-answer {
    border-radius: 5px;
    background-color: var(--containers-background-contrast);
    border: solid 3px transparent;
}

.intelligence-answer:hover {
    border: solid 3px rgba(138, 144, 183, 0.25);
}

.intelligence-answer.intelligence-answer-selected {
    border: solid 3px var(--color-purple);
}

.intelligence-answer.intelligence-answer-selected .fa-check {
    visibility: visible;
}

.intelligence_test-answers img {
    width: 100%;
    filter: var(--intelligence-test-filter);
}

.intelligence_test-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 28px 0;
    border-top: 1px solid var(--divider-color-1);
}

.intelligence_test-buttons .fa-check {
    visibility: hidden;
    padding-left: 10px;
}

@media (max-width: 615px) {
    .intelligence_test-buttons {
        justify-content: center;
    }

    .intelligence_test-buttons button {
        margin-top: 10px;
    }
}

.intelligence_test-buttons-answers .button {
    border: 2px solid transparent;
    background-color: transparent;
    color: #000;
}

.intelligence_test-buttons-answers .button:focus,
.intelligence_test-answer-btn .button:hover,
.intelligence_test-buttons-answers .button.intelligence-answer-selected {
    border: 2px solid var(--color-purple);
    border-radius: 5px;
}

.intelligence_test-buttons-navigation {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    align-items: baseline;
}

.about-the-result {
    margin-top: 30px;
    margin-bottom: 30px;
}

.about-the-result h2,
.about-the-result p {
    max-width: 687px;
    line-height: 25px;
}

@media screen and (max-width: 375px) {
    .intelligence_test {
        padding: 0 10px;
    }

    .intelligence_test-pattern {
        column-gap: 5px;
    }

    .intelligence_test-answers {
        column-gap: 5px;
        row-gap: 5px;
        border-bottom: none;
    }

    .intelligence_test-buttons {
        flex-direction: column;
        padding: 0 0 20px;
    }

    .intelligence_test-buttons-answers {
        width: 100%;
        border-bottom: 1px solid var(--divider-color-1);
        padding: 0 0 20px;
        display: flex;
        justify-content: space-around;
    }

    .intelligence_test-buttons-answers .button {
        font-size: var(--font-xsmall);
    }

    .intelligence_test-buttons>.button-primary {
        margin-top: 20px;
    }

    .intelligence_test-buttons-navigation {
        padding-top: 20px;
        border-top: 1px solid var(--divider-color-1);
    }
}

.intelligence-summary-spent,
.intelligence-summary-task {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: var(--font-xlarge);
    align-self: center;
    height: 175px;
}

.intelligence-summary-time {
    font-size: var(--font-xxlarge);
    font-weight: bold;
    margin-top: 5px;
}

.intelligence-result {
    padding: 29px 20px 50px 20px;
}

.intelligence-result p {
    line-height: 25px;
    max-width: 687px;
}

.intelligence-result-about {
    padding-top: 38px;
}

.personality-test {
    width: 100%;
    max-width: 705px;
    padding: 52px 25px 45px;
    align-items: center;
}

.personality-test-statement {
    font-size: var(--font-xlarge);
    text-align: center;
}

.personality-test-options {
    width: 100%;
    background: var(--containers-background-contrast);
    justify-content: space-around;
    align-items: center;
    padding: 20px;
    margin: 40px 0;
    border-radius: 5px;
    display: grid;
    grid-template-columns: 20ch repeat(5, 32px) 20ch;
}

.personality-test-options .option {
    height: 32px;
    cursor: pointer;
}

.personality-test-options .option input {
    display: none;
}

.personality-test-options .check {
    display: block;
    position: relative;
    top: 0;
    left: 0;
    height: 32px;
    width: 32px;
    background-color: var(--containers-background);
    border: 1px solid var(--color-light-gray);
    border-radius: 50%;
}

.personality-test-options .option input:checked~.check {
    background-color: var(--containers-background);
    border: 1px solid var(--color-purple);
}

.personality-test-options .option input:checked~.check:after {
    display: block;
    content: "";
    position: relative;
    top: 4px;
    left: 4px;
    height: 22px;
    width: 22px;
    border-radius: 50%;
    background: var(--color-purple);
}

.personality-test-options span {
    font-weight: 500;
}

.personality-test-options span:last-child {
    text-align: right;
}

@media screen and (max-width: 720px) {
    .personality-test {
        padding: 30px 15px;
    }

    .personality-test-options {
        height: 128px;
        padding: 20px 5px;
        margin-bottom: 15px;
        grid-template-columns: repeat(5, 32px);
        grid-template-rows: 32px 32px;
        row-gap: 20px;
        justify-content: space-evenly;
        justify-items: center;
        grid-template-areas:
            "leftmost . . . rightmost"
            "o1 o2 o3 o4 o5";
    }

    .personality-test-options span {
        font-size: var(--font-xsmall);
        display: flex;
        justify-items: center;
        text-align: center;
    }

    .personality-test-options span:first-child {
        grid-area: leftmost;
    }

    .personality-test-options span:last-child {
        grid-area: rightmost;
        text-align: center;
    }

    .personality-test-options .option {
        grid-row-start: 2;
    }
}

.structured_list {
    counter-reset: item;
    margin-left: -0.5em;
}

.structured_list-item {
    display: blocK;
}

.structured_list-item::before {
    content: counter(item) ". ";
    counter-increment: item;
    width: 2em;
    display: inline-block;
    margin-left: -2em;
}

a.anchor {
    display: block;
    position: relative;
    top: calc(var(--main-padding-y) * -1);
    visibility: hidden;
}

#contest_time {
    flex: 1 1 0;
}

ul.problem-edit-team-member-list,
ul.problem-edit-ip-list {
    list-style-type: none;
    padding-left: 0;
    min-width: 300px;
}

ul.problem-edit-team-member-list li,
ul.problem-edit-ip-list li {
    margin-bottom: 7px;
}

.submission-filter-dropdown + .select2-container--default {
    max-width: 100%;
    min-width: 100%;
}

@media screen and (min-width: 770px) {
    .submission-filter-dropdown + .select2-container--default {
        max-width: 200px;
        min-width: 200px;
    }
}

.access-code-hidden {
    font-size: 1.5em;
	white-space: nowrap;
	user-select: none;
}

.access-code-visible {
	white-space: nowrap;
}

.solution-downloads {
    display: flex;
    width: 100%;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
