body {
    background-color: hsl(25,75%,50%);
    color: darkslategray;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    overflow-x: hidden;
}

header {
    background-color: darkslategray;
    color: white;
    text-align: center;
    display: inline-block;
    position: fixed;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 50px;
    overflow: hidden;
    z-index: 2;
    border-bottom: 1px solid seashell;
    padding: 30px;
    margin: 0px;
}

header h1 {
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    position: relative;
    top: -2.2rem;
    font-size: 3rem;
}

main {
    position: relative;
    top: 120px;
}

#controlButtonsBlock {
    margin: auto;
    float: right;
    margin-right: 30px;
}

.controlButtons {
    border-color: seashell;
    border-radius: 5px;
    border-style: solid;
    border-width: 1px;
    padding: 7px;
    font-weight: bold;
    margin-left: 30px;
    display: inline-block;
    cursor: pointer;
}

.controlSymbols {
    height: 30px;
    width: 30px;
}

.controlLabels {
    vertical-align: top;
    line-height: 30px;
}

#mainContainer {
    margin: auto;
    text-align: center;
}

#bpmHeaderInfo {
    display: none;
}

#headerBpmValue {
    color: white;
}

#block2 .instrumentId {
    display: none;
}

#block3 .instrumentId {
    display: none;
}

#block4 .instrumentId {
    display: none;
}

.instrumentId {
    border-color: seashell;
    border-radius: 5px;
    border-style: solid;
    border-width: 1px;
    padding: 7px;
    font-weight: bold;
    margin-right: 5px;
}

.beatButton {
    background-color: darkslategray;
    width: 2rem;
    height: 2rem;
    border-radius: 5px;
    padding: 3px;
    cursor: pointer;
}

.buttonGridContainer{
    display: inline-block;
    padding: 30px 0px 30px 0px;
}

.buttonGrid {
    display: inline-block;
}

.buttonTable {
    display: inline-block;
}

#bpmControl {
    height: 310px;
    border-color: seashell;
    border-radius: 5px;
    border-style: solid;
    border-width: 1px;
    padding: 7px;
    width: 200px;
    display: inline-block;
    position: relative;
    top: -134px;
    left: 10px;
}

#bpmControl h1 {
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-size: 3rem;
    color: darkslategray;
    text-align: center;
}

#bpmControl h2 {
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-size: 2.5rem;
    color: white;
    text-align: center;
}

#bpmSlider {
  -webkit-appearance: none;
  appearance: none;
  width: 300px;
  height: 25px;
  background: #d3d3d3;
  outline: none;
  opacity: 0.9;
  -webkit-transition: .2s;
  transition: opacity .2s;
  transform: rotate(270deg);
  position: relative;
  top: 140px;
  left: -135px;
}

#positionCounterBox {
    display: none;
}

footer p {
    text-align: center;
}

#splitGridsInTwo {
    display: none;
}

.splitGridsInFour {
    display: none;
}

@media only screen and (max-width: 1110px) {

    body {
        background-color: turquoise;
    }
    
    header h1 {
        position: relative;
        left: -8rem;
    }

    #bpmControl {
        width: 35px;
        top: -290px;
    }

    #bpmHeaderInfo {
        display: block;
        padding-left: 30px;
        border-color: seashell;
        border-radius: 5px;
        border-style: solid;
        border-width: 1px;
        margin-left: 25%;
        margin-bottom: 5px;
        width: 500px;
    }

    #bpmControlInfo {
        display: none;
    }

    .controlSymbols {
        display: none;
    }

    .controlLabels {
        display: inline;
    }
}

@media only screen and (orientation: portrait) and (max-width: 999px) { /* N.B. Comma separation is OR, added width query to easily simulate phone screens just by resizing desktop window */
    #splitGridsInTwo {
        display: inline;
    }
    
    header h1 {
        position: relative;
        top: -3.6rem;
        left: -8rem;
        font-size: 4rem;
    }

    body {
        /* background-color: hsl(25,75%,50%); */
        background-color: palevioletred;
    }

    main h1 {
        font-size: 2.5rem;
    }
    
    #controlButtonsBlock {
        margin-bottom: 30px;
    }

    #mainContainer {
        margin-top: 50px;
    }

    #bpmHeaderInfo {
        display: block;
        font-size: 2em;
        border-color: seashell;
        border-radius: 5px;
        border-style: solid;
        border-width: 1px;
        margin: auto;
        margin-bottom: 5px;
        width: 600px;
    }
    
    #bpmControl {
        width: 60px;
        height: 1265px;
        top: -1227px;
        left: 30px;
    }

    .instrumentId {
        font-size: 2.1em;
        padding-top: 15px;
        padding-bottom: 15px;
    }

    #block2 {
        padding-right: 80px;
    }

    #block3 .instrumentId {
        display: block;
    }

    .beatButton {
        background-color: darkslategray;
        width: 4rem;
        height: 4rem;
        border-radius: 10px;
        padding: 6px;
        cursor: pointer;
    }
    
    .buttonGridContainer{
        display: inline-block;
        padding: 30px 0px 30px 0px;
    }
    
    .buttonGrid {
        display: inline-block;
    }
    
    .buttonTable {
        display: inline-block;
    }

    #bpmSlider {
        -webkit-appearance: none;
        appearance: none;
        width: 1255px;
        height: 50px;
        background: #d3d3d3;
        outline: none;
        opacity: 0.9;
        -webkit-transition: .2s;
        transition: opacity .2s;
        transform: rotate(270deg);
        position: relative;
        top: 608px;
        left: -599px;
    }

    .controlButtons {
        border-radius: 100%;
        width: 60px;
    }

    .controlSymbols {
        display: inline;
        position: relative;
        left: 5px;
        top: 1px;
        height: 50px;
        width: 50px;
    }

    .controlLabels {
        display: none;
    }
}