body{
    background: rgb(236, 236, 236);
    position: relative;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
}

.nav img{
    width: 50%;
    height: 50%;
    object-fit: contain;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.nav a{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.navoption{
    box-shadow: 2px 2px 0px rgb(0, 0, 0);
    background: rgb(255, 0, 0);
    display: flex;
    justify-content: center; /* horizontal */
    align-items: center;     /* vertical */
    border: 1px solid black;
}

.navoption:hover{
    box-shadow: -2px -2px 0px rgb(0, 0, 0);
}

.nav {
    position: absolute;
    top: 20px;
    left: 20px;
    margin: 0;
    width: 20em; height: 20em;
    background: red;
  width: 216px;
  height: 216px;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2 columns */
  grid-template-rows: 1fr 1fr;    /* 2 rows */

  gap: 6px; /* space between images */
  padding: 12px;
}
.nav:before, .nav:after {
    position: absolute;
    transform-origin: bottom right;
    content: '';
    pointer-events: auto;
}
.nav:before {
    top: 0; right: 100%; bottom: 0;
    width: 4em;
    background: maroon;
    transform: skewY(45deg);
    z-index: 0;
}
.nav:after {
    right: 0; bottom: 100%; left: 0;
    height: 4em;
    background: maroon;
    transform: skewX(45deg);
    z-index: 100;
}

.stream {
    position: absolute;
    top: 20px;
    left: 260px;
    margin: 0;
    width: 20em; height: 20em;
    background: lime;
  width: 384px;
  height: 216px;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2 columns */
  grid-template-rows: 1fr 1fr;    /* 2 rows */

  gap: 6px; /* space between images */
  padding: 12px;
}

.stream:before, .stream:after {
    position: absolute;
    transform-origin: bottom right;
    content: '';
    pointer-events: auto;
}
.stream:before {
    top: 0; right: 100%; bottom: 0;
    width: 4em;
    background: green;
    transform: skewY(45deg);
    z-index: 0;
}
.stream:after {
    right: 0; bottom: 100%; left: 0;
    height: 4em;
    background: green;
    transform: skewX(45deg);
    z-index: 100;
}

.chat {
    position: absolute;
    top: 20px;
    left: 668px;
    margin: 0;
    width: 20em; height: 20em;
    background: yellow;
  width: 460px;
  height: 384px;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr; /* 1 column */
  grid-template-rows: auto 1fr auto;    /* header (auto), messages (fill), input (auto) */

  gap: 6px; /* space between items */
  padding: 12px;
font-family: 'Times New Roman', Times, serif
}

.chatbox.header {
    width: 100%;
    height: 1.5em; /* 1 text line height */
    line-height: 1.5em;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}


.chatbox.messages {
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    background: white;
    border: 1px solid black;
    font-family: 'Times New Roman', Times, serif
}

.chatbox.input {
    width: 100%;
    height: 1.5em; /* 1 text line height */
    line-height: 1.5em;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-family: 'Times New Roman', Times, serif
}

.chatbox button {
    border: 1px solid black;
    box-shadow: 2px 2px 0 black;
    background: red;
    color: white;
    padding: 2px 8px;
    cursor: pointer;
    flex-shrink: 0;
    font-family: 'Times New Roman', Times, serif
}

.chatbox input {
    border: 1px solid black;
    box-shadow: inset 1px 1px 0 rgba(0,0,0,0.5);
    background: white;
    padding: 2px 4px;
    font-family: 'Times New Roman', Times, serif
}

.chat:before, .chat:after {
    position: absolute;
    transform-origin: bottom right;
    content: '';
    pointer-events: auto;
}
.chat:before {
    top: 0; right: 100%; bottom: 0;
    width: 4em;
    background: olive;
    transform: skewY(45deg);
    z-index: 0;
}
.chat:after {
    right: 0; bottom: 100%; left: 0;
    height: 4em;
    background: olive;
    transform: skewX(45deg);
    z-index: 100;
}

.titel {
    position: absolute;
    top: 260px;
    left: 20px;
    margin: 0;
    width: 20em; height: 20em;
    background: blue;
  width: 816px;
  height: 216px;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  grid-template-rows: 1fr;
  gap: 6px;
  padding: 12px;
  font-family: 'Times New Roman', Times, serif
}

.titel:before, .titel:after {
    position: absolute;
    transform-origin: bottom right;
    content: '';
    pointer-events: auto;
}
.titel:before {
    top: 0; right: 100%; bottom: 0;
    width: 4em;
    background: navy;
    transform: skewY(45deg);
    z-index: 0;
}
.titel:after {
    right: 0; bottom: 100%; left: 0;
    height: 4em;
    background: navy;
    transform: skewX(45deg);
    z-index: 100;
}

.titel img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* ── Gastenboek cube overrides ───────────────────────────── */
/* #blueCube layout lives in inline <style> in index.html    */
/* (id selector 1-0-0 beats .titel class 0-1-0 here)         */

.cube-hidden {
    visibility: hidden;
    pointer-events: none;
}

.gb-inner {
    display: flex;
    gap: 8px;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.gb-users {
    width: 130px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: rgb(255, 255, 255);
    border: 1px solid black;
    box-shadow: 2px 2px 0 black;
    overflow: hidden;
}

.gb-book {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: rgb(255, 255, 255);
    box-shadow: 2px 2px 0 black;
    overflow: hidden;
}

.gb-section-title {
    background: white;
    color: black;
    padding: 2px 6px;
    flex-shrink: 0;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.gb-list {
    list-style: none;
    margin: 0;
    padding: 4px;
    overflow-y: auto;
    flex: 1;
    background: white;
    color: rgb(0, 0, 0);
}

.gb-list li {
    padding: 1px 2px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gb-list li::before {
    content: '› ';
    color: rgb(0, 0, 0);
}

.gb-entries {
    flex: 1;
    overflow-y: auto;
    padding: 6px;
    color: black;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gb-entry {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.3);
    padding: 3px 6px;
}

.gb-entry-name {
    font-weight: bold;
    color: rgb(0, 0, 0);
}

.gb-entry-time {
    color: rgb(0, 0, 0);
    margin-left: 4px;
}

.gb-entry-msg {
    color: rgb(0, 0, 0);
    word-break: break-word;
}

.gb-form {
    display: flex;
    gap: 4px;
    padding: 5px;
    flex-shrink: 0;
    background: blue;
}

.gb-form input {
    border: 1px solid black;
    box-shadow: inset 1px 1px 0 rgba(0,0,0,0.5);
    background: white;
    padding: 2px 4px;
    font-family: 'Times New Roman', Times, serif
}

.gb-form input#gbName {
    width: 80px;
    flex-shrink: 0;
}

.gb-form input#gbMsg {
    flex: 1;
    min-width: 0;
}

.gb-form button {
    border: 1px solid black;
    box-shadow: 2px 2px 0 black;
    background: red;
    color: white;
    padding: 2px 8px;
    cursor: pointer;
    flex-shrink: 0;
    font-family: 'Times New Roman', Times, serif
}

.gb-form button:hover {
    box-shadow: -2px -2px 0 black;
}

.gb-status {
    color: #ff8;
    padding: 2px 5px;
    min-height: 14px;
    flex-shrink: 0;
}