@import url('https://fonts.googleapis.com/css2?family=Noto+Sans&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css');

html {
    overflow-y: scroll;
}

* {
    box-sizing: border-box;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Sans', sans-serif;
    background: #f5f7fb;
    color: #1f2933;
    text-align: center;
}

h1, h2, h3 {
    padding-top: 10px;
    padding-bottom: 10px;
    color: #0b1320;
}

p {
    margin-bottom: 1rem;
}

a {
    color: #000;
}

a:hover,
a:focus {
    color: #153e9d;
}

img {padding-top:10px;}



.navbar {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    padding: 14px 32px;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.navbar a {
    text-decoration: none;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 18px;
    align-items: center;
}


.nav-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    color: #0f172a;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    background: #f8fafc;
    letter-spacing: 0.01em;
    position: relative;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.nav-item:hover,
.nav-item:focus {
    color: #0f172a;
    background: #e2e8f0;
    border-color: #cbd5e1;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
    transform: translateY(-1px);
    text-decoration: none;
}

.nav-item::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(15, 23, 42, 0.04);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.nav-item:hover::after,
.nav-item:focus::after {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .nav-item {
        transition: none;
    }

    .nav-item::after {
        transition: none;
    }
}

.nav-button {
    margin-left: 8px;
    gap: 10px;
}

.menu-icon {
    display: none;
    font-size: 24px;
    color: #0f172a;
    cursor: pointer;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}

@media (max-width: 600px) {
    .navbar {
        padding: 12px 16px;
    }
    .menu-icon {
        display: block;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        gap: 8px;
        background: #fff;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 12px 16px 16px;
        box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14);
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links .nav-item {
        width: 100%;
    }
    .nav-item {
        justify-content: center;
        padding: 8px 12px;
    }
}

.banner {
    width: 100%;
    height: 190px;
    background: url('banner.png') no-repeat center center;
    background-size: cover;
    cursor: default;
}

.navbar + .banner {
    margin-top: 0;
}

#searchBar {
    width: 80%;
    padding: 10px;
    margin: 20px 0;
}

#clearSearch, #Dice, #NZ, #Jazz, #Unlisted, #ShowFavs, #toggleCategories {
    padding: 8px 15px;
    margin-left: 5px;
    font-size: 16px;
    cursor: pointer;
    color:#000 !important;
}

#clearSearch {
    padding: 10px 18px;
    font-size: 18px;
}

.songs-v2-link {
    text-align: center;
    margin: 10px 0 20px;
}

.hero-button {
    margin-left: 8px;
    font-weight: 800;
    gap: 8px;
    display: inline-flex;
}

.songs-v2-link a {
    display: inline-flex;
}

.card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.songs-container {
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

.card {
    display: flex;
    position: relative;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    border-radius: 16px;
    padding: 20px;
    margin: 5px;
    width: 220px;
    height: 260px;
    text-align: center;
    background: #ffffff;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 55px rgba(15, 23, 42, 0.15);
}

.card.random-highlight {
    outline: 3px solid #f97316;
    box-shadow: 0 28px 60px rgba(249, 115, 22, 0.35);
}

.card img {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 18px;
}

.event-container {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}
.event {
        border-radius: 16px;
        padding: 24px;
        width:400px;
        margin: 10px;
        text-align: left;
        background: #ffffff;
        box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event:hover {
        transform: translateY(-6px);
        box-shadow: 0 25px 55px rgba(15, 23, 42, 0.15);
}

#noResults {
    display: none;
    font-size: 18px;
    color: #ababab;
    margin-top: 20px;
}

#backToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #0f172a;
    color: #ffffff;
    padding: 12px 18px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease, color 0.25s ease, background 0.25s ease;
    z-index: 9999;
}

#backToTop i {
    color: #ffffff !important;
    margin-right: 8px;
    transition: color 0.25s ease;
}

#backToTop.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    animation: backToTopPulse 2.4s ease-in-out infinite;
}

#backToTop:hover,
#backToTop:focus {
    background: #555;
    color: #ffffff;
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.35);
}

#backToTop:hover i,
#backToTop:focus i {
    color: currentColor;
}

@keyframes backToTopPulse {
    0%,
    100% {
        transform: translateY(0);
        box-shadow: 0 14px 26px rgba(15, 23, 42, 0.3);
    }
    50% {
        transform: translateY(-6px);
        box-shadow: 0 22px 32px rgba(15, 23, 42, 0.38);
    }
}

.hero {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 24px 80px;
    display: flex;
    align-items: center;
    gap: 48px;
}

.hero-text {
    text-align: left;
}

.hero-text p {
    max-width: 520px;
}

.hero-text .link {
    font-weight: 600;
}

.hero-slideshow {
    position: relative;
    width: 440px;
    height: 440px;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.16);
}

.hero-slideshow img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.hero-slideshow img.active {
    opacity: 1;
}

@media (max-width: 900px) {
    .hero {
        flex-direction: column-reverse;
        padding: 40px 20px 60px;
    }

    .hero-slideshow {
        width: 100%;
        max-width: 500px;
        height: 360px;
    }

    .hero-text {
        text-align: center;
    }

    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* Scroll Bar Styles */
::-webkit-scrollbar {
    width: 4px;
}

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

::-webkit-scrollbar-thumb {
    background: #ababab;
}

::-webkit-scrollbar-thumb:hover {
    background: #ababab;
}

/* Link Styles */
a {
    text-decoration: none;
    color: #000;
    font-weight: 600;
    transition: color 0.2s ease;
}

a:hover,
a:focus {
    text-decoration: underline;
    color: #333;
}

a.link-nochange,
a.link-nochange:hover {
    font-weight: 500;
    text-decoration: none;
    color: #000;
}

.library-layout {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 5% 80px;
}

.library-content {
    flex: 1;
    text-align: left;
    max-width: 780px;
    width: 100%;
}

.library-content section {
    margin-bottom: 48px;
}

.library-content section:last-of-type {
    margin-bottom: 0;
}

.library-content .section-body {
    margin-top: 16px;
    display: grid;
    gap: 1rem;
}

.subnav {
    background-color: #f5f7fb;
    padding: 24px 20px;
    border-radius: 18px;
    position: sticky;
    top: 120px;
    z-index: 900;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 220px;
    align-self: flex-start;
    transition: background-color 0.2s ease;
}

.subnav:hover {
    background-color: #ffffff;
}

.subnav a {
    display: block;
    padding: 10px 12px;
    margin: 0;
    color: rgba(31, 41, 51, 0.7);
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.subnav a:hover,
.subnav a:focus {
    background: rgba(29, 78, 216, 0.12);
    color: #1d4ed8;
    transform: translateX(2px);
    text-decoration: none;
}

#learn,
#history,
#song {
    scroll-margin-top: 140px;
}

@media (max-width: 900px) {
    .library-layout {
        flex-direction: column;
        padding: 32px 5% 60px;
    }

    .subnav {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        padding: 16px;
        box-shadow: none;
    }

    .subnav a {
        padding: 10px 18px;
    }

    #learn,
    #history,
    #song {
        scroll-margin-top: 90px;
    }
}

.fav-btn:hover {
  color: #d4af37 !important;
}

.fav-btn:hover i {
  color: #d4af37 !important;
}

.fav-btn.active i {
  color: #d4af37 !important;
}


.fav-btn {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2em;
  color: #dbdbdb !important;
}
