/* Basic reset */
* { box-sizing: border-box; margin: 0; padding: 0; }
html,body { height: 100%; font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial; color: #0f172a; background: #f8fafc; }

/* Top bar */
.topbar {
  width: 100%;
  background: linear-gradient(90deg,rgba(0, 48, 97, 1) 0%, rgba(8, 126, 199, 1) 100%); 
  color: #fff;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  box-shadow: 0 2px 8px rgba(2,6,23,0.3);
}

.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 0 16px;
}

/* Fixed title */
.brand {
	font-family: Orbitron, sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.6px;
  padding-right: 6px;
  flex-shrink: 0;
  color: #fff;
}

/* Rotating messages */
.rotator {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  max-width: 80%;
  text-align: center;
}

.rotating-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  outline: none;
}

.rotating-text {
  white-space: nowrap;
  overflow: hidden;
}

/* Read More Button */
.read-more-btn {
  background-color: rgba(255,255,255,0.15);
  color: #00ffcc;
  padding: 5px 10px;
  margin-left:10px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid rgba(255,255,255,0.2);
}

.read-more-btn:hover {
  background-color: #00ffcc;
  color: #000;
  border-color: #00ffcc;
}



/* Blinking cursor */
.cursor {
  display: inline-block;
  width: 10px;
  font-weight: 700;
  color: #a7f3d0;
  animation: blink 1s steps(2, start) infinite;
}

@keyframes blink {
  0%,100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Main content area (full height below top bar) */
.main-content {
  padding-top: 64px; /* equal to topbar height */
  height: 100%;
}

/* Iframe fills space */
.iframe-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
}

iframe#rotating-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Overlay countdown box */
.iframe-overlay {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(15,23,42,0.7);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  backdrop-filter: blur(4px);
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .topbar-inner { height: 56px; }
  .brand { font-size: 18px; }
  .rotating-link { font-size: 15px; }
  .main-content { padding-top: 56px; height: calc(100vh - 56px); }
}

@media (max-width: 480px) {
  .brand { font-size: 16px; }
  .rotating-link { font-size: 14px; max-width: 70%; overflow: hidden; text-overflow: ellipsis; }
  .cursor { width: 8px; }
}
