@import url('https://fonts.googleapis.com/css2?family=Geist+Pixel&family=IBM+Plex+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap');

@font-face {
    font-family: 'Departure';
    src: url('/media/fonts/Departure.otf');
    font-weight: normal;
    font-style: normal;
}

body {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    user-select: none;
    align-items: center;
    justify-content: space-around;
    overflow: hidden;
    margin: 0;
    image-rendering: pixelated;
}

header {
    width: calc(95vw + 40px);
    font-family: 'IBM Plex Mono';
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-left: 20px;
    padding-right: 20px;
}


.home {
    color: #0000FD;
    font-family: 'IBM Plex Mono';
    display: flex;
    flex-direction: row;
    align-items: baseline;
    font-size: 5vw;
}

img {
    width: 4vw;
    padding: 0;
    margin: 0;

}

a {
    color: #0000FD;
    text-decoration: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: row;
    align-items: baseline;
}

.st {
    font-weight: bold;
    margin: 0;
    padding: 0;
}

.mch {
    font-weight: 200;
}

.mk {
    font-size: 3vw;
    margin: 0;
    padding: 0;
}

.ctrl,
.ctrlMin {
    font-family: 'IBM Plex Mono';
    width: 15%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    justify-content: space-between;
    margin: 0;
}

.ctrlMin {
    display: none;
}

.bpm {
    display: flex;
    flex-direction: column;
    align-items: end;
    justify-content: end;
    justify-content: space-around;
    margin: 0;
}

#bpm,
#bpmMin,
.go {
    font-weight: bold;
    font-size: 2vw;
}


.rec {
    color: red;
    font-weight: bold;
    font-size: 4vw;
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}


.go {
    cursor: pointer;
}

.controls {
    image-rendering: pixelated;
    width: 95vw;
    border: 1px solid #0000FD;
    color: #0000FD;
    padding: 19px;
    margin: 0;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
}

.paramWrap {
    width: 50%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
}


.param {
    font-family: 'IBM Plex Mono';
    text-transform: uppercase;
    font-weight: 700;
    padding: 10px;
    padding-left: 25px;
    padding-right: 25px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    border-right: 2px solid #0000FD;
}

.paramWrap:last-of-type {
    .param:last-of-type {
        border: none;
    }
}

.paramTitle {
    display: block;
    text-align: center;
    margin-bottom: 40px;
    font-size: 2vh;
}

.paramTitleMin {
    display: none;
    margin-bottom: 20px;
}

.paraCtrl {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 10px;
    justify-content: space-between;

    span {
        width: 100%;
        text-align: left;
    }

}

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

.machina {
    image-rendering: pixelated;
    width: 95vw;
    background-color: #0000FD;
    border: 1px solid white;
    color: white;
    padding: 20px;
}

.screen {
    image-rendering: pixelated;
    border: 1px solid white;
}

.machine {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    margin-bottom: 20px;
    margin-top: 20px;
}

.title {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 48px;
    border: 1px solid white;
    font-family: 'Departure';
    cursor: pointer;
    font-weight: bold;
}

.title:hover {
    background-color: white;
    color: #0000FD;
}

.title:active {
    border: 1px solid #0000FD;
}

.accent {
    background-color: white;
    color: #0000FD;
}

.accent:active {
    border: 1px solid white;
}


.step[state="off"] {
    background-color: white;
    width: 8px;
    height: 8px;
    border: 21px solid #0000FD;
}

.step[state="on"] {
    background-color: white;
    width: 50px;
    height: 50px;
}


.seq {
    .space {
        border: none;
        width: 50px;
    }

    margin: 0;
    margin-top: -10px;

    .step {
        width: 50px;
        text-align: center;
    }

    border: none;
    color: #0000FD;
}

hr {
    border: 0;
    clear: both;
    display: block;
    width: 100%;
    background-color: #0000FD;
    height: 10px !important;
}


.paramWrap:nth-child(2) {
    .param:first-child {
        .paramTitle {
            margin-bottom: 10px;
        }
    }


}

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

    html,
    body {
        overflow: hidden;
        height: 100vh;
    }

    body {
        display: block;
        position: relative;
    }

    .max {
        display: none;
    }

    header {
        width: 100%;
        padding: 0;
        margin: 0;
        margin-bottom: 25px;
        flex-direction: column;
    }

    .home {
        width: 100%;
        padding-top: 10px;
        font-size: 4vh;
        align-items: center;
        justify-content: center;
    }

    img {
        display: none;
    }

    .ctrl {
        display: none;
    }

    .ctrlMin {
        display: flex;
        width: 100%;
        align-items: center;
        justify-content: space-between;
        position: fixed;
        padding-bottom: 10px;
        bottom: 0;
    }

    .bpm {
        align-items: center;
        justify-content: center;
        padding-right: 30px;

        span {
            display: flex;
            width: 100%;
            align-items: center;
        }
    }

    #bpm,
    #bpmMin,
    .go {
        font-size: 2vh;
    }

    #tempo.slide {
        width: 100%;
    }

    .rec {
        font-size: 4vh;
        text-align: right;
        padding-left: 30px;
    }

    .machina {
        image-rendering: pixelated;
        width: 100%;
        background-color: #0000FD;
        border: 1px solid white;
        color: white;
        padding: 0;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        margin-bottom: 25px;
    }


    .screen {
        width: 100%;
        margin: 0;
        padding: 0;
        border: none;
        display: flex;
        flex-direction: row-reverse;
        justify-content: center;
        align-items: center;
        justify-content: space-evenly;
        overflow: hidden;
    }

    .title {
        width: 28px;
        height: 28px;
    }

    .step[state="off"] {
        background-color: white;
        width: 4px;
        height: 4px;
        border: 18px solid #0000FD;
    }

    .step[state="on"] {
        background-color: white;
        width: 30px;
        height: 30px;
        border: 5px solid #0000FD;
    }

    .machine {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        border-right: 1px solid white;
    }

    .machine:nth-child(1) {
        border: none;
    }

    .t {
        border: none;
    }

    .paramTitle {
        display: none;
        margin: 0;
    }

    .paramTitleMin {
        display: block;
        text-align: center;
    }

    .seq {
        margin-bottom: 20px;
        margin-top: 20px;
        text-align: center;
        border: none;
        width: 10px;

        .space {
            width: 28px;
            height: 28px;
        }

        .step {
            writing-mode: vertical-rl;
            height: 40px;
            width: 10px;

        }
    }

    .controls {
        flex-direction: column;
        width: 100%;
        image-rendering: pixelated;
        border: none;
        padding-left: 0;
    }

    .param {
        border: none;
        padding: 5px;
    }

    .paramWrap {
        width: 100%;

        .param {
            border-bottom: 1px solid #0000FD;
        }

        .param:last-of-type {
            border-bottom: 1px solid #0000FD;
        }
    }

    .param:nth-child(2) {
        border-bottom: 1px solid #0000FD !important;
        border-left: 1px solid #0000FD !important;
    }

    .paramCtrl {
        width: 100%;
    }

    .paraCtrl {
        height: 100%;
        width: 100%;
    }


}


/**************slide section**************/

input[type=range] {
    -webkit-appearance: none;
    width: 10vw;
    min-width: 80px;
    max-width: 160px;
    background: #0000FD;
    overflow: hidden;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
}

input[type=range]::-ms-track {
    cursor: pointer;
    background: transparent;
    border-color: transparent;
    color: transparent;
    overflow: hidden;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    border: none;
    height: 1.5em;
    width: 1.5em;
    cursor: pointer;
    background: #0000FD;
    box-shadow: -80px 0 0 80px #0000FD;
}

input[type=range]::-moz-range-thumb {
    height: 2em;
    width: 1em;
    cursor: pointer;
    background: #0000FD;
}

input[type=range]::-ms-thumb {
    height: 1.5em;
    width: 1.5em;
    cursor: pointer;
    background: #0000FD;
}


input[type=range]::-webkit-slider-runnable-track {
    height: 1em;
    cursor: pointer;
    border: 1px solid #0000FD;
    border-style: outset;
    background: white;
    overflow: hidden;
}

input[type=range]:focus::-webkit-slider-runnable-track {
    background: white;
}

input[type=range]::-moz-range-track {
    height: 0.4em;
    cursor: pointer;
    border: 1px solid black;
    border-style: outset;
    background: white;
}

input[type=range]::-ms-track {
    height: 0.4em;
    cursor: pointer;
    background: transparent;
    border-color: transparent;
    border-width: 16px 0;
    color: transparent;
}

input[type=range]::-ms-fill-lower {
    background: white;
}

input[type=range]:focus::-ms-fill-lower {
    background: white;
}

input[type=range]::-ms-fill-upper {
    background: white;
}

input[type=range]:focus::-ms-fill-upper {
    background: white;
}