@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: var(--dark);
  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;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 40px;
}

.circle-btn {
  width: 80px;
  height: 80px;
  border: 3px solid var(--red);
  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;
}

.circle-btn img {
  width: 100%;   /* 10% larger than before */
  height: 100%;
  object-fit: cover;
}

.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;
}

/* -------------------------------------------------
   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;
} 