:root {
    --background: #fcfff6; /* #f6e9f6; */
    --foreground: #273746;
    --inputBackground: #fcfff6;/* #EAECEE;*/
    --ts_green:  rgb(79,164,0);
    --ts_greenDark:  #183001;
    
    --screenWidth: /* 1024px; */ 100vw;
    --screenHeight: /* 682px; */ 100vh ;
    
    --borderStyle:groove;
    --borderColor: aliceblue;
    --fontsizeRonde: 7.0vw;
    --fontsizeTimer: 25.0vw;
    --fontsizeBoodschap: 3.0vw;
    --fontsizeCopyright: 1.0vw;
    --fontsizePinSelect: 2.0vw;


  }

  #klokDisplayDiv{
    
    width: var(--screenWidth);
    height: var(--screenHeight);
   
    background: var(--background);
    color: var(--ts_green);
    font-family: Verdana;
    font-weight: bold;

    /*font-size: 70px;*/
}

body {
    margin: 0;
    overflow: hidden;
}

[hidden] {
    display: none !important;
}

/* ---- Keuzescherm (PIN) ---- */
#pinScherm {
    box-sizing: border-box;
    width: 100%;
    height: 100vh;
    overflow-y: auto;
    padding: 6vh 4vw 4vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2vh;
    background: var(--background);
    color: var(--ts_greenDark);
    font-family: Verdana, sans-serif;
    text-align: center;
}

#pinScherm h1 {
    margin: 0;
    font-size: clamp(28px, 5vh, 56px);
    color: var(--ts_green);
}

#pinScherm label {
    font-size: clamp(18px, 3vh, 32px);
}

#pinInput {
    width: 4.2em;
    padding: 0.1em 0 0.1em 0.45em;    /* links compenseert de letter-spacing */
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: clamp(40px, min(14vh, 17vw), 160px);
    font-weight: bold;
    letter-spacing: 0.45em;
    text-align: center;
    color: var(--ts_greenDark);
    background: #fff;
    border: 4px solid var(--ts_green);
    border-radius: 0.2em;
    outline: none;
}

#pinInput::placeholder {
    color: #d3dccb;
}

#pinInput:focus {
    box-shadow: 0 0 0 6px rgba(79, 164, 0, 0.25);
}

#pinInput.fout {
    border-color: red;
    animation: schud 0.35s;
}

@keyframes schud {
    20%, 60% { transform: translateX(-12px); }
    40%, 80% { transform: translateX(12px); }
}

#pinFout {
    min-height: 1.4em;
    margin: 0;
    color: red;
    font-size: clamp(16px, 2.5vh, 28px);
}

#lopendBlok {
    width: min(900px, 92vw);
}

#lopendBlok h2 {
    margin: 1vh 0 1.5vh;
    font-size: clamp(16px, 2.5vh, 28px);
    font-weight: normal;
    color: #5B6B5E;
}

#lopendLijst {
    display: flex;
    flex-direction: column;
    gap: 1.5vh;
}

#lopendLijst button {
    display: flex;
    flex-wrap: wrap;            /* op een smal scherm komt het detail eronder */
    align-items: baseline;
    gap: 0.2em 0.8em;
    width: 100%;
    padding: 0.6em 0.9em;
    font-family: Verdana, sans-serif;
    font-size: clamp(18px, 3.2vh, 36px);
    text-align: left;
    color: var(--ts_greenDark);
    background: #fff;
    border: 3px solid #E4E9DE;
    border-radius: 0.4em;
    cursor: pointer;
}

#lopendLijst button:hover, #lopendLijst button:focus {
    border-color: var(--ts_green);
    outline: none;
}

#lopendLijst .pin {
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-weight: bold;
    font-size: 1.3em;
}

#lopendLijst .naam { font-weight: bold; flex: 1; }
#lopendLijst .detail { color: #5B6B5E; font-size: 0.8em; white-space: nowrap; }

#pinScherm footer {
    margin-top: auto;
    font-size: 12px;
    color: gray;
}

#pinDisplay { cursor: pointer; }

/* kleur volgens de fase uit stand.js */
.fase-laatsteGift #boodschap, .fase-laatsteGift #klok { color: orange; }
.fase-wisselen #boodschap, .fase-wisselen #klok,
.fase-voorStart #boodschap, .fase-voorStart #klok,
.fase-einde #boodschap, .fase-einde #klok { color: red; }

#toprowDiv {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    width: 100%;
}

#ronde{
    padding-top: 3%;
    padding-left: 5%;
    text-align: left;
    font-size: var(--fontsizeRonde);
}

#beweging{
    padding-top: 3%;
    padding-right: 5%;
    text-align: right;
    font-size: var(--fontsizeRonde);
}

#boodschap{
    padding-right: 1%;
    padding-left: 1%;
    text-align: center;
    width: 100%;
    font-size: /*50px;*/ var(--fontsizeBoodschap);

}

#timerDiv{
    text-align: center;
}

#klok{
    padding-right: 1%;
    padding-left: 1%;
    text-align: center;
    font-size: /*280px;*/ var(--fontsizeTimer);
    
}


#bottomrowDiv {
    font-weight: normal;
    font-family: verdana;
    font-size: var(--fontsizeCopyright);
    width: 100.0vw;
}

#logo {
    width: 8.0vw;
    height: auto;
    position: fixed;
    padding-left: 2.0vw;
    vertical-align: bottom;
    bottom: 1.0vh;
    font-size: var(--fontsizeCopyright);
}
#copyright{
    position: fixed;
    bottom: 3.0vh;
    vertical-align: bottom;
    font-weight: normal;
    font-family: verdana;
    font-size: var(--fontsizeCopyright);
    padding-left: 10.0vw;
    color: rgb(128, 128, 128);
}

#synchStatus{
    position: fixed;
    bottom: 1.0vh;
    right: 9.0vw;       /* links naast de PIN */
    color: orange;
    font-family: verdana;
    font-weight: normal;
    font-size: var(--fontsizePinSelect);
}

#pinDisplay{
    position: fixed;
    bottom: 1.0vh;      /* zelfde hoogte als #logo */
    right: 2.0vw;        /* rechts uitlijnen i.p.v. links laten hangen */
    color: gray;
    font-weight: normal;
    font-family: verdana;
    font-size: var(--fontsizePinSelect);
    text-align: right;
}