/* default */
:root {
    --base: 16px;
    --papers-columns: 1;
    /* --build-history-width: 0; */
    --bg-color: #F3F3F5;
    --secondary-bt-bg-hover: #CFD2CE;
    --font-color: #3F4B3B;
    --bg-warn: #FFEDC6;
    --font-warn: #F9C00C;
    --bg-success: #D4E8C1;
    --font-success: #4F980A;
}
* {
    border: none;
    margin: 0;
    padding: 0;
    color: var(--font-color);
    user-select: none;
    -ms-user-select: none;
    -moz-user-select: none;
    -ms-touch-select: none;
    -webkit-user-select: none;
}
html {
    font-size: var(--base);
    overflow-x: hidden;
    overflow-y: auto;
}
body {
    width: calc(100% - var(--scrollbar-width, 0px));
    background-color: var(--bg-color);
}
/* info */
.info {
    margin: 0.5rem;
    padding: 0.5rem;
    border-radius: 0.25rem;
    width: calc(100% - 2rem);
    background-color: #FFC952;
    display: none;
    /* display: flex; */
    justify-content: center;
    align-items: center;
    position: sticky;
    left: 0;
    top: 0;
}
.info span {
    font-weight: bold;
    text-align: justify;
    text-wrap: wrap;
}
.popInfo {
    padding: 2rem;
    border-radius: 1rem;
    transition: visibility 0.3s ease;
    position: fixed;
    left: 50%;
    top: 0;
    transform: translate(-50%, calc(-100%));
    z-index: 800;
}
.popInfo.active {
    transform: translate(-50%, 2rem);
}
.popInfo span {
    font-size: 1.2rem;
}
.popInfo[data-info="success"] {
    background-color: var(--bg-success);
}
.popInfo[data-info="success"] span {
    color: var(--font-success);
}
.popInfo[data-info="warn"] {
    background-color: var(--bg-warn);
}
.popInfo[data-info="warn"] span {
    color: var(--font-warn);
}
/* nav */
nav {
    padding: 1rem 2rem;
    width: calc(100% - 4rem);
    height: 4rem;
    background-color: var(--bg-color);
    z-index: 100;
    display: flex;
    flex-direction: row;
    align-items: center;
    column-gap: 2rem;
    position: sticky;
    top: 0;
    left: 0;
}
.nav-logo {
    font-size: 1.5rem;
    font-weight: bold;
}
.subject {
    width: 6rem;
    height: 3.5rem;
    border-radius: 1.75rem;
    position: relative;
}
.subject-select {
    border-radius: 1.75rem;
    background-color: var(--secondary-bt-bg-hover);
    overflow: hidden;
    display: none;
    position: absolute;
    top: 0;
    left: 0;
}
.subject:hover .subject-select {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.subject-option {
    padding: 1rem;
    height: 1.5rem;
    width: 4rem;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}
.subject-option.active {
    border-radius: 1.75rem;
    background-color: white;
}
.subject-option:hover {
    background-color: white;
}
.subject-option span {
    font-size: 1.25rem;
}
.nav-items-container {
    flex-grow: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
    column-gap: 0;
}
.nav-items {
    padding: 0.25rem;
    border-radius: 2.25rem;
    background-color: #CFD2CE;
    display: flex;
    flex-direction: row;
    align-items: center;
}
.nav-item {
    padding: 0.25rem 1rem;
    border-radius: 1.75rem;
    height: 2.5rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.nav-item.active {
    background-color: white;
    cursor: default;
}
.nav-item span {
    font-size: 1.25rem;
}
.user-history {
    display: none;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    flex-grow: 0;
    height: 3.5rem;
    gap: 2rem;
}
html[data-screen="small"] .user-history {
    display: flex;
}
.user-build-history {
    padding: 1rem;
    height: 1.5rem;
    width: 6rem;
    border-radius: 1.75rem;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    background-color: white;
}
.user-build-history span {
    font-size: 1.25rem;
}
.user-toggle-bt span {
    font-size: 1.25rem;
}
.nickname {
    cursor: pointer;
}
/* container */
.container {
    width: calc(100% - 4rem - 32rem);
    padding: 0 2rem 2rem 2rem;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    position: relative;
}
html[data-screen="small"] .container{
    width: calc(100% - 4rem);
}
.container.active {
    display: flex;
}
.container-filter {
    width: 100%;
    padding: 1rem 0;
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: start;
    gap: 0.5rem;
    position: sticky;
    top: 6rem;
    left: 0;
}
.paper-years, .mock-years, .mock-types, .mock-regions, .categories-years, .categories-types, .categories-sources {
    width: 100%;
    display: flex;
    flex-direction: row;
    column-gap: 0;
    flex-wrap: wrap;
}
.paper-year, .mock-year, .mock-type, .mock-region, .categories-year, .categories-type, .categories-source {
    padding: 0.5rem 1rem;
    border-radius: 2.5rem;
    text-wrap: nowrap;
    cursor: pointer;
}
.paper-year:hover, .mock-year:hover, .mock-type:hover, .mock-region:hover, .categories-year:hover, .categories-type:hover, .categories-source:hover {
    font-weight: bold;
}
.paper-year.active, .mock-year.active, .mock-type.active, .mock-region.active, .categories-year.active, .categories-type.active, .categories-source.active {
    font-weight: bold;
    cursor: default;
}
.paper-items {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: start;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.paper-item {
    width: calc((100% - 0.5rem * (var(--papers-columns) - 1)) / var(--papers-columns) - 2rem);
    padding: 1rem;
    border-radius: 0.5rem;
    background-color: white;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    column-gap: 0.5rem;
}
.paper-item-info {
    flex-grow: 1;
}
.paper-item-info span {
    font-size: 1.25rem;
}
.paper-item-bt {
    padding: 0.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
}
.paper-item-bt:hover {
    background-color: #F3F3F5;
}
.categories-panel {
    width: 100%;
    padding-top: 0.5rem;
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: center;
    gap: 1rem;
}
.categories-title-tip span {
    display: block;
    font-size: 1.2rem;
    font-weight: bold;
}
.categories-panel-input {
    flex: 1;
    height: 1.5rem;
    padding: 1rem;
    border-radius: 0.5rem;
    font-size: 1.2rem;
}
.categories-commit {
    padding: 0.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
}
.categories-commit:hover {
    background-color: var(--secondary-bt-bg-hover);
}
.categories-commit span {
    font-size: 1.2rem;
}
.categories-items {
    width: 100%;
    flex-grow: 0;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: start;
    gap: 0.5rem;
}
.categories-item {
    width: calc(100% - 2rem);
    flex-grow: 0;
    padding: 1rem;
    border-radius: 0.5rem;
    background-color: white;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: start;
    align-items: start;
    gap: 0.5rem;
}
.categories-item-checkbox {
    width: 1.5rem;
}
.categories-item-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: start;
    gap: 0.5rem;
}
.categories-item-preview {
    width: 50rem;
    max-width: 100%;
}
.categories-item-tags {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: start;
    align-items: start;
    gap: 0.5rem;
}
.categories-item-tag-year, .categories-item-tag-type, .categories-item-tag-source, .categories-item-tag-categories {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}
.categories-item-tag-year {
    background-color: #FFDBD7;
}
.categories-item-tag-year span {
    color: #D10000;
}
.categories-item-tag-type {
    background-color: #FFF0D1;
}
.categories-item-tag-type span {
    color: #FFAE00;
}
.categories-item-tag-source {
    background-color: #D4ECF7;
}
.categories-item-tag-source span {
    color: #1E8BB3;
}
.categories-item-tag-categories {
    background-color: #D5D3E3;
}
.categories-item-tag-categories span {
    color: #575280;
}
.categories-items:not([data-year="0000"]):not([data-year="2026"]) .categories-item[data-year="2026"], .categories-items:not([data-year="0000"]):not([data-year="2025"]) .categories-item[data-year="2025"], .categories-items:not([data-year="0000"]):not([data-year="2024"]) .categories-item[data-year="2024"], .categories-items:not([data-year="0000"]):not([data-year="2023"]) .categories-item[data-year="2023"] {
    display: none;
}
.categories-items:not([data-type="anytype"]):not([data-type="singleChoice"]) .categories-item[data-type="singleChoice"], .categories-items:not([data-type="anytype"]):not([data-type="multiChoice"]) .categories-item[data-type="multiChoice"], .categories-items:not([data-type="anytype"]):not([data-type="fillInBlank"]) .categories-item[data-type="fillInBlank"], .categories-items:not([data-type="anytype"]):not([data-type="problemSolve"]) .categories-item[data-type="problemSolve"] {
    display: none;
}
.categories-items:not([data-source="anysource"]):not([data-source="paper"]) .categories-item[data-source="paper"], .categories-items:not([data-source="anysource"]):not([data-source="mock"]) .categories-item[data-source="mock"], .categories-items:not([data-source="anysource"]):not([data-source="book"]) .categories-item[data-source="book"], .categories-items:not([data-source="anysource"]):not([data-source="self"]) .categories-item[data-source="self"] {
    display: none;
}
/* build-history */
/* .build-history-mask {
    width: calc(100dvw - var(--scrollbar-width, 0px));
    height: 100dvh;
    background-color: #3F4B3B;
    opacity: 0.8;
    z-index: 500;
    display: none;
    position: fixed;
    left: 0;
    top: 0;
}
.build-history-mask.active {
    display: block;
} */
.build-history {
    /* width: calc((100dvw - var(--scrollbar-width, 0px)) * 0.6 - 4rem); */
    width: 30rem;
    height: calc(100dvh - 3rem - 6rem);
    padding: 1rem 2rem 2rem 2rem;
    background-color: #F3F3F5;
    z-index: 501;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: start;
    gap: 2rem;
    position: fixed;
    bottom: 0;
    right: 0;
}
html[data-screen="small"] .build-history {
    width: calc(100% - 4rem);
    height: calc(100dvh - 4rem);
    padding: 2rem;
    display: none;
}
html[data-screen="small"] .build-history.active {
    display: flex;
}
/* .build-history.active {
    display: flex;
} */
.build-history-panel {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: center;
    gap: 2rem;
}
.build-history-title {
    flex: 1;
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: center;
}
.build-history-title span {
    font-size: 1.5rem;
    font-weight: bold;
}
.build-history-refresh {
    padding: 0.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
}
.build-history-refresh:hover {
    background-color: var(--secondary-bt-bg-hover);
}
.build-history-close {
    padding: 0.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    display: none;
}
html[data-screen="small"] .build-history-close {
    display: block;
}
.build-history-close:hover {
    background-color: #FFEAE6;
}
.build-history-container {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: start;
    overflow-y: auto;
}
.build-history-list {
    width: 100%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: start;
    gap: 1rem;
}
.build-history-item {
    padding: 1rem;
    border-radius: 0.5rem;
    width: calc(100% - 2rem);
    background-color: white;
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: start;
    gap: 1rem;
}
.build-history-item-id span, .build-history-item-name span {
    font-size: 1.2rem;
    font-weight: bold;
}
.build-history-item-status {
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}
.build-history-item-status span {
    font-weight: bold;
}
.build-history-item-status[data-build-status="pending"] {
    background-color: var(--bg-warn);
}
.build-history-item-status[data-build-status="pending"] span {
    color: var(--font-warn);
}
.build-history-item-status[data-build-status="ready"] {
    background-color: var(--bg-success);
}
.build-history-item-status[data-build-status="ready"] span {
    color: var(--font-success);
}
.build-history-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: start;
    gap: 0.25rem;
}
.build-history-item-time span {
    color: #CFD2CE;
}
.build-history-item-download {
    padding: 0.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
}
.build-history-item-download:hover {
    background-color: #F3F3F5;
}
/* fonts */
.h1 {
    font-size: 1.5rem;
    font-weight: bold;
}