@font-face {
    font-family: 'Chewy';
    font-style: normal;
    font-weight: 400;
    src: url('Res/Fonts/chewy-v9-latin-regular.eot');
    /* IE9 Compat Modes */
    src: local('Chewy Regular'), local('Chewy-Regular'),
    url('Res/Fonts/chewy-v9-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
    url('Res/Fonts/chewy-v9-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
    url('Res/Fonts/chewy-v9-latin-regular.woff') format('woff'), /* Modern Browsers */
    url('Res/Fonts/chewy-v9-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
    url('Res/Fonts/chewy-v9-latin-regular.svg#Chewy') format('svg'); /* Legacy iOS */
}

@font-face {
    font-family: HelveticaNeueHv;
    src: url(Res/Fonts/HelveticaNeueHv.ttf);
}

.round-button,
#streak,
#free_practice_mode,
#time {
    opacity: 0;
    visibility: hidden;
}

html {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;    
    display: flex;
    align-items: center;
    justify-content: center;
}

body {
    font-family: 'Chewy';
    height: 100%;
    max-height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    background-image: url('Res/background.svg');
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    -moz-background-size: cover;
    -webkit-background-size: cover;
    -o-background-size: cover;
    overflow-x: hidden;
    margin: 0 auto;
    overflow: hidden;
}

:not(:root):fullscreen::backdrop {
  background-color: 'transparent';
  background-image: url('Res/background.svg');
}

.container-fluid {
    height: 100%;
    padding-left: 0px;
    padding-right: 0px;
    margin-left: 40px;
    margin-right: 40px;
}

#row_high {
    height: 15%;
    margin-left: 3%;
    margin-right: 3%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.col-high {
    height: auto;
}

.round-button {
    height: 13vh;
    width: 13vh;
    border: none;
    margin-top: 15px;
    margin-left: auto;
    margin-right: auto;
    outline: none;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    top: -5px;
    background-color: transparent;
    background-repeat: no-repeat;
    background-size: cover;
    vertical-align: middle;    
    border-radius: 50%;
    box-shadow: 4px 4px 10px #2a2a2a;
    -webkit-transition: all .4s;
    -moz-transition: all .4s;
    transition: all .4s;
}

.round-button:active {
    top: 5px;
    box-shadow: none;
}

#menu_btn {
    margin-right: 15px;
    background-image: url(Res/options_btn.svg);
}

#soundOnOff {
    background-image: url(Res/Sound_btn_neutral.svg);
}

#play_btn {
    background-image: url(Res/play_btn.svg);
}

#reset_game_modal {
    display: none;
    position: fixed;
    z-index: 3;
    margin-left: auto;
    margin-right: auto;
    margin-top: 8%;
    width: 350px;
    height: auto;
    left: 0;
    right: 0;
    overflow: hidden;
    padding: 16px;
    box-sizing: border-box;
    border: 7px solid white;
    background-color: #a84303;
    border-radius: 15px;
    color: white;
    text-align: center;
    text-shadow: 2px 2px 8px #000000;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19),
    0 16px 12px -12px rgba(0, 0, 0, 0.5) inset, /*top*/
    16px 0 16px -12px rgba(0, 0, 0, 0.5) inset, /*left*/
    -16px 0 16px -12px rgba(0, 0, 0, 0.5) inset,
    0 -16px 12px -12px rgba(0, 0, 0, 0.5) inset;
    -webkit-animation-name: animatetop;
    -webkit-animation-duration: 0.4s;
    animation-name: animatetop;
    animation-duration: 0.4s;
}

#reset_game_modal h1 {
    padding-bottom: 32px;
    font-size: 3em;
}

#reset_game_modal button {
    display: inline-block;
    margin: 0px 16px 16px 16px;
    padding: 8px 16px;
    color: white;
    font-size: 1.7em;
    border-radius: 10px;
    outline: none;
    border: 3.5px solid white;
}

#reset_game_btn_yes {
    background: green;
}

#reset_game_btn_yes:hover {
    background: #00d900;
}

#reset_game_btn_no {
    background: #d90000;
}

#reset_game_btn_no:hover {
    background: red;
}

#play_btn_popup {
    position: absolute;
    top: 15px;
    left: 65%;
    display: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    width: 80%;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px 4px;
    z-index: 2;
    color: black;
    background-color: oldlace;
    box-shadow: 4px 4px 10px #2a2a2a;
}

#play_btn_popup::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 99.5%;
    margin-top: -8px;
    border-width: 8px;
    border-style: solid;
    border-color: transparent oldlace transparent transparent;
}

#topTen_btn {
    background-image: url(Res/top_ten_btn.svg);
}

#info_btn {
    margin-left: 15px;
    background-image: url(Res/info_btn.svg);
}

#row_middle {
    height: 60%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin: auto;
    padding: 0;
    position: relative;
}

#cards_container {
    width: auto;
    height: 95%;
    min-width: 50%;
    min-height: 300px;
    position: relative;
}

.card {
    position: absolute;
    display: block;
    opacity: 0;
    width: 95%;
    height: 90%;
    border-radius: 15px;
    color: aliceblue;
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.8);
    box-shadow: 4px 8px 16px 0 rgba(0, 0, 0, 0.4),
    0 16px 12px -12px rgba(0, 0, 0, 0.5) inset, /*top*/
    16px 0 16px -12px rgba(0, 0, 0, 0.5) inset, /*left*/
    -16px 0 16px -12px rgba(0, 0, 0, 0.5) inset,
    0 -16px 12px -12px rgba(0, 0, 0, 0.5) inset;
}

.card h2 {
    margin-bottom: 0;
}

#card1 {
    background: #F44545;
    top: 15%;
    z-index: 5;
}

.card-slot {
    display: inline-block;
    width: 27%;
    height: 75%;
    margin: 1%;
    padding: 2%;
    border-radius: 15px;
    text-align: center;
}

.card-slot:hover {
    cursor: pointer;
    background: rgba(255, 255, 255, 0.5);
}

.card-slot p {
    font-size: 3vh;
    height: auto;
    overflow: visible;
    margin-top: 3%;
    white-space: nowrap;
    overflow: visible;
}

.card-slot img {
    height: 85%;
    width: 95%;
}

#notes_card4 {
    display: none;
}

#instrument_piano {
    width: 99%;
}

#card2 {
    background: #ffcf00;
    top: 12.5%;
    left: 1.5%;
    z-index: 4;
}

#card3 {
    background: #7ae2e2;
    top: 10%;
    left: 3%;
    z-index: 3;
}

.keyboard1 {
    width: 100%;
    height: 85%;
}

.keyboard2 {
    width: 100%;
    height: 90%;
}

.keyboard3 {
    width: 90%;
    height: 100%;
}

.piano {
    margin-top: 1%;
}

#path51:hover {
    pointer-events: none;
    cursor: auto;
    fill: #050716 !important;
}

.guitar {
    width: 99%;
    height: 66%;
}

.bass, .bass5 {
    width: 99%;
    height: 60%;
}

/* .bass5 {
  height: 70%;
} */

.guitar rect,
.bass rect,
.bass5 rect {
    opacity: 0;
    fill: #98ffdc;
    fill-rule: nonzero;
    stroke: #0000ff;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-miterlimit: 10;
    paint-order: stroke fill;
}

#flip_instrument {
    display: none;  
    width: 8vh;
    height: 8vh;
    border: none;    
    position: absolute;
    outline: none;
    overflow: hidden;     
    bottom: 3px;
    background-color: transparent;
    background-repeat: no-repeat;
    background-size: cover;
    background-image: url(Res/flip_instrument.svg);
    left: 2vw;
    top: 50%;
    transform: translate(0%, -50%);
    max-width: 60px;
    max-height: 60px;
}

#flip_instrument:hover {
    cursor: pointer;  
}

#row_low {
    height: 20%;
}

.col-low {
    font-size: 7vw;
    font-weight: 800;
    width: 33%;
    height: 100%;
    text-align: center;
}

#col_low_left {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    overflow: visible;
    position: relative;
}

#col_low_right {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  overflow: visible;
}

#streak_free_practice_container {
  display: flex;
  justify-content: center;
  flex-direction: column;
  /* margin-right: 6.5%; */
}

#streak {
    font-family: "HelveticaNeueHv", Helvetica, Arial, sans-serif;
    color: cyan;
    text-shadow: 2px 2px 8px #000000;
    flex: 5;
}

#free_practice_mode {
    font-weight: 100;
    font-size: 1.5vw;
    color: aliceblue;    
    text-shadow: 1px 1px 2px #000000;
    flex: 1;
}

/*added for fastclick conflict on mobile*/

label > * {
    display: block;
    pointer-events: none;
}

#free_practice_label {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: auto;
    font-size: 1.7vw;
    color: lightgray;
    border: 1px solid rgba(240, 248, 255, 0.5);
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    border-radius: 15px;
    padding: 2px 15px;
}

#free_practice_checkbox {
    visibility: hidden;
    border: none;
    outline: none;
    width: 2vh;
    height: 2vh;
    cursor: pointer;
}

#free_practice_checkbox_led {
    margin-left: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: gray;
    opacity: 0.8;    
    box-shadow: rgba(0, 0, 0, 0.2) 0 -1px 7px 1px, inset #441313 0 -1px 9px;
    border: none;
    outline: none;
}

.blinking-led {
    background-color: #F00;    
    box-shadow: rgba(0, 0, 0, 0.2) 0 -1px 7px 1px, inset #441313 0 -1px 9px, rgba(255, 0, 0, 0.5) 0 2px 12px;
    -webkit-animation: blinkRed 0.75s infinite;
    -moz-animation: blinkRed 0.75s infinite;
    -ms-animation: blinkRed 0.75s infinite;
    -o-animation: blinkRed 0.75s infinite;
    animation: blinkRed 0.75s infinite;
}

@-webkit-keyframes blinkRed {
    from {
        background-color: #F00;
    }
    50% {
        background-color: #A00;
        box-shadow: rgba(0, 0, 0, 0.2) 0 -1px 7px 1px, inset #441313 0 -1px 9px, rgba(255, 0, 0, 0.5) 0 2px 0;
    }
    to {
        background-color: #F00;
    }
}

@-moz-keyframes blinkRed {
    from {
        background-color: #F00;
    }
    50% {
        background-color: #A00;
        box-shadow: rgba(0, 0, 0, 0.2) 0 -1px 7px 1px, inset #441313 0 -1px 9px, rgba(255, 0, 0, 0.5) 0 2px 0;
    }
    to {
        background-color: #F00;
    }
}

@-ms-keyframes blinkRed {
    from {
        background-color: #F00;
    }
    50% {
        background-color: #A00;
        box-shadow: rgba(0, 0, 0, 0.2) 0 -1px 7px 1px, inset #441313 0 -1px 9px, rgba(255, 0, 0, 0.5) 0 2px 0;
    }
    to {
        background-color: #F00;
    }
}

@-o-keyframes blinkRed {
    from {
        background-color: #F00;
    }
    50% {
        background-color: #A00;
        box-shadow: rgba(0, 0, 0, 0.2) 0 -1px 7px 1px, inset #441313 0 -1px 9px, rgba(255, 0, 0, 0.5) 0 2px 0;
    }
    to {
        background-color: #F00;
    }
}

@keyframes blinkRed {
    from {
        background-color: #F00;
    }
    50% {
        background-color: #A00;
        box-shadow: rgba(0, 0, 0, 0.2) 0 -1px 7px 1px, inset #441313 0 -1px 9px, rgba(255, 0, 0, 0.5) 0 2px 0;
    }
    to {
        background-color: #F00;
    }
}


#noteToFind {
    font-family: "HelveticaNeueHv", Helvetica, Arial, sans-serif;
    /* color: gold; */
    color: #ffcf00;
    text-shadow: 2px 2px 8px #000000;
    text-align: center;
    font-size: 8vw;
    display: flex;
    justify-content: center;
    height: 130%;
    width: 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 80%;
}

#time {
    overflow: visible;
    color: black;
    text-align: center;
    font-weight: 600;
    font-size: 7vh;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    background-image: url(Res/sveglia.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    /* margin-left: auto; */
    width: 75%;
}

#fullscreen {
  width: 8vh;
  height: 8vh;
  border: none;    
  outline: none;
  overflow: hidden;     
  bottom: 3px;
  background-color: transparent;
  background-repeat: no-repeat;
  background-size: cover;
  background-image: url(Res/fullscreen.svg);
  max-width: 60px;
  max-height: 60px;
}

#fullscreen:hover {
  cursor: pointer;  
}

.selected {
    stroke-width: 1;
    stroke: yellow !important;
}

.selected-string {
    fill: yellow !important;
}

/*Media Queries*/

@media (max-width: 500px) {
    .card-slot p {
        font-size: 1em;
    }
}

@media (max-width: 567px) {

    #cards_container {
        min-width: 85%;
    }

    .card-slot h2 {
        font-size: 0.8em;
    }

    .card-slot p {
        font-size: 1.2em;
    }

    #free_practice_checkbox_led {
        margin-left: 5px;
        width: 15px;
        height: 15px;
    }
    .round-button {
        height: 15vh;
        width: 15vh;
    }
    .container-fluid {
        margin-left: 10px;
        margin-right: 10px;
    }
    .keyboard3 {
        width: 100%;
        height: 100%;
    }
}

@media (min-width: 568px) and (max-width: 767px) {

    #cards_container {
        min-width: 80%;
    }

    .card-slot h2 {
        font-size: 0.8em;
    }

    .card-slot p {
        font-size: 1.2em;
    }

    #free_practice_checkbox_led {
        margin-left: 5px;
        width: 15px;
        height: 15px;
    }
    .round-button {
        height: 15vh;
        width: 15vh;
    }
    .container-fluid {

        margin-left: 10px;
        margin-right: 10px;
    }
    .keyboard3 {
        width: 100%;
        height: 100%;
    }
    #reset_game_modal h1 {
        padding-bottom: 32px;
        font-size: 2em;
    }
    #reset_game_modal button {
        display: inline-block;
        margin: 0px 16px 16px 16px;
        padding: 8px 16px;
        color: white;
        font-size: 1.2em;
        border-radius: 10px;
        outline: none;
        border: 3.5px solid white;
    }
    #col_high_left,
    #col_high_right {
        padding-left: 20px;
    }
    #reset_game_modal {
        width: 250px;
        height: 200px;
    }
    .modal-content {
        width: 80%;
    }

    #flip_instrument, #fullscreen {
      width: 6vh;
      height: 6vh;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .container-fluid {
        margin-left: 20px;
        margin-right: 20px;
    }

    #cards_container {
        min-width: 60%;
    }

    .keyboard3 {
        width: 95%;
        height: 100%;
    }
    #col_high_left,
    #col_high_right {
        padding-left: 20px;
    }
    #reset_game_modal {
        width: 300px;
    }
    .modal-content {
        width: 70%;
    }

    #flip_instrument, #fullscreen {
      width: 7vh;
      height: 7vh;
    }
}

@media (min-width: 1025px) and (max-width: 1224px) {
    #col_high_left,
    #col_high_right {
        padding-left: 10px;
    }
    .modal-content {
        width: 60%;
    }
}
