@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');

:root {
  --red: #ff0000;
  --dark: #080808;
}

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

html, body {
  width: 100%;
  height: 100%;
  font-family: 'Orbitron', monospace;
  background: url('assets/newbg.png') center/cover no-repeat fixed;
  overflow: hidden;
  color: var(--red);
}

/* Ticker background */
#ticker-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;           /* use CSS columns layout */
  column-width: 180px;      /* minimum column width */
  column-gap: 24px;
  column-rule: 1px solid rgba(255, 0, 0, 0.15); /* subtle vertical separators */
  pointer-events: none;
  padding: 20px;
  overflow: hidden;
  opacity: 0.9;
}

.ticker-line {
  font-size: 14px;
  line-height: 1.2em;
  /* Slower flicker: 4s instead of 2s (200% slower) */
  animation: flicker 4s infinite linear;
}

@keyframes flicker {
  0%, 17%, 19%, 23%, 25%, 53%, 57%, 100% { opacity: 1; }
  20%, 24%, 55% { opacity: 0.35; }
}

/* Main content */
main {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

#main-logo {
  position: absolute;          /* Centered in viewport */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 23.5vw;               /* 25% larger than previous 18.75vw */
  max-width: 280px;
  aspect-ratio: 2 / 1;        /* create horizontal oval */
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 6px var(--red));
  animation: none;
  pointer-events: none;
  overflow: hidden;
}

#main-logo img {
  width: 80%;
  height: auto;
}

/* New: generic style for the bouncing DVD-style logos */
.dvd-bounce {
  position: fixed;
  top: 0;
  left: 0;
  width: 18vw;           /* 50% larger */
  max-width: 225px;      /* 50% larger */
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  /* Removed circular container */
}

.dvd-bounce img {
  width: 100%;
  height: auto;
}

.buttons {
  position: fixed;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 40px;
}

.livestream-btn {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 15px;            /* ~50% larger */
  padding: 15px 24px;   /* ~50% larger */
  border: 2px solid #54D390;
  border-radius: 9999px;
  color: #54D390;       /* green text */
  background: rgba(0, 0, 0, 0.5);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.5em;     /* ~50% larger text */
}

/* Disclaimer button (top-right) */
.disclaimer-btn {
  position: fixed;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 2px solid #54D390;
  border-radius: 9999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.5);
  text-decoration: none;
  font-weight: 700;
}

/* Disclaimer modal */
.hidden { display: none; }
.disclaimer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 1000;
}
.disclaimer-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 54vw;           /* align with center box width */
  max-width: 675px;      /* match scroll-box max */
  background: #0a0a0a;
  border: 2px solid #54D390;
  border-radius: 12px;
  color: #ffffff;
  z-index: 1001;
}
.disclaimer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(84,211,144,0.35);
}
.disclaimer-header h3 { color: #54D390; margin: 0; }
.disclaimer-close {
  background: transparent;
  color: #ffffff;
  border: none;
  font-size: 20px;
  cursor: pointer;
}
.disclaimer-body {
  padding: 12px;
}
.disclaimer-body p { margin: 10px 0; }
.disclaimer-footer {
  display: flex;
  justify-content: center; /* center the button */
  padding: 16px 12px 20px 12px;
}

/* Style the "I understand" button like the livestream pill */
#disclaimer-understand {
  border: 2px solid #54D390;
  border-radius: 9999px;
  color: #54D390;
  background: rgba(0, 0, 0, 0.5);
  padding: 10px 18px;
  font-weight: 700;
}

.livestream-btn .icon-left,
.livestream-btn .icon-right {
  width: 27px;    /* ~50% larger */
  height: 27px;   /* ~50% larger */
  object-fit: contain;
}

/* Ensure the new-tab icon is visible on dark backgrounds */
.livestream-btn .icon-right {
  filter: brightness(0) invert(1);
}

/* Center image and scroll box */
#content {
  position: absolute;
  top: 65%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 1;
}

#center-img {
  width: 22vw;        /* +10% */
  max-width: 275px;   /* +10% */
  border: 3px solid #54D390;
  border-radius: 12px;
}

#scroll-box {
  margin-top: 12px;
  width: 54vw;
  max-width: 675px; /* ~25% wider */
  height: auto;
  overflow: visible;
  border: 2px solid #54D390;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  padding: 8px;
}

/* Titles and spacing */
#scroll-box h2,
#left-box h3 {
  color: #54D390;
  margin-bottom: 10px; /* space between title and body */
}

#scroll-box p,
#left-box p {
  margin: 8px 0; /* separate paragraphs */
}

/* Left-side info box */
#left-box {
  position: fixed;
  top: calc(140px + 15vh); /* move down ~15% of viewport height */
  left: 20px;
  width: 375px; /* ~25% wider */
  max-width: 32vw;
  border: 2px solid #54D390;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  padding: 12px;
}

#left-box a {
  color: #54D390;
  text-decoration: underline;
}

/* (removed) Floating $UP text */

.circle-btn {
  width: 80px;
  height: 80px;
  border: 2px solid #54D390; /* cleaner edge */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: filter 0.2s;
  /* Disable flicker for buttons */
  animation: none;
  /* Clip inner image so square corners stay hidden */
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.6);
  box-shadow: 0 0 0 1px rgba(84, 211, 144, 0.35) inset; /* subtle inner antialias */
}

.circle-btn img {
  width: 100%;   /* 10% larger than before */
  height: 100%;
  object-fit: cover;
  image-rendering: auto;
}
.buttons .btn-ig img {
  transform: scale(1.02); /* Instagram image +2% */
}

/* Specific scaling for individual buttons */
/* Remove old nth-child tweaks; size by class for clarity */
.buttons .btn-tt {
  transform: scale(1.4); /* TikTok ~40% larger overall */
}

.buttons .btn-ig,
.buttons .btn-yt {
  transform: scale(1);
}

.circle-btn:hover {
  filter: brightness(1.4);
}

/* Blink red background briefly when price goes down */
.price-down {
  background-color: rgba(255, 0, 0, 0.25);
  transition: background-color 0.4s ease;
}

/* Decorative corner images */
.decor-top-left {
  position: fixed;
  top: -4vh;        /* move up by ~3% of viewport height */
  left: 0px;        /* stay top-left */
  width: 360px;     /* +25% from 288px */
  height: auto;
  z-index: 2;
  pointer-events: none;
}

.decor-bottom-right {
  position: fixed;
  bottom: 0px;   /* touch bottom of the page */
  right: 10px;
  width: 420px;  /* 2x of 210px */
  height: auto;
  z-index: 2;
  pointer-events: none;
}

/* -------------------------------------------------
   Scrolling marquee across top & bottom
   ------------------------------------------------- */

.marquee {
  position: fixed;
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  pointer-events: none;
  z-index: 2; /* above ticker bg */
  font-size: 18px;
  line-height: 1.2em;
  color: var(--red);
  text-shadow: 0 0 4px var(--red);
}

.marquee.top {
  top: 0;
  height: 5vh;
}

.marquee.bottom {
  bottom: 0;
  height: 5vh;
}

.marquee-content {
  display: inline-block;
  animation: marquee-scroll 20s linear infinite;
}

/* Green highlight for $DEBT inside marquee */
.debt-green {
  color: #00ff00;
  text-shadow: 0 0 4px #00ff00;
}

@keyframes marquee-scroll {
  0%   { transform: translateX(0);    }
  100% { transform: translateX(-50%); }
}

/* Quotes under buttons */
.quote {
  font-size: 16px;
  color: var(--red);
  text-align: center;
  max-width: 80vw;
  line-height: 1.3em;
} 

/* ----------------------------
   Windows XP-style modal
----------------------------- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999;
}

.xp-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  background: #c0c0c0;
  border: 2px solid #7d7d7d;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
  font-family: 'Tahoma', sans-serif;
  z-index: 1000;
}

.xp-modal-header {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(#004ead, #1058c3);
  color: #fff;
  padding: 4px 8px;
  font-weight: bold;
  font-size: 14px;
}

.xp-modal-body {
  padding: 16px;
  font-size: 14px;
  color: #000;
}

.xp-modal-buttons {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.xp-btn {
  padding: 4px 18px 4px 18px;
  font-size: 13px;
  border: 2px solid #7d7d7d;
  background: #e0e0e0;
  cursor: pointer;
}

.xp-btn:active {
  border-style: inset;
} 

/* Maintenance overlay */
#maintenance-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #ffffff;
  z-index: 999999;
}
