body {
  margin: 0;
  background: #c9d6e3 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Crect width='4' height='4' fill='%23c9d6e3'/%3E%3Crect width='1' height='1' fill='%23bfcedc'/%3E%3C/svg%3E");
  font: 11px Arial, Helvetica, sans-serif;
  color: #222;
}
a { color: #0645ad; }
a:hover { color: #c00; }

#page {
  width: 980px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #8aa1b8;
  border-top: 0;
  box-shadow: 0 0 6px #8aa1b8;
}

#topbar {
  display: flex;
  justify-content: space-between;
  padding: 3px 8px;
  background: #e8eef4;
  border-bottom: 1px solid #c5d3e0;
}
#topbar .pro { color: #c60; font-weight: bold; }

#header {
  position: relative;
  height: 78px;
  background: linear-gradient(#3d8fd6, #1b5c9e 55%, #154c85 56%, #0f3c6b);
  color: #fff;
}
#logo {
  position: absolute;
  left: 14px;
  top: 10px;
  font: italic bold 38px "Trebuchet MS", Arial, sans-serif;
  letter-spacing: -2px;
  text-shadow: 1px 2px 0 #0b2c50;
}
#logo span { color: #ffcc33; }
#slogan {
  position: absolute;
  left: 18px;
  top: 56px;
  font-size: 11px;
  color: #cfe3f7;
}
#banner {
  position: absolute;
  right: 10px;
  top: 9px;
  width: 466px;
  height: 58px;
  font: bold 15px/58px Verdana, sans-serif;
  text-align: center;
  color: #333;
  background: repeating-linear-gradient(45deg, #ffef9e, #ffef9e 10px, #ffe36b 10px, #ffe36b 20px);
  border: 1px solid #b89a00;
}

#tabs {
  margin: 0;
  padding: 4px 8px 0;
  list-style: none;
  background: linear-gradient(#dce7f2, #b9cce0);
  border-bottom: 1px solid #7f9bb7;
  display: flex;
  gap: 3px;
}
#tabs li a {
  display: block;
  padding: 4px 14px;
  font-weight: bold;
  text-decoration: none;
  color: #1b4a7a;
  background: linear-gradient(#fff, #d6e2ee);
  border: 1px solid #7f9bb7;
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
}
#tabs li.active a { background: #fff; color: #000; position: relative; top: 1px; }

#columns { display: flex; padding: 8px; gap: 8px; }
#sidebar { width: 190px; flex: none; }
#main { flex: 1; min-width: 0; }

.box { border: 1px solid #a7bbcf; margin-bottom: 8px; background: #fff; }
.box h3 {
  margin: 0;
  padding: 4px 6px;
  font-size: 11px;
  color: #fff;
  background: linear-gradient(#5b95cc, #2d6aa6);
  border-bottom: 1px solid #1f4f80;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.box > :not(h3) { margin: 6px; }
.box.ad { background: #fffbe0; text-align: center; padding: 6px; border-color: #d9c35b; }
.blink { color: #e2231a; font-weight: bold; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { visibility: hidden; } }

.kv td { padding: 1px 2px; vertical-align: top; }
.kv td:first-child { color: #666; white-space: nowrap; }
.stars { color: #f0a000; font-size: 13px; }
.links { padding-left: 18px; }
.links li { margin: 2px 0; }
.offline { color: #999; font-size: 9px; }

#live { color: #ff4d4d; animation: blink 1.4s steps(1) infinite; }
#cam { position: relative; background: #000; border: 1px solid #333; }
#feed { display: block; width: 100%; height: auto; image-rendering: auto; }
#buffering {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  color: #fff;
  font: bold 14px Arial, sans-serif;
  background: rgba(0, 0, 0, 0.45);
}
#cam-info { display: flex; justify-content: space-between; color: #555; }
.updated { font-weight: normal; color: #d6e6f6; }

#meters { width: calc(100% - 12px); border-collapse: collapse; }
#meters td {
  width: 25%;
  padding: 6px;
  border: 1px solid #c5d3e0;
  background: linear-gradient(#fff, #eef3f8);
  vertical-align: top;
}
#meters .label { color: #555; font-weight: bold; text-transform: uppercase; font-size: 10px; }
#meters .value { font: bold 22px Arial, sans-serif; color: #1b4a7a; margin: 2px 0 4px; }
#meters .verdict { color: #c00; font-weight: bold; }
.bar {
  height: 10px;
  border: 1px solid #7f9bb7;
  background: linear-gradient(#e9eef3, #fff);
}
.fill {
  height: 100%;
  width: 0;
  background: linear-gradient(#9fe08a, #3fa52a);
  transition: width 1s;
}
.scale { display: flex; justify-content: space-between; color: #888; font-size: 9px; }
#wind-dir { font-size: 12px; }
#wind-arrow { display: inline-block; transition: transform 1s; }

#tide { display: flex; align-items: center; gap: 8px; margin: 6px 0; }
#tide .end { font: bold 11px Arial, sans-serif; color: #1b4a7a; }
#tide-track {
  position: relative;
  flex: 1;
  height: 16px;
  border: 1px solid #555;
  background: linear-gradient(90deg, #e8f2ff, #6096d6);
}
#tide-needle {
  position: absolute;
  top: -5px;
  width: 4px;
  height: 26px;
  margin-left: -2px;
  background: #000;
  border: 1px solid #fff;
}
#tide-text { color: #555; }
#tide-advice { margin-top: 3px; color: #c00; }
#tide-advice::before { content: "Tij-advies: "; font-weight: bold; color: #555; }

#sports { border-collapse: collapse; width: calc(100% - 12px); }
#sports td { padding: 4px 6px; border-bottom: 1px dotted #c5d3e0; }
#sports td:first-child { font-weight: bold; width: 130px; }
#sports .stars { font-size: 16px; width: 100px; }
#sports .nope { color: #c00; font-weight: bold; }

.scroll { overflow-x: auto; }
#forecast-table { border-collapse: collapse; font-size: 10px; text-align: center; }
#forecast-table th, #forecast-table td { border: 1px solid #fff; padding: 2px 3px; min-width: 22px; }
#forecast-table th { background: #e8eef4; font-weight: normal; }
#forecast-table th.row { text-align: left; white-space: nowrap; font-weight: bold; min-width: 90px; }
#forecast-table tr.day th { background: #2d6aa6; color: #fff; font-weight: bold; }
.legend { color: #888; }

.shout { border-bottom: 1px dotted #c5d3e0; padding: 3px 0; }
.shout i { color: #999; font-size: 9px; }
#shoutbox form { margin-bottom: 6px; }
#shoutbox input { font-size: 11px; }
#shout-message { width: 65%; }
#shoutbox .hint { color: #888; }
#shout-error { color: #c00; font-weight: bold; }
.shout .delete { font-size: 9px; color: #999; }
#shout-error:empty { display: none; }

#footer {
  padding: 8px;
  text-align: center;
  color: #666;
  background: #e8eef4;
  border-top: 1px solid #c5d3e0;
  line-height: 18px;
}
#counter span {
  display: inline-block;
  width: 10px;
  margin-right: 1px;
  background: #000;
  color: #3f3;
  font: bold 12px "Courier New", monospace;
}
