#gif {
    display: none; 
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: auto;
}


a,
abbr,
acronym,
address,
applet,
article,
aside,
audio,
b,
big,
blockquote,
body,
canvas,
caption,
center,
cite,
code,
dd,
del,
details,
dfn,
div,
dl,
dt,
em,
embed,
fieldset,
figcaption,
figure,
footer,
form,
h1,
h2,
h3,
h4,
h5,
h6,
header,
hgroup,
html,
i,
iframe,
img,
ins,
kbd,
label,
legend,
li,
mark,
menu,
nav,
object,
ol,
output,
p,
pre,
q,
ruby,
s,
samp,
section,
small,
span,
strike,
strong,
sub,
summary,
sup,
table,
tbody,
td,
tfoot,
th,
thead,
time,
tr,
tt,
u,
ul,
var,
video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block
}

body {
    line-height: 1
}

ol,
ul {
    list-style: none
}

blockquote,
q {
    quotes: none
}

blockquote:after,
blockquote:before,
q:after,
q:before {
    content: '';
    content: none
}

table {
    border-collapse: collapse;
    border-spacing: 0
}

body {
    font-family: Montserrat, Sans-Serif;
    font-size: 16px;
}

button {
    font-family: inherit;
    font-weight: inherit;
}

label {
    display: none;
    visibility: hidden;
}

input[type="range"] {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background-color: #83391c;
    border-radius: 5px;
    margin: 0;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    background-color: #FF4B19;
    border-color: #ff4b19;
    height: 15px;
    width: 15px;
    border-radius: 50%;
    cursor: pointer;
    margin-top: -2px;
}

input[type="range"]::-moz-range-thumb {
    background-color: #FF4B19;
    border-color: #ff4b19;
    height: 15px;
    width: 15px;
    border-radius: 50%;
    cursor: pointer;
}

.page-wrapper {
    width: 100%;
    margin: 0 auto;
}

.audio-wrap {
    display: flex;
}

.audio-container {
    border: 1px solid #FF4B19;
    border-radius: 20px;
    padding: 10px;
    width: 95%;
}

.container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 7px;
    padding: 10px;
    border-radius: 15px;
    background: #3d2518;
    margin-bottom: 10px;
    height: auto;
    overflow-x: auto;
}
.kit-image-wrapper {
    position: relative; /* Ensure the wrapper is positioned relative to contain the overlay */
    display: inline-block; /* Keep it inline within the flex container */
    width: calc((100% / 5) - 2%);
    flex: 0 0 calc((100% / 5) - 2%);
}

.kit-image {
    border-radius: 10px;
    width: 100%;
    cursor: pointer;
    border: none;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.text-overlay {
    position: absolute;
    top: 50%; /* Move to the middle vertically */
    left: 0;
    transform: translateY(-50%); /* Center the overlay */
    width: 100%; /* Full width of the image */
    background: rgba(0, 0, 0, 0.7); /* Semi-transparent black bar */
    color: white; /* White text */
    text-align: center;
    font-size: 1.2rem; /* Increase font size (1.5x bigger) */
    padding: 7.5px 0; /* Increase padding (1.5x bigger) */
    opacity: 0; /* Initially hidden */
    transition: opacity 0.3s ease-in-out; /* Smooth transition for visibility */
    pointer-events: auto; /* Ensure overlay allows interaction */
    border-radius: 0; /* Remove rounding */
}

.text-overlay a {
    color: inherit; /* Inherit text color from the parent (white) */
    text-decoration: none; /* Remove underline */
    pointer-events: auto; /* Ensure the link allows interaction */
}

.text-overlay a:hover {
    text-decoration: underline; /* Add underline on hover if desired */
}

/* Make the overlay visible on hover */
.kit-image-wrapper:hover .text-overlay {
    opacity: 1;
}


.kit-container {
    display: flex;
    justify-content: flex-start;
    gap: 2.5%;
    overflow-x: auto; 
    padding: 20px 0;
    max-width: 100%; 
    padding-left: 10px;
    padding-right: 10px;
    /*height: 190px;
    scroll-snap-type: x mandatory; 
    scrollbar-width: thin; 
    scrollbar-color: #FF4B19 rgba(0, 0, 0, 0.1); */
}

.kit-container::-webkit-scrollbar {
    height: 10px; 
}

.kit-container::-webkit-scrollbar-thumb {
    background-color: #FF4B19; 
    border-radius: 100px; 
    border: 3px solid transparent; 
    background-clip: padding-box; 
}

.kit-container::-webkit-scrollbar-track {
    background-color: rgba(0, 0, 0, 0.1); 
    border-radius: 10px; 
}




.kit-image:hover {
    opacity: 0.8;
}

.selected-kit.kit-image {
    box-shadow: 0 0 20px #FF4B19;
}

#kit-info {
    background: #3d2518;
    border-radius: 10px;
    display: flex;
    justify-content: space-around;
    padding: 20px;
    margin-bottom: 20px;
    font-size: clamp(0.75rem, 0.6591rem + 0.4545vw, 1rem);
}

#kit-text {
    color: #aaa;
    text-align: center;
}


#kit-link {
    text-decoration: none;
    background-color: #6B2102;
    color: #FF4B19;
    padding: 6px 20px;
    border-radius: 100px;
    border: 1px solid #FF4B19;
}

#kit-link:hover {
    background-color: #FF4B19;
    color: white;
}


.text-orange {
    color: #FF4B19;
}

.controls {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-bottom: 20px;
    font-weight: 500;
}

.playing-button-container {
    display: flex;
    gap: 20px;
}

#playButton,
#stopButton {
    background: black;
    color: white;
    font-size: 1rem;
    border: none;
    border-radius: 50%;
    width: 64px;
    height: 64px;
    padding: 0;
    line-height: 64px;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
    position: relative;
}

#playButton:not(.loading) {
    background: #FF4B19;
    text-indent: -99999px;
}

#playButton:not(.loading):before {
    content: "";
    width: 0;
    height: 0;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 18px solid white;
    display: block;
    position: absolute;
    top: 20px;
    left: 26px;
}

#playButton.inactive {
    background: white;
    cursor: not-allowed;
}

#playButton.inactive:not(.loading):before {
    border-left-color: #FF4B19;
}

#playButton.inactive.loading {
    background: black;
}

#stopButton {
    background: #FF4B19;
    text-indent: -99999px;
}

#stopButton.inactive {
    background: white;
}

#stopButton:before {
    content: "";
    width: 8px;
    height: 24px;
    border-left: 4px solid #FF4B19;
    border-right: 4px solid #FF4B19;
    display: block;
    position: absolute;
    top: 22px;
    left: 24px;
}

#stopButton:not(.inactive):before {
    border-left: 4px solid white;
    border-right: 4px solid white;
}

.volumn-bar-container {
    /* width: 50%; */
    display: flex;
    gap: 20px;
    flex: 1 1 auto;
}

.volumn-bar-left,
.volumn-bar-right {
    width: 50%;
}

.volumn-bar-container form {
    display: flex;
    gap: 20px;
    height: 50%;
    align-items: center;
}

.volumn-bar-right>div {
    display: flex;
    gap: 5px;
    height: 50%;
    align-items: center;
}

.volumn-bar-right>div label {
    padding-right: 38px;
}

.volumn-bar-container label {
    display: block;
    visibility: visible;
    color: #FF4B19;
    text-transform: uppercase;
    font-size: 10px;
    font-size: clamp(0.625rem, 0.5341rem + 0.4545vw, 0.875rem);
}

.volumn-bar-container input[type="range"] {
    width: 100%;
}

.volume-control {
    width: 12.5%;
    padding: 7px;
    border-radius: 10px;
    background: #622f1c;
    color: white;
    border: 1px solid #FF4B19;
}

.loading {
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.play-button {
    width: 80%;
    line-height: 2;
    background-color: #83391c;
    color: #a84c27;
    font-size: 14px;
    font-size: clamp(0.5rem, 0.375rem + 0.625vw, 0.875rem);
    font-weight: 900;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 0;
    padding: 0px;
    text-transform: uppercase;
}

.play-button.active {
    background-color: #FF4B19;
    color: white;
}





.btn {
    height: 32px;
    background-color: #654838;
    color: white;
    font-size: 14px;
    font-size: clamp(0.625rem, 0.5341rem + 0.4545vw, 0.875rem);
    white-space: nowrap;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: white;
    color: #FF4B19;
}

.fx-btns {
    display: flex;
    align-items: center;
    gap: 20px;
}

.fx-btn-1 {
    display: flex;
    align-items: center;
    gap: 1px;
}

#soloButton {
    border: none;
    border-radius: 50%;
    height: 64px;
    width: 64px;
    text-transform: uppercase;
}

.solo-green {
    background-color: #654838;
    color: white;
}

.solo-red {
    background-color: white;
    color: #FF4B19;
}



.reverb-fx-buttons {
    display: flex;
    gap: 5px;
}


.rev_fx_button {
    /* width: 50px; */
    height: 50%;
    background-color: #83391c;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    flex: 1 1 50px;
}

.rev_fx_button.active {
    background-color: #FF4B19;
}

.midi-connected {
    background-color: green;
    color: white;
    border: 2px solid #00ff00;

}




table {
    width: 100%;
    height: 100%;
    border-collapse: collapse;
}

td {
    vertical-align: middle;
    padding: 0 10px;
}

.master-volume-container {
    display: flex;
    gap: 8px;
    padding-left: 10px;
}

.volume-meter-container {
    height: 100%;
    display: flex;
    gap: 2px;
}

.volume-meter {
    height: 100%;
    width: 10px;
    background: #5e3018;
    position: relative;
}

.volume-meter-fill {
    background: #FF4B19;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 10px;
}

input[type="range"][orient=vertical] {
    appearance: slider-vertical;
    -moz-appearance: slider-vertical;
    -webkit-appearance: slider-vertical;
    height: 100%;
    margin: 0 10px;
    width: 4px;
    writing-mode: bt-lr;
}

input[type="range"][orient=vertical]::-webkit-slider-thumb {
    box-shadow: inset 0 0 0px 10px #FF4B19;
}

input[type="range"][orient=vertical]::-webkit-slider-container {
    background: #83391c;
    box-shadow: 0 0 0px 4px #281810;
}

.loop-container {
    position: relative;
}

.loop-container label {
    height: 5px;
}

.green-dot {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 10px;
    height: 10px;
    background-color: #936f61;
    border-radius: 50%;
    display: block;
    cursor: pointer;
}

.green-dot.selected {
    background-color: white;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}


.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    text-align: center;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

#resetFXButton {
    padding: 0 10px;
}

#resetButton {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    text-indent: -99999px;
    padding: 0;
    background-position: 20px 20px;
    background-repeat: no-repeat;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30' stroke-width='2' width='30' height='30' color='%23ffffff'%3E%3Cdefs%3E%3Cstyle%3E.cls1%7Bfill:none;stroke:currentColor;stroke-miterlimit:10;%7D%3C/style%3E%3C/defs%3E%3Cpolyline class='cls1' points='23.5 20.63 17.75 20.63 17.75 14.88'%3E%3C/polyline%3E%3Cpolyline class='cls1' points='0.5 3.38 6.25 3.38 6.25 9.13'%3E%3C/polyline%3E%3Cpath class='cls1' d='M9.23,1.83A10.12,10.12,0,0,1,12,1.46a10.54,10.54,0,0,1,6.06,19.16'%3E%3C/path%3E%3Cpath class='cls1' d='M14.77,22.17a10.12,10.12,0,0,1-2.77.37A10.54,10.54,0,0,1,5.94,3.38'%3E%3C/path%3E%3C/svg%3E");
}

#resetButton:hover {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30' stroke-width='2' width='30' height='30' color='%23FF4B19'%3E%3Cdefs%3E%3Cstyle%3E.cls1%7Bfill:none;stroke:currentColor;stroke-miterlimit:10;%7D%3C/style%3E%3C/defs%3E%3Cpolyline class='cls1' points='23.5 20.63 17.75 20.63 17.75 14.88'%3E%3C/polyline%3E%3Cpolyline class='cls1' points='0.5 3.38 6.25 3.38 6.25 9.13'%3E%3C/polyline%3E%3Cpath class='cls1' d='M9.23,1.83A10.12,10.12,0,0,1,12,1.46a10.54,10.54,0,0,1,6.06,19.16'%3E%3C/path%3E%3Cpath class='cls1' d='M14.77,22.17a10.12,10.12,0,0,1-2.77.37A10.54,10.54,0,0,1,5.94,3.38'%3E%3C/path%3E%3C/svg%3E");
}

#midiOnButton {
    padding: 0 15px;
}

.small-dot {
    width: 10px;
    height: 10px;
    background-color: white;
    border-radius: 50%;
    display: inline-block;
    margin: 0 7px;
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s ease;
    z-index: 1;
}

.small-dot.clicked {
    background-color: #FF4B19;
}

.horizontal-line {
    width: 22px;
    height: 1px;
    background-color: grey;
    position: absolute;
    top: calc(50% + 0px);
    left: calc(50% - 11px);
    transition: background-color 0.3s ease;
}

.small-dot.clicked .horizontal-line {
    background-color: #FF4B19;
}

.info-text {
    font-size: 0.75rem;
    color: #888;
    text-align: center;
    padding: 1rem;
}

@media (max-width: 999.98px) {
    .kit-image {
        flex-basis: 70px;
    }
    .controls {
        flex-wrap: wrap;
        padding: 0 3px;
    }

    .volumn-bar-container {
        min-height: 40px;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }
    .volumn-bar-left, .volumn-bar-right {
        width: 100%;
        max-width: 400px;
        min-height: 40px;
    }
    .play-button{
        font-size: 11px;
        padding: 0px;
        min-width: 87%;
        overflow: hidden;
    }
    .moving-text { display: inline-block; will-change: transform; }
    .animate { animation: move 5s linear infinite; } @keyframes move { 0% { transform: translateX(130%); } 100% { transform: translateX(-100%);}}

    #playButton,
    #stopButton {
        font-size: 0.5rem;
        width: 32px;
        height: 32px;
        line-height: 32px;
    }

    #playButton:not(.loading):before {
        border-top: 6px solid transparent;
        border-bottom: 6px solid transparent;
        border-left: 12px solid white;
        top: 10px;
        left: 12px;
    }

    .playing-button-container,
    .volumn-bar-container form,
    .controls,
    .fx-btns {
        gap: 10px;
    }

    #stopButton:before {
        width: 4px;
        height: 12px;
        border-left: 3px solid #FF4B19;
        border-right: 3px solid #FF4B19;
        top: 10px;
        left: 11px;
    }

    #stopButton:not(.inactive):before {
        border-left: 3px solid white;
        border-right: 3px solid white;
    }

    .volumn-bar-right>div label {
        padding-right: 24px;
    }

    .rev_fx_button {
        height: 80%;
    }

    .playing-button-container,
    .fx-btns {
        width: 100%;
        justify-content: center;
    }

    #soloButton,
    #resetButton {
        height: 54px;
        width: 54px;
        background-position: 15px 15px;
    }
    .container {
        gap: 5px;
        padding: 5px;
        flex-wrap: wrap;
        justify-content: space-between;

    }
    .audio-container {
        padding: 4px;
    }
    .volume-control{
        width: 9.6%;
    }
}

@media (max-width: 639.98px) {
    .audio-container {
        overflow-x: auto;
    }
    .kit-image {
        flex-basis: 60px;
    }
}