/* Big Ray's Alternative Collections - style sheet by Kyle */
/* layout: one 780px table on a starry navy sky - silver menu left, white page middle, yellow sidebar right */

@font-face { font-family: "Tinos"; src: url(fonts/Tinos-Regular.ttf); }
@font-face { font-family: "Tinos"; src: url(fonts/Tinos-Bold.ttf); font-weight: bold; }
@font-face { font-family: "Tinos"; src: url(fonts/Tinos-Italic.ttf); font-style: italic; }
@font-face { font-family: "Arimo"; src: url(fonts/Arimo.ttf); font-weight: 400 700; }
@font-face { font-family: "Comic Neue"; src: url(fonts/ComicNeue-Regular.ttf); }
@font-face { font-family: "Comic Neue"; src: url(fonts/ComicNeue-Bold.ttf); font-weight: bold; }

:root {
  --sky: #000066;
  --flag-red: #CC0000;
  --paper: #FFFFFF;
  --legal-pad: #FFFFCC;
  --silver: #C0C0C0;
  --ink: #000000;
  --link: #0000EE;
  --visited: #551A8B;
  --times: "Times New Roman", Tinos, Times, serif;
  --arial: Arial, Arimo, Helvetica, sans-serif;
  --comic: "Comic Sans MS", "Comic Neue", "Chalkboard SE", cursive;
  --courier: "Courier New", Courier, monospace;
  color-scheme: light;
}

body {
  background: var(--sky) url(img/bg_stars.gif);
  color: var(--ink);
  margin: 0;
  padding-block: 18px 40px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  font-family: var(--times);
  font-size: 16px;
}
a { color: var(--link); }
a:visited { color: var(--visited); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px dotted var(--flag-red);
  outline-offset: 2px;
}
img { max-width: 100%; height: auto; }

.shell {
  width: 780px;
  max-width: 100%;
  margin: 0 auto;
  border: 5px ridge var(--silver);
  background: var(--paper);
  border-collapse: collapse;
}
.shell > tbody > tr > td { padding: 0; vertical-align: top; }
.banner img { display: block; width: 100%; }

.ticker {
  background: var(--ink);
  color: #FFFF00;
  font: bold 14px var(--arial);
  border-top: 2px solid var(--flag-red);
  border-bottom: 2px solid var(--flag-red);
}
.ticker marquee { display: block; padding: 4px 0; }

/* left: the menu */
.nav { width: 150px; background: var(--silver); border-right: 3px ridge var(--silver); }
.nav-inner { padding: 10px 8px 16px; }
.menu-title {
  font: bold 15px var(--comic);
  text-align: center;
  letter-spacing: 6px;
  color: var(--sky);
  margin: 6px 0 8px;
}
.buttons { display: flex; flex-direction: column; gap: 5px; }
.btn {
  display: block;
  background: var(--silver);
  border: 3px outset #FFFFFF;
  color: var(--ink) !important;
  font: bold 13px var(--arial);
  text-decoration: none;
  text-transform: uppercase;
  padding: 5px 4px 5px 8px;
}
.btn img { vertical-align: -2px; margin-right: 4px; }
.btn:hover { background: #D8D8D8; color: var(--flag-red) !important; }
.btn:active, .btn.here { border-style: inset; background: #A8A8A8; }
.btn.here { color: var(--flag-red) !important; }

.tip {
  margin-top: 16px;
  background: var(--legal-pad);
  border: 2px dashed var(--ink);
  padding: 8px;
  font: 14px var(--comic);
}
.tip b { display: block; color: var(--flag-red); font-size: 13px; margin-bottom: 4px; }
.tip-side { display: none; }

/* middle: the page */
.main { padding: 18px 22px 26px !important; line-height: 1.4; }
.main h1 {
  font: bold 26px var(--arial);
  color: var(--flag-red);
  text-align: center;
  margin: 4px 0 14px;
  text-wrap: balance;
}
.main h2 { font: bold 20px var(--arial); color: var(--sky); text-align: center; text-wrap: balance; }
.main h3 { font: bold 17px var(--arial); color: var(--sky); margin: 20px 0 4px; text-decoration: underline; }
.main p { margin: 0 0 12px; }
.center { text-align: center; }
.small { font-size: 13px; }
.fig { text-align: center; margin: 14px 0; }
.fig img { border: 2px solid var(--ink); }
.fig .cap { display: block; font: italic 13px var(--times); margin-top: 3px; }
.divider { display: block; margin: 16px auto; }
.red { color: var(--flag-red); }
.big-email { font: bold 20px var(--courier); }

ul.stars { list-style: none; padding: 0; margin: 4px 0 14px; }
ul.stars li { padding-left: 22px; background: url(img/bullet.gif) no-repeat 0 3px; margin-bottom: 4px; }

.perks { width: 100%; border: 3px double var(--sky); margin: 6px 0 16px; }
.perks td { padding: 4px 8px; font: bold 14px var(--arial); color: var(--sky); }

.rates { border-collapse: separate; border: 4px outset var(--silver); margin: 0 auto 16px; width: 100%; }
.rates th { background: var(--sky); color: #FFFF00; font: bold 14px var(--arial); padding: 6px; }
.rates td { border: 2px inset var(--silver); padding: 6px 8px; }
.rates tr:nth-child(odd) td { background: var(--legal-pad); }
.table-wrap { overflow-x: auto; }

.crew td { padding: 8px; vertical-align: top; }
.crew img { border: 2px solid var(--ink); display: block; }
.crew .name { font: bold 17px var(--arial); color: var(--flag-red); }
.crew .role { font: italic bold 14px var(--times); color: var(--sky); display: block; margin-bottom: 4px; }

.faq dt { font-weight: bold; color: var(--flag-red); margin-top: 12px; }
.faq dt::before { content: "Q: "; }
.faq dd { margin: 2px 0 0 22px; }
.faq dd::before { content: "A: "; font-weight: bold; }

/* guestbook */
.gb-form { background: var(--legal-pad); border: 3px ridge var(--silver); padding: 10px 12px; margin-bottom: 18px; }
.gb-form table { width: 100%; }
.gb-form td { padding: 3px; font: bold 14px var(--arial); vertical-align: top; }
.gb-form td:first-child { width: 34%; text-align: right; }
.gb-form input[type=text], .gb-form select, .gb-form textarea {
  width: 100%;
  box-sizing: border-box;
  font: 14px var(--courier);
  border: 2px inset var(--silver);
  background: #FFFFFF;
  color: var(--ink);
  padding: 2px 4px;
}
.gb-form .row-buttons { text-align: center; padding-top: 8px; }
.gb-form button, .music button {
  font: bold 13px var(--arial);
  background: var(--silver);
  color: var(--ink);
  border: 3px outset #FFFFFF;
  padding: 4px 14px;
  cursor: pointer;
}
.gb-form button:active, .music button:active { border-style: inset; }
.gb-thanks { border: 2px dashed var(--flag-red); padding: 8px; font: bold 15px var(--comic); color: var(--flag-red); text-align: center; }
.entry { border: 2px solid var(--sky); margin-bottom: 12px; }
.entry .head { background: var(--sky); color: #FFFFFF; font: bold 13px var(--arial); padding: 3px 8px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; }
.entry .body { padding: 8px 10px; font: 15px var(--comic); }
.entry .reply { font: italic bold 14px var(--times); color: var(--flag-red); margin-top: 4px; }
.entry.pending { opacity: .75; border-style: dashed; }

/* right: the sidebar */
.side { width: 150px; background: var(--legal-pad); border-left: 3px ridge var(--silver); }
.side-inner { padding: 10px 8px 16px; text-align: center; font: 13px var(--arial); display: flex; flex-direction: column; gap: 14px; align-items: center; }
.side-box { border: 2px solid var(--ink); background: #FFFFFF; padding: 6px; width: 100%; box-sizing: border-box; }
.side-box b { color: var(--flag-red); }
.counter { display: inline-flex; gap: 2px; margin-top: 4px; }
.counter span { background: var(--ink); color: #33FF33; font: bold 17px var(--courier); padding: 1px 3px; border: 1px solid #666666; }
.ring { font-size: 12px; }
.ring a { font-weight: bold; }
.music { font: bold 12px var(--arial); }
.music button { padding: 4px 6px; font-size: 12px; }
.god-bless { font: bold 13px var(--times); color: var(--sky); }

.foot { background: var(--ink); color: var(--silver); text-align: center; font: 12px var(--arial); padding: 12px 10px 14px !important; border-top: 3px ridge var(--silver); }
.foot a { color: #FFFF00; }
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 10px; }
.badges img { display: block; }

.blink { animation: blink 1s steps(1, end) infinite; }
@keyframes blink { 50% { visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .blink { animation: none; } }

/* small screens: Kyle didn't plan for this, but here we are */
@media (max-width: 700px) {
  .shell, .shell > tbody, .shell > tbody > tr, .shell > tbody > tr > td { display: block; width: auto !important; }
  .nav, .side { border: 0; border-bottom: 3px ridge var(--silver); }
  .gloves, .tip-nav { display: none; }
  .tip-side { display: block; margin-top: 0; width: 100%; box-sizing: border-box; text-align: left; }
  .nav-inner { padding: 8px 8px 10px; }
  .menu-title { margin: 0 0 6px; font-size: 13px; }
  .buttons { flex-direction: row; flex-wrap: wrap; }
  .btn { flex: 1 1 auto; text-align: center; padding: 7px 8px; }
  .ring a { display: inline-block; padding: 8px 4px; }
  .side-inner { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .side-box { width: auto; flex: 1 1 140px; }
  .main { padding: 14px 14px 20px !important; }
  .crew td { display: block; }
  .gb-form td { display: block; width: auto !important; text-align: left !important; }
}
