/* movie wheel - main stylesheet */

body {
  margin: 0;
  padding: 12px 8px 30px;
  background-color: #2e2b26;
  background-image: repeating-linear-gradient(45deg, #2a2722 0, #2a2722 2px, #322f29 2px, #322f29 4px);
  color: #222;
  font-family: Verdana, Tahoma, Arial, sans-serif;
  font-size: 12px;
}

a { color: #0000cc; }
a:visited { color: #551a8b; }
a:hover { color: #cc0000; }

#page {
  max-width: 780px;
  margin: 0 auto;
  background: #ece6d2;
  border: 2px outset #b8b09a;
}

table { border-collapse: collapse; }

/* header */
#top { background: #1c1f3a; border-bottom: 3px double #8a7f5a; }
.logo-cell { width: 128px; padding: 4px; }
.logo-cell img { display: block; border: 2px ridge #c9b77a; }
.title-cell { padding: 6px 12px; }
.site-title {
  font-family: "Times New Roman", Times, serif;
  font-size: 40px;
  font-weight: bold;
  font-style: italic;
  color: #ffcc33;
  letter-spacing: 1px;
  text-shadow: 2px 2px 0 #000;
}
.status-cell {
  text-align: right;
  vertical-align: bottom;
  padding: 6px 8px;
  white-space: nowrap;
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  color: #9f9;
}
#status.error { color: #ff6666; }
.blink { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { visibility: hidden; } }

/* layout */
#left { padding: 8px 4px 8px 8px; }
#right { width: 290px; padding: 8px 8px 8px 4px; }

.box {
  display: block;
  margin: 0 0 8px;
  border: 1px solid #6b6248;
  background: #f7f3e6;
}
.box-head {
  background: #333366;
  color: #ffffcc;
  font-weight: bold;
  font-size: 11px;
  padding: 3px 6px;
  border-bottom: 1px solid #6b6248;
}
.box-body { padding: 6px; }
.center { text-align: center; }
.right-align { text-align: right; margin-top: 6px; }
.small { font-size: 11px; }
.hint { font-size: 11px; color: #776; }

/* form stuff */
label { display: block; font-size: 11px; font-weight: bold; margin: 4px 0 2px; }
textarea, input {
  width: 100%;
  box-sizing: border-box;
  border: 2px inset #ccc;
  background: #fff;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  padding: 2px;
  resize: vertical;
}

button, .btn {
  display: inline-block;
  font-family: Tahoma, Verdana, sans-serif;
  font-size: 11px;
  color: #000;
  background: #d4d0c8;
  border: 2px outset #fff;
  padding: 3px 10px;
  cursor: pointer;
}
button:active, .btn:active { border-style: inset; }
button:disabled { color: #888; cursor: default; }
.btn-row { margin-top: 6px; }
.btn-row button, .btn-row .btn { margin-right: 4px; }

/* the wheel */
.wheel-wrap {
  position: relative;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1;
  margin: 6px auto 0;
}
canvas { width: 100%; height: 100%; display: block; }
.pointer {
  position: absolute;
  top: -4px;
  left: 50%;
  margin-left: -12px;
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 24px solid #cc0000;
  z-index: 2;
}
.spin-btn {
  margin: 10px 0 4px;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 22px;
  letter-spacing: 2px;
  padding: 4px 30px;
  border-width: 3px;
}

/* lists */
.list-table td {
  border-bottom: 1px dotted #a99f80;
  padding: 3px 2px;
  font-size: 11px;
  vertical-align: top;
}
.list-table tr:nth-child(even) td { background: #efe9d6; }
.list-table .title { word-break: break-word; }
.list-table .by, .list-table .when { color: #776; }
.list-table .when { white-space: nowrap; text-align: right; }
.list-table .acts { white-space: nowrap; text-align: right; }
.list-table .acts a { text-decoration: none; }
.list-table .swatch {
  display: inline-block;
  width: 8px;
  height: 8px;
  border: 1px solid #000;
  margin-right: 4px;
}
.list-table td.none { color: #998; font-style: italic; }
a.danger, a.danger:visited { color: #aa0000; }

/* footer */
#footer {
  border-top: 3px double #8a7f5a;
  padding: 8px;
  text-align: center;
  font-size: 10px;
  color: #554;
  line-height: 1.7;
}
.counter {
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
  font-weight: bold;
  background: #000;
  color: #33ff33;
  padding: 0 4px;
  border: 2px inset #888;
  letter-spacing: 2px;
}

/* popup */
dialog {
  padding: 0;
  border: 2px outset #fff;
  background: #d4d0c8;
  width: 320px;
  max-width: 90vw;
  font-family: Tahoma, Verdana, sans-serif;
  font-size: 11px;
}
dialog::backdrop { background: rgba(0, 0, 0, 0.35); }
.win-title {
  background: linear-gradient(to right, #0a246a, #a6caf0);
  color: #fff;
  font-weight: bold;
  padding: 3px 4px;
  font-size: 11px;
}
.win-x {
  cursor: pointer;
  float: right;
  background: #d4d0c8;
  color: #000;
  border: 1px outset #fff;
  padding: 0 4px;
  font-size: 10px;
  line-height: 12px;
}
.win-body { padding: 12px; }
#winner-title {
  font-family: "Times New Roman", Times, serif;
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  margin: 8px 0 14px;
  word-break: break-word;
}

/* small screens */
@media (max-width: 640px) {
  body { padding: 0; }
  #layout, #layout > tbody, #layout > tbody > tr, #layout > tbody > tr > td { display: block; width: auto; }
  #left, #right { padding: 6px; }
  .site-title { font-size: 28px; }
  .logo-cell { width: 76px; }
  .logo-cell img { width: 70px; height: auto; }
  .status-cell { font-size: 10px; padding: 4px; }
}
#winner-by:empty { display: none; }

/* login */
.login-box { max-width: 300px; margin: 30px auto; }
.login-error { color: #aa0000; font-size: 11px; min-height: 14px; margin-top: 4px; }
.login-page { padding-bottom: 20px; }

/* chat */
.chat-body { padding: 0; }
#chattable {
  display: block;
  width: 100%;
  height: 360px;
  min-height: 250px;
  border: 0;
  background: #f7f3e6;
}

[hidden] { display: none !important; }
