
/* Middle area */
.middle-area {
	position: relative;
	box-sizing: border-box;
	display: flex; 
	/* height: 1100px; /*calc(100vh - 60px); totale hoogte minus header & footer */
	/* width: 2133px; */
	width: 100%;
	/*margin-top: 60px; /* onder header */
	padding-top: 60px;
	padding-bottom: 60px;
	overflow-y: visible;
	overflow: visible; 
}


.knop-area {
	position: relative;
	/* right: 330px; */
	/* top: 60px; */
	/* min-width: ; /* 20vw; */
	/* height: 100%; */
	background: transparent;
	padding: 10px;
	box-sizing: border-box;
	overflow: visible;
	display: inline-flex;
	flex-direction: column;
	align-items: flex-end;
	margin-left: auto;
}



/* Left column: tafel + tabel */

.table-area {
	position: absolute;
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	left: 0;
	top: 60px;
	min-width: 1280px; /* 60vw; */
	max-width: 70%;
	/* height: 100%; */
	background: transparent; /* lichtblauw, transparant */
	padding: 20px;
	box-sizing: border-box;
	overflow: visible;
}

/* Rechtervak: bieding + speelverloop */

.details-area {
	position: absolute;
	left: 1300px;
	top: 60px;
	min-width: ; /* 20vw; */
	/* height: 100%; */
	background: transparent;
	padding: 10px;
	box-sizing: border-box;
	overflow: visible;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	transform: scale(var(--ui-scale-height));
}

/* Footer */

.footer {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 60px;
	z-index: 500;
	transform-origin: top left;
	transform: scale(var(--ui-scale-width));
	margin: 0;
	padding: 0;
	
}

.footer-wrapper {
	position: relative;
	display: inline-flex;
	gap: 10px;
}

.toggle_handen {
	display: inline-flex;
	direction: row;
	gap: 10px;
}

.cue_list { /* deel van footer */
	display: inline-flex;
	direction: row;
	gap: 10px;
}	

.deck {
	background-color: #E5F4DC;
	position: absolute;
	top: 0;
	left: 0;
	padding: 10px;
	width: 100%;
	height: 100%;
	display:none;
	z-index: 550;
}

.deck.active  {
	
	display: flex;
	flex-direction: row;
}

.deck div {
	display: flex; /* of inline-block, afhankelijk van layout */
	position: relative;
	align-items: center; /* verticale centrering */
	justify-content: center;
	/* border: 1px solid #333; /* voorbeeld */ 
	padding: 5px;
	box-sizing: border-box;
}


.deck_hand, .deck_suit, .deck_card {
display: inline-block;
white-space: nowrap;
background: white;
font-size: 25px;
font-weight: bold;
margin: 4px;
padding: 3px 3px;
border-radius: 6px;
border: 1px solid black;
justify-content: center;
vertical-align: center;
}

.deck_hand img {
	display: block;
	height: 30px;
}

.deck_hand.active {
	background: yellow;
}

.deck_suit.active {
	background: yellow;
}

.deck_suit img {
	display: block;
	height: 30px;
}

.deck_hands, .deck_suits, .deck_cards {
	white-space: nowrap;
	padding: 3px 3px;
	border-radius: 6px;
	display:flex;
}

.deck_cards {
	display: none !important;
}

.deck_cards.active {
	display: flex !important;
}

.deck_card img {
	display: block;
	height: 30px;
}

.deck_card.given {
	opacity: 0.3;
}

.tekst_deck {
	font-size: 25px;
font-weight: bold;
padding: 5px 20px 5px 20px;
justify-content: center;
vertical-align: center;
}

/*
** rechtsboven: spel_info 
*/ =====================

.spel_info {
	position:absolute;
	top: 20 px;
	left: 20 px;

}

/* div .spel_info --> table .spel_info_table */

.spel_info_table {
	position: relative;
	background: rgb(240,239,199);
	background: rgb(252,254,226);
	border: 1px solid black;
	border-radius: 6px;
	padding: 4px;
	z-index: 1000;
	box-shadow: 0 2px 10px rgba(0,0,0,0.25);
	font-size: 20px;
	font-weight: bold;
    table-layout: auto;
	overflow: visible;
    /* width: 300px; /* totale tabelbreedte */ 
	/* transition: opacity 0.25s ease-in-out, transform 0.25s ease-in-out; */
}

.spel_info_links {
	position: relative;
	display: flex;
	cursor: pointer;
	white-space: nowrap;
	min-width: 16ch;
}
.spel_info_right {
	position: relative;
	min-width: 8ch;
	display: flex;
	white-space: nowrap;
}

.slagen_info {
	position:relative;
	background: rgb(252,254,226);
	border: 1px solid black;
	border-radius: 6px;
	padding: 4px;
	z-index: 1000;
	box-shadow: 0 2px 10px rgba(0,0,0,0.25);
	font-size: 20px;
	font-weight: bold;
    table-layout: auto;
	overflow: visible;
}

.slagen_info th {
	background-color: rgb(17,82,141);
	color: white;
	font-weight: bold;
	font-size: 20px;
}

.slagen_info td {
	min-height: 30px;
	height: 30px;
	width: auto;
	font-size: 20px;
	font-weight: bold;
	background-color: rgb(252,254,226);
}



.instellingen .spel_info_table {
	font-size: 15px;
	font-weight: normal;
	overflow: visible;
	z-index: 10000;
}

.acties {
	display: inline-flex;
	flex-direction: row;
	position: relative;
	align-items: flex-end;
	font-size: 20px;
	z-index: 500;
	margin: 0px 0px 10px 0px;
	white-space: nowrap;
	overflow: visible;
}

.acties_details {
	position:relative;
	display: inline-flex;
	flex-direction: column;
	align-items: flex-end; /* <-- alles naar rechts */
    gap: 10px; /* optioneel, ruimte tussen de divs */
	font-size: 15px;
	border: 1px solid #0b7a3f;
	color: #0b7a3f;
	background-color: #E5F4DC;
	opacity: 1;
	border: none;
	padding: 0px;
	
	/* font-weight: bold; */
	z-index: 10;
}

/* Spel-info: CSS: basis & generiek
*/

/* Algemene dropdown-styling
*/

/* Algemene dropdown styling */
.spel_info_rechts {
  position: relative;
  overflow: visible;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  background: #fff;
  min-width: 120px;
  z-index: 100;
  box-sizing: border-box;
  overflow: visible;
}

.dropdown.flex.open {
	display: flex;
}
.dropdown.contract.open {
	display: grid; 
	grid-template-columns: repeat(15, auto); 
	gap: 2px; 
	overflow: visible;
}
.dropdown.uitkomst.open { 
	display: grid; 
	grid-template-columns: 
	repeat(13, auto); 
	gap: 2px;
	overflow: visible;
}


.dropdown label {
  display: flex;
  width: 100%;
  padding: 6px 10px;
  cursor: pointer;
  user-select: none;
  border-radius: 4px;
  transition: background-color 0.12s ease;
}

.dropdown label:hover {
  background-color: #f5f5f5;
}

.dropdown label.active {
  background-color: #e8eef8;
  color: #0b3b66;
}

input[type="checkbox"]:checked ~ .dropdown {
  display: flex;
}

.toggle {
  cursor: pointer;
  user-select: none;
}

.toggle:hover {
  background: rgba(255,255,0,0.2);
}


/*
** ===============================================================
*/

/* ===============================================================
** Kaart definities 
** =============================================================== */

/* ==========================================================
** card: kaart zoals getoond in de hand (zonder kleursymbool)
** ========================================================== */

.card {
display: inline-flex;
background-color: transparent;
white-space: nowrap;
/* min-width: 25px; */
margin-right: 0px;
}


.card span, .select_kaart span {
	font-size: 20px; 
	line-height: 1;
	background: white;
	font-weight: bold;
	margin: 1px 1px 1px 0;
	padding: 0px 3px 0px 3px;
	border-radius: 6px;
	border: 1px solid grey;
	/* justify-content: center; */
	vertical-align: middle;
	cursor: pointer;

}

.select_kaart span {
	  font-size: 40;
	  padding: 3px 6px 3px 6px;
}

.cardxx[data-card="10"] {
  transform: scaleX(0.8); /* horizontaal samendrukken */
  /* display: inline-block;   /* nodig voor transform , maar heft hidden op*/ 
}
.card[data-card="10"] span {
  transform: scaleX(1); /* horizontaal samendrukken */
  /* display: inline-block;   /* nodig voor transform, maar heft hidden op */
}

.card.played {
	opacity: 0.3;
}

.cardxx img {
	height: 30px;
	width: 25px;
	display: block;
}

/* ========================================================
** txtcard-small: kaart zoals getoond in dropdown elementen
** ======================================================== */

.txtcard-small {
  display: flex;
  flex-direction: row;
  white-space: nowrap;
  align-items: center;
  gap: 2px;        /* ruimte tussen waarde en symbool */
  cursor: pointer;
}

.txtcard-small span {
  font-size: 0.8em;  /* kleiner dan in bieding-box */
}

.txtcard-small img {
  width: 14px;       /* kleiner dan in bieding-box */
  height: auto;
  display: block;
}

/* =================================================
** txtcard-medium : kaart zoals getoond in spel info
** ================================================= */

.txtcard-medium {
  display: flex;
  flex-direction: row;
  white-space: nowrap;
  align-items: center;
  gap: 2px;        /* ruimte tussen waarde en symbool */
  cursor: pointer;
}

.txtcard-medium span {
  font-size: 20px;  /* kleiner dan in bieding-box */
}

.txtcard-medium img {
  height: 20px;       /* kleiner dan in bieding-box */
  width: auto;
  display: block;
  padding-right: 10px;
}

/* ==============================================
** played_card: kaart die op tafel werd gespeelde
** ============================================== */

.played_card {
	display: inline-flex;
	width: auto;
	flex-direction: row;
	gap: 4px;
	/* position: absolute; */

	white-space: nowrap;
	padding: 0px;
	align-items: center;    /* verticale centrering symbool + waarde */
	justify-content: center;
	cursor: pointer;
	margin: 4px;
	padding: 7px;
	padding-left: 7px;
	padding-right: 7px;
	border-radius: 6px;
	border: 3px solid black;
	justify-content: center;
	align-items: bottom;
	font-weight: bold;
	min-width: 90px;
	min-height: 70px;
	background-color: white;
	font-family: var(--font-family, sans-serif); /* verplaatst van .hand */
	font-size: 26px;        /* verplaatst van .hand */
	font-weight: bold;      /* verplaatst van .hand */
	position: absolute;
	z-index: 100;
}

.played_card span {
  font-size: 50px; 
  line-height: 1;
  vertical-align: bottom;
}

.played_card img {
	width: 30px;
	height: auto;
	
  /* display: block; */
  padding-right: 2px;
  vertical-align: bottom;
}

.played_card[data-card="10"] span {
  transform: scaleX(0.8); /* horizontaal samendrukken */
  display: inline-block;   /* nodig voor transform */
}

/* ===============================================
** gespeelde-kaart : kaart zoals getoond in slagen
** =============================================== */

.gespeelde-kaart {
  display: flex;
  flex-direction: row;
  white-space: nowrap;
  align-items: center;
  gap: 2px;        /* ruimte tussen waarde en symbool */
  cursor: pointer;
}

.gespeelde-kaart span {
  font-size: 20px;  /* kleiner dan in bieding-box */
}

.gespeelde-kaart img {
  height: 20px;       /* kleiner dan in bieding-box */
  width: auto;
  display: block;
  padding-right: 10px;
}

	
.bid {

	border-color: black;
	border-top: 1px solid black;
	border-left: none;
	border-right: 1px solid black;
	border-bottom: none;
	border-top-left-radius: 0;
	border-top-right-radius: 5px;	padding: 0px;

	background: white;             /* kleur van cel-achtergrond */
	width: 70px;
	height: 50px;
}

.bid-content {
	display: flex;  /* of block */
	flex-direction: row;
	align-items: center;    /* verticale centrering symbool + waarde */
	justify-content: center;
	font-family: var(--font-family, sans-serif); /* verplaatst van .hand */
	font-size: 26px;        /* verplaatst van .hand */
	font-weight: bold;      /* verplaatst van .hand */
	position: relative;
	z-index: 10;	
	width: 70px;
	height: 50px;
}


.bid-content span {
  font-size: 26px;  /* kleiner dan in bieding-box */
  padding-right: 5px;
}

.bid-content img {
  height: 26px;       /* kleiner dan in bieding-box */
  width: auto;
  display: block;
  padding-right: 10px;
}


.tcleft {
	border-left: 1px solid black;
}
.tcbot  {
	border-bottom: 1px solid black;
}

/* =====================================
** Biddingbox kaartje : pass, X, XX, ...
** ===================================== */

.bbcard { /* doublet / pass kaartjes */
	display: flex;  /* of block */
	flex-direction: row;
	border-color: black;
	border-top: 1px solid black;
	border-left: 1px solid black;
	border-right: 1px solid black;
	border-bottom: none;
	border-top-left-radius: 5px;
	border-top-right-radius: 5px;
	padding: 0px;
	align-items: center;    /* verticale centrering symbool + waarde */
	justify-content: center;
	font-family: var(--font-family, sans-serif); /* verplaatst van .hand */
	font-size: 26px;        /* verplaatst van .hand */
	font-weight: bold;      /* verplaatst van .hand */
	position: relative;
	z-index: 10;
	height: 100%;
	width: 100%;
}



.txtcardb {
	display: flex;  /* of block */
	flex-direction: row;

	padding: 0px;
	align-items: center;    /* verticale centrering symbool + waarde */
	justify-content: center;
	font-family: var(--font-family, sans-serif); /* verplaatst van .hand */
	font-size: 26px;        /* verplaatst van .hand */
	font-weight: bold;      /* verplaatst van .hand */
	position: relative;
	z-index: 10;
}

.txtcard-img {
	height: 26px;         /* hoogte van symbool */
	width: auto;
}

.txtcard-val {
	/* Optioneel, omdat font-size en font-weight al in .card staan */
	/* Je kunt hier extra styling doen als je wilt */
	/* vertical-align: middle; /* niet strikt nodig met flexbox */
	font-size: inherit;     /* neemt de font-size van .card */
	font-weight: inherit;   /* neemt de font-weight van .card */
}



/* Optionele kleuren via CSS */
.k_h .card-img,
.k_r .card-img {
	/* rood voor harten en ruiten */
	filter: hue-rotate(0deg); /* of laat zoals in SVG fill=red */
}

.k_s .card-img,
.k_k .card-img {
	/* zwart voor schoppen en klaveren */
	filter: hue-rotate(0deg); /* of laat zoals in SVG fill=black */
}

.k_nt       { background-color: #eee; }
.k_s { background-color: #b0c4ff; }
.k_h { background-color: #ffb0b0; }
.k_r  { background-color: #ffd9a6; }
.k_k { background-color: #b9e8b9; }

	
.td_punt {
	display: flex;  /* of block */
	flex-direction: row;
	border-color: black;
	border-top: 1px solid black;
	border-left: none;
	border-right: 1px solid black;
	border-bottom: none;
	border-top-left-radius: 0;
	border-top-right-radius: 5px;	padding: 0px;
	align-items: center;    /* verticale centrering symbool + waarde */
	justify-content: center;
	font-family: var(--font-family, sans-serif); /* verplaatst van .hand */
	font-size: 18px;        /* verplaatst van .hand */
	font-weight: bold;      /* verplaatst van .hand */
	position: relative;
	z-index: 10;
	background: white;             /* kleur van cel-achtergrond */
	width: 34px;
	height: 27px;
}

.td_punt.empty {
	display: flex;  /* of block */
	border-color: black;
	border-top: 1px solid black;
	border-left: none;
	border-right: none;
	border-bottom: none;
	border-top-right-radius: 0px;	
	background: transparent;             /* kleur van cel-achtergrond */
	width: 34px;
	height: 25px;
}
.border_bottom{
	display: flex;  /* of block */
	flex-direction: row;
	border-color: black;
	border-top: 1px solid black;
	border-left: none;
	border-bottom: none;
	border right: none;
	
	padding: 0px;
	align-items: center;    /* verticale centrering symbool + waarde */
	justify-content: center;
	font-family: var(--font-family, sans-serif); /* verplaatst van .hand */
	font-size: 18px;        /* verplaatst van .hand */
	font-weight: bold;      /* verplaatst van .hand */
	position: relative;
	z-index: 10;
	background: white;             /* kleur van cel-achtergrond */
	width: 280px;
	height: 50px;
}
/* De bridge-tafel */
	
.table-anchor {
		display: flex;
		align-items: center;
		justify-content: center;
		width:95%;
}

.table-anchor.hide {
	display: none;
}

.kaarten.hide {
	display: none;
}

/* Table-wrapper: voor centrering van de tafel */
.table-wrapper {
	position: relative;
	 /*top: 200px; 45%; */
	/*left:50%;  50%; */
	margin-top: 120px;
	margin-bottom:140px;
	width: 0px;
	height: 0px;
	z-index: 100;
	/* transform: scale(var(--ui-scale-height)); */
}

.suit {
	font-family: var(--card-font);
	font-size: 12px;
	color: #111;
	/* display: flex; */
	align-items: center;
	white-space: nowrap;
	padding: 3px 3px;
	border-radius: 6px;
	display: inline-flex;
}

.cards-container {
    display: flex;
	flex-direction: row;
    flex-wrap: wrap;      /* kaarten mogen naar volgende regel */
    /* gap: 2px; */
    /* max-width: 150px; */
	/* max-width: 150px; */
	/* min-width: 150px; */
}

.card {
    display: flex;
    flex: 0 0 auto;       /* niet uitrekken */
}

.cardx {
display: inline-flex;
background-color: transparent;
white-space: nowrap;
min-width: 25px;
margin-right: 0px;
}

.select_kaart span {
	  font-size: 40;
	  padding: 3px 6px 3px 6px;
}



.frame {
  position: absolute;
  width: 1050px;
  height: 950px;
  border: 1px solid #0b7a3f;
	top: -455px; /* 50%; */
	left: -525px; /* 55%; */
  /* pointer-events: none; /* puur visueel */ 
  /* outline: 1px dashed rgba(255,0,0,0.5); */
  box-shadow: 0 8px 15px rgba(0,0,0,0.50); 

	border-radius: 12px;
	margin: 10px 2px 10px 2px;
	padding: 0px;
	
  	background: transparent;
	display: flex;               /* Flex maakt centreren mogelijk */
    justify-content: center;     /* Horizontaal centreren */
    align-items: center;         /* Verticaal centreren */
    box-sizing: border-box;		/* dan tellen padding en border mee bij totale grootte */
	border: 1px solid 
	font-size: 14px;
	font-weight: normal;
	cursor: pointer;

}

.slagen-blok {
  position: absolute;
  bottom: 5px; /* net onder frame */
  right: 5px;      /* aan de rechterkant */
 	display: flex;
	flex-direction: row;
	overflow: visible;
	white-space: nowrap; 
	align-items: bottom;
  padding: 5px 5px;
}

.table {
	position: relative;
	top: -50px;
	left:-50px;
	background: linear-gradient(180deg, #2e7d32 0%, #06723a 100%);
	border-radius: 12px;
	box-shadow: 0 8px 30px rgba(0,0,0,0.25);
	width: 100px;
	height: 100px;
}


.punten, .kaarten {
	display: flex;
	flex-direction: row;
	opacity: 1; 
	pointer-events: none;
    position: absolute;
    /* background-color: #e0a800; */
	color: black;
	font-size: 30px;
	font-weight: bold;
    border-radius: 6px;
    z-index: 100;
    /* transition: opacity 0.3s ease, transform 0.3s ease; */
}

.punten.active, .kaarten.active{
	display: block;
	opacity: 1; 
}

.punten.Noord, .kaarten.Noord {
    /* left:  -40px; */
	/* top:   -120px; */
	left: 50%;
	top: -100px;
	transform: translateX(-50%);
	text-align: center;
}

.punten.Zuid, .kaarten.Zuid {
 	left: 50%;
	top: +70px;
	transform: translateX(-50%);
	text-align: center;
}

.punten.West, .kaarten.West {
 	top: 50%;
	right: +55px;
	align-items: right;
	text-align: right;
	justify-content: flex-end;
	transform: translateY(-50%);
	min-width: 120px;
	max-width: 120px;
	
}

.punten.Oost, .kaarten.Oost {
 	top: 50%;
	/* right: -120px; */
	left: 55px;
	transform: translateY(-50%);
	/* justify-content: flex-start; */
		min-width: 120px;
	max-width: 120px;
}

/* hidden/visible */
.punten.hidden { opacity: 1; pointer-events: none; }
.punten.visible { opacity: 1; }

.rbcell { font-size: 24px; }
/* Tabel met gever, contract, uitkomst */
	
.info-table {
	position: absolute;
	top: 0;
	left: 0;
	width: 160px;
	background: #fff;
	padding: 10px;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.info-table table {
	width: 100%;
	border-collapse: collapse;
}

.info-table td:first-child {
	font-weight: bold;
	padding-right: 5px;
}

/* Right column */
.right-column {
	width: 300px;
	background: #ddd;
	padding: 20px;
}

/*
** Slagen blok
*/

.details-items {
	
	position: absolute;
	left: 1300px;
	top: 240px;
	min-width: ; /* 20vw; */
	/* height: 100%; */
	background: transparent;
	/* padding: 10px; */
	box-sizing: border-box;
	overflow: visible;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	/* transform: scale(var(--ui-scale-height)); */
	
	/* display: flex; */
	margin-top: 0px;
	/* flex-direction: column; */
	gap: 4px;
	/* overflow: visible; */
		transform: scale(0.8);
}
	
.slagen-table .winnaar {
  background-color: #d4af37; /* donker goud */
  font-weight: bold;
}
	
.slag-winnaar {
  background-color: #ffe066;
  font-weight: bold;
}


/*
** Deck
**
*/

.reset_button {
	/*
white-space: nowrap;
background-color: transparent;
cursor: default;
color: #addc90;
font-size: 25px;
font-weight: bold;
margin: 4px;
padding: 3px 3px;
border-radius: 6px;
border: 1px solid #addc90;
justify-content: center;
vertical-align: center;
z-index:550;
*/
}

/* =======================================
** Biedingen en definities
** ======================================= */


.biedingen, .speelslagen {
	/* margin-top: 80px; */
	/* margin-right: 110px; /* 5vw; */
	justify-content: top;

}


.spellen.active, .presentaties.active, .read_file.active, .biedingenx.active, .instellingen.active, .speelslagen.active {
	display: inline-block;
}
.biedingen.active {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
}

.navigator {
	display: flex;
	align-items: center;
	gap: 10px;
}

.open_file {
	background: transparent;
	border: 1px solid #0b7a3f;
	border-radius: 8px;
	padding: 5px 12px;
	font-size: 14px;
	color: #0b7a3f;
	cursor: pointer;
}

.navigator button {
	background: transparent;
	border: 1px solid #0b7a3f;
	border-radius: 8px;
	padding: 5px 12px;
	font-size: 14px;
	color: #0b7a3f;
	cursor: pointer;
}

.navigator select {
	border: 1px solid #0b7a3f;
	border-radius: 8px;
	padding: 5px 10px;
	background: transparent;
	color: #0b7a3f;
	font-size: 14px;
}


.knop {
    background: transparent;
    display: flex;               /* Flex maakt centreren mogelijk */
    justify-content: center;     /* Horizontaal centreren */
    align-items: center;         /* Verticaal centreren */
    position: relative;
    border: 1px solid #0b7a3f;
    border-radius: 8px;
    margin: 10px 2px 10px 2px;
    padding: 5px 12px;;                  /* padding interfereert met centrering */
    font-size: 14px;
	font-weight: normal;
    color: #0b7a3f;
    cursor: pointer;
    height: 20px;
    width: 20px;
    text-align: center;
    box-sizing: border-box;
	z-index: 500000;
}

.knop.active {
	background: white;
}

.knop:hover {
  background-color: rgb(252,254,226);
}


.knop-balk {
	background: transparent;
	display: inline-flex;               /* Flex maakt centreren mogelijk */
	width: fit-content;
    justify-content: center;     /* Horizontaal centreren */
    align-items: center;         /* Verticaal centreren */
    box-sizing: border-box;		/* dan tellen padding en border mee bij totale grootte */
    position: relative;
	border: 1px solid #0b7a3f;
	border-radius: 8px;
	margin: 10px 2px 10px 2px;
	padding: 5px 12px;
	font-size: 14px;
	font-weight: normal;
	color: #0b7a3f;
	cursor: pointer;
	/* height: 20px; */
	height: auto;
}

.knop-balk:hover, .knop-balk.active:hover{
  background: #D6EEC4;
}

.knop-balk.active
{
	background-color: rgb(252,254,226);
}

.grote_knop {
	border: 3px solid #0b7a3f;
    border-radius: 8px;
    margin: 10px 2px 10px 2px;
    padding: 5px 12px;;                  /* padding interfereert met centrering */
    font-size: 40px;
	font-weight: bold;
	width: auto;
	height: auto;
}


.action_buttonxx {
	display: inline-block;
	float: right;
	width: fit-content;
	cursor: pointer;
	white-space: nowrap;
	background-color: transparent;
	color: #addc90;
	font-size: 14px;
	font-weight: normal;
	margin: 2px 5px 10px 5px;
	padding: 2px 1px 2px 1px;
	border-radius: 6px;
	border: 1px solid #addc90;
	justify-content: center;
	vertical-align: right;
	gap: 4px;
}

.action_buttonxx:hover {
	background-color: white;
}

.action_button {
 	background: transparent;
	display: flex;               /* Flex maakt centreren mogelijk */
    justify-content: center;     /* Horizontaal centreren */
    align-items: center;         /* Verticaal centreren */
    box-sizing: border-box;		/* dan tellen padding en border mee bij totale grootte */
    position: relative;
	border: 1px solid #0b7a3f;
	border-radius: 8px;
	margin: 10px 2px 10px 2px;
	padding: 5px 12px;
	font-size: 14px;
	font-weight: normal;
	color: #0b7a3f;
	cursor: pointer;
	/* height: 20px; */
	height: auto;

    /* height: 20px; */
    text-align: center;
    box-sizing: border-box;
}

.action_button.active {
  background-color: rgb(252,254,226);
}

.action_button:hover {
	background-color: #D6EEC4;
}


/* ===================
** bridge tafel layout
** ===================
*/


.stage {
width: 100%;
max-width: 900px;
}
.table_nieuw {
	position: relative;
	width: 160px;
	height: 160px;
	margin: 60px auto 0 auto;  /* auto horizontaal, 60px vanaf boven */
	background: linear-gradient(180deg, var(--table-green) 0%, #06723a 100%);
	border-radius: 12px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}


/* center labels N, O, Z, W */
.label {
position: absolute;
color: white;
font-weight: 700;
font-size: 20px;
letter-spacing: 1px;
cursor: pointer;
}
.label.north { top: 8px; left: 50%; transform: translateX(-50%); }
.label.east  { right: 8px; top: 50%; transform: translateY(-50%); }
.label.south { bottom: 8px; left: 50%; transform: translateX(-50%); }
.label.west  { left: 8px; top: 50%; transform: translateY(-50%); }

.leaderdummy {
	position: absolute;
	font-family: var(--font-family, sans-serif);
	font-size: 30px;
	font-weight: bold;
	padding: 8px;
	padding-left: 60px;
	background: transparent;
	color: #1e4fa3;
	display: none;
}

.leaderdummy.active {
	display: inline-flex;
}
/* hands: positioned near edges */

.hand {
	position: absolute;
	white-space: nowrap;
	padding: 3px 3px;
	border-radius: 6px;
	display: none;
	justify-content: flex-start;
	gap: 6px;
	font-family: var(--font-family, sans-serif);
	font-size: 20px;
	font-weight: bold;
	/* padding: 8px; */
	background: transparent;
}

.hand.active { /* actief zetten hoort samen met .hand_toggle */
	/* display: inline-block; */
	display:flex;
	flex-direction: column;
}
.suit img {
	height: 20px;
	width: auto;
	min-width:25px;
	/* object-fit: cover; */
}

	
.bid {
	z-index: 10;
}

.blauw {
	background-color: rgb(48,124,194);
	font-size: 26px;
	color: white;
	width: 100%;
}
.groen {
	background-color: rgb(55,181,49);
	font-size: 26px;
	color: white;
	width: 100%;
}
.rood {
	background-color: rgb(244,74,74);
	font-size: 26px;
	color: white;
	width: 100%;
}

.centerxxx {
	display: block;
	margin-left: auto;
	margin-right: auto;
	width: 50%;
}

.played_card.north { bottom: 130px; left: 50%; transform: translateX(-50%); }
.played_card.east  { left: 130px; top: 50%; transform: translateY(calc(-50% - 3px)); }
.played_card.south { top: 130px; left: 50%; transform: translateX(-50%); }
.played_card.west  { right: 130px; top: 50%; transform: translateY(-50%); }

.north-hand { bottom: 200px; left: 50%; transform: translateX(-50%); align-items: left; }
.south-hand { top:  195px; left: 50%; transform: translateX(-50%); align-items: left; }
.east-hand  { left: 200px; top: 50%; transform: translateY(-50%); }
.west-hand  { right: 200px; top: 50%; transform: translateY(-50%); align-items: left; }

.leaderdummy.west  { bottom: -90px; left:  -350px; }	
.leaderdummy.east  { bottom: -90px; right: -300px; }
.leaderdummy.north { bottom: 500px; left:     50%; transform: translateX(-50%); align-items: center; }
.leaderdummy.south { top:    495px; left:     50%; transform: translateX(-50%); align-items: center; }

.points {
	position: absolute;
	/* display: inline-flex; */
	display: none;
	text-align: center;
	align-items: center;
	justify-content: center;
	font-size: 40px;
	min-width: 50px;
	min-height: 50px;
	width: min-content;
	height: min-content;
	color: black;
	background-color: white;
	border: 3px solid black;
}
.points.north-hand { top: 0px; left: 100px; }
.points.east-hand  { top: 0px; right: 100px; }
.points.south-hand { top: 0px; left: 100px; }
.points.west-hand  { bottom: 100px; left: 0px; }


.hint {
max-width: 640px;
margin: 12px auto 0;
color: #444;
text-align: center;
font-size: 13px;
}

.hidden {
	display: none;
}

.suit.hidden {
	display: none;
}

/*****************************
** Popup elementen
******************************/


.cue-hide {
	display: none;
}
.cue-active {
	
}

.close_button {
	position: absolute;
	top: 0px; /* net onder frame */
	right: 0px;      /* aan de rechterkant */
 	display: flex;
	flex-direction: row;
	overflow: visible;
	white-space: nowrap; 
	align-items: bottom;
	padding: 5px 5px;
    background: transparent;
    justify-content: center;     /* Horizontaal centreren */
    align-items: center;         /* Verticaal centreren */
    /* border: 1px solid #0b7a3f; */
	border-top: none;
	border-left: 1px solid #0b7a3f;
	border-right: none;
	border-bottom:1px solid #0b7a3f;
	border-top-left-radius: 0;
	/* border-top-right-radius: 5px; */
	padding: 0px;
	border-bottom-left-radius: 5px;
    border-radius: 8px;
    /* margin: 2px 2px 2px 2px; */
	margin: 0;
    font-size: 14px;
	font-weight: normal;
    color: #0b7a3f;
    cursor: pointer;
    height: 20px;
    width: 20px;
    text-align: center;
    box-sizing: border-box;
}

/*
.ppp  button {
    padding: 8px 14px;
    cursor: pointer;
  }
*/

  .popup {
    position: absolute;
    background: white;
    border: 1px solid #333;
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
    padding: 20px 16px 16px 16px;
    cursor: move;
    opacity: 0;
    /* transform: scale(0.9); */
	font-size: 20px;
	font-weight: bold;
    animation: popupIn 0.25s ease forwards;
    max-width: 60vw;
  }

  @keyframes popupIn {
    to {
      opacity: 1;
      transform: scale(1);
    }
  }

  .popup.closing {
    animation: popupOut 0.2s ease forwards;
  }

  @keyframes popupOut {
    to {
      opacity: 0;
      transform: scale(0.9);
    }
  }

  .popup-close {
    position: absolute;
    top: 6px;
    right: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
  }

  .popup-content {
    cursor: default;
  }
/*
@media (max-width: 760px) {
.table { width: 360px; height: 360px; }
.north-hand, .south-hand { top: -80px; bottom: auto; }
.east-hand, .west-hand   { right: -160px; left: auto; }
}
*/

.hide {
	display: none;
}
