:root {
    --wit: white;
    --zwart: black;
    --oranje: #ff9408;
    --ui-donker-1: #121213;
    --ui-donker-2: #232325;
    --ui-tegel-hover: #414141; 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Aptos Display', 'Segoe UI', system-ui, sans-serif;
    color: var(--wit);
}

img,
svg {
    width: 2rem;
    height: auto;
}

body {
    position: relative;
    background-image:  url('../images/logo/onderzone_big.png'), url("../images/slideshow/dark.jpg");
    background-size: contain, cover;
    background-position: center;
    background-repeat: no-repeat;
    display: grid;
    grid-template-rows: auto 3rem;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
}

main {
    min-height: 0;
    overflow: hidden;
}

body > *{
    position: relative;
    z-index: 3;
}

ul{
    list-style-type: none;
}





/* Bureaublad */

.bureaublad {
    position: relative;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.bureaublad .apps {
    display: grid;
    grid-template-columns: repeat(2, 8rem);
    grid-template-rows: repeat(6, 6rem);
    grid-auto-flow: column;
    overflow: hidden;
    margin-top: 15px;
    height: calc(100vh - 4rem);
    position: relative;
    z-index: 2;
}

.bureaublad .apps div {
    display: flex;
    align-items: flex-start;
    width: 8rem;
    min-height: 6rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    margin-left: 0.5rem;
    justify-content: center;
    touch-action: none;
}

.bureaublad .apps .app.is-dragging {
    opacity: 0.88;
    z-index: 20;
}

.bureaublad .apps .koppeling:hover{
    background-color: rgba(173, 216, 230, 0.265);
}

.bureaublad .apps div>a,
.bureaublad .apps div>button {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    text-decoration: none;
    justify-content: center;
    border: 0;
    background: transparent;
    cursor: default;
}

.bureaublad .apps div .koppeling {
	width: 100%;
    padding: 0.35rem 0.2rem;
}

.bureaublad .apps div .koppeling>p {
	width: 100%;
    display: inline-block;
    text-shadow: 2px 2px 14px black;
    text-align: center;
    font-size: 1rem;
    padding-top: 0.2rem;
}


/* Vensters */

.vensterlaag {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
}

.venster {
    --titelbalk-hoogte: 2.25rem;

    position: absolute;
    left: clamp(1rem, 12vw, 10rem);
    top: clamp(1rem, 10vh, 7rem);
    width: min(64rem, calc(100vw - 4rem));
    height: min(42rem, calc(100vh - 7rem));
    min-width: min(24rem, calc(100vw - 2rem));
    min-height: 16rem;
    display: grid;
    grid-template-rows: var(--titelbalk-hoogte) minmax(0, 1fr);
    background-color: #050505;
    border: 1px solid rgba(196, 196, 196, 0.22);
    box-shadow:
        0 1.35rem 3rem rgba(0, 0, 0, 0.58),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    pointer-events: auto;
    overflow: hidden;
}

.venster[hidden],
.venster.is-minimized {
    display: none;
}

.venster.is-active {
    border-color: rgba(215, 215, 215, 0.44);
    box-shadow:
        0 1.6rem 3.35rem rgba(0, 0, 0, 0.64),
        0 0 0 1px rgba(255, 255, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.13);
}

.venster.is-maximized {
    border-color: rgba(210, 210, 210, 0.34);
}

.venster-titelbalk {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    height: var(--titelbalk-hoogte);
    background: linear-gradient(to bottom, #2c2c2f, #19191b);
    cursor: move;
    touch-action: none;
}

.venster-titel {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
    padding-left: 0.75rem;
}

.venster-titel img {
    width: 1.1rem;
}

.venster-titel span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.92rem;
}

.venster-acties {
    display: grid;
    grid-auto-flow: column;
    height: 100%;
}

.venster-knop {
    width: 2.65rem;
    height: 100%;
    border: 0;
    background: transparent;
    cursor: default;
    display: grid;
    place-items: center;
    padding: 0;
    opacity: 0.86;
    transition: background-color 0.12s ease-in, opacity 0.12s ease-in;
}

.venster-knop svg {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: rgba(255, 255, 255, 0.9);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.venster-knop:hover,
.venster-knop:focus-visible {
    background-color: rgba(255, 255, 255, 0.11);
    opacity: 1;
    outline: none;
}

.venster-sluiten:hover,
.venster-sluiten:focus-visible {
    background-color: #c42b1c;
}

.venster-sluiten:hover svg,
.venster-sluiten:focus-visible svg {
    stroke: white;
}

.venster-inhoud {
    min-height: 0;
    overflow: hidden;
}

.resize-handle {
    position: absolute;
    z-index: 3;
    display: block;
    background: transparent;
    pointer-events: auto;
}

.resize-n,
.resize-s {
    left: 0.45rem;
    right: 0.45rem;
    height: 0.45rem;
    cursor: ns-resize;
}

.resize-e,
.resize-w {
    top: 0.45rem;
    bottom: 0.45rem;
    width: 0.45rem;
    cursor: ew-resize;
}

.resize-n {
    top: 0;
}

.resize-e {
    right: 0;
}

.resize-s {
    bottom: 0;
}

.resize-w {
    left: 0;
}

.resize-ne,
.resize-se,
.resize-sw,
.resize-nw {
    width: 0.8rem;
    height: 0.8rem;
}

.resize-ne {
    top: 0;
    right: 0;
    cursor: nesw-resize;
}

.resize-se {
    right: 0;
    bottom: 0;
    cursor: nwse-resize;
}

.resize-sw {
    bottom: 0;
    left: 0;
    cursor: nesw-resize;
}

.resize-nw {
    top: 0;
    left: 0;
    cursor: nwse-resize;
}

.venster.is-maximized .resize-handle {
    display: none;
}

.live-venster {
    position: relative;
    display: grid;
    background: black;
    min-width: 0;
    min-height: 0;
}

.live-venster video {
    grid-area: 1 / 1;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    display: block;
    object-fit: contain;
    background: black;
}

.player-melding {
    grid-area: 1 / 1;
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.76);
    background: radial-gradient(circle at center, rgba(255, 148, 8, 0.1), rgba(0, 0, 0, 0.84) 58%);
    pointer-events: none;
}

.player-melding.is-hidden {
    display: none;
}





/* Talkbalk */

footer {  
  
    --taakbalk-hoogte: 3.5rem;
  
    display: grid; 
    grid-template-columns: 4rem auto minmax(auto, 7rem);
    grid-template-rows: auto;
    align-items: center;
    justify-items: center;
    grid-auto-flow: column;
    position: absolute;
    width: 100%;
    min-height: var(--taakbalk-hoogte);
    opacity: 1;
    bottom: 0;
    background: linear-gradient(to bottom right, var(--ui-donker-2), var(--ui-donker-1));
    z-index: 10;
}


footer svg {
    fill: var(--wit);
}

footer .startknop {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
}

footer #icoontje {
    width: 1.4rem;
}

footer .startknop:hover #icoontje {
    fill: var(--oranje);
}






/* Hoofdmenu */

footer .hoofdmenu{

    --hoofdmenu-hoogte: 27em; 
  /* 23 bij 5 apps */
  /* 24 bij 6 apps */
                             
  
    display: none;
    width: 20rem;
    min-height: var(--hoofdmenu-hoogte);
    position: absolute;
    bottom: var(--taakbalk-hoogte);
    z-index: 8;
    left: 0;
    background-color: var(--ui-donker-1);
}





/** Hoofdmenu > Paneel Links **/

footer .hoofdmenu .paneel-links{
    display: grid;
    grid-template-columns: minmax(auto, 14rem);
    grid-template-rows: 4rem auto;
    height: var(--hoofdmenu-hoogte);
    width: 4rem;
    align-items: center;
    overflow: hidden;
    background-color: var(--ui-donker-1);
    position: absolute;
    z-index: 4;
    transition: all 0.15s 0.2s linear;
}

footer .hoofdmenu .paneel-links:hover{
    width: 14rem;
    box-shadow: 3px 0px 4px #1b1a1a;
}

footer .hoofdmenu .paneel-links .profiel{
    align-self: baseline;
    height: 5rem;
}

footer .hoofdmenu .paneel-links .locaties{
    display: grid;
    grid-template-columns: auto;
    /* aantal icoontjes: */
    grid-template-rows: repeat(2, 3.5rem);
    align-items: center;
    align-self: end;
}

footer .hoofdmenu .paneel-links .locaties a{
    display: flex;
    align-items: center;
    text-decoration: none;
    width: 100%;
}

footer .hoofdmenu .paneel-links .profiel, footer .hoofdmenu .paneel-links .locatie-koppeling{
    display: flex;
    width: 100%;
    min-width: 7rem;
    height: 100%;
    padding-left: 1.5rem;
    align-items: center;
}

footer .hoofdmenu .paneel-links .profiel img, footer .hoofdmenu .paneel-links .locatie-koppeling img{
    width: 1rem;
}

footer .hoofdmenu .paneel-links .profiel img{
    border-radius: 50%;
    white-space: nowrap;
}

footer .hoofdmenu .paneel-links .profiel p, footer .hoofdmenu .paneel-links .locatie-koppeling p{
    padding-left: 1.6rem;
}





/** Hoofdmenu > Paneel-rechts **/


footer .paneel-rechts{
    display: grid;
    grid-template-columns: minmax(13rem, auto);
    grid-template-rows: repeat(8, 3.5rem); /* Aantal APPS ! */
    padding-left: 5.1rem;
    padding-top: 1rem;
}

footer .paneel-rechts .app-categorie{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
    height: 3rem;
    margin-bottom: 0.6rem;
}

footer .paneel-rechts .app-categorie a,
footer .paneel-rechts .app-categorie button{
    display: flex;
    align-items: center;
    text-decoration: none;
    width: 100%;
    border: 0;
    background: transparent;
    cursor: default;
}   

footer .paneel-rechts .app{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    padding-left: 0.9rem;
    position: relative;
    right: 0.8rem;
}

footer .paneel-rechts .app a img,
footer .paneel-rechts .app button img{
    width: 1.4rem;
}

footer .paneel-rechts .app a p,
footer .paneel-rechts .app button p{
    font-size: 1rem;
    padding-left: 1rem;
}






/* Hover */

.klikbaar {
    transition: 0.11s all ease-in;
}

.klikbaar:hover {
    background-color: var(--ui-tegel-hover);
}





/* Tussenruimte */

footer .ruimte{
    justify-self: start;
    align-self: stretch;
    width: 100%;
    height: 100%;
    min-height: 100%;
    align-content: stretch;
    align-items: stretch;
    display: flex;
    justify-content: start;
}

footer .ruimte img{
    width: 1.5rem;
}

footer .taak-app {
    display: grid;
    grid-template-columns: 1.4rem minmax(0, auto);
    align-items: center;
    align-self: stretch;
    gap: 0.5rem;
    min-width: 8rem;
    max-width: 12rem;
    height: auto;
    min-height: 100%;
    padding: 0 0.9rem;
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    background: transparent;
    color: var(--wit);
    cursor: default;
}

footer .taak-app:hover,
footer .taak-app:focus-visible,
footer .taak-app.is-active {
    background-color: var(--ui-tegel-hover);
    outline: none;
}

footer .taak-app.is-active {
    box-shadow: inset 0 -0.18rem 0 var(--oranje);
}

footer .taak-app img {
    width: 1.25rem;
}

footer .taak-app span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}







/* Systeemvak */

.systeemvak{
    display: grid;
    width: 100%;
    grid-template-columns: auto;
    grid-auto-flow: column;
    height: 100%;
}


.systeemvak .klok{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding-top: 7px;
    padding-bottom: 9px;

}

.systeemvak .klok time{
    width: 100%;
    text-align: center;
    font-size: 0.8rem;
  
}
