@font-face {
    font-family: "Guru Meditation NBP";
    src: url(guru-meditation-nbp-font/GuruMeditationNbp-GynZ.ttf) format("truetype");
}

:root {
    --track-background: url(../images/trackOff.png) 0 0/100% 100% no-repeat;
}

*,
*::after,
*::before {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.flex {
    display: flex;
}

.column {
    flex-direction: column;
}

.center {
    justify-content: center;
    align-items: center;
}

img {
    -webkit-user-drag: none;
}

p {
    text-align: center;
    margin: 5px;
}

h1 {
    text-align: center;
    margin: 20px;
}

/* ---------------------------- Input Range Button -------------------------- */
input[type='range'] {
    -webkit-appearance: none !important;
    padding: 8px 15px;
    margin: 0px 0px;
    width: 240px;
    background: #DFE0E9;
    cursor: pointer;
}

@supports (-moz-appearance:none) {
    input[type='range'] {
        padding: 20px 15px;
    }
}

input[type='range'][disabled] {
    background-color: #ddd;
    -webkit-box-shadow: none;
    box-shadow: none;
}

/* Chrome, Safari, Opera, and Edge Chromium */
/* Thumb Styles */
input[type='range']::-webkit-slider-thumb {
    -webkit-appearance: none !important;
    margin-top: 7px;
    /* formula to properly center the thumb:  margin-top=(track height in pixels / 2) - (thumb height in pixels /2) */

    background: url(../images/thumb.png);
    background-repeat: no-repeat;
    background-size: contain;
    width: 13px;
    height: 26px;
}

/* Track Styles */
input[type="range"]::-webkit-slider-runnable-track {
    padding: 0 10px;
    height: 40px;
    border: none;
    background: var(--track-background);
}

/* Firefox */
/* Thumb Styles */
input[type="range"]::-moz-range-thumb {
    border: none;
    border-radius: 0;

    background: url(../images/thumb.png);
    background-repeat: no-repeat;
    background-size: contain;
    height: 26px;
    width: 13px;
}

/* Track Styles */
input[type="range"]::-moz-range-track {
    padding: 0 10px;
    height: 40px;
    border: none;
    background: var(--track-background);
}

/* -------------------------------------------------------------------------- */

#drumkit {
    background: linear-gradient(179.56deg, rgba(223, 224, 233, 0.5) 4.52%, rgba(205, 210, 220, 0.5) 96.3%);
    border: 2px solid #c4c4c2;
    box-shadow: inset 2px 2px 4px rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    width: 1000px;
    margin: 100px auto;
    padding: 40px 20px 20px;
    justify-content: center;
    align-items: center;
}

.dark-background {
    background-color: #0f0e0f;
    border-radius: 6px;
    padding: 4px;
    display: grid;
    grid-template-columns: 248px 212px 212px 248px;
    grid-template-rows: repeat(3, 1fr);
    gap: 4px;
}

/* ------------------------------- Upper Line ------------------------------- */
.speaker {
    background-image: url(../images/speaker.png);
    background-size: 200px 140px;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #dfe0e9;
    border-radius: 4px;
}

.menu {
    grid-column-end: span 2;
    gap: 4px;
}

/* --------------------------------- Display */
.window {
    width: 100%;
    height: 72px;
    background-color: #dfe0e9;
    border-radius: 4px;
    padding: 6px;
}

.screen-container {
    padding: 3px;
    background-color: rgb(144, 154, 166);
    border-radius: 6px;
    color: rgb(8, 9, 13);
    font: 16px / 18.4px "Share Tech Mono", monospace;
    outline: rgb(8, 9, 13) none 0px;
}

.screen {
    height: 53px;
    background-color: rgb(96, 92, 83);
    border-radius: 6px;
    border: 2px inset rgb(169 184 199);
    color: rgb(8, 9, 13);
    font: 16px / 18.4px "Share Tech Mono", monospace;
    user-select: none;
    /* background-color: #7ce4f7; */
}

#output {
    margin-top: 4px;
    padding: 5px;
    inset: 10px;
    font-size: 1.5em;
    height: 100%;
    font-family: "Guru Meditation NBP", monospace;
    font-weight: bold;
}

/* ---------------------------------------------- */

.power {
    gap: 4px;
    justify-content: center;
}

.power div {
    width: 50%;
    padding: 5px;
    justify-content: space-evenly;
    background-color: #dfe0e9;
    border-radius: 4px;
}

input#power {
    border: 0;
    background: url("../images/powerOff.png") no-repeat;
    width: 80px;
    height: 80px;
    /* text-indent: -9999em; */
    /* line-height: 3000; */
}

input#power:active {
    scale: 0.95;
}

/* ------------------------------- Bottom Line ------------------------------ */
/* ---------------------------------- Left */
.controls {
    border-radius: 4px;
    grid-row-end: span 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

.key-block {
    width: 80px;
    height: 80px;
    background: #d1d7e0;
    color: #707687;
    border-radius: 4px;
    background-image: url(../images/key.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 70px;
}

.green {
    color: green;
    font-size: smaller;
}

/* --------------------------------- Middle */
#buttons {
    border-radius: 4px;
    grid-row-end: span 2;
    grid-column-end: span 2;
    display: grid;
    gap: 4px;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(4, 1fr);
}

.button-block {
    width: 140px;
    height: 80px;
    background: #d1d7e0;
    border-radius: 4px;
}

#stop,
.button-square {
    position: relative;
    top: -2px;
    width: 126px;
    height: 60px;
    font-size: 1.5em;
    border-radius: 12px;
    border: 2px solid darkgray;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.34) inset, 0 2px 0 -1px rgba(0, 0, 0, 0.13), 0 3px 0 -1px rgba(0, 0, 0, 0.08), 0 3px 5px -1px rgba(0, 0, 0, 0.21);
}

#stop:active,
.button-square:active {
    top: -1px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.60), 0 1px rgba(0, 0, 0, 0.05) inset;
}

.button-square {
    background: linear-gradient(0deg, #c4c4c4 0%, #ffffff 100%);
    background-color: #e7e7e7;
    padding: 15px 55px;
}

#stop {
    background-color: #db0000;
    padding: 15px 55px;
}

#stop span {
    margin-left: -26px;
    color: white;
}

/* ---------------------------------- Right */
.slider {
    gap: 4px;
    border-radius: 4px;
    grid-row-end: span 2;
}

.slider > img {
    width: 75px;
    margin: 4px;
}

.knobs {
    background-color: #dfe0e9;
    justify-content: space-around;
    border-radius: 4px;
    padding: 10px 0px;
}

#range {
    height: 100%;
    justify-content: center;
    background-color: #dfe0e9;
    padding: 20px 10px 10px 10px;
    border-radius: 4px;
}