@font-face {
    font-family: "Lexend";
    src: url("/assets/Lexend-VariableFont_wght.woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@keyframes pulse {
    0% { opacity: 0.55; transform: scale(1); }
    50% { opacity: 0.85; transform: scale(1.03); }
    100% { opacity: 0.55; transform: scale(1); }
}

@keyframes spinOnly {
    from {
        transform: translateY(-50%) rotate(0deg);
    }
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-thumb {
    background-color: #7F7F7F;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #555;
}

::-webkit-scrollbar-thumb:active {
    background-color: #333;
}

::-webkit-scrollbar-track {
    background: linear-gradient(to bottom, #001A33, #002A4F);
}

#background-container {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

#animated-background {
    position: absolute;
    top: 0;
    left: 0;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background-color: #FFFFFF;
    flex-direction: column;
    overflow-x: hidden !important;
    overflow-y: auto;
}

main {
    flex: 1;
    overflow: auto;
    margin-bottom: 0;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

.site-header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.header-upper-bar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    gap: 1rem;
    height: 40px;
    background: linear-gradient(to bottom, #001A33, #002A4F);
}

.left-block {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-icon img {
    height: 22px;
    width: 22px;
    margin-left: 2.5px;
}

.account-reveal-wrapper {
    height: 40px;
    padding: 0.75rem 0rem;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.account-mask {
    content: "";
	position: absolute;
	top: 0px;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(to bottom, #001A33, #002A4F);
	z-index: 2;
	transform: translateX(0);
	transition: transform 0.4s ease-out;
	pointer-events: none;
}

.account-link {
    margin-left: 1rem;
    margin-right: auto;
    color: white;
    font-family: "Lexend", sans-serif;
    font-size: 0.95rem;
    text-decoration: none;
    transition: opacity 0.2s ease;
    white-space: nowrap;
    font-weight: 700;
}

.account-link:hover {
    opacity: 0.7;
}

.search-block {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    flex: 1;
    width: clamp(300px, 50vw, 2000px);
    background-color: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 0 0 1px #ccc;
}

.search-input::placeholder {
    font-family: "Lexend", sans-serif;
}

.search-icon img {
    height: 20px;
    width: 20px;
}

.search-icon {
    background: #f5f5f5;
    padding: 0.5rem;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-input {
    flex: 1;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    width: 100%;
}

.search-input:focus {
    outline: none;
}

.search-filter {
    background: #f0f0f0;
    border: none;
    padding: 0.5rem;
    font-size: 0.9rem;
    text-align: center;
}

.search-filter,
.search-filter option {
    font-family: "Lexend", sans-serif;
}

.tab-display {
    display: flex;
    align-items: center;
    margin-left: auto;
    line-height: 0;
}

.tab-display a img {
    display: block;
}

.tab-slot {
    display: grid;
    grid-template-columns: auto;
    place-items: center start;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    overflow: visible;
    min-width: 80px;
}

.tab-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    position: absolute;
    top: 50%;
    left: 60px;
    transition: transform 0.6s ease-in-out;
    transition-delay: 0.2s;
    transform: translateY(-50%);
    z-index: 3;
}

.tab-icon-wrapper.slide-reveal {
    transform: translateX(-52px) translateY(-50%) rotate(1turn);
}

.tab-icon-wrapper.spin-fail {
    animation: spinOnly 0.5s ease;
}

.tab-icon {
    height: 24px;
    width: 24px;
    cursor: pointer;
    transition: transform 0.2s ease;
    display: block;
}

.tab-icon:hover {
    transform: scale(1.1);
}

.tab-reveal-wrapper {
    position: relative;
    overflow: hidden;
    width: 5ch;
    height: 40px;
    padding: 0.75rem 0rem;
    align-items: center;
    display: flex;
    background: none;
}

.tab-mask {
    content: "";
    position: absolute;
    top: 0px;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #001A33, #002A4F);
    z-index: 2;
    transform: translateX(0);
    transition: transform 0.3s ease-out;
    transition-delay: 0.2s;
    pointer-events: none;
}

.tab-value {
    opacity: 0;
    transition: opacity 0.4s ease;
    position: relative;
    white-space: nowrap;
    z-index: 1;
    color: white;
    font-family: "Lexend", sans-serif;
    font-size: 0.9rem;
    cursor: default;
    text-align: left;
    width: 4ch;
    font-variant-numeric: tabular-nums;
}

.tab-value.reveal {
    opacity: 1;
    transition: none;
}

.tabs-link {
    margin-left: 1rem;
    color: white;
    font-family: "Lexend", sans-serif;
    text-decoration: none;
    font-weight: 700;
    transition: opacity 0.2s ease;
}

.tabs-link:hover {
    opacity: 0.7;
}

.header-lower-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 1.5rem;
    height: 35px;
    background: linear-gradient(to bottom, #003C6A, #0174D9);
}

.sidebar-toggle {
    background: transparent;
    border: none;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    font-family: "Lexend", sans-serif;
    font-weight: 500;
}

.main-nav {
    display: flex;
    flex: 1;
    justify-content: space-around;
    align-items: center;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-family: "Lexend", sans-serif;
    font-size: 0.95rem;
    transition: opacity 0.2s ease;
}

.nav-link:hover {
    opacity: 0.7;
}

.sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 250px;
    height: 100%;
    background: linear-gradient(to bottom, #001A33, #002A4F);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.4);
    transition: left 0.3s ease;
    z-index: 2000;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #00172D;
}

.sidebar.open {
    left: 0;
}

.sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    display: none;
}

.sidebar-backdrop.show {
    display: block;
}

.sidebar-close {
    position: absolute;
    top: 2rem;
    right: -3rem;
    background: #001B33;
    color: #ffffffcc;
    font-size: 1.4rem;
    width: 2rem;
    height: 2rem;
    border-radius: 6px;
    align-self: flex-end;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: color 0.2s ease;
    box-shadow: 0 0 6px rgba(0,0,0,0.3);
}

.sidebar-close:hover {
    color: #ffffff;
    opacity: 0.7;
}

.sidebar-close img {
    height: 1.5rem;
    width: 1.5rem;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.sidebar-content {
    margin-top: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-content a {
    color: #cce7ff;
    font-family: "Lexend", sans-serif;
    font-size: 1rem;
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: background 0.2s ease, color 0.2s ease;
}

.sidebar-content a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.footer-container {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.footer {
    margin-top: auto;
    position: relative;
    width: 100%;
    padding-bottom: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-width: 15vw;
    z-index: 2;
    background-image: linear-gradient(to bottom, #0174D9, #4DAAF0);
}

.footer-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    z-index: 3;
    min-width: 20vw;
}

.footer-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #FFFFFF;
    padding-bottom: 1rem;
    font-size: 0.9rem;
    align-items: flex-end;
    transform: translateY(-20px);
    overflow: hidden;
    min-width: 500px;
}

.footer-copyright {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    font-family: "Lexend", sans-serif;
    font-weight: 400;
    color: #FFFFFF;
    margin: 0 0.5rem;
    white-space: nowrap;
    overflow: hidden;
}

.footer-chin {
    min-height: 100px;
    background-color: #00203F;
    width: 100%;
    position: relative;
    z-index: 1;
    padding: 2rem 0;
    top: -15px;
    margin-bottom: -15px;
}

.chin-grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 4rem;
    flex-wrap: wrap;
    text-align: left;
}

.chin-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 120px;
}

.chin-logo {
    border-radius: 8px;
    animation: pulse 2.5s ease-in-out infinite;
    transform-origin: center;
    height: 80px;
    width: 80px;
    opacity: 0.55;
}

.chin-logo-block {
    align-items: center;
    justify-content: center;
    text-align: center;
}

.chin-text {
    color: #ffffff;
    font-family: "Lexend", sans-serif;
    font-size: 0.85rem;
}

.chin-link {
    color: #ffffff;
    font-family: "Lexend", sans-serif;
    font-size: 0.85rem;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.chin-link:hover {
    opacity: 0.7;
}