/* Font Family */
@font-face {
    font-family: "Frutiger 45 Light";
    src: url('../fonts/Frutiger_45_Light.otf') format('truetype');
}

@font-face {
    font-family: "Frutiger Bold";
    src: url('../fonts/Frutiger_bold.ttf') format('truetype');
}

:root {
    --WHITE: #FFFFFF;
    --BACKGROUND: #000011;
    --RED: #ff0000;
    --GREEN: #008000;
}

/* Common CSS */
* {
    font-family: "Frutiger 45 Light";
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
}

body {
    margin: 0;
    background-color: var(--BACKGROUND);
    color: var(--WHITE);
}

*:focus {
    outline: none !important;
}

strong,
b {
    font-family: 'Frutiger Bold';
}

h1 {
    margin: 0;
    font-size: 40px;
    font-weight: 900;
}

footer {
    text-align: center;
    padding: 10px 0;
    font-size: 12px;
    border-top: 1px solid var(--WHITE);
    background-color: var(--BACKGROUND);
    z-index: 1;
    position: relative;
}

footer p {
    margin: 0;
}

.no-results {
    text-align: center;
    font-size: 14px;
    width: 100%;
    margin: 14px;
}

table.dataTable tbody tr {
    background-color: var(--BACKGROUND);
}

form button,
.add-function-block button {
    border: 1px solid var(--WHITE);
}

button {
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 16px;
    padding: 2px 5px;
    background-color: var(--BACKGROUND);
    color: var(--WHITE);
}

button:hover {
    background-color: var(--WHITE);
    border: 1px solid var(--BACKGROUND);
    color: var(--BACKGROUND);
}

.dropdown-item {
    font-size: 16px;
    color: var(--WHITE);
}

.dropdown-item:hover {
    color: var(--WHITE);
    font-weight: bolder;
    background: var(--BACKGROUND);
}

.dropdown-menu {
    box-shadow: 1px 1px 5px rgb(230 220 220 / 50%);
    width: 100%;
    background: var(--BACKGROUND);
    color: var(--WHITE);
}

.dropdown-submenu {
    position: relative;
}

.dropdown {
    z-index: 99999;
}


.dropdown-submenu>.dropdown-menu {
    top: 0;
    left: 100%;
    margin-left: .1rem;
    margin-right: .1rem;
    display: none;
}

.dropdown-submenu:hover>.dropdown-menu {
    display: block !important;
}

.dropdown-item.active,
.dropdown-item:active {
    color: var(--WHITE);
    font-weight: bolder;
    background-color: var(--BACKGROUND);
}


.error {
    color: var(--RED);
}

.success {
    color: var(--GREEN);
}

.min-h-100 {
    min-height: 100%;
}

.flex-1 {
    flex: 1;
}

textarea {
    width: 100%;
    background: transparent;
    color: var(--WHITE);
}


.text-content {
    text-align: initial;
    text-wrap: wrap;
}

.text-content pre {
    background-color: var(--BACKGROUND);
    color: var(--WHITE);
}

#map {
    height: 100%;
    width: 100%;
}

#map.chart-portrait {
    margin: 0 auto;
    width: unset;
    max-width: 100%;
}

#map.chart-portrait canvas {
    margin: 0 auto;
}

#universe-graph {
    height: 100%;
    width: 100%;
}

.navbar {
    border-bottom: 1px solid var(--WHITE);
    padding: 5px 15px;
}

.navbar-toggler:hover {
    background-color: transparent;
}

.nav-item {
    margin-left: 1rem;
    font-size: 18px;
}

.nav-link {
    color: var(--WHITE) !important;
}

.nav-link.active {
    font-weight: bolder;
}

.container-fluid {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 50px - 64px);
}

.content-column {
    height: 100%;
    border-top: 1px solid var(--white);
}

.tile {
    border: 1px solid var(--BACKGROUND);
    text-align: center;
    padding: 20px;
    min-width: 50%;
    height: calc(100vh - 65px - 39px);
    overflow: auto;
}

.form-box button {
    height: 4.5rem;
    background-color: transparent;
    padding: 10px 20px;
}

.dataTables_wrapper .dataTables_filter {
    float: left !important;
    margin-left: 12px;
}

.dataTables_filter label {
    color: var(--WHITE);
    font-size: 16px;
}

.form-box button:hover {
    background-color: var(--WHITE);
}

table.dataTable tbody th,
table.dataTable tbody td {
    background-color: var(--BACKGROUND);
}

table.dataTable tbody th,
table.dataTable tbody td {
    padding: 5px 18px !important;
}

.dataTables_wrapper .dataTables_filter input {
    color: var(--WHITE);
}

.dataTables_info {
    display: none;
}

.reset-button {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 9999;
}

.reset-button i {
    font-size: 36px;
}

#rotate-button {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 999;
}

.popup-container {
    position: fixed;
    width: 34rem;
    left: 50%;
    top: 50%;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    font-size: 1.6rem;
    justify-content: center;
    overflow: hidden;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.3s ease, height 0.2s;
    z-index: 999;
    background-color: rgba(255, 255, 255, 0.95);
    max-height: 80vh;
}

.popup-container.active-popup {
    transform: translate(-50%, -50%) scale(1);
}

.popup-container.active-popup-large {
    transform: translate(-50%, -50%) scale(1);
    width: 80%;
    height: auto;
    left: 50%;
    top: 50%;
}

.popup-container>span {
    position: absolute;
    z-index: 1;
    top: 0;
    right: 0.8rem;
    width: 4.5rem;
    height: 4.5rem;
    background: transparent;
    font-size: 2.4rem;
    color: var(--WHITE);
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom-left-radius: 20px;
}

.form-box {
    width: 100%;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    display: none;
}

.form-box {
    transition: none;
    overflow: auto;
}

.popup-container .form-box {
    height: auto;
}

.form-box::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

.form-box::-webkit-scrollbar-track {
    background: transparent;
}

.form-box::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

.form-box::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.form-box.left {
    transform: translateX(-800px);
}

.form-box.right {
    transform: translateX(800px);
}

.form-box.active {
    transition: transform 0.18s ease;
    transform: translateX(0);
}

.form-box h2 {
    font-size: 2.4rem;
    text-align: center;
    color: var(--WHITE);
}

.form-box form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-box form .message {
    font-size: 14px;
    text-align: center;
}

.form-box form .input-box {
    position: relative;
    width: 100%;
    border-bottom: 2px solid var(--WHITE);
    padding: 1rem;
    margin-top: 15px;
}

.form-box form .input-box span {
    position: absolute;
    right: 8px;
    font-size: 2rem;
    color: var(--WHITE);
}

.form-box form .input-box input {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    padding: 0 30px 0 0px;
    font-size: 1.5rem;
    color: var(--WHITE);
    font-weight: 500;
}

.form-box form .input-box input:focus~label,
.form-box form .input-box input:valid~label {
    top: -5px;
    font-size: 1.3rem;
}

.form-box form .input-box label {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    color: var(--WHITE);
    pointer-events: none;
    font-weight: 500;
    transition: 0.2s;
}

.form-box form .select-box label {
    top: -5px;
    font-size: 1.2rem;
}

.form-box form select {
    width: 100%;
}

.form-box form .remember-forgot {
    font-size: 1.4rem;
}

.form-box .forgot-password-link {
    float: right;
}

.form-box form .remember-forgot label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--WHITE);
    user-select: none;
}

.form-box select {
    padding: 10px;
    color: var(--WHITE);
    background: transparent;
}

.form-box form .remember-forgot label input {
    accent-color: var(--WHITE);
}

.form-box form .remember-forgot a {
    color: var(--WHITE);
}

.form-box form .remember-forgot a:hover {
    text-decoration: underline;
}

.form-box form .action-link {
    font-size: 1.4rem;
    text-align: center;
    color: var(--WHITE);
}

.form-box form .action-link a {
    color: var(--WHITE);
    font-weight: 600;
}

.form-box form .action-link a:hover {
    text-decoration: underline;
}

form .reset-password-form {
    width: 320px;
}

.form-container {
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.inner-content.reset-password {
    align-items: center;
}

.form-box.reset {
    position: relative;
    display: block;
    width: 350px;
}

.checkbox-section .section-title {
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--WHITE);
}

.checkbox-section {
    padding-left: 10px;
}

.checkbox-section .checkbox-container label {
    display: inline-block;
    margin: 3px 5px 3px 0;
    padding: 4px 5px;
    background-color: var(--WHITE);
    border: 1px solid var(--WHITE);
    border-radius: 5px;
    cursor: pointer;
    font-size: 15px;
}

.table {
    color: var(--WHITE);
    font-size: 16px;
    table-layout: fixed;
}

td,
th {
    padding: 8px;
}

#table-b td {
    position: relative;
    vertical-align: middle;
}

#table-b {
    height: auto;
    margin-top: -2px;
    table-layout: fixed;
}

#table-b td .function-link {
    position: absolute;
    right: 0;
    top: 0;
    color: var(--WHITE);
    margin-bottom: -1px;
    line-height: 1;
    padding-left: 6.5px;
    padding-right: 6.5px;
}

.table-responsive {
    overflow: auto;
}

.add-function-block {
    padding: 10px;
    border-left: 1px solid var(--WHITE);
    border-top: 1px solid var(--WHITE);
    margin-top: -1px;
    background-color: var(--BACKGROUND);
    position: sticky;
    bottom: 0;
    right: 0;
    left: 0;
    text-align: center;
}

#table-b td .function-link:hover {
    color: var(--BACKGROUND);
    background-color: var(--WHITE);
}

.checkbox-section .checkbox-container input[type="checkbox"] {
    display: none;
}

.select2-selection__clear {
    padding: 0 !important;
}

.select2-container--default .select2-selection--multiple {
    background-color: transparent;
    color: var(--WHITE);
    border: none;
    border-radius: 0;
    border-bottom: 1px solid var(--WHITE);
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
    border: none;
    border-bottom: 1px solid var(--WHITE);
}

.select2-container--default .select2-selection--multiple textarea {
    color: #FFFFFF;
}

.select2-container--default .select2-results__option {
    background-color: var(--BACKGROUND);
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: var(--WHITE);
    color: var(--BACKGROUND);
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    background-color: var(--BACKGROUND);
    color: var(--WHITE);
    border: 1px solid var(--BACKGROUND);
}

.select2-container--default button {
    color: var(--BACKGROUND) !important;
    background-color: var(--WHITE) !important;
}

.select2-container--default .select2-selection__choice__display {
    color: var(--BACKGROUND) !important;
}

.function-cell {
    width: 100%;
    display: flex;
    align-items: stretch;
    position: relative;
    overflow: auto;
    margin-bottom: -1px;
    border: 1px solid var(--WHITE);
}

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

.function-cell.portrait-view {
    flex-direction: column-reverse;
}

.function-cell.portrait-view .cell-belt {
    flex-direction: row;
    align-items: center;
    border-left: 0;
    gap: 6px;
    border-bottom: 1px solid var(--WHITE);
}

.function-cell .cell-belt .like-btn-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 5px 0;
}

.function-cell.portrait-view .cell-belt .like-btn-group {
    flex-direction: row;
    margin: 0 auto 0 5px;
}

.function-cell .content-block {
    flex: 1;
    padding: 8px;
    width: 100%;
    margin: auto 0;
    overflow: auto;
}

.function-cell .cell-belt {
    border-left: 1px solid var(--WHITE);
    gap: 4px;
    padding: 3px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    min-height: 100%;
}

.function-cell .btn,
.function-cell button {
    padding: 0px;
    border: none;
    display: flex;
    color: var(--WHITE);
    background-color: transparent;
    text-decoration: none;
    justify-content: center;
}

.description-block {
    width: calc(100% - 50px);
}

.description-block .overflow-auto {
    max-height: 200px;
}

.protected-content {
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.protected-content-background {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--BACKGROUND);
    font-size: 24px;
    display: None;
}

code {
    color: var(--WHITE);
}

.resizable-x {
    height: 100%;
}

.resizable-y {
    flex-direction: column;
    overflow: hidden;
}

.resize-handle {
    cursor: col-resize;
    width: 10px;
    height: 100%;
    position: relative;
    box-sizing: border-box;
    background-color: var(--BACKGROUND);
    user-select: none;
    border: 1px solid var(--WHITE);
}

.resizable-y .resize-handle {
    cursor: row-resize;
    height: 10px;
    width: 100%;
}

.resize-handle::after {
    height: 15px;
    width: 1.5px;
    left: 2px;
    top: 50%;
    content: "";
    position: absolute;
    background-color: var(--WHITE);
    transform: translateY(-50%);
}

.resizable-y .resize-handle::after {
    height: 1.5px;
    width: 15px;
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
}

.resizable-y .resize-handle::before {
    height: 1.5px;
    width: 15px;
    left: 50%;
    top: unset;
    bottom: 2px;
    transform: translateX(-50%);
}

.resize-handle::before {
    content: "";
    position: absolute;
    height: 15px;
    width: 1.5px;
    top: 50%;
    background-color: var(--WHITE);
    transform: translateY(-50%);
    right: 2px;
}

#table-b th,
#table-b td {
    position: relative;
}

#table-b .resize-bar {
    cursor: col-resize;
    display: block;
    height: 100%;
    position: absolute;
    right: 0;
    top: 0;
    width: 5px;
}

.scrollable-table {
    min-width: 200px;
}

.search-category {
    display: flex;
    align-items: center;
}

.search-bar {
    margin-right: 10px;
}

.filter-section {
    padding-top: 10px 0;
    gap: 24px;
}

.filter-section>* {
    flex: 1;
}

.filter-section>.search-category {
    flex: 2.7;
}

.filter-section>.add-card {
    flex: 0.3;
}

.category-chips {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-left: 0;
}

.category-chips .btn {
    margin-right: 5px;
}

.search-category-inner {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

/* Switch Styling */
.switch {
    position: relative;
    display: inline-block;
    min-width: 35px;
    width: 35px;
    height: 18px;
    margin-top: 5px;
}

.switch input {
    display: none;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--BACKGROUND);
    border: 1px solid var(--WHITE);
    transition: 0.4s;
    border-radius: 20px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 12px;
    width: 12px;
    left: 5px;
    bottom: 2px;
    background-color: var(--WHITE);
    border: var(--WHITE);
    transition: 0.4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--WHITE);
}

input:checked+.slider:before {
    transform: translateX(13px);
    background-color: var(--BACKGROUND);
}

/* Spacing for Problem Switch */
.problem-filter-switch {
    display: flex;
    align-items: center;
    font-size: 1.4rem;
    color: var(--WHITE);
}

.keyword-chips-container,
.asker-chips-container {
    max-height: 49px;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

.keyword-chips-container.expanded,
.asker-chips-container.expanded {
    max-height: none;
}

.expand-icon {
    cursor: pointer;
    display: flex;
    width: 30px;
    height: 30px;
}

.expand-icon i {
    font-size: 16px;
    color: var(--WHITE);
}

@media (max-width: 1400px) {
    .search-category-inner {
        align-items: flex-start;
        justify-content: flex-start;
    }

    .search-bar {
        margin-bottom: 10px;
    }

    .category-chips {
        width: 100%;
    }

    .round-chips {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
}
@media (max-width:1024px){
    .search-category-inner {
       flex-direction: column;
    }
    .category-chips { 
        margin-bottom: 10px;
    }
}

@media (max-width: 768px) {

    .filter-section {
        gap: 10px;
        flex-direction: column !important;
    }

    .search-category {
        width: 100% !important;
        justify-content: center;
    }

    .search-category-inner {
        flex-direction: column !important;
        width: 100% !important;
    }

    .search-bar {
        width: 100% !important;
        max-width:400px;
        margin:0 auto;
        margin-bottom: 10px;
    }

    .category-chips {
        width: 100% !important;
        margin-bottom: 10px;
    }

    .round-chips {
        width: 100% !important;
        margin-bottom: 10px;
        justify-content: center;
    }
}

@supports((-webkit-backdrop-filter: none) or (backdrop-filter: none)) {
    .protected-content::after {
        content: "";
        z-index: 3;
        position: absolute;
        inset: 0;
        backdrop-filter: blur(5px);
        background-color: rgba(255, 255, 255, 0.1);
        -webkit-backdrop-filter: blur(5px);
    }
}

.btn.chip {
    background-color: var(--BACKGROUND);
    color: var(--WHITE);
    border: 1px solid var(--WHITE);
    margin-right: .25rem;
    cursor: pointer;
    padding: .325rem .475rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn.chip:hover {
    background-color: var(--WHITE);
    color: var(--BACKGROUND);
}

.btn.chip.active {
    background-color: var(--WHITE);
    color: var(--BACKGROUND);
}

.round-chips .btn.chip {
    border-radius: 20px;
    margin-bottom: 2px;
}

.search-bar {
    display: flex;
    align-items: center;
}

.search-input-wrapper {
    position: relative;
    flex-grow: 1;
    max-width: 100%;
}

.search-input-wrapper input {
    width: 100%;
    padding: 0 2.5rem 0 0.75rem;
    height: 30px;
    background-color: var(--BACKGROUND);
    color: var(--WHITE);
    border: 1px solid var(--WHITE);
}

.search-input-wrapper .clear-btn {
    position: absolute;
    top: 50%;
    right: 0.5rem;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--WHITE);
    font-size: 18px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
}

.search-input-wrapper input::placeholder {
    color: var(--WHITE);
}

.search-input-wrapper input:focus {
    background-color: var(--BACKGROUND);
    color: var(--WHITE);
    outline: none;
    box-shadow: none;
    border-color: var(--WHITE);
}

.search-bar .btn {
    background-color: var(--BACKGROUND);
    color: var(--WHITE);
    min-height: 30px;
    border-color: var(--WHITE);
}

.search-bar .btn:hover,
.search-bar .btn:focus,
.search-bar .btn:active {
    background-color: var(--WHITE);
    color: var(--BACKGROUND);
    border: 1px solid var(--WHITE);
}

button:focus,
input:focus {
    outline: none;
}

table {
    font-family: "Frutiger 45 Light";
    border-collapse: collapse;
    width: 100%;
    font-size: 14px;
}

td,
th {
    border: 1px solid var(--WHITE);
    text-align: left;
    padding: 10px;
}

fieldset {
    border-spacing: 10px;
    border: 1px solid var(--WHITE);
}

.score-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 5px;
}

.thumb-buttons {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.thumb-up,
.thumb-down {
    font-size: 14px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.score-value {
    font-weight: bold;
    font-size: 16px;
}

/* Responsive CSS */
@media screen and (max-width:991px) {
    .navbar h1 {
        font-size: 30px;
    }

    .container-fluid {
        height: auto;
    }

    .main-menu-dropdown {
        width: 100% !important;
    }

}

@media screen and (max-width:768px) {
    .tile {
        min-height: max-content;
    }

    .reset-button {
        top: 8px;
        left: 8px;
    }

    .reset-button i {
        font-size: 24px;
    }
}

@media screen and (max-width:449px) {
    footer p {
        max-width: 370px;
        margin: 0 auto;
        font-size: 11px;
    }

    #table-b td,
    #table-b th {
        position: relative;
        padding: 5px;
    }

    #table-b {
        height: calc(100% + 2px);
        font-size: 12px;
        margin-top: -2px;
    }

    td .name-card {
        margin-top: 22px;
    }

    #table-b td .function-link {
        font-size: 9px;
    }

    #table-b tr th:nth-child(2) {
        width: 42%;
    }

    .add-function-block button {
        font-size: 12px;
    }
}

/* Extra CSS */
@supports((-webkit-backdrop-filter: none) or (backdrop-filter: none)) {
    .popup-container {
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        background-color: rgba(255, 255, 255, 0.1);
    }
}

.blur-text {
    filter: blur(3px);
}

#DataTables_Table_0_filter {
    display: flex;
    align-items: center;
}

.clickable-div {
    cursor: pointer;
}