@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@700&family=Roboto&display=swap');

*, *::before, *::after {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body,
html {
    margin: 0;
	padding: 0;
}

body {

    --selectColor: transparent;
    --selectColorText: transparent;
    --selectContrastColor: color(from var(--selectColor) xyz clamp(0, (.36 / y - 1) * infinity, 1) clamp(0, (.36 / y - 1) * infinity, 1) clamp(0, (.36 / y - 1) * infinity, 1) / 1 );
   
    --selectContrastShadow: color-mix(in srgb-linear, var(--selectContrastColor), transparent 80%);
    --selectContrastSolid: color-mix(in srgb, var(--selectColor), var(--selectContrastShadow));
    --selectContrastShadow2: color-mix(in srgb-linear, var(--selectContrastColor), transparent 40%);
    --selectBackgroundColor: color-mix(in srgb, var(--selectColor), var(--selectContrastShadow2) 90%);

    --bd1: transparent;
    --bd2: transparent;
    --bd3: transparent;
    --db4: transparent;

    --borderWidth: 6px;
    --borderWidth2: calc( var(--borderWidth) / 2 );
    --padding: 30px;
    --padding2: calc( var(--padding) / 2 );
    --radius: 30px;
    --radius2: calc( var(--radius) / 2 );
    --radius45: 45px;
    --radius90: 190px;
    --radius120: 190px;

    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: clip;
    width: 100vw;
    min-height: 100vh;

    padding: var(--padding);

    background-color: var(--selectColor);

    color: var(--selectColorText);
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings: "wdth" 100;

}

#gsapWrapper {
    visibility: hidden;
}

.bgWrapper {

    
    display: block;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    width: 100px;
    height: 100px;
    pointer-events: none;
    cursor: pointer;

    &#bgWrapper {
        position: fixed;
        right: 5px;
        top: 5px;
        z-index: 40;
    }                
    &#optionsCap {
        position: absolute;
        z-index: 200;
        overflow: visible;
    }
   
    &.selectFrame {

        position: absolute;
        overflow: visible;
        width: 170px;
        height: 170px;
        border-radius: 50%;
        background: var(--selectColor);
        color: var(--selectContrastColor);
        
        &.div {

            z-index: -1;
            pointer-events: none;
            border: solid var(--borderWidth) var(--selectContrastSolid);
            transform: scale(0.62);
    		box-shadow: 0px 0px 8px 2px var(--selectContrastShadow);

        }
        &.option {
            right: -35px;
            top: -35px;
            z-index: 199;
            filter: drop-shadow(-6px 6px 6px #3338);
            pointer-events: all;
            border: solid var(--borderWidth) var(--selectContrastSolid);
            transition: transform 0.5s cubic-bezier(.47,3,.4,1);
         }

    }

    #axis, #axis2 {
        width: 98px;
        height: 98px;
        border-radius: 50%;
        overflow: hidden;
        color: var(--selectBackgroundColor);
        svg {
            width: 98px;
            height: 98px;
        }
    }

}



#customSelectWrapper {

    position: fixed;
    z-index: 10000;
    right: 5px;
    top: 9px;
    width: 100px;
    height: 100px;
    overflow: visible;
    border-radius: 50%;

    select#customSelect {

        width: 100px;
        height: 100px;
        border-radius: 50%;
        border: none;
        appearance: none;
        text-align: center;
        cursor: pointer;

        background: transparent;

        &:hover {
            cursor: pointer;
        }

        option:not(.selectFrame) {

            --color: attr(value type(<color>));
            --colorText: attr(value);

            --contrast-color: color(from var(--color) xyz clamp(0, (.36 / y - 1) * infinity, 1) clamp(0, (.36 / y - 1) * infinity, 1) clamp(0, (.36 / y - 1) * infinity, 1) / 1 );

            --bgColor: color-mix(in srgb, var(--color), transparent 30%);
            --bgColor2c: color-mix(in srgb, var(--color), var(--selectBackgroundColor) 30%);
            --bgColor2b: color-mix(in srgb, var(--bgColor2c), var(--contrast-color) 70%);
            --bgColor2: color-mix(in srgb, var(--bgColor2b), transparent 80%);

            --contrast-shadow: color-mix(in srgb, var(--contrast-color), transparent 80%);
            --contrast-shadow2: color-mix(in srgb, var(--contrast-color), transparent 60%);

         }

    }

    @supports (appearance: base-select) {
      
        select#customSelect {

            appearance: none;
            color: var(--selectContrastColor);
            border: none;

            &, &::picker(select) { appearance: base-select; }

            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            transform-origin: top right;
            z-index: 10000;
            width: 100px;
            height: 100px;

            &::picker-icon { display: none; }

            #optionsWrapper {

                --wrapperOpacity: 0;

                display: block;
                display: flex;
                align-items: center;
                justify-content: center;
                position: relative;
                overflow: visible;
                word-break: break-all;
                color: var(--selectContrastColor);

            }

            optgroup {

                --optgroupOpacity: 0;
                --oGShape0: shape(from 41.46% 0%,line to 0% 97.74%,curve by 100% 0% with 39.02% 3.58%/65.85% 2.38%,close);
                --oGShape1: shape(from 41.46% 0%,line to 0% 98.47%,curve by 100% 0% with 39.02% 2.42%/65.85% 1.61%,close);
                --oGShape2: shape(from 44.74% 0%,line to 0% 99.26%,curve by 100% 0% with 44.74% 0.99%/65.79% 0.99%,close);
                --oGShape3: shape(from 44.74% 0%,line to 0% 99.38%,curve by 100% 0% with 44.74% 0.83%/65.79% 0.83%,close);
                --oGShape4: shape(from 44.74% 0%,line to 0% 99.47%,curve by 100% 0% with 44.74% 0.71%/65.79% 0.71%,close);
                --oGShape5: shape(from 44.74% 0%,line to 0% 99.53%,curve by 100% 0% with 44.74% 0.62%/65.79% 0.62%,close);
                --oGShape6: shape(from 44.74% 0%,line to 0% 99.59%,curve by 100% 0% with 44.74% 0.55%/65.79% 0.55%,close);
                --oGShape7: shape(from 44.74% 0%,line to 0% 99.63%,curve by 100% 0% with 44.74% 0.5%/65.79% 0.5%,close);
                --oGShape8: shape(from 44.74% 0%,line to 0% 99.66%,curve by 100% 0% with 44.74% 0.45%/65.79% 0.45%,close);   
                --oGShape9: shape(from 44.74% 0%,line to 0% 99.69%,curve by 100% 0% with 44.74% 0.42%/65.79% 0.42%,close);   
                --oGShape10: shape(from 44.74% 0%,line to 0% 99.71%,curve by 100% 0% with 44.74% 0.38%/65.79% 0.38%,close);

  

                &.oG0 { --oGNo: 0; --oGStart: -10deg; --oGAngle: 22deg; --oGWidth: 50px; option { clip-path: var(--oGShape0); } }
                &.oG1 { --oGNo: 1; --oGStart: -8deg; --oGAngle: 18deg; --oGWidth: 52px; option { clip-path: var(--oGShape1); } }
                &.oG2 { --oGNo: 2; --oGStart: -8deg; --oGAngle: 13deg; --oGWidth: 47px; option { clip-path: var(--oGShape2); } }
                &.oG3 { --oGNo: 3; --oGStart: -6deg; --oGAngle: 9deg; --oGWidth: 41px; option { clip-path: var(--oGShape3); } }
                &.oG4 { --oGNo: 4; --oGStart: -3deg; --oGAngle: 9deg; --oGWidth: 46px; option { clip-path: var(--oGShape4); } }
                &.oG5 { --oGNo: 5; --oGStart: -6deg; --oGAngle: 7.6deg; --oGWidth: 44px; option { clip-path: var(--oGShape5); } }
                &.oG6 { --oGNo: 6; --oGStart: -4deg; --oGAngle: 7deg; --oGWidth: 46px; option { clip-path: var(--oGShape6); } }
                &.oG7 { --oGNo: 7; --oGStart: -3deg; --oGAngle: 6deg; --oGWidth: 46px; option { clip-path: var(--oGShape7); } }
                &.oG8 { --oGNo: 8; --oGStart: -3deg; --oGAngle: 5.3deg; --oGWidth: 44px; option { clip-path: var(--oGShape8); } }
                &.oG9 { --oGNo: 9; --oGStart: -3deg; --oGAngle: 5.8deg; --oGWidth: 52px; option { clip-path: var(--oGShape9); } }
                &.oG10 { --oGNo: 10; --oGStart: -2deg; --oGAngle: 5deg; --oGWidth: 48px; option { clip-path: var(--oGShape10); } }

                --height: calc( 125px + ( 40px * var(--oGNo) ) );
                --zIndex: calc( 100 - ( var(--oGNo) * 2)  );

                display: block;
                position: absolute;

                width: 50px;
                height: 50px;
                margin-left: 25px;
                margin-top: 50px;
                z-index: var(--zIndex);
                filter: drop-shadow(-6px 6px 6px #3334);

                &:last-of-type {
                    filter: drop-shadow(-6px 6px 6px #3338);
                }

                option {

                    --siblingIndex: calc( sibling-index() - 1 );

                    display: block;
                    position: absolute;
                    background: transparent;
                    transform-origin: top center;
                    width: var(--oGWidth);
                    height: var(--height);
                    border: none;
                    outline: none;
                    cursor: pointer;

                    &:before {
                        display: block;
                        content: "";
                        width: 100%;
                        height: 100%;
                        pointer-events: none;
                        background-color: var(--color);
                        box-shadow: inset 0px 0px 0px 6px var(--selectContrastSolid);
                    }

                    &:hover{ width: calc( 20px + var(--oGWidth) ); height: calc( 15px + var(--height) ); z-index: calc( var(--zIndex) + 1 ); }

                }

            }


            &:open {

                optgroup {

                    animation: fadeInOptionOptgroup;
                    animation-duration: 0.5s;
                    animation-fill-mode: forwards;
                    animation-delay: calc( 0.035s * var(--oGNo) );
                    opacity: var(--optgroupOpacity)!important;

                    option {
                        animation: rotateInOption;
                        animation-duration: 0.6s;
                        animation-fill-mode: forwards;
                        animation-delay: calc( 0.045s * var(--oGNo) );
                    }

                }
    
                ::checkmark { display: none; }

                &::picker(select) {
                    display: block;
                    background: transparent;
                    overflow: visible;
                    border: none!important;
                }

                &:open, &:open * {
                    @starting-style {
                        opacity: 0;
                        option.selectFrame {
                            transform: scale(0.62);
                        }
                    }
                }
                &:open::picker(select) {
                    transform: translateY( -104px );
                    opacity: 1;
                    option.selectFrame {
                        transform: scale(1)!important;
                    }
                }

            }


        }
        
        #browserSupport { display: none; }

    }




    @supports not (appearance: base-select) {

        opacity: 0;

        &:open { 
            background-color: var(--selectBackgroundColor);
            color: var(--selectBackgroundColor);
            padding: 0px!important;
            opacity: 1;
            height: 25px;
        }

        optgroup {

            padding: 0px!important;
            margin: 0px!important;
            background-color: var(--selectBackgroundColor);

            option {
                cursor: pointer;
                padding: 5px;
            }

        }
        .selectFrame { display: none; }
        #optionsCap { display: none; } 
        #fc1 { fill: "#FFFFFF"; }
        #fc2 { fill: "#FFFFFF"; }
        
    }


} /* #customSelectWrapper */


@keyframes fadeInOptionOptgroup { 0% { --optgroupOpacity: 0; } 100% { --optgroupOpacity: 1; } }
@keyframes rotateInOption { 0% {transform: rotate( 0deg ); }  100% { transform: rotate( calc( var(--oGStart) + ( var(--oGAngle) * var(--siblingIndex) ) ) ); } }




#dataCard {

    --coverClip: shape(from 44.74% 0%,line to 0% 99.71%,curve by 100% 0% with 44.74% 0.38%/65.79% 0.38%,close);
    
    display: block;
    position: relative;
    z-index: 10;
    width: 520px;
    height: 520px;
    background-color: #333;
    border-radius: var(--radius);
    background: color-mix(in srgb-linear, var(--selectColor), transparent 40% );
    color: var(--selectBackgroundColor);
    border: solid var(--borderWidth) var(--selectContrastShadow);
    box-shadow: 0px 0px 8px 2px var(--selectContrastShadow);

    @media ( width > 576px ) {
        border-radius: 50%;
        aspect-ratio: 1/1;
        padding: 60px;
        mask: url("#textCutout");
    }
    @media ( width <= 576px ) { padding: var(--padding2); width: auto; height: auto; max-width: 480px; }

    h1#dataCardText {
        display: block;
        text-align: left;
        font-family: "Oswald", sans-serif;
        font-optical-sizing: auto;
        font-weight: 700;
        font-style: normal;
        font-size: 40px;
        text-transform: uppercase;
        line-height: 0.9em;
        background-color: var(--selectBackgroundColor);
        color: var(--selectColor);
        padding: var(--padding2);
        border-radius: 10px;
        margin-bottom: var(--padding2);
        @media ( width > 576px) { display: none; }
    }

    #titleBorderWrapper {
        display: block;
        position: absolute;
        left: -6px;
        top: -6px;
        width: 520px;
        height: 520px;
        color: var(--colorText);
        @media ( width <= 576px) { display: none; }
    }

    #paletteContainer {

        display: flex;
        flex-wrap: wrap;
        gap: 10px;

        .colorSwatch {

            --color: #FFFFFF;
            --colorContrast: color(from var(--color) xyz clamp(0, (.36 / y - 1) * infinity, 1) clamp(0, (.36 / y - 1) * infinity, 1) clamp(0, (.36 / y - 1) * infinity, 1) / 1 );
            --colorShadow: color-mix(in srgb-linear, var(--colorContrast), transparent 40%);
            --colorText: color-mix(in srgb, var(--color), var(--colorShadow) 90%);

            flex: 1;
            border-radius: var(--radius2);
            border: var(--borderWidth) solid var(--colorText);
            background: var(--color);
            color: var(--colorText);
            padding: var(--padding2);
            font-family: "Oswald", sans-serif;
            font-optical-sizing: auto;
            font-weight: 700;
            font-size: 13px;
            line-height: 1.4em;

            @media ( width > 576px ) { flex: 1 1 calc(50% - 10px); padding: var(--padding2); }
            @media ( width < 576px ) { border: solid var(--borderWidth2) var(--selectContrastShadow); }

            @media ( width > 576px ) {
                position: relative;
                border-radius: 8px;
                aspect-ratio: 6/6;
                &:first-of-type {
                    display: flex; flex-direction: column; flex-direction: column-reverse; justify-content: flex-start; padding-bottom: 58px;
                    span.code { position: absolute; bottom: 5px; left: 15px; right: 13px; padding-top: 12px; border-top: var(--borderWidth2) solid var(--colorText); border-bottom: none; text-align: left; }
                    text-align: right; border-top-left-radius: var(--radius90); border-bottom-right-radius: var(--radius45); corner-bottom-right-shape: scoop;
                }
                &:nth-of-type(2) {
                    display: flex; flex-direction: column; flex-direction: column-reverse; justify-content: flex-start; padding-bottom: 58px;
                    span.code { position: absolute; bottom: 5px; left: 13px; right: 15px; padding-top: 12px; border-top: var(--borderWidth2) solid var(--colorText); border-bottom: none; text-align: right; }
                    text-align: left; border-top-right-radius: var(--radius90); border-bottom-left-radius: var(--radius45); corner-bottom-left-shape: scoop;
                }
                &:nth-of-type(3) {
                    text-align: right; border-bottom-left-radius: var(--radius90); border-top-right-radius: var(--radius45); corner-top-right-shape: scoop;
                }
                &:last-of-type {
                    text-align: left; border-bottom-right-radius: var(--radius90); border-top-left-radius: var(--radius45); corner-top-left-shape: scoop;
                }
            }

            span {

                display: block;
                &.code {
                    font-size: 28px;
                    padding-bottom: var(--padding2);
                    border-bottom: var(--borderWidth2) solid var(--colorText);
                    text-transform: uppercase;
                }

            }
            @media ( width > 576px ) {

                &:first-of-type span.code { text-align: left; }
                &:nth-of-type(2) span.code { text-align: right; }
                &:nth-of-type(3) span.code { text-align: left; }
                &:last-of-type span.code { text-align: right; }

                &:first-of-type span:not(.code) { padding-left: 10px; }
                &:nth-of-type(2) span:not(.code) { padding-right: 10px; }
                &:nth-of-type(3) span:not(.code) { padding-left: 10px; }
                &:last-of-type span:not(.code) { padding-right: 10px; }

            }

        }

    }

}


#bgDivWrapper {
    display: block;
    position: fixed;
    left: 0px;
    top: 0px;
    z-index: -1;
    width: 100vw;
    height: 100vh;
    background-color: var(--selectColor);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    #bgDivRelative {
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        width: 100vw;
        height: 100vh;
        transform-origin: 50% 50%;
        overflow: clip;
        z-index: -1;

        .bgDiv {
            position: absolute;
            width: 600px;
            height: 600px;
            border-radius: 50%;
            mix-blend-mode: color;

            &#bd1 {
                margin-left: -80px;
                margin-top: -80px;
                z-index: 1;
                opacity: 0.75;
                background-image: linear-gradient( 315deg, var(--bd1) 30%, transparent 100% );
            }
            &#bd2 {
                margin-right: -80px;
                margin-top: -80px;
                z-index: 2;
                opacity: 0.75;
                background-image: linear-gradient( 225deg, var(--bd2) 30%, transparent 100% );
            }
            &#bd3 {
                margin-top: 80px;
                z-index: 3;
                opacity: 0.75;
                background-image: linear-gradient( 45deg, var(--bd3) 30%, transparent 100% );
            }

        }

        #treyMix {
            position: absolute;
            z-index: 6;
            width: 600px;
            height: 600px;
            transform-origin: 50% 50%;
            background-image: linear-gradient(var(--bd1), var(--bd2), var(--bd3));
            animation: rotateBg 10s cubic-bezier(0.67, 0.33, 0.33, 0.67) alternate infinite;
            border-radius: 33% 67% 67% 33%/33% 33% 67% 67%;

        }

        #treyBlend {
            position: absolute;
            width: 700px;
            height: 700px;
            z-index: 7;
            background: var(--bd4);
            background: radial-gradient(circle,var(--bd4) 70%, transparent 100%);
            border-radius: 50%;
            opacity: 0.5;
        }

    }

}

        
#bgBlur {
    position: absolute;
    left: 0px;
    top: 0px;
    z-index: 8;
    width: 100vw;
    height: 100vh;
    backdrop-filter: blur(80px)
}

@keyframes rotateBg { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }