/* Add Google Font */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');


body,
html {
    height: 100%;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.keyboard {
    display: flex;
    align-items: flex-start;
}

.key {
    height: 240px;
    width: 80px;
    border: 1px solid black;
    text-align: center;
    position: relative;
}

.white {
    background-color: white;
}

.black {
    height: 160px;
    width: 60px;
    background-color: black;
    margin-left: -30px;
    margin-right: -30px;
    z-index: 1;
}

.note {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    text-align: center;
}

.komal {
    text-decoration: underline;
}

.tivra {
    text-decoration: overline;
}


/* Style all note labels */
.note {
    font-family: 'Montserrat', sans-serif;
}

/* Specific style for black keys */
.key.black .note {
    color: white;
}

.ghost-key {
    opacity: 0.5;
}



#tanpuraToggle {
    position: absolute;
    background-color: white;
    border-radius: 12.5px;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
}

#tanpuraImg {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

/* iOS Toggle */
#droneSwitch {
    appearance: none;
    width: 50px;
    height: 25px;
    border-radius: 12.5px;
    background-color: gray;
    position: relative;
    cursor: pointer;
    outline: none;
}

#droneSwitch:checked {
    background-color: green;
}

#droneSwitch::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background-color: white;
    transition: all 0.2s ease-in-out;
}

#droneSwitch:checked::before {
    left: 27px;
}



.key.about-to-play {
    animation: glow 500ms ease-in-out;
}

@keyframes glow {
    0% {
        box-shadow: 0 0 5px #fff;
    }

    50% {
        box-shadow: 0 0 20px #fff, 0 0 30px #ff00de;
    }

    100% {
        box-shadow: 0 0 5px #fff;
    }
}

.key.in-sequence {
    background-color: #FFFF99;  /* Your mild yellow */
}

.key.playing {
    background-color: #FFFF00;  /* Bright Yellow */
  }

  #playSequenceAvaroha {
    transform: rotate(180deg);
  }




  .loading-screen {
    display: block;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
  }
  
  .loader {
    position: absolute;
    left: 50%;
    top: 50%;
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 2s linear infinite;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  