/* Gebaseerd op de stylesheet van gifcities.org: wit, Times, teal. */

body {
  background: #fff;
  color: #000;
  margin: 8px;
}

h1 {
  color: teal;
  font-size: 300%;
  margin: 0.2em 0;
}

h2 {
  color: grey;
}

h2 img {
  vertical-align: middle;
  margin-right: 0.3em;
}

a { color: teal; }

#header {
  color: teal;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em 2.5em;
  align-items: center;
}

#header span {
  font-size: 125%;
  font-weight: bold;
}

#header a {
  color: teal;
  text-decoration: none;
}

#header a:hover {
  text-decoration: underline;
}

.logo {
  background-color: black;
  text-align: center;
  padding: 2px;
  height: 32px;
  width: 32px;
  display: inline-block;
}

.logo img { height: 32px; }

#content { padding: 1em 0; }

#footer {
  text-align: right;
  padding: 1em;
  font-style: oblique;
}

.centered { text-align: center; }

.banner img, img.line { max-width: 100%; height: auto; }

.date {
  font-style: oblique;
  font-size: 130%;
  color: grey;
}

.blurb {
  font-size: 100%;
  max-width: 40em;
}

.cols { max-width: 900px; }

/* Rijen: zelfde grote invoervelden als de zoekbalk op gifcities */
.rows {
  list-style: none;
  padding: 0;
  margin: 0;
}

.row {
  display: flex;
  align-items: center;
  gap: 0.4em;
  padding: 5px 0;
  background: #fff;
}

.row input {
  -webkit-appearance: none;
  appearance: none;
  padding-left: 0.5em;
  font-size: 120%;
  font-family: inherit;
  height: 44px;
  min-width: 0;
  border: 2px inset #ccc;
  border-radius: 0;
}

.row .title { flex: 1 1 0; font-weight: bold; color: teal; }
.row .persons { flex: 1.3 1 0; display: flex; gap: 0.3em; min-width: 0; }

.row select {
  flex: 1 1 0;
  min-width: 0;
  height: 44px;
  font-size: 110%;
  font-family: inherit;
  border: 2px inset #ccc;
  border-radius: 0;
  background: #fff;
}

.row select:disabled { color: teal; font-weight: bold; opacity: 1; background: #f0fafa; }
.row select.is-default { font-style: oblique; color: grey; }

.default-note {
  background: #ffffcc;
  border: 1px dashed teal;
  padding: 0.5em;
  max-width: 40em;
}

.default-note img { vertical-align: middle; }

.row .num {
  color: grey;
  font-style: oblique;
  width: 1.4em;
  text-align: right;
}

.handle {
  cursor: grab;
  font-size: 180%;
  color: teal;
  padding: 0 0.15em;
  touch-action: none;
  user-select: none;
}

.row.dragging {
  opacity: 0.6;
  outline: 2px dashed teal;
}

.row.locked .title {
  background: #f0fafa;
  border-style: solid;
  border-color: teal;
}

.row.locked .remove { visibility: hidden; }

/* Wijnen is één vaste regel: niet slepen, verwijderen of hernoemen */
#wines .handle, #wines .num, #wines .remove { display: none; }
#wines .title { pointer-events: none; }


button {
  font-family: inherit;
  font-size: 110%;
  cursor: pointer;
}

.remove {
  font-size: 150%;
  line-height: 1;
  background: none;
  border: none;
  color: grey;
  padding: 0 0.2em;
}

.remove:hover { color: #c00; }

.add {
  font-style: oblique;
  color: teal;
  background: none;
  border: 2px outset #ccc;
  padding: 0.3em 0.8em;
}

#subscribe input {
  -webkit-appearance: none;
  appearance: none;
  padding-left: 0.5em;
  font-size: 150%;
  font-family: inherit;
  height: 66px;
  width: 22em;
  max-width: 100%;
  box-sizing: border-box;
  vertical-align: top;
}

#subscribe button {
  height: 66px;
  padding: 0 1.5em;
  font-size: 150%;
  font-weight: bold;
  color: teal;
  vertical-align: top;
}

#emails {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em 1.5em;
  list-style: none;
  padding: 0;
}

#emails li { font-style: oblique; }

#emails button {
  font-size: 100%;
  background: none;
  border: none;
  color: grey;
}

.bigbutton {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 130%;
  font-weight: bold;
  text-decoration: none;
  border: 2px outset #ccc;
  padding: 0.4em 1em;
}

.bigbutton:hover { text-decoration: underline; }

#changes {
  font-style: oblique;
  color: #444;
  list-style: none;
  padding-left: 0;
}

#changes li { margin: 0.35em 0; }

#changes img {
  max-height: 36px;
  width: auto;
  vertical-align: middle;
  margin-right: 0.5em;
}

#changes time { color: grey; font-size: 90%; }

#status {
  background: #ffffcc;
  border: 1px dashed teal;
  padding: 0.5em;
  font-style: oblique;
}

#results img { margin: 0.2em; max-width: 100%; height: auto; }

#results.nojs {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-top: 2em;
}

#results.nojs .result { padding: 5px; }

@media (max-width: 600px) {
  h1 { font-size: 220%; }
  #header { gap: 0.5em 1.2em; }
  #header span { font-size: 105%; }
  .row {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    gap: 4px 0.3em;
    padding: 8px 0;
    border-bottom: 1px dotted #ccc;
  }
  .row .title { grid-column: 3; grid-row: 1; }
  .row .persons { grid-column: 3; grid-row: 2; }
  .row .handle { grid-row: 1 / 3; }
  .row .num { grid-row: 1 / 3; }
  .row .remove { grid-column: 4; grid-row: 1 / 3; }
  #subscribe button { width: 100%; margin-top: 0.4em; }
}

/* GIF-strooisel: net een beetje onhandig */
.sprinkle img { max-width: 40vw; height: auto; }
.float-l { float: left; margin-right: 0.6em; }
.float-r { float: right; margin-left: 0.6em; }
.tilt { transform: rotate(-4deg); }
.banner .tilt { vertical-align: top; margin-right: -30px; position: relative; z-index: 1; }
h1 img { vertical-align: middle; }
section { clear: both; }
.cols section { clear: none; }
.rows { clear: both; }
marquee { display: block; }

/* Zuurstokrand rond alles waar je iets in moet doen */
.frame {
  border: 14px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(45deg, #d40000 25%, #fff 25%, #fff 50%, #d40000 50%, #d40000 75%, #fff 75%) 0 0 / 28px 28px border-box;
  animation: zuurstok 1.2s linear infinite;
  padding: 0 1em 0.5em;
  margin: 1em 0;
}

/* Strepen schuiven precies één tegel op, dus de lus is naadloos */
@keyframes zuurstok {
  to { background-position: 0 0, 28px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .frame { animation: none; }
}

.frame h2 { margin-top: 0.6em; }
.right { text-align: right; }
