:root {
  --joy_teal: #4aa6a6; /* Global variable */
  --joy_white: #f8f8f8;
  --joy_lightblue: aliceblue;
  --joy_dark: darkslategray;
  --joy_piano_base: #b9e2e2;
  --joy_piano_base2: #a6d9d9;
  --joy_piano_dark: #59a5a5;
  --joy_spark: #fcf653;
}

body,html{
    height: 100%;
    margin: 0;
}

body{
    font-family: 'DM Sans', sans-serif;
    font-weight: 200;
}

h1,h2,h3,h4,h5,h6,p{
    margin: 0;
    font-weight: inherit;
    font-family: inherit;
}

ul{
    list-style: none;
}

section{
    height: 100%;
}   

.container {
    background: radial-gradient(var(--joy_teal),var(--joy_white));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.item{
    width: 80%;
    text-align: center;
}

.preloader_item{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 50%!important;
}

#preloader{
    background: radial-gradient(var(--joy_teal),var(--joy_white));
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 9;
}


.bossy{
    font-size: 4.5vw;
    color: var(--joy_lightblue);
    letter-spacing: 2.5px;
}

#preloader h1{
    margin-bottom: .45em;
    border-bottom: 2px solid var(--joy_piano_base);
}

#preloader h3{
    color: var(--joy_lightblue);
    width: 60%;
    margin-bottom: 2em;
}

#preloader span{
    font-weight: 500;
}

.primary{
    background: var(--joy_teal);
    padding: 1em 2em;
    font-family: inherit;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 3px;
    border: none;
    color: var(--joy_piano_base);
    font-size: 1vw;
    border-radius: 100px;
}

.primary:hover{
    cursor: pointer;
    color: var(--joy_dark);
    background: var(--joy_spark);
}

#loading_icon {
    display: none;
}

#loading_icon svg {
    margin-top: 10px;
    width: 38px;
    height: 38px;
    stroke-width: 2px;
    fill: none;
    stroke: var(--joy_spark);
    -webkit-transform-origin-y: 19.2px;
    -webkit-transform: rotate(0deg);
    animation: rotateicon_anim infinite 1.6s linear forwards;
}

.body_med{
    font-size: 1.5vw;
}

.body_tiny{
    font-size: .8vw;
    font-weight: 400;
}

.blink_soft{
    animation: blink_soft_anim 1.4s ease-out infinite;
}

.gamepad_loader{
    display: none;
    width: fit-content;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.gamepad_drop{
    /* display: flex; */
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    margin-bottom: 3.5em;
}

.gamepad_svg{
    width: 64px;
    height: 64px;
    stroke-width: .85;
    fill: none;
    stroke: var(--joy_lightblue);
    margin-right: 1em;
}

.gamepad_svg path{
    stroke-width: inherit;
    stroke: inherit;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
}

.gamepad_loader select{
    font: inherit;
    outline: none;
    font-size: 1.5vw;
    padding: .3em 1em;
    cursor: pointer;
    width: 18vw;
    border: none;
    background: var(--joy_lightblue);
    border-radius: 4px;
    color: var(--joy_dark);
}


.sample_selector  {
    /* display: flex; */
    display: none;
    width: fit-content;
    border: 1px solid var(--joy_piano_base);
    /* box-shadow: inset 0px 0px 24px -4px var(--joy_piano_dark); */
    border-radius: 24px;
    margin-bottom: 3em;
}

.sample_button {    
    width: fit-content;
    height: 2em;
    padding: 0em 1em;
    color: var(--joy_piano_base);
    font-size: 1.5vw;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
}

.sample_button:hover{
    cursor: pointer;
    color: var(--joy_white);
}

.sample_active{
    background: var(--joy_white);
    color: var(--joy_teal)!important;
}

.loader{
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    /* background: black; */
    z-index: 99;
}

.loader h1{
    animation: blink_soft_anim 0.5s ease-out infinite;
}

.pianokeys_svg,.pianotrack_svg{
    /* display: none; */
    width: 48vw;
    fill: var(--joy_piano_base);
    stroke: var(--joy_piano_dark);
    stroke-width: 1px;
}

.pianotrack_svg{
    margin-top: 2em;
    width: 38vw;
}

.octave_svg{
    opacity: 0.3;
}

.pianokeys_svg path{
    -webkit-transition: 100ms ease-in-out;
}


.svg-fill{
    fill: var(--joy_piano_dark);
}

.svg-fill_sharp{
    fill: var(--joy_piano_base);
}

.svg-highlight{
    fill: var(--joy_spark);
}

.svg-active{
    opacity: 1;
}

footer{
    position: absolute;
    z-index: 8;
    width: 100%;
    height: fit-content;
    left: 0;
    bottom: 0;
    text-align: center;
}

footer p{
    font-weight: 300;
    margin-bottom: .5em;
    color: var(--joy_dark)
}


/* ANIMATIONS */


@keyframes rotateicon_anim{
    0%{
        -webkit-transform: rotate(0deg);
    }
    100%{
        -webkit-transform: rotate(359deg);
    }
}

@keyframes blink_soft_anim{
    0%{
        opacity: .5;
    }
    45%{
        opacity: 1;
    }
    100%{
        opacity: .5;
    }
}


.gamepad_svg path:nth-child(2) { animation-delay: 0.2s; stroke-width: 1.1; }
.gamepad_svg path:nth-child(3) { animation-delay: 0.3s; stroke-width: 1.1; }
.gamepad_svg path:nth-child(4) { animation-delay: 0.4s; stroke-width: 1.1; }
.gamepad_svg path:nth-child(5) { animation-delay: 0.5s; stroke-width: 1.1; }
.gamepad_svg path:nth-child(6) { animation-delay: 0.3s; }
.gamepad_svg path:nth-child(7) { animation-delay: 0.3s; }
.gamepad_svg path:nth-child(8) { animation-delay: 0.4s; }
.gamepad_svg path:nth-child(9) { animation-delay: 0.4s; }

@keyframes draw_svg {
  to {
    stroke-dashoffset: 0;
  }
}


/* MULTIPLAYER */

/* .playerbox{
    flex: .25;
}

.playerbox_ul {
    list-style: none;
    margin: 20px;
    display: flex;
    flex-direction: column;
    padding: 3.5em;
    background: var(--joy_lightblue);
    backdrop-filter: blur(31px);
    border-radius: 24px;
    align-items: center;
}

.playerbox li{
    width: fit-content;
    display: flex;
    align-items: center;
}

.playerbox h2{
    border-radius: 30px;
    padding: 0.25em 1em;
}

.playerbox svg{
    width: 36px;
    height: 36px;
    fill: none;
    color: var(--joy_lightblue);
}

.playerbox path {
    stroke-width: 0.85;
}

.player_name{
    background: #d4b8ea;
}

.player_status-icon {
    color: var(--joy_teal);
    margin-right: 3px;
} */


/* REMOTE ANIMATION */
/* .animated-svg {
  stroke: #000;
  fill: white;
  stroke-width: 1.5;
}

.animated-svg path {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: draw 2s ease forwards;
} */

/* Optional: stagger animation for each path */
/* .animated-svg path:nth-child(0) { animation-delay: 0.2s; }
.animated-svg path:nth-child(1) { animation-delay: 0.2s; }
.animated-svg path:nth-child(2) { animation-delay: 0.2s; }
.animated-svg path:nth-child(3) { animation-delay: 0.3s; }
.animated-svg path:nth-child(4) { animation-delay: 0.4s; }
.animated-svg path:nth-child(5) { animation-delay: 0.5s; }
.animated-svg path:nth-child(6) { animation-delay: 0.6s; }
.animated-svg path:nth-child(7) { animation-delay: 0.7s; }
.animated-svg path:nth-child(8) { animation-delay: 0.8s; }
.animated-svg path:nth-child(9) { animation-delay: 0.9s; } */
/* 
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
} */