/* Main Text */
.title {
    font-size: 3em;
    margin-bottom: 0em;
}
.sub-title {
    font-size: 2em;
}
.bigger-font {
    font-size: 1.2em;
}
.page-notice {
    margin-top: 0.05em;
}
.claim-notice {
    font-size: 0.9em;
    display: flex;
    justify-content: center;
}
.fine-print{
    font-size: 0.8em;
}
body{
    margin: 0em;
}

/* Fox controls: hide by default for no-JS users; show only when JS runs */
#fox-controls {
    display: none !important;
}
.js #fox-controls {
    display: flex !important;
}

.fox-toggle-control {
    position: relative;
}

.fox-toggle-hint {
    position: absolute;
    bottom: calc(100% + 0.4em);
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15em;
    width: max-content;
    overflow: hidden;
    padding: 0.45em 0.9em;
    border-radius: 999px;
    background: #434343cc;
    color: #fff;
    font-size: 1.2rem;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 0.2em 0.5em rgba(0, 0, 0, 0.2);
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fox-toggle-hint-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3em;
}

.fox-toggle-hint-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15em;
}

.fox-toggle-hint-extra {
    color: #fff;
    font-size: 0.7em;
    line-height: 1;
}

.fox-toggle-hint-text {
    color: transparent;
    background-image: linear-gradient(
        90deg,
        #ff3b30,
        #ff9f0a,
        #ffd60a,
        #32d74b,
        #64d2ff,
        #0a84ff,
        #bf5af2,
        #ff3b30
    );
    background-size: 200% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fox-hint-rainbow 3s linear infinite;
}

.fox-toggle-hint.is-fading {
    opacity: 0;
    transform: translateY(0.25em);
}

@keyframes fox-hint-rainbow {
    to {
        background-position: 200% 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fox-toggle-hint {
        transition: none;
    }

    .fox-toggle-hint-text {
        animation: none;
    }
}

/* Home button */
.Ai_Notice {
text-shadow: 0.1em 0.1em 0.15em #000000;
position: sticky;
opacity: 50%;
font-family: Arial;
font-size: 0.8em;
font-weight: bold;
text-align: center;
z-index: 1; 
margin-top: 0.5em;
margin-bottom: 0.1em;
/* margin-top: -0.8em; */
/* margin: 0em; */
pointer-events: none;
}

@media (max-width: 480px) {
    .Ai_Notice {
        font-size: 2vw;
    }
}

@media (prefers-color-scheme: light) {
    .Ai_Notice {
    text-shadow: 0.1em 0.1em 0.1em #ffffff;
    }
}

.button-link {
    display: inline-block;
    padding: 0.5em 0.5em;
    background-color: #434343;
    text-decoration: none;
    text-align: center;
    border: none;
    border-radius: 0.5em;
    font-weight: bold;
}
.button-link:hover {
    background-color: #0056b3;
}





/* Sidebar */
.sidebar .menu {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: 4em;
}
.sidebar .menu li {
    margin: 1em 0;
}
.sidebar .menu li a {
    color: inherit;
    text-decoration: none;
    font-size: 1.2em;
}
.sidebar .menu li a:hover {
    text-decoration: underline;
}
.sidebar { 
    position: fixed;
    top: 0;
    left: 0;
    width: 15em; 
    height: 100%;
    background-color: #16161630; 
    padding: 1em;
    box-shadow: 0.1em 0 0.5em rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    z-index: 9000; 
    overflow: scroll;
}
.menu-toggle { /* Button to toggle the sidebar */
    color: inherit; 
    position: fixed; 
    top: 1em;
    left: 1em;
    width: 3em; 
    height: 3em; 
    background-color: #33333388; 
    border: none;
    border-radius: 0.5em;
    font-size:1em;
    cursor: pointer;
    z-index: 9001; 
    justify-content: center;
    align-items: center;
    display: flex; 
}

.dropdown-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    /* Default: show submenus when JavaScript is NOT available. */
    display: block;
    background-color: inherit; 
    border: none; 
    position: relative;
}

.dropdown-menu li {
    margin: 0; 
}
.dropdown-menu li a {
    color: inherit; 
    text-decoration: none;
    font-size: 1.2em; 
    display: block;
    padding-left: 1em;
}
.sub-dropdown {
    padding-left: 2em;
}
.dropdown-toggle {
    background: none;
    border: none;
    color: inherit; 
    font: inherit;
    cursor: pointer;
    text-align: left;
    padding: 0;
    display: block;
    font-size: 1.2em;
}
.dropdown-menu.closed {
    display: none; 
}

/*This takes priority if a light theme is detected on the system*/
@media (prefers-color-scheme: light) { 
    .sidebar {
        box-shadow: 0.1em 0 0.5em rgba(0, 0, 0, 0.1);
        background-color: #1616160a;
    }
    /*
    .sidebar .menu li a {
    }
    */
    .sidebar .menu li a:hover {
        text-decoration: underline;
        color: #0056b3; 
    }
    .button-link:hover {
        background-color: #597fa7;
    }
    #global-footer {
        box-shadow: 0.1em 0 0.5em rgba(0, 0, 0, 0.1);
    }
}


/*This is what allows the content on the page to avoid being behind the sidebar*/
.content-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    margin-left: 17em;
    padding-left: 0.5em;
    transition: margin-left 0.3s ease;
}

/* Fullscreen Image Modal */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    cursor: pointer; 
    z-index: 9002; 
}
.modal-image {
    width: 100%;
    height: 100%;
    object-fit: contain; 
    border: none; 
    border-radius: 0; 
    user-select: none; 
}
/*This seemingly needed to stay below all the rest of the CSS or else stuff stopped working properly*/
@media (max-width: 1079px) {
    .sidebar {
        transform: translateX(-100%); 
    }
    .menu-toggle {
        display: flex;
    }
    .sidebar.open {
        transform: translateX(0); 
    }
    .content-wrapper {
        margin-left: 0; 
    }
    .sidebar.open + .content-wrapper {
        margin-left: 0; 
    }
}
@media (min-width: 1080px) {
    .menu-toggle {
        display: none;
    }
}

/* Solid sidebar for small screens + dark theme */
@media (max-width: 1079px) and (prefers-color-scheme: dark) {
    .sidebar {
        background-color: #161616;
    }
}

/* Solid sidebar for small screens + light theme */
@media (max-width: 1079px) and (prefers-color-scheme: light) {
    .sidebar {
        background-color: #e5e5e5;
    }
}

body.force-dark {
    color-scheme: dark;
    color: #ffffff !important;
}
body.force-dark .sidebar  {
    background-color: #16161630 !important; /* transparent dark */
    color: #ffffff !important;
    box-shadow: 0.1em 0 0.5em rgba(0, 0, 0, 0.5) !important;
}
body.force-dark .content-wrapper {
    background-color: transparent !important;
    color: #ffffff !important;
    text-shadow: 2px 2px 1px black;
}
body.force-dark h1,body.force-dark h2,body.force-dark h3,body.force-dark small,body.force-dark p,body.force-dark ol,body.force-dark .sub-title,body.force-dark #playlist a, body.force-dark .sidebar a, body.force-dark .copyright-disclaimer a, body.force-dark .copyright{
    background-color: transparent !important;
    color: #ffffff !important;
    text-shadow: 2px 2px 1px black;
}

body.force-dark .review-item {
        background-color: #4343438a !important; /* solid dark */
        color: #e5e5e5 !important;
        border: 0.3em solid #9f9f9f;
    }
body.force-dark .Ai_Notice {
        text-shadow: 0.1em 0.1em 0.15em #000000;
    }
    body.force-dark .review-form input {
        background: #4343438a;
    }
    body.force-dark .review-form textarea {
        background: #4343438a;
    }
@media (max-width: 1079px) {
    body.force-dark .sidebar {
    background-color: #161616cc !important; /* transparent dark */
    color: #ffffff !important;
    box-shadow: 0.1em 0 0.5em rgba(0, 0, 0, 0.5) !important;
    }
    
}

/* Layout for main homepage content: images + Last.fm widget */


/* Ensure the Last.fm widget can grow/scroll if its inner UI is tall */
.lastfm-panel {
    display: inline;
    flex-direction: column;
    min-width: 0; /* allow child to shrink below intrinsic size */
}

/* Ensure the lastfm webcomponent fills its column */
.lastfm-panel lastfm-tracks {
    width: 100%;
}


/* background styules */
.loading-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  padding: 2em 3em;
  border-radius: 1em;
  text-align: center;
  font-size: 1.2em;
  box-shadow: 0 0.5em 2em rgba(0,0,0,0.5);
}

.rate-limit-notice {
  position: fixed;
  bottom: 1em;
  left: 50%;
  z-index: 10000;
  box-sizing: border-box;
  max-width: calc(100vw - 2em);
  padding: 0.7em 1em;
  border-radius: 0.8em;
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  text-align: center;
  box-shadow: 0 0.5em 2em rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 0.4em);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}

.rate-limit-notice.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition-delay: 0s;
}

@media (prefers-reduced-motion: reduce) {
  .rate-limit-notice {
    transition: none;
  }
}

.fox-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 125vw;
    height: 125svh;
    z-index: -1;
    pointer-events: none;
}

.fox-bg img {
    width: 125vw;
    height: 125svh;
    object-fit: cover;
    object-position: left center;
    pointer-events: none;
    display: block;
}