/* Shared styles for every site. Edit here once; no rule names a server.
 *
 * A page opts in with  <html data-server="NAME">  and
 *     <link rel="stylesheet" href="/site.css">
 * The block between the THEME markers is generated from the wrapper's
 * config.json (servers[].theme) by sites/tools/theme.js. Do not edit it by hand:
 * change config.json and run the tool, so the wrapper and the sites agree.
 */

/* BEGIN GENERATED THEME */
:root, html[data-server="sams"] {
    --accent: #55ff55;
    --accent-rgb: 85, 255, 85;
    --accent-glow: rgba(85, 255, 85, 0.6);
    --menu-icon: url("https://sams.tj/assets/boat.png");
    --menu-animation: menu-wiggle 3.5s ease-in-out infinite;
    --bg-1: url("https://sams.tj/images/website-background.png");
}
html[data-server="hardcore"] {
    --accent: #55ff55;
    --accent-rgb: 85, 255, 85;
    --accent-glow: rgba(85, 255, 85, 0.6);
    --menu-icon: url("https://hardcore.tj/assets/heart.png");
    --menu-animation: menu-wiggle 3.5s ease-in-out infinite;
    --bg-1: url("https://hardcore.tj/images/website-background-1.png");
    --bg-2: url("https://hardcore.tj/images/website-background-2.png");
    --bg-3: url("https://hardcore.tj/images/website-background-3.png");
    --bg-4: url("https://hardcore.tj/images/website-background-4.png");
    --bg-5: url("https://hardcore.tj/images/website-background-5.png");
}
html[data-server="skyblock"] {
    --accent: #ff55ff;
    --accent-rgb: 255, 85, 255;
    --accent-glow: rgba(255, 85, 255, 0.6);
    --menu-icon: url("https://sams.tj/assets/skyblock_menu.png");
    --menu-animation: menu-float 4s ease-in-out infinite;
    --bg-1: url("https://sams.tj/assets/skyblock_website_background.png");
}
html[data-server="mods"] {
    --accent: #55ccff;
    --accent-rgb: 85, 204, 255;
    --accent-glow: rgba(85, 204, 255, 0.6);
    --menu-icon: url("https://sams.tj/assets/aether_portal.png");
    --menu-animation: menu-bounce 2s cubic-bezier(0.28, 0.84, 0.42, 1) infinite;
    --bg-1: url("https://sams.tj/assets/modded_website_background.png");
}
html[data-server="superflat"] {
    --accent: #55ff55;
    --accent-rgb: 85, 255, 85;
    --accent-glow: rgba(85, 255, 85, 0.6);
    --menu-icon: url("https://mc-heads.net/avatar/MHF_Slime/150");
    --menu-animation: menu-wiggle 3.5s ease-in-out infinite;
    --bg-1: url("https://sams.tj/images/website-background.png");
}
html[data-server="earth"] {
    --accent: #55ffff;
    --accent-rgb: 85, 255, 255;
    --accent-glow: rgba(85, 255, 255, 0.6);
    --menu-icon: url("https://sams.tj/assets/globe.png");
    --menu-animation: menu-bounce 2s cubic-bezier(0.28, 0.84, 0.42, 1) infinite;
    --bg-1: url("https://sams.tj/assets/earth-website-background-1.png");
}
/* END GENERATED THEME */

/* ---- Menu icon animations (config.json "menuClass" picks one) ---- */
@keyframes menu-wiggle { 0%, 100% { transform: rotate(-6deg) translateY(0); } 50% { transform: rotate(6deg) translateY(-15px); } }
@keyframes menu-float  { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes menu-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-25px); } }

/* ---- Corner menu and its dropdown ---- */
.site-menu { position: fixed; bottom: 20px; left: 20px; z-index: 50; cursor: pointer; }
.site-menu-icon { width: 150px; image-rendering: pixelated; filter: drop-shadow(4px 4px 0px rgba(0, 0, 0, 0.6)); animation: var(--menu-animation); transition: transform 0.2s; }
.site-menu:hover .site-menu-icon { filter: drop-shadow(4px 4px 0px var(--accent-glow)); }

.site-menu .dropdown-content { display: none; position: absolute; bottom: 100%; left: 0; background-color: rgba(10, 10, 10, 0.98); min-width: 240px; max-height: 70vh; overflow-y: auto; box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.8); border: 4px solid #444; image-rendering: pixelated; padding-bottom: 10px; margin-bottom: 15px; }
.site-menu .dropdown-content::-webkit-scrollbar { width: 6px; }
.site-menu .dropdown-content::-webkit-scrollbar-thumb { background: #444; border: 1px solid #111; }
.site-menu:hover .dropdown-content { display: block; }
.site-menu .dropdown-header { color: #FFD700; padding: 15px 18px 5px 18px; font-size: 0.8em; border-bottom: 2px dashed #333; margin-bottom: 5px; cursor: default; text-shadow: 2px 2px 0px #000; }
.site-menu .dropdown-content a { color: #ccc; padding: 10px 18px; text-decoration: none; display: block; font-family: 'Press Start 2P', monospace; text-shadow: 2px 2px 0px #000; font-size: 0.75em; font-weight: normal; transition: all 0.1s; text-align: left; }
.site-menu .dropdown-content a:hover { background-color: #222; color: var(--accent); padding-left: 24px; }

@media (max-width: 768px) {
    .site-menu-icon { width: 100px; }
    .site-menu .dropdown-content { min-width: 220px; left: 0; max-height: 65vh; }
}

/* ---- Shared page components (reference look: sams.tj) ---- */
/* The reference look. A page lists, in its own <style>, only where it departs from these;
   whatever it merely repeats is removed by the build. */
body { font-family: "Press Start 2P", monospace; margin: 0px; padding: 0px; color: white; min-height: 100vh; text-shadow: rgba(0, 0, 0, 0.5) 2px 2px 0px; line-height: 1.7; position: relative; font-weight: normal; }
strong { font-weight: bold; }
h1 { font-size: 2.2em; margin-bottom: 0.5em; }
h2 { font-size: 1.6em; }
p, a, li { font-size: 0.95em; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: stretch; justify-content: flex-start; gap: 20px; margin: 30px 0; }
.ip-box { background-image: initial; background-position-x: initial; background-position-y: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgba(var(--accent-rgb), 0.1); border-width: 4px; border-style: dashed; border-color: var(--accent); padding-top: 15px; padding-right: 30px; padding-bottom: 15px; padding-left: 30px; display: flex; flex-direction: column; justify-content: center; align-items: center; transition-behavior: normal; transition-duration: 0.2s; transition-timing-function: ease; transition-delay: 0s; transition-property: all; animation-duration: 3s; animation-timing-function: ease; animation-delay: 0s; animation-iteration-count: infinite; animation-direction: normal; animation-fill-mode: none; animation-play-state: running; animation-name: pulse-green; animation-timeline: auto; animation-range-start: normal; animation-range-end: normal; box-sizing: border-box; flex-grow: 1; flex-shrink: 1; flex-basis: 0%; min-width: 250px; }
.ip-box:hover { background: rgba(var(--accent-rgb), 0.3); transform: scale(1.02); }
.click-to-copy { font-size: 0.6em; color: #ccc; display: block; margin-bottom: 5px; text-align: center; }
.ip-address { font-size: 1.8em; color: #fff; font-weight: bold; text-align: center; }
.retro-btn { border: 4px solid; text-decoration: none; font-size: 0.8em; transition: all 0.3s ease; display: flex; justify-content: center; align-items: center; padding: 15px 30px; box-sizing: border-box; text-align: center; flex: 1; min-width: 250px; line-height: 1.4; }
.discord-btn { border-color: #55ccff; color: #55ccff; }
.discord-btn:hover { background: rgba(85, 204, 255, 0.2); transform: translateY(-2px); }
.store-btn { border-color: #ffd700; color: #ffd700; }
.store-btn:hover { background: rgba(255, 215, 0, 0.2); transform: translateY(-2px); }
.music-btn { border-color: var(--accent); color: var(--accent); padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; background-image: initial; background-position-x: initial; background-position-y: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgba(0, 0, 0, 0.8); font-size: 0.6em; user-select: none; display: flex; flex-direction: column; align-items: center; overflow-x: hidden; overflow-y: hidden; }
.music-btn:hover { background: rgba(var(--accent-rgb), 0.2); transform: scale(1.05); }
.track-ticker-container { width: 100%; overflow: hidden; white-space: nowrap; margin-top: 5px; padding-top: 5px; border-top: 1px dashed var(--accent); display: none; align-self: stretch; box-sizing: border-box; }
.track-ticker { display: inline-block; padding-left: 100%; animation: marquee 15s linear infinite; color: #ccc; will-change: transform; }
@keyframes marquee { 0% { transform: translate3d(0, 0, 0); } 100% { transform: translate3d(-100%, 0, 0); } }
.feature-grid { display: flex; gap: 30px; margin: 50px 0; align-items: stretch; }
.feature-card { background: rgba(0, 0, 0, 0.8); border: 2px solid var(--accent); padding: 30px 40px; flex: 1; text-align: left; transition: all 0.3s ease; display: flex; flex-direction: column; box-shadow: 0 0 15px rgba(0,0,0,0.5); }
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 5px 20px rgba(var(--accent-rgb), 0.2); border-color: #fff; }
.feature-card h3 { color: #ffd700; font-size: 1.1em; margin-bottom: 15px; border-bottom: 2px dashed #444; padding-bottom: 10px;}
.feature-card p { font-size: 0.8em; line-height: 1.8; color: #ddd; margin: 0; flex-grow: 1; }
.rules-box { background: rgba(10, 10, 10, 0.8); border: 2px dashed #444; padding: 30px; margin: 40px 0; text-align: left; }
.top-left-header { position: fixed; top: 20px; left: 20px; z-index: 10; }
.header-wrapper { position: relative; display: inline-block; }
.top-left-header a { color: white; text-decoration-line: none; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; font-size: 1.3em; text-shadow: rgba(0, 0, 0, 0.5) 2px 2px 0px; display: inline-block; }
.top-left-header a:hover { color: #87CEEB; }
.splash-text { position: absolute; right: -120px; bottom: -15px; color: rgb(255, 255, 0); font-size: 0.6em; transform: rotate(-15deg); text-shadow: rgb(63, 63, 0) 2px 2px 0px; animation-duration: 0.4s; animation-timing-function: ease; animation-delay: 0s; animation-iteration-count: infinite; animation-direction: alternate; animation-fill-mode: none; animation-play-state: running; animation-name: splash-pulse; animation-timeline: auto; animation-range-start: normal; animation-range-end: normal; white-space-collapse: collapse; text-wrap-mode: nowrap; pointer-events: none; }
@keyframes splash-pulse { from { transform: rotate(-15deg) scale(1); } to { transform: rotate(-15deg) scale(1.1); } }
.container { width: calc(100% - 240px); max-width: 1500px; padding: 20px; margin-top: 150px; margin-left: 200px; margin-right: 20px; }
.mc-dashboard { display: flex; flex-direction: row; justify-content: flex-start; align-items: flex-start; row-gap: 30px; column-gap: 30px; padding: 20px; max-width: 1500px; margin-top: 20px; margin-right: 20px; margin-bottom: 0px; margin-left: 200px; }
.mc-widget { background-image: initial; background-position-x: initial; background-position-y: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgba(10, 10, 10, 0.95); color: rgb(255, 255, 255); padding: 25px; border-width: 4px; border-style: solid; border-color: rgb(68, 68, 68); image-rendering: pixelated; box-sizing: border-box; }
.chat-widget { height: 792px; display: flex; flex-direction: column; }
@keyframes pulse-green { 0%, 100% { border-color: #55ff55; box-shadow: 0 0 10px rgba(85,255,85,0.2); } 50% { border-color: #aaffaa; } }
@keyframes pulse-blue { 0%, 100% { border-color: #55ccff; box-shadow: 0 0 10px rgba(85,204,255,0.2); } 50% { border-color: #adeaff; } }
@keyframes pulse-purple { 0%, 100% { border-color: #b055ff; box-shadow: 0 0 10px rgba(176,85,255,0.2); } 50% { border-color: #d19aff; } }
@keyframes pulse-orange { 0%, 100% { border-color: #ffaa00; box-shadow: 0 0 10px rgba(255,170,0,0.2); } 50% { border-color: #ffd480; } }
@keyframes pulse-pink { 0%, 100% { border-color: #ff55ff; box-shadow: 0 0 10px rgba(255,85,255,0.2); } 50% { border-color: #ffb3ff; } }
@keyframes pulse-gold { 0%, 100% { border-color: #ffd700; box-shadow: 0 0 10px rgba(255,215,0,0.2); } 50% { border-color: #fff4aa; } }
.status-online-green { animation: pulse-green 3s infinite ease-in-out; }
.status-online-blue { animation: pulse-blue 3s infinite ease-in-out; }
.status-online-purple { animation: pulse-purple 3s infinite ease-in-out; }
.status-online-orange { animation: pulse-orange 3s infinite ease-in-out; }
.status-online-pink { animation: pulse-pink 3s infinite ease-in-out; }
.chat-active { animation: pulse-gold 4s infinite ease-in-out; }
.mc-ip-header { display: flex; justify-content: space-between; margin-bottom: 20px; }
.mc-ip-text { cursor: pointer; font-size: 13px; border-bottom-width: 2px; border-bottom-style: dashed; border-bottom-color: currentcolor; }
.mc-label { font-size: 11px; color: #eee; text-transform: uppercase; }
.mc-motd { font-size: 10px; background-image: initial; background-position-x: initial; background-position-y: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(0, 0, 0); padding: 12px; border-width: 2px; border-style: solid; border-color: rgb(34, 34, 34); margin-top: 15px; margin-right: 0px; margin-bottom: 15px; margin-left: 0px; line-height: 1.5; }
.mc-info { font-size: 11px; line-height: 1.8; color: #fff; margin-bottom: 15px; }
.mc-player-list { list-style: none; padding: 0; margin: 0; font-size: 11px; max-height: 160px; overflow-y: auto; }
.mc-player-item { padding: 10px 0; border-top: 1px solid rgba(255,255,255,0.05); display: flex; align-items: center; }
.mc-avatar { margin-right: 15px; border: 2px solid #fff; width: 20px; height: 20px; }
.chat-counter { font-size: 9px; color: #ffd700; margin-top: 8px; display: block; }
.chat-box { background: #000; border: 4px solid #222; padding: 20px; font-size: 12px; flex-grow: 1; overflow-y: auto; line-height: 1.8; }
.chat-line { margin-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 8px; word-break: break-word; }
.chat-time { color: #555; font-size: 9px; margin-right: 8px; }
.chat-player { color: var(--accent); margin-right: 8px; }
.chat-event { font-size: 11px; font-style: italic; }
.mc-0 { color: #000; }
.mc-1 { color: #00A; }
.mc-2 { color: #0A0; }
.mc-3 { color: #0AA; }
.mc-4 { color: #A00; }
.mc-5 { color: #A0A; }
.mc-6 { color: #FA0; }
.mc-7 { color: #AAA; }
.mc-8 { color: #555; }
.mc-9 { color: #55F; }
.mc-a { color: #5F5; }
.mc-b { color: #5FF; }
.mc-c { color: #F55; }
.mc-d { color: #F5F; }
.mc-e { color: #FF5; }
.mc-f { color: #FFF; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-thumb { background: #444; border: 2px solid #111; }
.mc-modal-overlay { position: fixed; top: 20px; right: 20px; z-index: 10000; display: flex; flex-direction: column; row-gap: 10px; column-gap: 10px; pointer-events: none; }
.mc-modal { background: #212121; border: 3px solid #555; border-radius: 8px; padding: 15px 20px; width: 320px; box-sizing: border-box; color: #fff; text-shadow: 2px 2px 0 #000; image-rendering: pixelated; box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.5); display: flex; flex-direction: column; gap: 10px; transform: translateX(120%); transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); pointer-events: auto; }
.mc-modal-overlay.active .mc-modal { transform: translateX(0); }
@keyframes mc-error-shake { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.mc-modal.shake-anim { animation: mc-error-shake 0.4s ease-in-out; }
.mc-modal-header { font-size: 0.9em; display: flex; align-items: center; justify-content: flex-start; gap: 10px; border-bottom: 2px dashed #444; padding-bottom: 8px; font-weight: normal; }
.mc-modal-body { font-size: 0.7em; line-height: 1.5; color: rgb(170, 170, 170); background-image: initial; background-position-x: initial; background-position-y: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(51, 51, 51); border-width: 2px; border-style: solid; border-top-color: rgb(17, 17, 17); border-right-color: rgb(85, 85, 85); border-bottom-color: rgb(85, 85, 85); border-left-color: rgb(17, 17, 17); padding: 10px; box-sizing: border-box; }
.mc-modal-btn { background-image: initial; background-position-x: initial; background-position-y: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(198, 198, 198); border-width: 3px; border-style: solid; border-top-color: rgb(255, 255, 255); border-right-color: rgb(85, 85, 85); border-bottom-color: rgb(85, 85, 85); border-left-color: rgb(255, 255, 255); padding-top: 6px; padding-right: 12px; padding-bottom: 6px; padding-left: 12px; font-family: inherit; font-size: 0.7em; cursor: pointer; color: rgb(0, 0, 0); font-weight: bold; }
.mc-modal-btn:hover { background: #aaa; border-color: #555 #fff #fff #555; }
