:root {
    --bg-body: url("../img/day.jpg");
    --bg-blur: 4px;
    --bg-container: #ccdcf399;
    --bg-primary: #5c90f3d3;
    --bg-title: #4377edb3;
    --bg-header: #4377edb3;
    --bg-sidebar: #5c90f3b3;
    --bg-content: #ccdcf399;
    --bg-news: #ccdcf3cc;
    --text-primary: #eaf5ff;
    --text-content: #4a4d7c;
    --btn-active-bg: #ddeeff;
    --btn-active-text: #2a4a8a;
    --hover-bg: #84acf4b3;
    --progressbar-fill: #4377edb3;
    --progressbar-bg:#00000026;
    --tooltip-bg: #e0f011be0;
    --tooltip-text: #4a4d7c;
    --kofi-color: #72a4f2;
}

[data-theme="night"] {
    --bg-blur: 4px;
    --bg-body: url("../img/night.jpg");
    --bg-container: #2a2a3d99;
    --bg-primary: #1a1a2ed3;
    --bg-title: #16213eb3;
    --bg-header: #16213eb3;
    --bg-sidebar: #0a2342b3;
    --bg-content: #2a2a3d99;
    --bg-news: #2a2a3dcc;
    --text-primary: #eaf5ff;
    --text-content: #b8b8d0;
    --btn-active-bg: #1e3a5f;
    --btn-active-text: #aad4ff;
    --hover-bg: #4a6fa5b3;
    --progressbar-fill: #2357b1b3;
    --progressbar-bg:#00000026;
    --tooltip-bg: #161629e0;
    --tooltip-text: #b8b8d0;
    --kofi-color: #1e2a40;
}

body {
    position: relative;
    background: none;
    font-family: "Times New Roman", Times, serif;
    margin: 0;
    padding: 0;
    color: var(--text-primary);
    transition: background-image 0.6s ease;
}

body::before {
    content: '';
    position: fixed;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    background-image: var(--bg-body);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    filter: blur(var(--bg-blur));
    z-index: -1;
    transition: background-image 0.6s ease;
}

table {
    width: 100%;
}

#container {
    width: 860px;
    margin: 38px auto;
    background-color: var(--bg-container);
    border: none;
    border-radius: 64px 64px 56px 56px;
    padding: 10px;
    box-sizing: border-box;
    transition: all 0.4s ease;
}

#header {
    display: flex;
    align-items: center;
    background-color: var(--bg-header);
    color: var(--text-primary);
    padding: 5px;
    font-size: 20px;
    font-style: italic;
    border-radius: 64px;
    transition: all 0.4s ease;
}

#sidebar {
    width: 200px;
    flex-shrink: 0;
    background-color: var(--bg-sidebar);
    padding: 10px;
    color: var(--text-primary);
    vertical-align: top;
    border-radius: 42px 0 0 42px;
    transition: all 0.4s ease;
}

#content {
    padding: 24px;
    line-height: 1;
    background-color: var(--bg-content);
    color: var(--text-content);
    font-size: 18px;
    border-radius: 0 42px 42px 0;
    transition: all 0.4s ease;
}

#footer {
    background-color: var(--bg-title);
    color: var(--text-primary);
    text-align: center;
    padding: 10px;
    font-size: 14px;
    border-radius: 64px;
    transition: all 0.4s ease;
}

#menu-title {
    text-align: center;
    font-size: 20px;
    font-style: italic;
    font-weight: bold;
    background-color: var(--bg-title);
    color: var(--text-primary);
    border-radius: 36px;
    padding: 16px;
    margin: -6px -6px 10px -6px;
    transition: all 0.4s ease;
}

#menu {
    background-color: var(--bg-primary);
    border-radius: 36px;
    padding: 16px;
    transition: all 0.4s ease;
}

#menu a {
    display: block;
    padding: 8px 12px;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.4s ease;
}

#menu a:hover {
    background-color: var(--hover-bg);
    color: var(--text-primary);
    border-radius: 24px;
}

.counter-visits:hover,
.counter-goatcounter:hover {
    background-color: var(--hover-bg);
    color: var(--text-content);
    border-radius: 24px;
}

.counter-title,
#widgets-title {
    text-align: center;
    font-size: 20px;
    font-style: italic;
    font-weight: bold;
    background-color: var(--bg-title);
    color: var(--text-primary);
    border-radius: 36px;
    padding: 16px;
    margin: 0 0 10px 0;
    transition: all 0.4s ease;
}

#widgets {
    background-color: var(--bg-primary);
    border-radius: 36px 36px 42px 42px;
    padding: 10px;
    margin-top: 10px;
    transition: all 0.4s ease;
}

#widgets-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.4s ease;
}

#counter {
    background-color: var(--bg-content);
    color: var(--text-content);
    border-radius: 36px;
    padding: 10px;
    margin-top: 10px;
    overflow: hidden;
    transition: all 0.4s ease;
}

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

.counter-visits {
    display: flex;
    justify-content: center;
    text-align: center;
    padding: 5px 12px;
    color: var(--text-content);
    transition: all 0.4s ease;
}

.counter-val {
    font-weight: bold;
    font-size: 18px;
    color: var(--text-content);
    transition: all 0.4s ease;
}


.counter-goatcounter {
    display: flex;
    justify-content: space-between;
    text-align: center;
    font-size: 12px;
    padding: 5px 12px;
    color: var(--text-content);
    transition: all 0.4s ease;
}

#websites-title {
    text-align: center;
    font-size: 20px;
    font-style: italic;
    font-weight: bold;
    background-color: var(--bg-title);
    color: var(--text-primary);
    border-radius: 36px;
    padding: 16px;
    margin: 0 0 10px 0;
    transition: all 0.4s ease;
}

#websites {
    background-color: var(--bg-primary);
    border-radius: 36px;
    padding: 10px;
    margin-top: 10px;
    transition: all 0.4s ease;
}

#websites-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.4s ease;
}

.news {
    background: var(--bg-news);
    height: 200px;
    padding: 10px;
    overflow-y: scroll;
    border-radius: 16px;
    scrollbar-width: thin;
    transition: all 0.4s ease;
}

.news::-webkit-scrollbar {
    width: 8px;
}

.news::-webkit-scrollbar-thumb {
    border-radius: 10px;
}

#rick {
    display: none;
    width: 100%;
    height: 100%;
}

.wplayer-widget {
    position: relative;
    width: 100%;
    background: var(--bg-content);
    color: var(--text-primary);
    border-radius: 36px 36px 32px 32px;
    padding: 10px;
    margin-top: 10px;
    font-family: "Times New Roman", Times, serif;
    transition: all 0.4s ease;
    box-sizing: border-box;
}

.wplayer-widget * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.wplayer-widget-title {
    text-align: center;
    font-size: 20px;
    font-style: italic;
    font-weight: bold;
    background: var(--bg-title);
    color: var(--text-primary);
    border-radius: 36px;
    padding: 16px;
    margin: 0 0 10px 0;
    transition: all 0.4s ease;
}

.wplayer-widget-body {
    background: var(--bg-content);
    color: var(--text-content);
    border-radius: 20px;
    padding: 12px;
    transition: all 0.4s ease;
}

.wplayer-track-info {
    overflow: hidden;
    position: relative;
    height: 1.4em;
    margin-bottom: 8px;
    font-style: italic;
    font-weight: bold;
    font-size: 13px;
}

#wp-title-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
}

#wp-title {
    position: absolute;
    top: 0;
    white-space: nowrap;
    will-change: transform;
    animation: wplayer-marquee 4s linear infinite;
}

@keyframes wplayer-marquee {
    from { left: 100%; transform: translateX(0); }
    to   { left: 0;    transform: translateX(-100%); }
}

.content-marquee-wrap {
    overflow: hidden;
    position: relative;
    height: 1.4em;
    width: 100%;
}

.content-marquee-text {
    position: absolute;
    top: 0;
    white-space: nowrap;
    animation: wplayer-marquee linear infinite;
}

.wplayer-controls {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 8px;
    flex-wrap: nowrap;
}

.wplayer-btn {
    background: var(--bg-primary);
    border: none;
    color: var(--text-primary);
    font-weight: bold;
    font-size: 13px;
    width: 36px;
    height: 36px;
    padding: 0;
    flex: none;
    text-align: center;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.4s ease;
    line-height: 36px;
}

.wplayer-btn:hover {
    background: var(--hover-bg);
    border-radius: 24px;
}

.wplayer-btn.active-mode {
    background: var(--btn-active-bg);
    color: var(--btn-active-text);
}

.wplayer-btn-play {
    font-size: 14px;
}

.wplayer-progress-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.wplayer-progressbar {
    flex: 1;
    height: 6px;
    background: var(--progressbar-bg);
    border-radius: 4px;
    overflow: hidden;
}

.wplayer-progressbar-fill {
    height: 100%;
    width: 0%;
    background: var(--progressbar-fill);
    border-radius: 4px;
    transition: width 0.25s linear;
}

.wplayer-time {
    font-family: monospace;
    font-size: 10px;
    color: var(--text-content);
    white-space: nowrap;
}

.wplayer-toggle-playlist-btn {
    width: 100%;
    background: var(--bg-primary);
    border: none;
    color: var(--text-primary);
    font-family: "Times New Roman", Times, serif;
    font-style: italic;
    font-size: 13px;
    padding: 5px 16px;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.4s ease;
}

.wplayer-toggle-playlist-btn:hover {
    background: var(--hover-bg);
    border-radius: 24px;
}

.wplayer-playlist {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--bg-content);
    border-radius: 16px;
    overflow-y: auto;
    max-height: 200px;
    scrollbar-width: thin;
    z-index: 1000;
    padding: 4px;
}

.wplayer-playlist.open {
    display: block;
}

.wplayer-playlist-item {
    padding: 5px 12px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-content);
    border-radius: 16px;
    margin: 4px;
    transition: all 0.4s ease;
}

.wplayer-playlist-item:hover {
    background: var(--hover-bg);
    color: var(--text-content);
    border-radius: 16px;
}

.wplayer-playlist-item.active {
    background: var(--bg-title);
    color: var(--text-primary);
}

details summary {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    list-style: none;
}

details summary::-webkit-details-marker {
    display: none;
}

details summary::before {
    content: "►";
    font-size: 1rem;
    display: inline-block;
}

details[open] summary::before {
    content: "▼";
}


hr {
    width: 100%;
    border-color: var(--text-content);
    margin: 30px auto;
    opacity: 0.6;
}

details summary hr {
    margin: 0;
}

.tooltip-target {
  cursor: pointer;
}

.tooltip-box {
  position: fixed;

  background: var(--tooltip-bg);
  color: var(--tooltip-text);

  padding: 8px 10px;
  font-size: 14px;
  border-radius: 8px;

  white-space: normal;
  z-index: 9999;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.tooltip-box.show {
  opacity: 1;
}

.tooltip-box:after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
}

.tooltip-top:after {
  bottom: -5px;
  left: var(--arrow-x, 50%);
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--tooltip-bg);
}

.tooltip-bottom:after {
  top: -5px;
  left: var(--arrow-x, 50%);
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 5px solid var(--tooltip-bg);
}

.tooltip-left:after {
  right: -5px;
  top: var(--arrow-y, 50%);
  transform: translateY(-50%);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 5px solid var(--tooltip-bg);
}

.tooltip-right:after {
  left: -5px;
  top: var(--arrow-y, 50%);
  transform: translateY(-50%);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-right: 5px solid var(--tooltip-bg);
}