:root {
    --success: #00FF00;
    --error: #FF0000;
    --color1: #D81E5B;
    --color2: #FF3CA0;
    --color3: #FF9BAD;
    --bg: #0a0507;
    --bg2: #4F152F;
    --bg3: #2B0D1A;
    --fg: #eee;
    --sub: #999;
    --intensity-opacity: 0;
}
/* i love you rennnnnnn!!!! */

@font-face {
  font-family: 'UDKakugo';
  src: url('../fonts/35675.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

* {
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg);
    width: 100%;
    min-height: 100vh;
    color: var(--fg);
    font-family: 'UDKakugo', sans-serif;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: linear-gradient(0deg, var(--bg2) 0%, var(--bg3) 15%, transparent 100%);
    opacity: var(--intensity-opacity);
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.05s linear;
}

body > * {
    position: relative;
    z-index: 1;
}

header {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    height: min-content;
    background-color: var(--bg);
    border-bottom: 1px solid var(--color1);
}

.connected, .disconnected {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px
}

.connected svg, .disconnected svg {
    height: 14px;
    width: 14px;
}

.connected {
    color: var(--success);
    fill: var(--success);
}

.disconnected {
    color: var(--error);
    fill: var(--error);
}

.rgb-button {
    width: 24px;
    height: 24px;
    padding-left: 10px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.rgb-button:hover {
    opacity: 1;
}

.rgb-active {
    opacity: 1;
    filter: drop-shadow(0 0 4px var(--color2));
}

.battery-icon {
    width: 20px;
    height: 20px;
    opacity: 0.6;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.controls-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
    margin: 15px 0;
}

.range-container {
    position: relative;
    display: flex;
    justify-content: center;
    height: 200px;
    width: 150px;
    margin: 0;
}

.graph-container {
    position: relative;
    width: 400px;
    height: 200px;
    border-radius: 12px;
    padding: 15px;
    box-sizing: border-box;
}

#historyGraph {
    width: 100%;
    height: 100%;
    display: block;
}

.slider {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    width: 200px;
    height: 30px;
    margin: 0;
    padding: 0;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 30px;
    width: 30px;
    border-radius: 50%;
    background: var(--color1);
    cursor: pointer;
    margin-top: -10px;
}

.slider::-moz-range-thumb {
    height: 30px;
    width: 30px;
    border: none;
    border-radius: 50%;
    background: var(--color1);
    cursor: pointer;
}

.slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 10px;
    background: linear-gradient(to right, var(--color2) var(--val), var(--fg) var(--val));
    border-radius: 3px;
}

.slider::-moz-range-track {
    width: 100%;
    height: 10px;
    background: linear-gradient(to right, var(--color2) var(--val), var(--fg) var(--val));
    border-radius: 3px;
}

.tick-label {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    transform: translateY(-50%);
    font-size: 11px;
    color: var(--sub);
}

.tick-label.left {
    right: 50%;
    margin-right: 10px;
}

.tick-label.right {
    left: 50%;
    margin-left: 15px;
}

.tick {
    width: 12px;
    height: 2px;
    background: var(--sub);
    border-radius: 1px;
}

.val-100 { top: 0; }
.val-75 { top: 50px; }
.val-50 { top: 100px; }
.val-25 { top: 150px; }
.val-0 { top: 200px; }

.buttons-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 420px;
}

.button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 40px;
    width: 200px;
    background-color: var(--color1);
    border-radius: 4px;
}

.button:hover {
    background-color: var(--color2);
    cursor: pointer;
}

.button:active {
    background-color: var(--color3);
}

.button svg {
    width: 20px;
    height: 20px;
    fill: var(--fg);
}

.record {
    width: 410px !important;
}

.recording {
    background-color: var(--color3) !important;
    box-shadow: 0 0 12px var(--color3);
}

.playing {
    background-color: var(--color1) !important;
    box-shadow: 0 0 12px var(--color2);
    animation: pulse-play 1s ease-in-out infinite;
}

@keyframes pulse-play {
    0%, 100% { box-shadow: 0 0 8px var(--color2); }
    50%       { box-shadow: 0 0 22px var(--color2); }
}

.waves-slow   { background-color: color-mix(in srgb, var(--color1) 70%, #0af) !important; }
.waves-medium { background-color: color-mix(in srgb, var(--color1) 50%, #0af) !important; }
.waves-fast   { background-color: color-mix(in srgb, var(--color1) 30%, #0af) !important; }

.users-wrapper {
    display: flex;
    flex-wrap: wrap;
    width: 420px;
    align-items: center;
    justify-content: center;
    gap: 20px 30px;
}

.user {
    background: var(--bg);
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid var(--color1);
    box-shadow: 0 5px 12px 2px #000000;
}

.profile {
    display: flex;
    align-items: center;
    gap: 15px;
}

.profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.user p {
    color: var(--sub);
    text-align: right;
}