A:link {color: orange; text-decoration: none}
A:active {color: orange; text-decoration: none}
A:visited {color: orange; text-decoration: none}
A:hover {color: yellow; text-decoration: none}
/*
A:link {color: red; text-decoration: none}
A:active {color: green; text-decoration: none}
A:visited {color: tomato; text-decoration: none}
A:hover {color: green; text-decoration: none}
*/

BODY.main
{
background-color: black;
color: gray;
font-family: Verdana, Helvetica;
font-size:14px
}

IMG.logo
{
position: fixed;
}

TABLE
{
border: none;
border-color: gray;
width: 100%;
background: black;
font-size:14px
}

FONT.comment
{
font-size: 10px;
}

TABLE.menu
{
padding: 12px;
border: none;
border-width: 1px;
border-color: #666666;
width: 80%;
background: black;
}

TABLE.party
{
padding: 2px;
border: solid;
border-width: 1px;
text-align: center;
border-color: #666666;
width: 80%;
background: black;
font-size:14px
}

TD.party
{
padding: 4px;
border: solid;
border-color: #666666;
border-width: 1px;
background: #333333;
}

TD
{
border: none;
background: black;
vertical-align: top;
text-align: center;
}

TD.bottom
{
border: none;
background: black;
vertical-align: bottom;
text-align: center;
padding-left: 0px;
padding-right: 0px;
padding-top: 120px;
padding-bottom: 120px;
}

TD.top
{
border: none;
background: black;
vertical-align: top;
text-align: center;
padding-left: 0px;
padding-right: 0px;
padding-top: 120px;
padding-bottom: 120px;
}

FIELDSET.news
{
width: 80%;
background-color: black;
color: white;
border: 1px solid orange; 
/* border: 1px solid red; */
padding: 8px;
margin: 16px;
}

LEGEND.news
{
background-color: gray;
border: 1px solid orange;
padding: 3px;
font-size: 12px;
}

FIELDSET.menu
{
width: 100px;
position: fixed;
color: white;
border: 1px solid orange;
/* border: 1px solid red; */
padding: 8px;
margin: 4px;
text-align: left
}

LEGEND.menu
{
background-color: gray;
border: 1px solid orange;
padding: 2px;
font-size: 10px;
}

FIELDSET.random
{
color: white;
border: 1px solid orange;
padding: 4px;
margin: 0px;
}

LEGEND.random
{
padding: 3px
}

FIELDSET.status
{
color: white;
background: black;
border: 1px solid orange;
padding: 16px;
margin: 0px;
}

LEGEND.status
{
padding: 3px;
background: green
}

SPAN.footer303
{
color: orange;
}

/* Menulinks (stond vroeger inline in sufmenu.php) */
A.menu:link, A.menu:visited, A.menu:active {color: orange}
A.menu:hover {color: yellow}

/* Anti-spamveld in gastenboek: onzichtbaar voor mensen */
.hp {position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden}

/* ===== Kerstthema — aan/uit via beheer (vroeger met de hand omgezet hierboven) ===== */
BODY.kerst A:link, BODY.kerst A.menu:link {color: red}
BODY.kerst A:active, BODY.kerst A.menu:active {color: green}
BODY.kerst A:visited, BODY.kerst A.menu:visited {color: tomato}
BODY.kerst A:hover, BODY.kerst A.menu:hover {color: green}
BODY.kerst FIELDSET.news, BODY.kerst FIELDSET.menu {border-color: red}

/* ===== Vergroot-viewer fotoalbum (js/lightbox.js) ===== */
HTML.lb-open, HTML.lb-open BODY { overflow: hidden; }
.lb { display: none; position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.95);
      flex-direction: column; align-items: center; justify-content: center;
      font-family: Verdana, Helvetica; color: gray; }
.lb-foto { flex: 1 1 auto; min-height: 0; width: 100%; display: flex; align-items: center; justify-content: center; padding: 10px; box-sizing: border-box; }
.lb-foto IMG { max-width: 100% !important; max-height: 100%; width: auto; height: auto !important; object-fit: contain; border: 1px solid #666666; }
.lb-tekst { color: orange; font-size: 14px; padding: 0 12px; text-align: center; min-height: 1em; }
.lb-knoppen { display: flex; align-items: center; justify-content: center; gap: 24px; padding: 10px 0 16px; }
.lb-knoppen BUTTON { background: none; border: none; padding: 4px; cursor: pointer; color: orange; }
.lb-knoppen BUTTON IMG { width: 56px; height: auto; display: block; }
.lb-sluit { font-size: 34px; line-height: 1; border: 1px solid orange !important; width: 44px; height: 44px; }
.lb-sluit:hover, .lb-knoppen BUTTON:hover { color: yellow; }
.lb-teller { font-size: 12px; min-width: 50px; text-align: center; }
BODY.kerst .lb-tekst, BODY.kerst .lb-sluit { color: red; border-color: red !important; }

/* thumbnail-overzicht (overzicht.php) en filters op party.php */
DIV.overzicht { max-width: 1100px; margin: 0 auto; }
.overzicht-nav, .jaarbalk { line-height: 1.9; }
.jaarbalk A, .jaarbalk B { margin: 0 3px; }
H3.overzicht-maand { color: orange; font-size: 15px; font-weight: normal; border-bottom: 1px solid #666666; margin: 22px 0 6px; text-align: left; text-transform: capitalize; }
P.overzicht-party { text-align: left; margin: 10px 0 4px; }
DIV.raster { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-start; }
DIV.raster A { display: block; height: 140px; flex: 0 0 auto; }
DIV.raster IMG { height: 140px; width: auto; border: 1px solid #666666; display: block; }
DIV.raster A:hover IMG { border-color: orange; }
A.thumbs { font-size: 12px; margin-left: 4px; }
DIV.verstopt { text-align: center; margin: 14px 0 6px; font-size: 11px; }
/* kleur: gewoon de linkkleur van de site (oranje, kerst rood) */
FORM.partyzoek { margin: 6px 0; }
FORM.partyzoek INPUT[type=text] { background: #333333; color: white; border: 1px solid #666666; padding: 4px; width: 240px; }
FORM.partyzoek INPUT[type=submit] { background: black; color: orange; border: 1px solid orange; padding: 4px 10px; cursor: pointer; }
BODY.kerst H3.overzicht-maand { color: red; }

/* knoppen onder de dia-voorstelling (js/slideshow.js) */
.dia-knoppen { display: flex; align-items: center; justify-content: center; gap: 24px; margin: 4px 0 8px; }
.dia-knoppen BUTTON { background: none; border: none; padding: 4px; cursor: pointer; color: orange; font: 12px Verdana, Helvetica; }
.dia-knoppen BUTTON IMG { width: 48px; height: auto; display: block; }
.dia-pauze { border: 1px solid orange !important; padding: 6px 10px !important; min-width: 90px; }
.dia-knoppen BUTTON:hover { color: yellow; }
BODY.kerst .dia-knoppen BUTTON { color: red; }
BODY.kerst .dia-pauze { border-color: red !important; }

/* ===================================================================
   Mobiel (smalle schermen). Alles hieronder geldt ALLEEN onder 760px;
   op desktop blijft de site exact zoals hij altijd was.
   =================================================================== */
IMG { max-width: 100%; }

@media (max-width: 760px) {
  BODY.main { margin: 0; font-size: 15px; }

  /* opmaaktabel -> onder elkaar */
  TABLE.layout, TABLE.layout > TBODY, TABLE.layout > TBODY > TR,
  TABLE.layout > TBODY > TR > TD { display: block; width: auto !important; }
  TABLE.layout { border-spacing: 0; }
  TABLE.layout > TBODY > TR > TD { padding: 4px 8px; }

  /* titel + oneliner */
  TD.kolom-titel { order: 1; padding-top: 10px !important; }
  B.titel { font-size: 24px; line-height: 1.15; display: inline-block; }
  SPAN.oneliner { display: block; margin-top: 4px; font-size: 13px; }

  /* menu: geen vaste kolom maar een compacte rij bovenaan */
  FIELDSET.menu { position: static; width: auto; margin: 0 44px 0 0; padding: 4px 8px 8px; }
  FIELDSET.menu P { display: inline-block; margin: 4px 10px 4px 0 !important; text-align: left !important; }
  LEGEND.menu { font-size: 11px; }

  /* ABC-logo klein rechtsboven in plaats van een eigen kolom */
  TD.kolom-logo { position: absolute; top: 6px; right: 6px; padding: 0 !important; }
  IMG.logo { position: static; width: 34px; height: auto; }

  /* foto's schermbreed, verhouding behouden (overschrijft HEIGHT='240' en width:675px) */
  TD.kolom-inhoud IMG { width: auto; height: auto !important; max-width: 100% !important; }
  TD.kolom-inhoud IMG[src*="left.gif"], TD.kolom-inhoud IMG[src*="right.gif"] { width: 40px; }

  /* foto-album: pijlen klein naast de foto */
  TABLE.menu { width: 100%; padding: 0; }
  TD.top, TD.bottom { padding: 40px 0 !important; width: 12% !important; }

  /* fotoalbum: foto's bovenaan op volle breedte, bladerpijlen eronder */
  TABLE.album, TABLE.album > TBODY { display: block; }
  TABLE.album > TBODY > TR { display: flex; flex-wrap: wrap; }
  TABLE.album TD.party { order: 1; width: 100% !important; box-sizing: border-box; }
  TABLE.album TD.top, TABLE.album TD.bottom { order: 2; width: 50% !important; padding: 10px 0 !important; }
  TABLE.album TD.top { text-align: left; }
  TABLE.album TD.bottom { text-align: right; }
  TABLE.album TD.top P, TABLE.album TD.bottom P { margin: 0; }
  TABLE.album IMG[src*="left.gif"], TABLE.album IMG[src*="right.gif"] { width: 56px; }
  TD.party { padding: 4px; }

  /* lijsten en berichten op volle breedte */
  TABLE.party { width: 100%; table-layout: fixed; box-sizing: border-box; }
  TD.party { overflow-wrap: anywhere; word-break: break-word; }
  TD.party[WIDTH] { width: 80px; white-space: nowrap; font-size: 12px; overflow-wrap: normal; }
  TD.kolom-inhoud, FIELDSET.news { overflow-wrap: anywhere; }
  FIELDSET.news { width: auto; margin: 10px 0; padding: 8px; }

  /* formulieren */
  INPUT[type=text], TEXTAREA { width: 100%; box-sizing: border-box; font-size: 16px; }
  #sufboek TABLE, #sufboek TR, #sufboek TD { display: block; width: auto; text-align: left; }
  #sufboek DIV[ALIGN] { text-align: left; }

  /* thumbnail-overzicht: 3 vierkante tegels per rij */
  DIV.raster { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
  DIV.raster A { height: auto; aspect-ratio: 1; }
  TD.kolom-inhoud DIV.raster IMG { width: 100%; height: 100% !important; object-fit: cover; }
  FORM.partyzoek INPUT[type=text] { width: 65%; }
  FORM.partyzoek INPUT[type=submit] { font-size: 16px; }
}
