@font-face {
    font-family: "Flux"; /* For simplicity */
    src: url("../fonts/AfacadFlux.ttf")
}
@font-face {
    font-family: "Symbols"; /* For simplicity */
    src: url("../fonts/MaterialSymbolsRounded.woff2")
}
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
}
body {
    display: flex;
    align-items: center;
    justify-content: top;
    background: black;
    color: white;
    font-family: "Flux";
    flex-direction: column;
}
code {
    font-size: inherit;
    font-family: monospace;
}
.visualizercontainer {
    height: calc(60% - 40px);
    width: calc(100% - 60px);
    padding: 20px;
    margin-left: 30px;
    margin-right: 30px;
    background: rgba(20,20,20);
    border-radius: 20px;
}
#visualizer {
    display: flex;
    align-items: end;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
}
.bar {
    width: 100%;
    height: 100%;
}
#header {
    font-size: 35px;
    font-weight: 500;
    margin: 10px;
}
.controls {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    width: 100%;
    overflow-x: auto;
}
.dropbtn {
    background: rgba(50,50,50);
    border: 3px solid rgba(100,100,100);
    border-radius: 10px;
    color: white;
    padding: 15px;
    width: 260px;
    font-size: 20px;
    cursor: pointer;
    transition: 0.2s;
    text-align: left;
    appearance: none;
    font-family: "Flux";
    background-image: url(../images/dropdown.svg);
    background-repeat: no-repeat;
    background-position: calc(100% - 10px) center;
    background-size: 30px;
}
.button {
    background: rgba(50,50,50);
    border: 3px solid rgba(100,100,100);
    border-radius: 10px;
    color: white;
    padding: 15px 30px;
    width: fit-content;
    font-size: 20px;
    cursor: pointer;
    transition: 0.2s;
    text-align: center;
    appearance: none;
    font-family: "Flux";
    display: flex;
    gap: 5px;
}
.icon {
    font-family: "Symbols";
    display: flex;
    transform: scale(1.25);
    margin-right: 5px;
}
.icon2 {
    transform: translateY(5%) scale(1.25);
}
.dropbtn:hover, .button:hover {
    background-color: rgba(60,60,60);
}
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: fit-content;
    height: 8px;
    width: 50%;
    background: rgba(50, 50, 50, 0.8);
    border: 3px solid rgba(100, 100, 100, 0.8);
    border-radius: 10px;
    transition: 0.2s;
    cursor: pointer;
    margin-top: 10px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 30px;
    height: 30px;
    background: rgba(50, 50, 50);
    border: 3px solid rgba(100, 100, 100);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.2s;
    margin-top: -14px;
}
input[type="range"]:hover {
    background: rgba(70, 70, 70, 0.8);
}
input[type="range"]::-webkit-slider-runnable-track {
    height: 8px;
    background: rgba(50, 50, 50, 0.8);
    border: 3px solid rgba(100, 100, 100, 0.8);
    border-radius: 10px;
}
input[type="range"]:active::-webkit-slider-thumb {
    background: rgba(100, 100, 100);
}
.ranges {
    margin-top: 5px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
}
.rangecontainer {
    display: flex;
    font-size: 20px;
    gap: 5px;
    width: 100%;
}
.rangelabel {
    margin-top: 3px;
    display: block;
    width: fit-content;
    margin-left: auto;
}
.item {
    font-size: inherit;
    background: transparent;
    border: none;
    color: inherit;
    font-family: inherit;
    width: 55px;
    appearance: none;
    text-align: right;
}
.item::-webkit-outer-spin-button,
.item::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.tooltipindicator {
    position: relative;
    cursor: help;
}
.tooltipicon {
    display: inline-flex;
    width: 15px;
    height: 15px;
    border: 2px solid rgba(150,150,150);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: rgba(150,150,150);
}
.tooltip {
    display: none;
    position: absolute;
    background: rgba(50,50,80,0.5);
    padding: 10px;
    bottom: -95px;
    left: -220px;
    width: 200px;
    height: 100px;
    overflow: auto;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
    z-index: 1;

}
.tooltipindicator:hover > .tooltip {
    display: block;
}

#stopwatch {
    font-size: 20px;
    margin-top: 10px;
    margin-bottom: -10px;
}
.madeby {
    font-size: 16px;
    margin-top: 10px;
}
.madeby a {
    text-decoration: none;
    color: white;
    cursor: pointer;
}
.madeby a i {
    font-weight: 300;
    text-decoration: underline;
}

:disabled {
    opacity: 50%;
}

.clicktohide {
    color: rgba(150,150,150);
    text-decoration: underline;
    cursor: pointer;
}
#items {
    width: calc(100% - 20px);
    margin-top: 10px;
    background: rgba(20,20,20);
    border-radius: 20px;
    color: white;
    border: none;
    resize: none;
    font-family: "Flux";
    font-size: 20px;
    padding: 10px;
}
.tabs {
    width: calc(100% - 20px);
    display: flex;
    margin-top: 10px;
    border-radius: 10px;
    border-radius: 10px;
    overflow: hidden;
}
.tabbutton {
    width: 100%;
    padding: 10px;
    background: rgba(30,30,30);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    cursor: pointer;
}
.tabbutton:hover {
    background: rgba(50,50,50);
}
.tabbutton.selected {
    background: rgba(70,70,70);
}
.tab {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: calc(100% - 20px);
    max-width: 700px;
    padding: 10px;
}

::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(100,100,100,0.5);
    border-radius: inherit;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(100,100,100,0.75);
}

.warning {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    color: white;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

input[type="color"] {
    -webkit-appearance: none; /* Removes default styling in WebKit browsers */
    -moz-appearance: none;    /* Removes default styling in Firefox */
    appearance: none;         /* Removes default styling in other browsers */

    width: 100px; /* Adjust the width */
    height: 25px; /* Adjust the height */
    border: none;
    background-color: transparent; /* Make the background transparent */
    cursor: pointer; /* Add a pointer cursor for a better UX */
}

input[type="color"]::-webkit-color-swatch {
    border: none;
}

input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
    background-color: transparent; /* Remove wrapper background in WebKit */
}