/* =========================================================
   MYBICKLE.COM // Retro Web 1.0
   ========================================================= */

* { box-sizing: border-box; }

:root {
  --navy: #000033;
  --blue: #000080;
  --cyan: #00ffff;
  --green: #00ff66;
  --yellow: #ffff00;
  --red: #ff3333;
  --silver: #c0c0c0;
  --white: #ffffff;
  --black: #000000;
}

html { min-height: 100%; background: #000018; }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--white);
  font-family: "Courier New", Courier, monospace;
  background:
    radial-gradient(circle at 15% 20%, rgba(0, 100, 255, 0.16), transparent 24%),
    radial-gradient(circle at 85% 35%, rgba(180, 0, 255, 0.10), transparent 27%),
    linear-gradient(#000020, #00000d);
}

a { color: var(--cyan); }
a:hover { color: var(--yellow); }

button, a { -webkit-tap-highlight-color: transparent; }

.stars { position: fixed; inset: 0; pointer-events: none; }
.stars-a {
  opacity: 0.48;
  background-image: radial-gradient(circle, white 1px, transparent 1px);
  background-size: 73px 73px;
  background-position: 7px 11px;
}
.stars-b {
  opacity: 0.22;
  background-image: radial-gradient(circle, #00ffff 1px, transparent 1px);
  background-size: 113px 113px;
  background-position: 41px 37px;
}

.page {
  position: relative;
  z-index: 1;
  width: min(940px, calc(100% - 22px));
  margin: 18px auto;
  border: 3px ridge #dddddd;
  background: var(--navy);
  box-shadow: 0 0 0 4px #000, 0 0 28px rgba(0, 255, 255, 0.20);
}

.site-header { border-bottom: 3px ridge var(--silver); }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 30px;
  padding: 5px 8px;
  color: #000;
  background: var(--silver);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: bold;
}

.network-name { white-space: nowrap; }
.status { color: #006600; white-space: nowrap; }

.hero {
  padding: 17px 10px 15px;
  text-align: center;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.022) 0, rgba(255,255,255,0.022) 1px, transparent 1px, transparent 4px),
    linear-gradient(#00009a, #000044);
}

.logo {
  color: var(--yellow);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(2.3rem, 7.5vw, 4.9rem);
  letter-spacing: 4px;
  line-height: 1;
  text-shadow: 2px 2px 0 #ff0000, 5px 5px 0 #000;
}

.subtitle { margin-top: 13px; color: var(--green); font-weight: bold; letter-spacing: 2px; }

.ticker {
  overflow: hidden;
  border-top: 2px solid #ffcc00;
  border-bottom: 2px solid #ffcc00;
  color: #fff;
  background: #8a0000;
  white-space: nowrap;
}

.ticker-track {
  display: flex;
  width: max-content;
  font-weight: bold;
  animation: ticker 46s linear infinite;
}
.ticker-track span { padding: 7px 42px 7px 0; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

main { padding: 14px; }

.window {
  margin: 14px 0;
  border: 3px outset #d6d6d6;
  background: #000055;
  overflow: hidden;
}

.window[hidden] { display: none !important; }

.window-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 29px;
  padding: 3px 4px 3px 7px;
  color: #fff;
  background: linear-gradient(90deg, #000080, #1084d0);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: bold;
  cursor: default;
  user-select: none;
}
.window-title:focus-visible { outline: 2px dotted #fff; outline-offset: -4px; }

.window-buttons { display: flex; gap: 3px; }
.window-buttons button {
  display: grid;
  width: 21px;
  height: 20px;
  padding: 0;
  place-items: center;
  border: 2px outset #eee;
  color: #000;
  background: var(--silver);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: bold;
  line-height: 1;
  cursor: pointer;
}
.window-buttons button:active { border-style: inset; padding: 1px 0 0 1px; }
.window-buttons button:focus-visible { outline: 2px solid #000; outline-offset: 1px; }

.window-content { padding: 17px; line-height: 1.55; }
.is-collapsed .window-content { display: none; }
.is-collapsed { background: #000080; }

.window-flash { animation: window-flash 0.5s steps(2, end); }
@keyframes window-flash { 50% { filter: brightness(1.45); } }

.center { text-align: center; }

h1, h2 {
  margin: 0 0 14px;
  color: var(--yellow);
  text-align: center;
  text-transform: uppercase;
}
h1 { font-size: 2rem; text-shadow: 2px 2px #aa0000; }
h2 { font-size: 1.3rem; }

.blink { margin-bottom: 0; color: var(--green); font-weight: bold; animation: blink 1.1s steps(2, start) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 18px 0;
}
.services .window { margin: 0; min-width: 0; }

.service-window { background: linear-gradient(135deg, #000068, #1d0048 58%, #000068); }
.service-content {
  display: flex;
  min-height: 250px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,0.022) 0, rgba(255,255,255,0.022) 2px, transparent 2px, transparent 7px);
}
.service-window:hover .window-title { background: linear-gradient(90deg, #000080, #177db5); }
.service-icon { display: block; margin-bottom: 8px; color: var(--cyan); font-size: 4rem; line-height: 1; text-shadow: 3px 3px #000; }
.service-icon.cloud { color: #fff; }
.service-name {
  display: block;
  color: var(--green);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 2.15rem;
  letter-spacing: 4px;
  text-shadow: 2px 2px #000;
}
.service-type { display: block; margin-top: 6px; color: #fff; font-weight: bold; }
.service-url { display: block; margin: 5px 0 18px; color: #aaaaff; font-size: 12px; }
.button {
  display: inline-block;
  padding: 6px 12px;
  border: 3px outset #fff;
  color: #000;
  background: var(--yellow);
  font-weight: bold;
  text-decoration: none;
}
.button:hover, .button:focus-visible { color: #000; background: var(--green); outline: none; }
.button:active { border-style: inset; }

.privacy p { max-width: 790px; margin: 0 auto 15px; }
.notice {
  max-width: 790px;
  margin: 22px auto;
  padding: 13px;
  border: 2px dashed var(--yellow);
  color: #fff;
  background: #001d45;
}
.notice-title { margin-bottom: 11px; color: var(--yellow); font-weight: bold; text-align: center; }
.notice p:last-child { margin-bottom: 0; }
.contact { padding-top: 8px; text-align: center; }

.retro-panel {
  margin: 18px 0 5px;
  padding: 13px;
  border: 3px groove var(--silver);
  color: var(--green);
  text-align: center;
  background: #000;
}
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin: 8px 0 10px; }
.badges span {
  padding: 4px 7px;
  border: 2px outset #fff;
  color: #000;
  background: var(--silver);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  font-weight: bold;
}
.retro-panel p { margin: 0; font-size: 11px; }

.taskbar {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 4px;
  border-top: 2px outset #eee;
  border-bottom: 2px outset #eee;
  background: var(--silver);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
}
.start-button {
  padding: 5px 9px;
  border: 2px outset #fff;
  color: #000;
  background: #c0c0c0;
  font-weight: bold;
}
.taskbar-apps { display: flex; min-width: 0; flex: 1; gap: 4px; overflow-x: auto; }
.taskbar-apps button {
  min-width: 0;
  max-width: 145px;
  padding: 5px 8px;
  overflow: hidden;
  border: 2px outset #fff;
  color: #000;
  background: #c0c0c0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: bold;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}
.taskbar-apps button:active { border-style: inset; }
.taskbar-apps button:focus-visible { outline: 2px solid #000080; outline-offset: -3px; }
.taskbar-clock {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 2px 6px;
  border: 2px inset #eee;
  color: #000;
  background: #d4d4d4;
}

.taskbar-clock .analog-clock {
  width: 24px;
  height: 24px;
  flex-basis: 24px;
  border-width: 1px;
}
.taskbar-clock .clock-marks span {
  top: 1px;
  height: 2px;
  transform-origin: 0.5px 10px;
}
.taskbar-clock .hour-hand { height: 6px; width: 2px; margin-left: -1px; }
.taskbar-clock .minute-hand { height: 8px; width: 1.5px; margin-left: -0.75px; }
.taskbar-clock .second-hand { height: 9px; }
.taskbar-clock .clock-center { width: 3px; height: 3px; border-width: 0; }

.taskbar-date-time {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  font-weight: bold;
}
#current-date { color: #000080; }
#digital-clock {
  padding: 2px 5px;
  border: 1px inset #eee;
  color: #990000;
  background: #fff;
  font-size: 11px;
  letter-spacing: 0.5px;
}

footer {
  padding: 12px;
  color: #c0c0c0;
  text-align: center;
  background: #000;
}
.footer-small { margin-top: 5px; font-size: 10px; }

@media (prefers-reduced-motion: reduce) {
  .ticker-track, .blink, .window-flash { animation: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 650px) {
  .page { width: calc(100% - 10px); margin: 5px auto; }
  main { padding: 7px; }
  .services { grid-template-columns: 1fr; gap: 10px; }

  .topbar { gap: 8px; min-height: 0; }
  .network-name, .status { font-size: 11px; }

  .logo { letter-spacing: 2px; }
  .window-content { padding: 13px; }
  .service-content { min-height: 220px; }

  .taskbar { align-items: stretch; }
  .taskbar-apps button { max-width: 105px; }
  .taskbar-clock { padding: 2px 4px; gap: 4px; }
  .taskbar-clock .analog-clock { display: none; }
  .taskbar-date-time { gap: 4px; font-size: 9px; }
  #current-date { display: none; }
  #digital-clock { font-size: 10px; }
}

/* Hidden windows: author CSS must not override the HTML hidden attribute. */
.app-window[hidden] {
  display: none !important;
}

.taskbar-apps button.is-minimized {
  border-style: inset;
  color: #666;
  background: #aaa;
}

/* Direct service shortcuts in the taskbar */
.taskbar-apps .taskbar-link {
  display: inline-block;
  min-width: 0;
  max-width: 145px;
  padding: 5px 8px;
  overflow: hidden;
  border: 2px outset #fff;
  color: #000;
  background: #c0c0c0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: bold;
  line-height: normal;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.taskbar-apps .taskbar-link:hover,
.taskbar-apps .taskbar-link:focus-visible {
  color: #000;
  background: #d4d4d4;
}
.taskbar-apps .taskbar-link:active {
  border-style: inset;
}

/* Taskbar now belongs directly below the ticker. */
.site-header .taskbar {
  border-top: 0;
}

@media (max-width: 650px) {
  .taskbar-apps .taskbar-link { max-width: 105px; }
}

/* Keep the editor window title fully visible in the taskbar. */
.taskbar-apps button[data-task-window="privacy"] {
  flex: 0 0 auto;
  max-width: none;
  overflow: visible;
  text-overflow: clip;
}

@media (max-width: 650px) {
  .taskbar-apps button[data-task-window="privacy"] {
    max-width: none;
  }
}
