/******************/
/* MARK: KLEUREN */
/****************/

:root {
  --track-bg: #1a0f07;
  --track-box-shadow-inset: rgba(0, 0, 0, 0.8);
  --track-box-shadow-glow: rgba(212, 175, 55, 0.2);
  --progress-gradient-start: #d4af37;
  --progress-gradient-mid: #e6c280;
  --progress-gradient-end: #b37228;
  --progress-box-shadow: rgba(212, 175, 55, 0.6);
  --vinyl-disc-stop-1: #050505;
  --vinyl-disc-stop-2: #1a1a1a;
  --vinyl-disc-stop-3: #111;
  --vinyl-disc-stop-4: #050505;
  --vinyl-disc-stop-5: #222;
  --vinyl-disc-stop-6: #111;
  --vinyl-disc-stop-7: #000;
  --vinyl-border: #d4af37;
  --vinyl-box-shadow: rgba(0, 0, 0, 0.7);
  --vinyl-box-shadow-glow: rgba(212, 175, 55, 0.4);
  --vinyl-hover-box-shadow: rgba(0, 0, 0, 0.8);
  --vinyl-hover-box-shadow-glow: rgba(212, 175, 55, 0.8);
  --label-bg: #8b0000;
  --label-border: #d4af37;
  --center-dot-bg: #fff;
  --note-text-shadow-1: rgba(0, 0, 0, 0.8);
  --note-text-shadow-2: rgba(212, 175, 55, 0.5);
  --scroll-track-right: 36px;
  --scroll-track-top: 60px;
  --scroll-track-bottom: 60px;
  --scroll-track-width: 4px;
  --scroll-track-radius: 2px;
  --scroll-widget-right: 15px;
  --scroll-widget-top: 60px;
  --vinyl-size: 46px;
  --vinyl-radius: 50%;
  --vinyl-border-width: 2px;
  --label-size: 16px;
  --label-radius: 50%;
  --label-border-width: 1px;
  --center-dot-size: 4px;
  --center-dot-radius: 50%;
}





/*******************************/
/* MARK: STANDAARD SCROLLBALK */
/*****************************/

html {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

::-webkit-scrollbar {
  display: none;
  width: 0;
}





/*****************************/
/* MARK: SPOOR EN VOORTGANG */
/***************************/

.country-scroll-track {
  position: fixed;
  right: var(--scroll-track-right);
  top: var(--scroll-track-top);
  bottom: var(--scroll-track-bottom);
  width: var(--scroll-track-width);
  background: var(--track-bg);
  border-radius: var(--scroll-track-radius);
  box-shadow: inset 0 0 4px var(--track-box-shadow-inset), 0 0 2px var(--track-box-shadow-glow);
  z-index: 9997;
  pointer-events: none;
}

.country-scroll-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, var(--progress-gradient-start), var(--progress-gradient-mid), var(--progress-gradient-end));
  border-radius: var(--scroll-track-radius);
  box-shadow: 0 0 8px var(--progress-box-shadow);
  transition: height 0.05s linear;
}





/*****************************/
/* MARK: VERSLEEPBARE PLAAT */
/***************************/

.country-scroll-widget {
  position: fixed;
  right: var(--scroll-widget-right);
  top: var(--scroll-widget-top);
  z-index: 9998;
  display: grid;
  grid-template-columns: auto;
  justify-items: center;
  pointer-events: auto;
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.country-scroll-widget:active {
  cursor: grabbing;
}

.vinyl-disc-indicator {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--vinyl-size);
  height: var(--vinyl-size);
  border-radius: var(--vinyl-radius);
  background: radial-gradient(circle, var(--vinyl-disc-stop-1) 20%, var(--vinyl-disc-stop-2) 21%, var(--vinyl-disc-stop-3) 35%, var(--vinyl-disc-stop-4) 36%, var(--vinyl-disc-stop-5) 55%, var(--vinyl-disc-stop-6) 56%, var(--vinyl-disc-stop-7) 100%);
  border: var(--vinyl-border-width) solid var(--vinyl-border);
  box-shadow: 0 4px 15px var(--vinyl-box-shadow), 0 0 10px var(--vinyl-box-shadow-glow);
  transition: transform 0.1s linear, box-shadow 0.2s ease;
}

.vinyl-disc-indicator:hover {
  box-shadow: 0 4px 20px var(--vinyl-hover-box-shadow), 0 0 15px var(--vinyl-hover-box-shadow-glow);
}

.vinyl-disc-indicator::before {
  content: '';
  width: var(--label-size);
  height: var(--label-size);
  border-radius: var(--label-radius);
  background: var(--label-bg);
  border: var(--label-border-width) solid var(--label-border);
}

.vinyl-disc-indicator::after {
  content: '';
  position: absolute;
  width: var(--center-dot-size);
  height: var(--center-dot-size);
  border-radius: var(--center-dot-radius);
  background: var(--center-dot-bg);
}





/**********************/
/* MARK: MUZIEKNOTEN */
/********************/

.scroll-music-note {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  font-family: Roboto, serif;
  font-weight: bold;
  user-select: none;
  text-shadow: 0 0 6px var(--note-text-shadow-1), 0 0 10px var(--note-text-shadow-2);
  animation: floatAndFadeNote 1.2s ease-out forwards;
}





/*******************/
/* MARK: ANIMATIE */
/*****************/

/* CSS-varianten bepalen de zijwaartse afstand en draaiing. */
@keyframes floatAndFadeNote {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(0.7) rotate(0deg);
  }

  50% {
    opacity: 0.9;
  }

  100% {
    opacity: 0;
    transform: translate(var(--dx), -70px) scale(1.3) rotate(var(--dr));
  }
}





/******************************/
/* MARK: NOOTVARIANTEN IN CSS */
/****************************/

.scroll-music-note.note-variant-1 { color: #d4af37; font-size: 18px; --dx: -20px; --dr: -30deg; }
.scroll-music-note.note-variant-2 { color: #e6c280; font-size: 20px; --dx: -28px; --dr: -15deg; }
.scroll-music-note.note-variant-3 { color: #c5a059; font-size: 22px; --dx: -35px; --dr: 0deg; }
.scroll-music-note.note-variant-4 { color: #fdfbf7; font-size: 24px; --dx: -42px; --dr: 15deg; }
.scroll-music-note.note-variant-5 { color: #b37228; font-size: 26px; --dx: -50px; --dr: 30deg; }

.country-scroll-widget[hidden] { display: none !important; }

@supports (animation-timeline: scroll(root block)) {
  .country-scroll-progress {
    animation: country-scroll-fill linear both;
    animation-timeline: scroll(root block);
    transition: none;
  }
  .country-scroll-widget {
    animation: country-scroll-position linear both;
    animation-timeline: scroll(root block);
  }
  .vinyl-disc-indicator {
    animation: country-scroll-turn linear both;
    animation-timeline: scroll(root block);
  }
}

@keyframes country-scroll-fill {
  from { height: 0%; }
  to { height: 100%; }
}
@keyframes country-scroll-position {
  from { top: var(--scroll-widget-top); }
  to { top: calc(100vh - var(--scroll-track-bottom)); }
}
@keyframes country-scroll-turn {
  from { transform: rotate(0deg); }
  to { transform: rotate(var(--scroll-turn, 0deg)); }
}

@media (prefers-reduced-motion: reduce) {
  .country-scroll-widget, .country-scroll-progress { animation: none !important; }
  .vinyl-disc-indicator { animation: none !important; transition: none !important; transform: none !important; }
  .country-scroll-progress { transition: none !important; }
  .scroll-music-note { display: none !important; animation: none !important; }
}
