:root {
    --color-text-dark: rgba(0, 0, 0, 0.75);
    --color-text-light: #fff;
    --color-border-light: rgba(0, 0, 0, 0.03);
    --color-border-dark: rgba(0, 0, 0, 0.09);
    --color-shadow-light: rgba(0, 0, 0, 0.09);
    --color-shadow-mid: rgba(0, 0, 0, 0.11);
    --color-shadow-strong: rgba(0, 0, 0, 0.17);

    --shadow-card: 0 6px 34px var(--color-shadow-light),
        0 3px 6px -3px var(--color-shadow-mid);
    --shadow-button: 0 3px 7px var(--color-shadow-strong);
    --shadow-common: inset 0 15px 53px 0 rgba(255, 255, 255, 0.05), inset 0 21px 43px 0 rgba(0, 0, 0, 0.07), inset 0 1px 1px -1px rgba(255, 255, 255, 0.50), inset 0 -1px 1px -1px rgba(255, 255, 255, 0.50), inset 0 -8px 13px -3px rgba(255, 255, 255, 0.08);

    --radius-lg: 16pt;
    --radius-md: 14pt;
    --radius-sm: 11pt;

    --cursor-default: url("img/cursor.svg"), auto;
    --cursor-hand: url("img/hand cursor.svg"), auto;
    --cursor-zoom: url("img/picture zoom.svg"), auto;

    --gradient-dark: linear-gradient(180deg, #272727 0%, #020202 100%, #0B0B0B 100%);
    --gradient-dark-hover: linear-gradient(180deg, #383B3B 0%, #161919 100%, #161919 100%);
}



header {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    position: fixed;
    top: 8pt;
    z-index: 10000000;
    /* view-transition-name: header; */
}

#headerContents {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;

    height: 76px;
    width: fit-content;
    position: relative;
    padding: 0px 12px;
    padding-left: 16px;
}

#headerContents::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    mask-border: url("img/mask@2x.png") 49% fill / 38px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: inset 0 -3px 3px -1px rgba(255, 255, 255, 0.3), inset 0 2px 7px -1px rgba(255, 255, 255, 0.5), inset 0 -12px 43px -3px rgba(0, 0, 0, 0.04);
    background-size: cover;
    background-position: center;
    will-change: auto;
    backdrop-filter: blur(45px) saturate(200%) brightness(105%);
    z-index: -1;
}

#headerContents::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 6px 34px rgba(0, 0, 0, 0.09), 0 3px 6px -3px rgba(0, 0, 0, 0.11);
    background-size: cover;
    background-position: center;
    z-index: -3;
}

#headerMainTitleContainer {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0px 4px;

    transition: opacity 0.3s, filter 0.3s, transform 0.3s, width 0.3s, margin-right 0.3s, padding 0.3s;
    filter: blur(15px);
    opacity: 0;
    width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: none;
    transition-timing-function: linear(0, 0.02 2.1%, 0.081 4.7%, 0.467 15.7%, 0.645, 0.778 28.5%, 0.872 35.8%,
            0.909 40.1%, 0.938 44.9%, 0.977 56.5%, 0.994 72.3%, 1);
}

.newHeaderLink {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    padding: 0px 16px;
    height: calc(76px - 16pt);
    scale: 1;

    border-radius: 10pt;
    mask-border: url("img/mask@2x.png") 49% fill / 16pt;
    will-change: scale;

}

.newHeaderLinkUnselected,
.newHeaderLinkSelected {
    transition: scale 0.3s, background 0.4s, filter 0.3s;
    transition-timing-function: cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: var(--cursor-hand) !important;
}

.newHeaderLinkUnselected img,
.newHeaderLinkSelected img,
.newHeaderLinkUnselected p,
.newHeaderLinkSelected p {
    cursor: var(--cursor-hand) !important;
}

.newHeaderLinkSelected {
    background-color: #020202;
    background-image: linear-gradient(180deg, #444444 0%, #0A0A0A 100%, #0B0B0B 100%);
    border: 0.62px solid rgba(255, 255, 255, 0.36);
    box-shadow: inset 0 10px 33px 0 rgba(255, 255, 255, 0.04), inset 0 14px 27px 0 rgba(0, 0, 0, 0.05), inset 0 1px 1px -1px #FFFFFF, inset 0 3px 3px -1px rgba(255, 255, 255, 0.19), inset 0 -5px 8px -1px rgba(255, 255, 255, 0.13);
}

.newHeaderLinkSelected .newHeaderLinkIcon {
    filter: invert(0);
}

.newHeaderLinkSelected .headerLinkTitle {
    opacity: 1;
    color: white;
    text-wrap: nowrap;
}

.newHeaderLinkUnselected:hover {
    background-color: rgba(0, 0, 0, 0.1);
    scale: 1.05;
}

.newHeaderLinkUnselected:active {
    background-color: rgba(0, 0, 0, 0.2);
    scale: 0.95;
}

.newHeaderLinkSelected:hover {
    scale: 1.05;
    filter: brightness(1.1);
}

.newHeaderLinkSelected:active {
    scale: 0.95;
    filter: brightness(0.9);
}



.newHeaderLinkIcon {
    width: 15pt;
    height: 15pt;
    filter: invert(1);
}

.headerLinkTitle {
    font-size: 1em;
    font-weight: 500;
    opacity: 0.9;
    color: black;
    margin: 0;
}

#headerLogo {
    width: 36px;
    margin: 6px;
    transition: opacity 0.3s, scale 0.3s, background-color 0.3s;
}

#headerLogo:hover {
    scale: 1.1;
}

#headerLogo:active {
    scale: 0.95;
}

.headerDividerAfterTitleHidden {
    display: none;
}

#headerMainTitle {
    text-wrap: nowrap;
}



.menu-icon {
    padding: 14px;
    /* margin-right: 12pt; */
    border-radius: 14px;
    transition: opacity 0.3s, scale 0.3s, background-color 0.3s;
    cursor: url("img/hand cursor.svg"), auto;

    display: none;
    aspect-ratio: 1/1;
    width: 32px;
    height: 32px
}

.menu-icon:hover {
    scale: 1.2;
}

.menu-icon:active {
    scale: 0.7;
}

#top-bar,
#bottom-bar,
.menu-icon {
    transition: transform 0.3s, scale 0.3s, background-color 0.3s;
    transform-origin: center;
}

.menu-icon.active #top-bar {
    transform: translateY(4px) translateX(-5.5px) rotate(45deg);
}

.menu-icon.active #bottom-bar {
    transform: translateY(-4px) translateX(-5.5px) rotate(-45deg);
}

.menu-icon:not(.active) #top-bar {
    transform: translateY(0) rotate(0deg);
}

.menu-icon:not(.active) #bottom-bar {
    transform: translateY(0) rotate(0deg);
}

@media (max-width: 550px) {
    #headerContents {
        width: calc(100vw - 16pt);
        margin-left: 8pt;
        margin-right: 8pt;
    }

    .menu-icon {
        display: block;
    }

    .newHeaderLinkHideOnMobile {
        display: none;
    }

    #headerMainTitleContainer {
        display: flex;
    }
}

@media (max-width: 350px) {
    #headerMainTitleContainer {
        display: none;
    }
#headerContents {
    justify-content: space-between;
}

}

.headerDividerAfterTitleVisible {
    width: 2px;
    height: 18px;
    background-color: rgba(0, 0, 0, 0.25);
    margin: 0;
    border-radius: 12px;
    opacity: 0;
    filter: blur(5px);

    transition: margin 0.3s, opacity 0.3s, width 0.3s, filter 0.3s;
}

.headerDividerAfterTitleVisible.scrolledDown {
    opacity: 1;
    margin: 0 6pt;
    filter: blur(0);
    width: 2px;
}