* {
    box-sizing: border-box;
}

body {
    width: 100%;
    background-color: #100830;
    background: radial-gradient(circle, rgb(60, 7, 85) 0%, rgb(3, 3, 29) 100%);
}

#turn {
    height: 100%;
    width: 100%;
    position: absolute;
    z-index: -1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.turn-text {
    color: antiquewhite;
    font-family: 'Press Start 2P', cursive;
    font-size: 50px;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 50px;
}

.header {
    margin-top: 20px;
    padding-left: 400px;
    padding-right: 400px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}

.instrument-pic {
    width: 100px;
    height: 90px;
    border: 2px cyan solid;
    border-radius: 10%;
}

.instrument-pic:hover {
    box-shadow: 0 0 20px rgb(255, 0, 183);
}

.instrument-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
}

.drum-machine {
    background-color: rgb(20, 20, 20);
    width: 55%;
    height: 78vh;
    border-radius: 3px;
    box-shadow: 0 0 6px rgb(3, 86, 119);
    border: 3px solid rgba(0, 255, 255, 0.5);
}

.drum-row {
    height: 11.5%;
    width: 100%;
    display: flex;
    border-bottom: rgba(49, 0, 33, 0.267) 1px solid;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    background-color: #b4b4b4;
}

.drum-row.first {
    background-color: rgb(20, 20, 20);
    height: 15%;
}

.display-container {
    height: 100%;
    width: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spacer {
    height: 100%;
    width: 10%;
}

.tempo-container {
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.tempo-button-row {
    width: 100%;
    height: 85%;
    display: flex;
    justify-content: space-evenly;
    padding-top: 3.5%;
}

.tempo-text-row {
    width: 100%;
    height: 10%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
}

.tempo {
    height: 90%;
    width: 15%;
    border-radius: 5px;
}

.text-row {
    width: 100%;
    height: 2%;
    display: flex;
    align-items: center;
    background-color: rgb(63, 63, 63);
    justify-content: space-around;
}

.step-text {
    color: antiquewhite;
    font-family: 'Press Start 2P', cursive;
    font-size: 8px;
}

.step-text-1 {
    color: rgb(255, 94, 0);
    font-family: 'Press Start 2P', cursive;
    font-size: 8px;
}

.tempo-text {
    font-family: 'Press Start 2P', cursive;
    pointer-events: none;
    text-transform: uppercase;
    width: 15%;
    text-align: center;
    font-family: 'Press Start 2P', cursive;
    font-size: 8px;
    color: antiquewhite;

}

.pad {
    height: 50%;
    width: 5.2%;
    background-color: rgb(70, 70, 70);
    border: 2px cyan solid;
    border-radius: 10%;
    box-shadow: 2px 2px 2px grey;
}

.pad:hover {
    box-shadow: 0 0 10px rgb(191, 255, 255);
}

.pad.start {
    height: 100px;
    width: 100px;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pad.start.click {
    height: 90px;
    width: 90px
}

.slower {
    background-color: rgb(115, 70, 31);
}

.slow {
    background-color: rgb(237, 149, 71);
}

.normal {
    background-color: rgb(230, 119, 23);
}

.fast {
    background-color: rgb(224, 139, 79);
}

.faster {
    background-color: rgb(214, 146, 86);
}

.pad.cut {
    border: 2px rgb(176, 135, 99) solid;
}    

label {
    color: gainsboro;
    margin-left: 30px;
    margin-top: 10px;
    text-shadow: 0 0 3px rgb(30, 255, 0);
}

.display {
    background-color: rgb(33, 3, 46);
    width: 95%;
    height: 75%;
    margin-left: 20px;
    border-radius: 5px;
    box-shadow: 0 0 7px rgb(133, 10, 92);
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    color: rgb(255, 8, 0);
    text-align: center;
    text-transform: uppercase;
    font-family: 'Press Start 2P', cursive;
    font-size: 24px;
}

.instrument {
    width: 100%;
    height: 100%;
    border-radius: 10%;
    opacity: 0;
    cursor: pointer;   
}

.break {
    width: 100%;
    height: 100%;
    border-radius: 10%;
    opacity: 0;
    cursor: pointer; 
}

.tempo-check {
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.bottom-bar {
    width: 100%;
    height: 2%;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    justify-content: center;
}

h4 {
    padding-top: 13px;
    color: antiquewhite;
    font-family: 'Press Start 2P', cursive;
}

h5 {
    color: antiquewhite;
    font-family: 'Press Start 2P', cursive;
    text-align: center;
    pointer-events: none;
    position: absolute;
    text-transform: uppercase;
    top: 9px;
    left: 15px;
    line-height: 1.4;
}

.synth {
    height: 78vh;
    width: 65%;
    display: flex;
    flex-direction: column;
    border-radius: 3px;
    box-shadow: 0 0 10px rgb(133, 10, 92);
    border: 3px solid rgba(0, 255, 255, 0.5);
}

.sequencer-row {
    height: 70%;
    width: 100%;
    display: flex;
    flex-direction: column-reverse;
    justify-content: center;
    align-items: center;
}         

.sequencer {
    height: 100%;
    width: 100%;
    background-color: rgb(33, 3, 46);
    box-shadow: 0 0 7px rgb(133, 10, 92);
    display: flex;
    flex-direction: column-reverse;
    color: rgb(255, 8, 0);
    text-transform: uppercase;
    font-family: 'Press Start 2P', cursive;
    font-size: 30px;
}

.synth-row {
    height: 8.35%;
    width: 100%;
    display: flex;
    flex-direction: row;
    background-color:rgb(33, 3, 46);
}

.cell {
    width: 8.35%;
    height: 100%;
    border: .5px solid rgba(255, 0, 0, 0.255);
}

.cell.note {
    background-color: rgb(126, 4, 4);
    color: rgb(33, 3, 46);
    font-family: 'Press Start 2P', cursive;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.key-text-row-sharp {
    width: 100%;
    height: 3%;
    display: flex;
    padding-top: 4px;
    align-items: flex-start;
    background-color: rgb(33, 33, 33);
    box-shadow: 0 0 10px rgb(133, 10, 92);
    border-top: rgba(255, 0, 0, 0.5) 2px solid;
    padding-left: 10.5%
}

.sharp-keys-container {
    height: 80%;
    width: 100%;
    display: flex;
    justify-content: center;
    padding-top: .5%;
    padding-left: 8%;
    border-top: rgba(255, 0, 0, 0.3) 3px solid;
    background-color: rgba(0, 0, 0, 0.3);
}

.natural-keys-container {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    padding-bottom: .5%;
    padding-top: .2%;
    border-bottom: rgba(255, 0, 0, 0.3) 3px solid;
    background-color: rgba(0, 0, 0, 0.3);
}

.key-text-row-natural {
    width: 100%;
    height: 3%;
    display: flex;
    justify-content: center;
    padding-left: 4%;
    padding-right: 3%;
    padding-top: 3px;
    background-color: rgb(33, 33, 33);
}

.letter {
    font-family: 'Press Start 2P', cursive;
    color: red;
    font-size: 12px;
    width: 10%;
    text-align: center;
    margin-right: 3%;
    margin-top: 0px;
}

.key {
    width: 100%;
    height: 100%;
    border-radius: 10%;
    opacity: 0;
    cursor: pointer; 
}

.key-cell {
    width: 100%;
    height: 100%;
    border-radius: 10%;
    opacity: 0;
    cursor: pointer;  
}

.cell:hover {
    box-shadow: 0 0 3px rgb(253, 136, 208);
}

.key-button.invisible {
    visibility: hidden;
    width: 10%;
}

.key-button {
    border-radius: 10%;
    cursor: pointer;
    height: 100%;
    width: 9.1%;
    background-color: rgb(70, 70, 70);
    cursor: pointer;
    border-radius: 20px;
    margin-left: 2px;
}

.key-button:hover {
    box-shadow: 0 0 10px cyan;
}

.key-button.sharp {
    border-radius: 10%;
    cursor: pointer;
    height: 100%;
    width: 10%;
    background-color: rgba(55, 19, 70, 0.523);
    cursor: pointer;
    border-radius: 20px;
}

.key-button.sharp:hover {
    box-shadow: 0 0 15px cyan;
}

/* (A) WRONG ORIENTATION - SHOW MESSAGE HIDE CONTENT */
@media only screen and (orientation:portrait) {
  #turn { visibility: visible; }
  .synth { display: none; }
  .drum-machine { display: none; }
  .header { visibility: hidden; }
}
 
/* (B) CORRECT ORIENTATION - SHOW CONTENT HIDE MESSAGE */
@media only screen and (orientation:landscape) {
    #turn { visibility: hidden; }  
}


@media only screen and (max-width: 1218px) {   

    html {
        width: device-width;
        height: 100vh;
    }

    body {
        display: flex;
        flex-direction: row;
        height: 100%;
        width: 100%;
    }

    .header {
        height: 100%;
        width: 10%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-around;
        margin-top: 0px;
        padding-left: 0px;
        padding-right: 0px;
        margin-left: 4%;
        margin-right: 1%;
    }

    .container {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .drum-machine {
        margin-top: 1.5%;
        width: 90%;
        height: 95%;
    }

    .synth {
        margin-top: 5%;
        height: 85%;
        width: 75%;
    }

    .key-text-row-sharp {
        display: none;
    }

    .key-text-row-natural {
        display: none;
    }
 
}

@media only screen and (max-width: 812px) {

    .header {
        height: 100%;
        width: 5%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-evenly;
        margin-top: 0px;
        padding-left: 0px;
        padding-right: 0px;
        margin-left: 2%;
    }

    .instrument-pic {
        width: 60px;
        height: 50px;
        border: 1px cyan solid;
    }

    .pad.start {
        height: 50px;
        width: 50px;
        border-radius: 50%;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    h5 {
        top: 5px;
        left: 7.5px;
        line-height: 1.4;
        font-size: 6px;
    }

    h4 {
        padding-top: 7px;
        font-size: 8px;
    }

    .step-text {
        font-size: 5px;
    }

    .step-text-1 {
        font-size: 5px;
    }

    .tempo-text {
        font-size: 5px;
    }

     .drum-machine {
        margin-top: 2px;
        width: 90%;
        height: 95%;
    }

    .synth {
        margin-top: 2%;
        height: 90%;
        width: 88%;
    }

    .cell.note {
        font-size: 10px;
    }

    .turn-icon {
        width: 70%;
    }
}