/* BlackLevel chat. Colours follow the shop: black, white, brown #765743, soft rose #fbc7b1. */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: Raleway, Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #222;
  background: #f6f2ef;
  display: flex;
  flex-direction: column;
}
[hidden] { display: none !important; }
a { color: #765743; }
h1, h2 { font-family: Georgia, serif; color: #111; line-height: 1.25; }
h1 { font-size: 1.6rem; margin: 0 0 .5rem; }
h2 { font-size: 1.1rem; margin: 0 0 .5rem; }
.verborgen { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.klein { font-size: .85rem; color: #555; }

.kop {
  display: flex; align-items: center; gap: 1rem;
  padding: .6rem 1rem; background: #111; color: #fff;
}
.kop__logo { display: block; background: #fff; padding: 4px 8px; border-radius: 4px; }
.kop__logo img { display: block; height: 40px; width: auto; }
.kop__titel { font-family: Georgia, serif; font-size: 1.2rem; color: #fbc7b1; }
.kop__weg { margin-left: auto; }

main { flex: 1; display: flex; min-height: 0; }

.knop {
  font: inherit; font-weight: 700; cursor: pointer;
  border: 2px solid #111; border-radius: 6px;
  background: #111; color: #fff; padding: .55rem 1rem;
}
.knop:hover, .knop:focus-visible { background: #765743; border-color: #765743; }
.knop--licht { background: #fff; color: #111; }
.knop--licht:hover, .knop--licht:focus-visible { background: #fbc7b1; color: #111; border-color: #111; }
.kop .knop--licht { border-color: #fff; }
:focus-visible { outline: 3px solid #765743; outline-offset: 2px; }

/* welcome */
.welkom { width: 100%; max-width: 640px; margin: 1.5rem auto; padding: 1.5rem; background: #fff; border-radius: 10px; align-self: flex-start; }
.welkom__online { font-weight: 700; color: #765743; }
.formulier { display: grid; gap: 1rem; margin-top: 1rem; }
.rij { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.veld { display: grid; gap: .25rem; }
.veld label, .dialoog label { font-weight: 700; }
input[type=text], input[type=number], select, textarea {
  font: inherit; width: 100%; padding: .5rem .6rem;
  border: 1px solid #999; border-radius: 6px; background: #fff; color: #222;
}
.regels { background: #f6f2ef; border-radius: 6px; padding: .6rem .9rem; }
.regels summary { font-weight: 700; cursor: pointer; }
.regels ul { margin: .5rem 0 0; padding-left: 1.2rem; }
.vinkje { display: flex; gap: .6rem; align-items: flex-start; }
.vinkje input { width: 1.2rem; height: 1.2rem; margin-top: .2rem; }
.melding { margin: 0; padding: .5rem .75rem; border-radius: 6px; background: #fdecea; color: #7a1d12; border: 1px solid #e7b3ab; }

/* chat */
.chat { flex: 1; display: grid; grid-template-columns: 260px 1fr; min-height: 0; width: 100%; }
.chat__lijst { background: #fff; border-right: 1px solid #e3dcd6; padding: 1rem; overflow-y: auto; }
.chat__lijst ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
#aantal { display: inline-block; min-width: 1.6rem; padding: 0 .4rem; border-radius: 999px; background: #111; color: #fff; font-family: Arial, sans-serif; font-size: .85rem; text-align: center; }
.persoon {
  width: 100%; text-align: left; font: inherit; cursor: pointer;
  display: grid; padding: .45rem .6rem; border: 0; border-left: 4px solid #ccc;
  border-radius: 4px; background: #f6f2ef; color: #222;
}
.persoon span { font-size: .85rem; color: #555; }
.persoon:hover, .persoon:focus-visible { background: #fbc7b1; }
.persoon--man { border-left-color: #333; }
.persoon--vrouw { border-left-color: #765743; }
.persoon--stel { border-left-color: #b98a6b; }
.persoon--anders { border-left-color: #999; }

.chat__hoofd { display: flex; flex-direction: column; min-height: 0; }
.tabs { display: flex; flex-wrap: wrap; gap: .25rem; padding: .5rem .75rem 0; background: #f6f2ef; border-bottom: 1px solid #e3dcd6; }
.tab {
  font: inherit; cursor: pointer; border: 1px solid #e3dcd6; border-bottom: 0;
  border-radius: 6px 6px 0 0; background: #ece5df; color: #222; padding: .35rem .8rem;
}
.tab--actief { background: #fff; font-weight: 700; }
.tab__sluit { font: inherit; border: 0; background: none; cursor: pointer; margin-left: -.35rem; padding: 0 .4rem; color: #555; }
.teller { display: inline-block; margin-left: .4rem; padding: 0 .4rem; border-radius: 999px; background: #765743; color: #fff; font-size: .8rem; }

.berichten { flex: 1; overflow-y: auto; padding: 1rem; background: #fff; display: flex; flex-direction: column; gap: .6rem; }
.leeg { color: #555; font-style: italic; }
.bericht { max-width: 75%; align-self: flex-start; background: #f6f2ef; border-radius: 10px; padding: .45rem .75rem; }
.bericht--eigen { align-self: flex-end; background: #111; color: #fff; }
.bericht p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.bericht__kop { display: flex; gap: .6rem; align-items: baseline; font-size: .8rem; }
.bericht__kop time { color: #777; }
.bericht--eigen .bericht__kop time, .bericht--eigen .naam { color: #fbc7b1; }
.naam { font: inherit; font-weight: 700; border: 0; padding: 0; background: none; color: #765743; cursor: pointer; }
span.naam { cursor: default; }

.invoer { display: flex; gap: .5rem; padding: .75rem; background: #f6f2ef; border-top: 1px solid #e3dcd6; }
.invoer textarea { resize: none; min-height: 2.6rem; max-height: 8rem; }
.chat__hoofd > .melding { margin: 0 .75rem .75rem; }

dialog { border: 0; border-radius: 10px; padding: 0; max-width: 420px; width: calc(100% - 2rem); }
dialog::backdrop { background: rgba(20, 16, 14, .6); }
.dialoog { padding: 1.25rem; display: grid; gap: .75rem; }
.dialoog h2 { margin: 0; }
.dialoog__knoppen { display: flex; flex-wrap: wrap; gap: .5rem; }
#meld-blok { display: grid; gap: .5rem; }

@media (max-width: 720px) {
  .rij { grid-template-columns: 1fr; }
  .chat { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .chat__lijst { border-right: 0; border-bottom: 1px solid #e3dcd6; max-height: 30vh; }
  .bericht { max-width: 90%; }
  .kop__logo img { height: 32px; }
}
