/* LuckyPotter styles */

html { background: #e3eaf3; }

body {
  margin: 0;
  padding: 12px 8px 24px;
  background: #e3eaf3;
  color: #222;
  font: 11px/1.4 Verdana, Tahoma, Geneva, sans-serif;
}

a { color: #0033aa; }
a:hover { color: #cc5500; }
img { border: 0; }
h1, h2, h3, p, ul, form { margin: 0; }

/* layout */

#container {
  width: 800px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #7f97b8;
}

#content {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cols { display: flex; gap: 16px; align-items: flex-start; }
.col-side { flex: 0 0 auto; display: flex; flex-direction: column; gap: 8px; }
.col-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 10px; }

.m-only { display: none; }

/* header */

#header {
  background: #1f4e8c;
  color: #fff;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

#logo {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  text-decoration: none;
}
#logo:hover { color: #fff; }

.brand {
  font: italic bold 26px 'Trebuchet MS', Arial, sans-serif;
  letter-spacing: -1px;
}
.brand .tld { font-size: 13px; color: #ffd38a; letter-spacing: 0; }
.m-tag { display: none; }

#nav {
  list-style: none;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px 14px;
  font-weight: bold;
}
#nav a { color: #fff; }
#nav a.on { color: #ffd38a; }
#nav a:hover { color: #ffd38a; }
#nav .count { color: #ffd38a; }

#quicklogin {
  display: flex;
  align-items: flex-end;
  gap: 6px;
}
#quicklogin label { display: flex; flex-direction: column; gap: 2px; }
#quicklogin input.text { width: 100px; }

/* button that looks like a link */
.linkbutton {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: #0033aa;
  text-decoration: underline;
  cursor: pointer;
}
.linkbutton:hover { color: #cc5500; }
#nav .linkbutton { color: #fff; font-weight: normal; }
#nav .linkbutton:hover { color: #ffd38a; }

#mbar { display: none; }

/* footer */

#footer {
  border-top: 1px solid #9fb3cf;
  background: #f4f7fb;
  padding: 8px 12px;
  color: #555;
  font-size: 10px;
  text-align: center;
}
#footer .links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; }
#footer .small { margin-top: 4px; color: #888; }
#mfooter { display: none; }

/* type */

h1.title {
  font: bold 20px 'Trebuchet MS', Arial, sans-serif;
  color: #1f3d6b;
}
h1.big { font-size: 26px; }

h2.section {
  font-size: 12px;
  color: #1f3d6b;
  border-bottom: 1px solid #9fb3cf;
  padding-bottom: 3px;
}
h2.plain { font-size: 12px; color: #1f3d6b; }

.lead { font-size: 13px; color: #444; }
.muted { color: #555; }
.small { font-size: 10px; }
.center { text-align: center; }
.prose { font-size: 12px; line-height: 1.6; max-width: 520px; white-space: pre-line; }
.static p { font-size: 12px; line-height: 1.6; max-width: 600px; margin-bottom: 8px; }

/* forms */

input.text, select, textarea {
  font: 11px Verdana, Tahoma, sans-serif;
  border: 1px solid #7f9db9;
  padding: 3px;
  background: #fff;
}
select { padding: 1px; }
textarea { width: 100%; box-sizing: border-box; }
input.text:focus, textarea:focus, select:focus { background: #ffffee; outline: 1px solid #f0b37a; }
input.w-xs { width: 30px; }
input.w-s { width: 60px; }
input.w-m { width: 160px; }
input.w-l { width: 260px; }

/* Windows XP style button */
.btn {
  font: 11px Verdana, Tahoma, sans-serif;
  padding: 2px 12px;
  color: #000;
  background: linear-gradient(#ffffff, #ece9d8);
  border: 1px solid #003c74;
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.btn:hover { color: #000; box-shadow: inset 0 0 0 1px #f8b341; }
.btn[disabled] { color: #999; border-color: #aaa; cursor: default; box-shadow: none; }

/* big orange button */
.btn-go {
  font: bold 12px Verdana, Tahoma, sans-serif;
  padding: 4px 14px;
  color: #fff;
  background: #cc5500;
  border: 2px outset #ff8c1a;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.btn-go:hover { color: #fff; background: #d4520f; }
.btn-go:active { border-style: inset; }
.btn-go.big { font-size: 13px; padding: 4px 16px; }

.box {
  border: 1px solid #9fb3cf;
  background: #f4f7fb;
  padding: 10px;
}

/* forms */
.formgrid {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 8px 10px;
  align-items: center;
}
.formgrid > label { font-weight: bold; text-align: right; }
.formgrid .full { grid-column: 1 / -1; }
.formgrid .top { align-self: start; padding-top: 3px; }
.formgrid .hint { color: #777; font-size: 10px; }

.errors {
  border: 1px solid #cc6666;
  background: #ffecec;
  color: #a00000;
  padding: 6px 8px;
}
.errors ul { padding-left: 16px; }
.field-error { color: #c00; font-size: 10px; }

.counter { color: #777; font-size: 10px; }

.searchbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 8px;
}
.searchbar label, .searchbar span { display: flex; gap: 4px; align-items: center; }

/* flash / notices */

.flash, .notice {
  padding: 6px 8px;
  border: 1px solid #f0b37a;
  background: #fff6e8;
}
.flash { margin: 10px 14px 0; font-weight: bold; }
.flash-error { border-color: #cc6666; background: #ffecec; color: #a00000; }
.notice { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.notice form { display: inline; }
.requests { display: flex; flex-direction: column; gap: 6px; }

/* pictures */

.pic {
  display: inline-block;
  border: 1px solid #7f97b8;
  padding: 2px;
  background: #fff;
  line-height: 0;
}
.pic img { display: block; object-fit: cover; }
.pic-big { padding: 4px; }

/* green = single, red = taken */
img.single, img.taken { box-sizing: border-box; border: 2px solid; }
img.single { border-color: #22a722; }
img.taken { border-color: #d21f1f; }
.pic-big img.single, .pic-big img.taken { border-width: 3px; }
.legend img { vertical-align: middle; }
.legend .sq { display: inline-block; width: 9px; height: 9px; border: 2px solid; margin: 0 3px 0 8px; vertical-align: -1px; }
.legend .sq.single { border-color: #22a722; }
.legend .sq.taken { border-color: #d21f1f; }

.online { color: #228b22; font-weight: bold; white-space: nowrap; }
.online::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 4px;
  border-radius: 50%;
  background: #228b22;
  vertical-align: 0;
}

/* NEW! badge */
.new {
  color: #c00;
  font-size: 9px;
  font-weight: bold;
  animation: blink 1s steps(2, start) infinite;
}
@keyframes blink { to { visibility: hidden; } }

/* member thumbnails */

.thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 10px;
}
.thumbs.small { grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 8px; }

.thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-align: center;
  color: #222;
  text-decoration: none;
  word-break: break-word;
}
.thumb b { color: #0033aa; text-decoration: underline; }
.thumbs.small .thumb { font-size: 10px; }

/* browse results */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
}
.card {
  border: 1px solid #9fb3cf;
  padding: 8px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.card .info { display: flex; flex-direction: column; gap: 2px; min-width: 0; word-break: break-word; }
.card .name { font-weight: bold; }

.pager { display: flex; justify-content: center; gap: 8px; font-size: 12px; }
.pager .off { color: #777; }

.empty { padding: 20px; text-align: center; color: #555; font-size: 12px; }

/* profile */

.back { font-size: 11px; }
.profile-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.actions form { display: inline; }
.actionlist { display: none; }

table.details {
  border-collapse: collapse;
  border: 1px solid #9fb3cf;
  width: 100%;
  max-width: 420px;
}
table.details th {
  text-align: left;
  padding: 4px 8px;
  width: 40%;
  color: #1f3d6b;
  vertical-align: top;
}
table.details td { padding: 4px 8px; word-break: break-word; }
table.details tr:nth-child(even) { background: #f4f7fb; }

/* home */

.hero { text-align: center; display: flex; flex-direction: column; gap: 6px; padding-top: 10px; }
.signup { width: 380px; margin: 0 auto; box-sizing: border-box; }
.signup h2 { grid-column: 1 / -1; font-size: 13px; color: #1f3d6b; margin-bottom: 4px; }
.welcome { display: flex; gap: 12px; align-items: flex-start; }
.welcome ul { padding-left: 16px; display: flex; flex-direction: column; gap: 3px; }
.nag { border: 1px dashed #cc5500; background: #fffbe6; padding: 6px 8px; }
.mmenu { display: none; }

/* messages */

.tabs { display: flex; gap: 2px; border-bottom: 1px solid #9fb3cf; padding-left: 6px; }
.tabs a {
  padding: 3px 12px;
  border: 1px solid #9fb3cf;
  border-bottom: 0;
  background: #e8eef6;
  text-decoration: none;
  position: relative;
  top: 1px;
}
.tabs a.on { background: #fff; font-weight: bold; color: #222; }

.mailbox { display: flex; gap: 12px; align-items: flex-start; }

.msglist {
  flex: 0 0 280px;
  list-style: none;
  padding: 0;
  border: 1px solid #9fb3cf;
}
.msglist li { border-bottom: 1px solid #d5dfec; }
.msglist li:last-child { border-bottom: 0; }
.msglist li.on { background: #fff2dc; }
.msglist a {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 6px 8px;
  color: #222;
  text-decoration: none;
}
.msglist a:hover { background: #f4f7fb; }
.msglist .text { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.msglist .top { display: flex; justify-content: space-between; gap: 6px; }
.msglist .who { color: #0033aa; font-weight: bold; }
.msglist .date { color: #555; font-size: 10px; white-space: nowrap; }
.msglist .subj { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msglist .unread .subj { font-weight: bold; }
.msglist .star { display: none; }

.reader { flex: 1 1 auto; min-width: 0; border: 1px solid #9fb3cf; }
.reader .head {
  background: #e8eef6;
  border-bottom: 1px solid #9fb3cf;
  padding: 6px 8px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.reader .reply { border-bottom: 1px solid #9fb3cf; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.msglist .count { color: #c00; font-weight: normal; font-size: 10px; }

.thread { list-style: none; margin: 0; padding: 0; }
.thread li { border-bottom: 1px dotted #9fb3cf; padding: 6px 8px; }
.thread li.mine { background: #f4f7fb; }
.thread .meta { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.thread .meta .muted { font-size: 10px; }
.thread .subj { font-weight: bold; margin-top: 2px; }
.thread .body { margin: 4px 0 0; font-size: 12px; line-height: 1.6; white-space: pre-line; word-break: break-word; }
.empty-thread { padding: 20px 8px; text-align: center; }
.reader .pager { padding: 8px; }
.reader.blank { padding: 40px 10px; text-align: center; color: #777; }
.backlink { display: none; }

/* friends */

.friendcell { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.friendcell form { display: inline; }
.spaced { margin-top: 8px; }

.share { margin: 10px 0; }
.share label { display: block; margin-bottom: 4px; }
.share input.text { width: 100%; max-width: 360px; box-sizing: border-box; }
.share .small { display: block; margin-top: 4px; }
