
@font-face {
    font-family: 'HeadingNowVariable';
    font-style: normal;
    font-stretch: normal;
    font-display: swap;
    src: url('../fonts/HeadingNowVariable.woff2') format('woff2');
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'HeadingNowVariable', Arial, sans-serif;
    font-variation-settings: "wdth" 668, "wght" 500;
    background-color: #121212;
    color: #dfdddd;
    overflow-x: hidden;
    user-select: none;
}

body.modal-open {
    overflow: hidden;
}

h2, p {
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

a:hover {
    text-decoration: underline;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background-color: white;
    border-radius: 10px;
    border: 2px solid transparent;
}

::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.7);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
.header {
    background-color: rgba(0, 0, 0, .8);
    color: white;
    padding: 10px 20px;
    width: 100%;
    z-index: 100;
    position: fixed;
    top: 0;
    backdrop-filter: blur(20px);
}

.header-info {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    background-color: rgba(34, 34, 34, .8);
    color: white;
    width: 100%;
    z-index: 100;
    position: fixed;
    top: 60px;
    backdrop-filter: blur(20px);
}

.header-info .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    width: 100%;
}

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

.header img {
    max-height: 45px;
    cursor: pointer;
}
.header-controls #githubButton {
    background: #333 !important; 
    border: none;
    color: #fff;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    transition: background 0.2s ease;
}
.header-controls #githubButton:hover {
    background: #555 !important;
}

.header-controls #githubButton svg {
    width: 24px; 
    height: 24px;
    fill: #fff;
    display: block;
}
.header-controls #settingsButton {
    background: #333 !important;
    border: none;
    color: #ffffff;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    transition: background 0.2s ease;
}
.search-wrapper {
    display: flex;
    align-items: center;
}

.header input[type="search"] {
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #444;
    background-color: #222;
    color: white;
    outline: none;
    font: inherit;
    font-size: 14px;
    width: 200px;
    max-width: 600px;
    transition: width 0.3s ease-in-out;
}

.header input[type="search"]::placeholder {
    color: #777;
}

.header input[type="search"]:focus {
    border-color: rgba(145, 152, 229, .8);
    box-shadow: 0 0 0 2px rgba(145, 152, 229, .8);
}

@media (min-width: 993px) {
    .header input[type="search"] {
        margin-right: 10px;
    }

    .header input[type="search"]:focus {
        width: 300px;
    }
}

.track-count {
    font-size: 16px;
    color: #aaa;
}

.countdown {
    font-size: 14px;
    color: #aaa;
}

.header .links a {
    color: white;
    text-decoration: none;
    outline: 0 solid transparent;
    outline-offset: .5rem;
    padding: 4px 8px;
    border-radius: 4px;
    transition: outline .15s, outline-offset .15s ease-out;
}

.header .links a:hover {
    text-decoration: none;
    outline: .15rem solid #fffc;
    outline-offset: .1875rem;
}

/* Content */
main {
    margin-top: 129px;
}

.content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    transition: opacity 0.25s ease-in-out;
}

.jam-track {
    flex: 1 1 calc(100% / var(--grid-size, 4) - 20px);
    margin: 10px;
    box-sizing: border-box;
    border-radius: 10px;
    padding: 8px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background-color: rgba(236, 237, 238, .1);
    display: flex;
    align-items: center;
    color: white;
    font-size: 14px;
    -webkit-tap-highlight-color: transparent;
    outline: 0 solid transparent;
    outline-offset: .5rem;
    transition: flex 0.3s ease, outline .15s, outline-offset .15s ease-out; 
}

.jam-track h2 {
    font-size: 16px;
    line-height: 1.2em;
}

.jam-track img {
    max-width: 80px;
    max-height: 80px;
    border-radius: 10px;
    margin-right: 10px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.jam-track img.loaded {
    opacity: 1;
}

.jam-track:hover {
    outline: .15rem solid rgba(255, 255, 255, 0.8);
    outline-offset: .1875rem;
}

.jam-track p {
    font-size: 12.5px;
    color: #888;
}

/* Label Container */
.label-container {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
}

/* Labels */
.featured-label,
.new-label {
    background-color: rgb(230, 157, 1);
    padding: 2px 6px;
    border-radius: 8px;
    transform: skewX(-14deg);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.finish-label {
    background-color: rgba(0, 255, 55, 0.932);
    padding: 2px 6px;
    border-radius: 8px;
    transform: skewX(-14deg);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.featured-label svg,
.finish-label svg {    
    fill: #000;
}
.new-label svg {
    fill: #000;
}
.finish-label {
    background-color: rgb(0, 255, 42);
}
.new-label {
    background-color: rgb(0, 162, 255);
}

/* Mobile */
@media (max-width: 768px) {
    .header {
        position: relative;
    }

    .header .container {
        flex-direction: column;
        align-items: center;
    }

    .header img {
        margin-bottom: 10px;
    }

    .search-wrapper {
        width: 100%;
        flex-direction: column;
    }

    .header input[type="search"] {
        width: 100%;
    }

    .header-info {
        position: relative;
        top: 0;
        backdrop-filter: none;
    }

    .header-info .container {
        flex-direction: column;
        align-items: center;
    }

    main {
        margin-top: 10px;
    }

    .content {
        flex-direction: column;
        align-items: center;
    }

    .jam-track {
        flex: 1 1 calc(50% - 20px); 
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    z-index: 1000;
    cursor: pointer;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #2a2a2a70;
    border-radius: 15px;
    width: 50%;
    max-width: 500px;
    padding: 20px;
    cursor: auto;
    overflow: hidden;
}
.modal-content.no-video {
    background-color: #333333; 
 }
.modal-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0; 
    transition: opacity 0.3s ease; 
    background-color: transparent;
}
.modal-video.loaded {
    opacity: 0.8; 
}
.modal-close {
    position: absolute;
    top: 0px;
    right: 0px;
    font-size: 50px;
    color: #cccccc;
    cursor: pointer;
    line-height: 1;
    padding: 0px 10px;
}

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

.modal-header img {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    background-color: rgba(236, 237, 238, .1);
}

.track-info {
    flex-grow: 1;
}

.play-button {
    display: none;
}
  #muteButton, #downloadButton, #videoMenuButton {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5em;
    padding: 5px;
  }
  #downloadButton:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
    #videoMenuButton:disabled {
        cursor: not-allowed;
        opacity: 0.5;
}
.video-icon {
    width: 24px; 
    height: 24px;
    fill: #fff; 
}
  .mute-icon, .unmute-icon, .download-icon, .video-icon{
    display: inline-block;
  }
  #githubLink  {
    display: inline-flex;
    align-items: center;
    color: white;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: outline 0.15s, outline-offset 0.15s ease-out;
}
.header-right #githubLink {
    border: none;
    color: #fff;
    padding: 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    line-height: 40px;
    margin: 0;
    vertical-align: middle;
    transition: background 0.2s ease;
    text-decoration: none; 
}
.header-right #settingsButton {
    border: none;
    color: #fff;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    line-height: 40px;
    margin: 0;
    vertical-align: middle;
    transition: background 0.2s ease;
}
#settingsButton {
    display: inline-flex;
    align-items: center;
    color: white;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 1px;
    transition: outline 0.15s, outline-offset 0.15s ease-out;
}
.header-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}
.settings-menu-container {
    position: relative;
    background: transparent !important;
    z-index: 10010;
}
.settings-menu li {
    padding: 10px 15px;
    color: #fff;
    cursor: pointer;
    display: block;
}

.settings-menu li:hover {
    background: #444;
}

.settings-menu li[data-setting="grid-size"] {
    display: flex;
    align-items: center;
    gap: 5px;
}

.settings-menu li[data-setting="grid-size"] span {
    padding: 5px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.settings-menu li[data-setting="grid-size"] span:hover {
    background: #555;
}

.settings-menu li[data-setting="grid-size"] span.active {
    background: #444;
    font-weight: bold;
}
.header-controls #githubButton:hover {
    background: #555 !important;
}
.header-controls #settingsButton {
    background: #333 !important;
    border: none;
    color: #fff;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    transition: background 0.2s ease;
}
.header-controls .settings-icon {
    font-size: 24px;
    line-height: 1;
    color: #fff;
    display: block; 
    text-align: center;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
#settingsButton svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}
#githubLink:hover, #settingsButton:hover {
    outline: 0.15rem solid #fffc;
    outline-offset: 0.1875rem;
}
.header {
    z-index: 1000;
}
.settings-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #222;
    border: 1px solid #444;
    border-radius: 4px;
    list-style: none;
    margin: 10x 0 0;
    padding: 0;
    z-index: 10000;
    min-width: 300px;
}
.video-menu-container {
    position: relative;
    background: transparent !important;
    z-index: 1010;
}
.settings-menu li {
    padding: 10px 15px;
    color: #ffffff;
    cursor: pointer;
    display: block; 
}

.settings-menu li:hover {
    background: #444; 
}

#githubLink svg{
    width: 24px;
    height: 24px;
    fill: currentColor;
}
.header-left, .header-right {
    display: flex;
    align-items: center;
}

#logo {
    display: inline-flex;
    align-items: center;
}

#logo img {
    width: 40px;
    height: 40px;
}
.settings-panel {
    display: none;
    position: fixed;
    top: 350%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #2a2a2a70; 
    padding: 20px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    z-index: 1001; 
    color: #000000;
}

.settings-panel.active {
    display: block;
}

.settings-panel h3 {
    margin: 0 0 15px;
    font-size: 1.2em;
    font-variation-settings: "wdth" 668, "wght" 600;
    color: rgb(0, 0, 0);
}

.settings-panel label {
    display: flex;
    align-items: center;
    margin: 10px 0;
    font-size: 14px;
}

.settings-panel input[type="checkbox"] {
    margin-right: 10px;
    accent-color: #007bff;
}

.settings-close {
    position: absolute;
    top: 0px;
    right: 0px;
    font-size: 50px;
    color: #cccccc;
    cursor: pointer;
    line-height: 1;
    padding: 0px 10px;
    transition: color 0.2s;
}

.settings-close:hover {
    color: #fff;
}

.modal-body {
    margin-top: 220px;
}
.modal-details {
    padding: 15px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.329);
    margin-bottom: 15px;
    color: rgb(255, 255, 255);
    }
.modal-difficulties {
    padding: 15px;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0);
    margin-bottom: 15px;
}

.modal-difficulties {
    display: flex;
    flex-shrink: 0;
    width: fit-content;
    flex-wrap: wrap;
    gap: 10px;
}

/* Difficulties */
.difficulty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-right: 5px;
}

.instrument-icon {
    width: 30px;
    height: 30px;
    background-image: url('../images/instrument-icons.png');
    background-repeat: no-repeat;
    margin-right: 10px;
}

.guitar { background-position: 0 0; }
.drums { background-position: -30px 0; }
.bass { background-position: -60px 0; }
.vocals { background-position: -90px 0; }
.plastic-guitar { background-position: -120px 0; }
.plastic-drums { background-position: -150px 0; }
.plastic-bass { background-position: -180px 0; }

.difficulty-bars {
    display: flex;
    align-items: center;
}

.difficulty-bar {
    height: 22px;
}

.difficulty-bar span {
    display: inline-block;
    width: 8px;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    transform-origin: left;
    transform: skewX(-8deg);
    margin-right: 5px;
    border-radius: 2px;
}

.active { background-color: rgb(255, 243, 243) !important;
    border-radius: 1px; 
    margin-right: 5px;
}

.filter-wrapper {
    margin-bottom: 20px;
    display: flex;
    justify-content: left;
}

.custom-select {
    font: inherit;
    font-size: 16px;
    background-color: rgba(236, 237, 238, .1);
    color: white;
    border: none;
    padding: 8px 35px 8px 15px;
    border-radius: 10px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
    outline: 0 solid transparent;
    outline-offset: .5rem;
    transition: outline .15s, outline-offset .15s ease-out;
}

.custom-select option {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #2a2a2a;
    padding: 8px;
}

.custom-select:hover {
    outline: .15rem solid #fffc;
    outline-offset: .1875rem;
}

@media (max-width: 992px) {
    .filter-wrapper {
        padding: 0 15px;
    }

    .custom-select {
        width: 100%;
        max-width: 600px;
    }
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}
.modal-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

@media (max-width: 768px) {
    .modal-nav {
        width: 32px;
        height: 32px;
    }

    .modal-prev {
        left: 10px;
    }

    .modal-next {
        right: 10px;
    }
}
@media (max-width: 1024px) {
    .jam-track {
        flex: 1 1 calc(100% / min(var(--grid-size, 4), 3) - 20px);
    }
}
@media (max-width: 768px) {
    .jam-track {
        flex: 1 1 calc(100% / min(var(--grid-size, 4), 2) - 20px);
    }
}
@media (max-width: 480px) {
    .jam-track {
        flex: 1 1 100%;
    }
}

.mobile-highlight {
    background-color: #e0f7fa; 
    border: 2px solid #007bff; 
    transition: background-color 0.3s, border 0.3s;
}


.jam-track {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1); 
}

.loading-spinner {
    min-width: 80px;
    min-height: 80px;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 10px;
    background-color: rgba(236, 237, 238, .1);
    position: relative;
    margin-right: 10px;
}

.loading-spinner::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: #fff;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.modal {
    z-index: 1000;
}
.video-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none; 
    z-index: 2000; 
    overflow: auto; 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box;
}

.video-popup[style*="display: block"] {
    display: flex !important; 
    align-items: center; 
    justify-content: center; 
    min-height: 100vh; 
}

.video-popup-content {
    position: relative;
    width: 1280px;
    max-width: 90%; 
    aspect-ratio: 16 / 9; 
    background: #000; 
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5); 
}

.video-popup-content iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.video-popup-close {
    position: absolute;
    top: -30px;
    right: 0;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s;
}

.video-popup-close:hover {
    color: #ccc;
}


body.video-popup-open {
    overflow: hidden;
}


.modal {
    z-index: 1000;
}


@media (max-width: 768px) {
    .video-popup-content {
        width: 90%;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .video-popup-content {
        width: 95%;
    }
    .video-popup-close {
        top: -25px;
        font-size: 20px;
    }
}


.button-container {
    display: flex;
    align-items: center;
    gap: 10px;
}
.button-container .video-icon {
    font-size: 25px; 
    line-height: 1; 
    color: #fff; 
    display: inline-block;
    text-align: center;
    background: transparent !important; 
    border: none !important;
    padding: 0 !important; 
    margin: 0 !important; 
}

.video-menu-container {
    position: relative;
    background: transparent !important;
    z-index: 1010;
}

.video-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #222;
    border: 1px solid #444;
    border-radius: 4px;
    list-style: none;
    margin: 5px 0 0;
    padding: 0;
    z-index: 1000;
    min-width: 150px;
}

.video-menu li {
    padding: 10px 15px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.video-menu li:hover {
    background: #444;
}

/* Video popup */
.video-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.726);
    z-index: 2000;
}

.video-popup-content {
    position: relative;
    max-width: 1800px;
    display: flex;
    gap: 10px; 
    background: #000000;
    border-radius: 8px;
    padding: 20px;
}

.video-main {
    flex: 1;
}

.video-main iframe {
    width: 100%;
    height: 400px;
    border: none;
}

.video-sidebar {
    width: 400px;
    padding: 50px;
    border-radius: 10px;
}
.video-sidebar .track-info {
    margin-bottom: 20px;
}

.video-sidebar .track-cover {
    width: 300px;
    height: 300px;
    border-radius: 10px;
    margin-bottom: 10px;
    object-fit: cover;
}
.video-sidebar .track-info h2 {
    font-size: 1.8em;
    color: #fff;
    margin: 0 0 5px;
}

.video-sidebar .track-info h2 {
    font-size: 1.8em;
    color: #fff;
    margin: 0 0 5px;
}

.video-sidebar .track-info p {
    font-size: 1.2em;
    color: #ccc;
    margin: 0;
}

.video-sidebar h3 {
    font-size: 1.2em;
    color: #fff;
    margin: 0 0 10px;
}

.instrument-list {
    list-style: none;
    margin: 0;
    padding: 0;
    background: transparent; 
    border: 1px solid #7e7e7e00;
    border-radius: 2px;
}

.instrument-list li {
    padding: 10px 15px;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent; 
}

.instrument-list li:hover {
    outline: .15rem solid rgba(255, 255, 255, 0.8);
    outline-offset: .1875rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1); 
}

.instrument-list li.active {
    background: rgba(255, 255, 255, 0.2); 
    color: #ffffff;
    outline: .15rem solid rgba(255, 255, 255, 0.8);
    border-radius: 8px;
}
.instrument-list, .instrument-list li {
    background: transparent !important;
}
.video-popup-close {
    position: absolute;
    top: 0px;
    right: 0px;
    font-size: 50px;
    color: #cccccc;
    cursor: pointer;
    line-height: 1;
    padding: 0px 10px;
}
.preload-indicator {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: rgb(0, 0, 0);
    padding: 15px 25px;
    border-radius: 8px;
    z-index: 10000;
    text-align: center;
    display: none;
    font-size: 16px;
}

.preload-indicator.active {
    display: block;
}

.preload-indicator progress {
    display: block;
    width: 200px;
    height: 10px;
    margin: 10px auto 0;
    appearance: none;
    border: none;
}

.preload-indicator progress::-webkit-progress-bar {
    background-color: #333;
    border-radius: 5px;
}
.preload-indicator #preloadPercent {
    display: inline-block;
    margin-left: 10px;
    font-size: 14px;
}
.preload-indicator progress::-webkit-progress-value {
    box-shadow: #2a2a2a70;
    border-radius: 5px;
}

.preload-indicator progress::-moz-progress-bar {
    box-shadow: #2a2a2a70;
    border-radius: 5px;
}
.preload-indicator .progress-bar {
    width: 200px;
    height: 10px;
    background-color: #333;
    border-radius: 5px;
    margin: 10px auto 0;
    overflow: hidden;
}
.preload-indicator progress::-webkit-progress-value {
    transition: width 0.3s ease;
}
.preload-indicator progress::-moz-progress-bar {
    transition: width 0.3s ease;
}
.preload-indicator .progress-fill {
    width: 0%;
    height: 100%;
    background-color: #00ff15;
    border-radius: 5px;
    transition: width 0.3s ease;
}
.settings-menu {
    max-height: 400px;
    overflow-y: auto;
}
.todo-list {
    list-style: none;
    padding: 0;
    margin: 5px 0 0;
    max-height: 150px;
    overflow-y: auto;
}
.todo-list li {
    display: flex;
    align-items: center;
    padding: 5px;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.todo-list li.completed {
    text-decoration: line-through;
    opacity: 0.7;
}
.todo-list li .todo-text {
    flex: 1;
}
.todo-list-loading::before {
    content: 'Loading to-do list...';
    display: block;
    padding: 5px;
    color: #888;
}
.modal {
    z-index: 1000;
}
.modal-loading-phrase {
    margin-top: 1rem;
    padding: 0.5rem;
    border-top: 1px solid #cccccc00;
    font-size: 0.8rem;
    color: #ffffffbd;
    transition: text-shadow 0.3s ease;
  }
  
  .modal-loading-phrase.glow {
    text-shadow: 0 0 10px #ffffff, 0 0 20px #ffffff, 0 0 30px #ffffff;
  }
  
  .modal-loading-phrase p {
    margin: 0;
  }
  
  .jam-track {
    pointer-events: auto !important;
  }
  .modal-loading-phrase.glow {
    animation: glow 5s ease-in-out;
  }
  .filter-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
  }

@font-face {
    font-family: 'HeadingNowVariable';
    font-style: normal;
    font-stretch: normal;
    font-display: swap;
    src: url('../fonts/HeadingNowVariable.woff2') format('woff2');
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'HeadingNowVariable', Arial, sans-serif;
    font-variation-settings: "wdth" 668, "wght" 500;
    background-color: #121212;
    color: #dfdddd;
    overflow-x: hidden;
    user-select: none;
}

body.modal-open, body.video-popup-open {
    overflow: hidden;
}

.video-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    z-index: 2000;
    overflow: auto;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.video-popup[style*="display: block"] {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}


.video-popup-content::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    padding: 2px;
    background: linear-gradient(45deg, #00ffff, #ff00ff);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
}




.instrument-list li.active {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    outline: .15rem solid rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.6),
                0 0 25px rgba(255, 0, 255, 0.4);
}



.video-sidebar .track-cover {
    width: 300px;
    height: 300px;
    border-radius: 10px;
    margin-bottom: 10px;
    object-fit: cover;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.4);
    transition: box-shadow 0.2s;
}

.video-sidebar .track-cover:hover {
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.6),
                0 0 30px rgba(255, 0, 255, 0.4);
}


.video-sidebar .track-info p {
    font-size: 1.2em;
    color: #ccc;
    margin: 0;
}

.video-sidebar h3 {
    font-size: 1.2em;
    color: #fff;
    margin: 0 0 10px;
}


.modal {
    z-index: 1000;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #2a2a2a70;
    border-radius: 15px;
    width: 50%;
    max-width: 500px;
    padding: 20px;
    cursor: auto;
    overflow: hidden;
}

.modal-content {
    box-shadow: 0 0 50px rgba(0, 255, 255, 0.3),
                0 0 100px rgba(255, 0, 255, 0.2);
    transition: box-shadow 1.3s ease;
}

.modal-content:hover {
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5),
                0 0 30px rgba(255, 0, 255, 0.3);
}

@media (max-width: 768px) {
    .video-popup-content {
      flex-direction: column;
      width: 95%;
      max-width: none;
      padding: 10px;
    }
  
    .video-main iframe {
      height: auto;
      aspect-ratio: 16 / 9;
    }
  
    .video-sidebar {
      width: 100%;
      padding: 20px;
    }
  
    .video-sidebar .track-cover {
      width: 100%;
      height: auto;
      max-height: 200px;
    }
  
    .video-sidebar .track-info h2 {
      font-size: 1.5em;
    }
  
    .video-sidebar .track-info p {
      font-size: 1em;
    }
    #muteButton, #downloadButton, #videoMenuButton, #settingsButton, #githubButton {
        min-width: 44px;
        min-height: 44px;
        padding: 10px;
      }
      
      .custom-select {
        padding: 12px 40px 12px 15px; 
        font-size: 16px;
      }
.audio-notice {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    z-index: 10000;
    font-size: 14px;
  }
  
  @media (max-width: 768px) {
    .jam-track {
      flex: 1 1 calc(50% - 20px);
      min-height: 100px; 
      padding: 12px;
    }
  }
  
  @media (max-width: 480px) {
    .jam-track {
      flex: 1 1 100%;
      margin: 8px 0;
    }
  }
  
  @media (max-width: 768px) {
    .header .container {
      flex-direction: column;
      gap: 10px;
    }
  
    .header input[type="search"] {
      width: 100%;
      padding: 12px;
      font-size: 16px;
    }
  
    .header-controls button {
      width: 48px;
      height: 48px;
      padding: 12px;
    }
  
    .header-controls svg {
      width: 28px;
      height: 28px;
    }
  }
  
  @media (max-width: 768px) {
    .modal-content {
      width: 95%;
      max-width: none;
      padding: 15px;
    }
  
    .modal-header img {
      width: 60px;
      height: 60px;
    }
  
    .modal-header h2 {
      font-size: 18px;
    }
  
    .modal-header p {
      font-size: 14px;
    }
  
    .modal-close {
      font-size: 40px;
      padding: 5px 10px;
    }
  
    .modal-nav {
      width: 36px;
      height: 36px;
    }
  }
  
  @media (max-width: 768px) {
    .video-popup-content {
      flex-direction: column;
      width: 95%;
      max-width: none;
      padding: 10px;
    }
  
    .video-main iframe {
      height: auto;
      aspect-ratio: 16 / 9;
    }
  
    .video-sidebar {
      width: 100%;
      padding: 20px;
    }
  
    .video-sidebar .track-cover {
      width: 100%;
      height: auto;
      max-height: 200px;
    }
  
    .video-sidebar .track-info h2 {
      font-size: 1.5em;
    }
  
    .video-sidebar .track-info p {
      font-size: 1em;
    }
  }

  #muteButton, #downloadButton, #videoMenuButton, #settingsButton, #githubButton {
    min-width: 44px;
    min-height: 44px;
    padding: 10px;
  }
  
  .custom-select {
    padding: 12px 40px 12px 15px;
    font-size: 16px;
  }
  

  @media (max-width: 768px) {
    ::-webkit-scrollbar {
      width: 0;
    }
  }
  

  @media (max-width: 768px) {
    .modal-loading-phrase.glow {
      animation: none;
      text-shadow: none;
    }
  }
  .audio-notice {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    z-index: 10000;
    font-size: 14px;
  }
  

  @media (max-width: 768px) {
    .jam-track {
      flex: 1 1 calc(50% - 20px);
      min-height: 100px;
      padding: 12px;
    }
  }
  
  @media (max-width: 480px) {
    .jam-track {
      flex: 1 1 100%;
      margin: 8px 0;
    }
  }

@media (max-width: 768px) {
    .header .container {
      flex-direction: column;
      gap: 10px;
    }
  
    .header input[type="search"] {
      width: 100%;
      padding: 12px;
      font-size: 16px;
    }
  
    .header-controls button {
      width: 48px;
      height: 48px;
      padding: 12px;
    }
  
    .header-controls svg {
      width: 28px;
      height: 28px;
    }
  }
  

  @media (max-width: 768px) {
    .modal-content {
      width: 95%;
      max-width: none;
      padding: 15px;
    }
  
    .modal-header img {
      width: 60px;
      height: 60px;
    }
  
    .modal-header h2 {
      font-size: 18px;
    }
  
    .modal-header p {
      font-size: 14px;
    }
  
    .modal-close {
      font-size: 40px;
      padding: 5px 10px;
    }
  
    .modal-nav {
      width: 36px;
      height: 36px;
    }
  }
  

  @media (max-width: 768px) {
    .video-popup-content {
      flex-direction: column;
      width: 95%;
      max-width: none;
      padding: 10px;
    }
  
    .video-main iframe {
      height: auto;
      aspect-ratio: 16 / 9;
    }
  
    .video-sidebar {
      width: 100%;
      padding: 20px;
    }
  
    .video-sidebar .track-cover {
      width: 100%;
      height: auto;
      max-height: 200px;
    }
  
    .video-sidebar .track-info h2 {
      font-size: 1.5em;
    }
  
    .video-sidebar .track-info p {
      font-size: 1em;
    }
  }
  

  #muteButton, #downloadButton, #videoMenuButton, #settingsButton, #githubButton {
    min-width: 44px;
    min-height: 44px;
    padding: 10px;
  }


  .play-video-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 10px 20px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    z-index: 10;
    font-size: 16px;
  }
  .custom-select {
    padding: 12px 40px 12px 15px;
    font-size: 16px;
  }
  
  @media (max-width: 768px) {
    ::-webkit-scrollbar {
      width: 0;
    }
  }
  
/* Modal container for relative positioning */
#trackModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* Modal content */
.modal-content {
  position: relative;
  background: #1a1a1a;
  border-radius: 10px;
  overflow: hidden;
}

/* Modal info popup */
.modal-info-popup {
  position: absolute;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  border-radius: 5px;
  font-size: 14px;
  z-index: 10;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-info-popup.active {
  opacity: 1;
  visibility: visible;
}

.modal-info-popup:not(.active) {
  opacity: 0;
  visibility: hidden;
}

/* Style for settings menu spans */
#settingsMenu span[data-position] {
  cursor: pointer;
  padding: 2px 8px;
  margin: 0 5px;
}

#settingsMenu span[data-position].active {
  font-weight: bold;
  text-decoration: underline;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .modal-info-popup {
    font-size: 12px;
    padding: 8px 15px !important;
    width: 120px !important; /* Smaller width for mobile */
  }
  .modal-info-popup[data-position="left-side"] {
    right: calc(100% + 10px); /* Adjust for mobile */
    width: 100px !important;
  }
}
/* Modal container for relative positioning */
#trackModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* Modal content */
.modal-content {
  position: relative;
  background: #1a1a1a;
  border-radius: 10px;
  overflow: hidden;
}

/* Modal info popup */
.modal-info-popup {
  position: absolute;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  border-radius: 5px;
  font-size: 14px;
  z-index: 10;
  pointer-events: none;
  display: none; /* Hidden by default */
}

.modal-info-popup[style*="display: block"] {
  opacity: 1;
  visibility: visible;
}

/* Style for settings menu dropdown */
#settingsMenu select[data-setting="modal-info-position"] {
  background: #333;
  color: white;
  border: 1px solid #555;
  border-radius: 4px;
  padding: 5px;
  margin-left: 10px;
  cursor: pointer;
  font-size: 14px;
}

#settingsMenu select[data-setting="modal-info-position"]:focus {
  outline: none;
  border-color: #777;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .modal-info-popup {
    font-size: 12px;
    padding: 8px 15px !important;
    width: 120px !important; /* Smaller width for mobile */
  }
  .modal-info-popup[data-position="left-side"],
  .modal-info-popup[data-position="right-side"] {
    width: 100px !important;
  }
  .modal-info-popup[data-position="left-side"] {
    right: calc(100% + 10px); /* Adjust for mobile */
  }
  .modal-info-popup[data-position="right-side"] {
    left: calc(100% + 10px); /* Adjust for mobile */
  }
  #settingsMenu select[data-setting="modal-info-position"] {
    width: 100%;
    margin-top: 5px;
  }
}
  @media (max-width: 768px) {
    .modal-loading-phrase.glow {
      animation: none;
      text-shadow: none;
    }
  }
  .jam-track {

    border: 2px solid #ccc; 
    box-sizing: border-box;
  }
  .jam-track:hover {
    border-color: #666; 
  }
  .modal-content {
    box-shadow: 0 0 50px rgba(0, 255, 255, 0.3), 0 0 100px rgba(255, 0, 255, 0.2);
    transition: box-shadow 1.3s ease;
  }
  
  .modal-content:hover {
    box-shadow: var(--hover-shadow, 0 0 15px rgba(0, 255, 255, 0.5), 0 0 30px rgba(255, 0, 255, 0.3));
  }
  
  .modal-loading-phrase.glow {
    text-shadow: 0 0 10px #ffffff, 0 0 20px #ffffff;
  }
  

  #settingsMenu li[data-setting="glow-mode"] span {
    cursor: pointer;
    padding: 2px 8px;
    margin: 0 4px;
    border-radius: 4px;
  }
  
  #settingsMenu li[data-setting="glow-mode"] span.active {
    background-color: #444;
    color: #fff;
  }
  #settingsMenu li[data-setting="text-glow"] span,
#settingsMenu li[data-setting="modal-glow"] span {
  cursor: pointer;
  padding: 2px 8px;
  margin: 0 4px;
  border-radius: 4px;
}

#settingsMenu li[data-setting="text-glow"] span.active,
#settingsMenu li[data-setting="modal-glow"] span.active {
  background-color: #444;
  color: #ffffff4d;
}
/* Positions the details box on the left side of the modal */
.modal-details-left {
  position: absolute;
  left: 20px;
  top: 100px; /* Adjust as needed */
  width: 200px; /* Adjust as needed */
  text-align: left;
  background: rgba(0, 0, 0, 0.3);
  padding: 15px;
  border-radius: 8px;
}

.modal-details-left p {
  margin: 0 0 10px;
  font-size: 0.9em;
}

.modal-details-left strong {
  color: #fff;
}

/* Handles the non-wrapping/shrinking text for the main info line */
.modal-info-line {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  font-size: 0.9em; 
}

/* Arranges difficulties into a 3-column grid */
#modalDifficulties {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 15px;
}

/* Centers the content within each difficulty block */
.difficulty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
  }