body {
    background-color: #2e3a4a;
    font-family: system-ui;
    color: #333;
    padding-bottom: 5px;
    transition: background-color .15s ease-in;
    overscroll-behavior: contain;
}
.board {
    box-sizing: border-box;
    border-radius: 20px;
    color: #fff;
    margin-bottom: 15px;
    z-index: 1;
    min-height: 700px;
    position: relative;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    background-image: url('images/board.png');
    padding-bottom: 80px;
}
.popup {
    display: block;
    background: #fffafa;
    width: 90%;
    min-height:625px;
    position: relative;
    z-index: 999;
    border-radius: 10px;
    border: solid 2px #006400;
    box-shadow: #333 0 0 3px;
    box-sizing: border-box;
    color: #800000;
    padding-top: 10px;
    font-size: 16px;
    left: 50%;
    transform: translate(-50%, 0%);
    top: 40px;
    padding-top: 0px;
}
.popup_title{
    font-size: 35px;
    color: #800000;
}
.popup_title h1{
    font-size: 34px;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 86px;
    margin-left: -80px;
    color: #009000;
    line-height: 32px;
}
.popup_title span{
    font-size: 20px; 
    font-weight: normal;
}
.popup_left{
    font-size: 20px;
    color: #333333;
    text-align: left;
    width: 440px;
    border-right: 1px solid #000000;
    float: left;
    height: 500px;
    padding: 0px 20px;
}
.popup_left div{
    height: 40px;
}
.popup_left h3,.popup_right h3{
    margin: 5px 0px 20px 0px !important;
}
.popup_right{
    font-size: 20px;
    color: #333333;
    text-align: left;
    width: 210px;; 
    float: right; 
    height:460px;
    padding: 0px 20px;
}
.popup_right div{
    height: 40px;
}
h1 {
    font-weight:500;
}
h2 {
    margin-top:10px;
    line-height:24px;
    color: #E0E0E0;
}
h3 {
    font-size: 22px;  
    /* color: #800000;     text-align: center; */ 
    margin: 10px 0px 0px 0px;
    width: 100%;
    text-align: left;
    color: #FFD700;
}
p {
    margin: 0px;
}
.popup h3 {
    font-size: 27px;
    color: #800000;
    margin: 5px 0px 0px 0px;
    width: 100%;
    text-align: center;
    line-height: 16px;
}
a {
    text-decoration: none;
    color: #fb870a;
}
a:hover {
    text-decoration:underline;
}
#lang {
    position:absolute; 
    right:35px; 
    margin-top:12px; 
    cursor:pointer;
}
.winners {
    display:flex; 
    gap: 20px; 
    line-height: 21px; 
    margin-bottom: 15px; 
    width:100%; 
    justify-content: center;
}
select {
    padding: 4px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 4px;
    margin: 0;
    border: solid 1px #8b4513;
    background: linear-gradient(to bottom, #d2691e, #a0522d);
    color: #fff;
    float: right;
}
option {
    background: #d2691e;
    color: #fffafa;
    padding: 5px;
    font-size: 14px;
    font-weight: bold;
}
option:hover {
    background: #a0522d;
}
select option:checked {
    background: #8b4513;
    color: #fffafa;
    font-weight: bold;
    border: 2px solid #fffafa;
}
select option:hover {
    background: #a0522d;
    color: #fffafa;
}
select option:disabled {
    color: #999;
}
hr {
    margin: 15px 0;
    border: 0;
    border-top: 1px solid #cccccc; /* Hier bepaal je de kleur en dikte */
}
button {
    margin: 15px 0px;
    font-size: 18px;
    padding: 7px 9px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
    border: solid 1px #8b4513;
    background: linear-gradient(to bottom, #d2691e, #a0522d);
    color: #fff;
    display: inline;
}
button:disabled {
    cursor: not-allowed;
    background: linear-gradient(to bottom, #999999, #bbbbbb);
    border: solid 1px #999999;
}
.button_small {
    margin: 15px 0px;
    font-size: 16px;
    padding: 2px 6px;
    border-radius: 4px;
    cursor: pointer;
    border: solid 1px #8b4513;
    background: linear-gradient(to bottom, #d2691e, #a0522d);
    color: #fff;
    display: inline;
}
form {
    max-width: 600px;
    margin: auto;
    text-align: left;
}
form button {
    margin: 0px 10px 0px 0px;
}
label {
    display: inline;
    font-weight: bold;
    margin: 10px 0px 0px 0px;
    text-align: left;
}
input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    margin: 3px 0px 10px 0px;
}
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    margin: 3px 0px 10px 0px;
}
.error {
    color: red;
    font-size: 0.9em;
}
.main { 
    width: 830px;
    text-align: center;
    margin: 0 auto;
}
.title {
    background-image: url('images/logo3.png');
    margin:20px 0px;
    width:578px;
    height:90px;
    left: 50%;
    transform: translate(-50%, 0%);
    position: relative;
    background-size: cover;
}
.title_game {
    background-image: url('images/logo_game.png');
    margin:20px 0px;
    height:100px;
    left: 50%;
    transform: translate(-50%, 0%);
    position: relative;
    background-size: cover;
}
.login_error {
    color: red;
}
.login_valid {
    color: green;
}
.games {
    width: 95%;
    margin: 20px auto 0px auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
.dropdown-content {
    border-radius: 4px;
    width: 50%;
    z-index: 1;
    box-sizing: border-box;
    margin: 0 auto;
}

.dropdown-content select {
    width: 100%;
    padding: 7px 12px;
    font-size: 20px;
    font-weight: 700;
    border: solid 1px #555;
    border-radius: 4px;
    background: #fff;
    background: linear-gradient(#fff, #ddd);
    color: #333;
    box-sizing: border-box;
    margin: 0;
}

.select_game {
    position: relative;
    width: 120px;
    min-height: 120px;
    background: linear-gradient(to bottom, #00a000, #007000);
    border-radius: 10px;
    border: solid 2px #009000;
    cursor: pointer;   
    color: #ffffff;
    padding: 5px; 
    margin: 5px;
    box-sizing: border-box;
    float: left;
    display: grid;
	align-items: center;
}
.select_game2 {
    position: relative;
    display: inline-block;
    vertical-align: top;
    text-align: center;
    width: 130px;
    min-height: 130px;
    margin: 5px;
    background: #00a000;
    border-radius: 20px;
    box-shadow: #000 0 0 2px;
    border: solid 2px #fff;
    cursor: pointer;   
    color: #ffffff;
    padding: 10px; 
    box-sizing: border-box;
}
.players {
    display: flex;
    justify-content: space-around;
    width: 100%;
    margin: 0 auto; 
}
.player {
    width: 33%;
    position: relative; 
    text-align: center;
    margin-top: 20px;
    font-weight: bold;
}
.player-new {
    width: 100px;
    height: 200px; 
    text-align: center;
    margin-top: 20px;
    font-weight: 500;
    position: relative;
}
.back {
    width: 69px;
    height: 94px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.back-new {
    width: 69px;
    height: 94px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}
.bids-new {
    margin-top: 15px;
    width: 160px;
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
}
.bids-oh {
    margin-top: 5px;
}
.showbid {
    position: absolute;
    width: 90px;
    height: 71px;
    z-index: 100;
    background-size: cover;
    display: none;
    color: #000000;
    box-sizing: border-box;
}
.showbid-opp {
    background-image: url('images/bid-up.png');
    top: 50px;
    padding-top: 34px;
    font-weight: normal;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.showbid-you {
    background-image: url('images/bid-down.png');
    left: 330px;
    bottom: 40px;
    padding-top: 15px;
}
.bless {
    height: 145px;
    top: 370px;
    left: 20px;
    position: absolute;
    text-align: center;
}
.trump {
    height: 145px;
    top: 370px;
    right: 20px;
    position: absolute;
    text-align: center;
}
.roem {
    top: 490px;
    right: 50px;
    position: absolute;
    text-align: center;
    background-color: #edf35a;
    padding: 20px;
    color: #000000;
    border-radius: 10px;
    font-weight: bold;
    display: none;
    max-width: 100px;
}
.card {
    display: ruby;
    opacity: 0;
}
.card-new {
    display: inline-flex;
    opacity: 0;
    position: relative;
}
.card2 {
    display: inline;
    position: relative;
    top: 0px;
    left: 0px;
    width: 69px;
    height: 94px;
}
.cards {
    height: 100px;
    bottom: 55px;
    width: 100%;
    position: absolute;
    z-index:10;
}
.cards-opp {
    display: inline-block;
    width: 69px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 40px;
    height: 200px;
}
.cards-new {
    height: 100px;
    bottom: 55px;
    width: 100%;
    position: absolute;
    left: 0px;
}
.cards_opp {
    display: block;
    text-align: center;
    position: absolute;
    height: 200px;
    width: 100px;
    left: 50%;
    transform: translateX(-50%);
}
.bet-opp {
    display: block;
    text-align: center;
    position: absolute;
    height: 130px;
    width: 100px;
    left: 50%;
    transform: translateX(-50%);
    top: 213px;
    z-index: -2;
}
.bet-you {
    height: 100px;
    bottom: 55px;
    position: absolute;
    right: 208px;
    width: 130px;
    text-align: left;
}
.yourname{
    height: 30px;
    bottom: 5px;
    width: 100%;
    position: absolute;        
    font-weight: 500;
}
.infolie{
    height: 30px;
    bottom: 22px;
    left: 20px;
    position: absolute;        
    font-weight: 500;
    text-align: left;
}
.infolie button{
    font-size: 12px;
    padding: 4px;
    min-width: 23px;
    margin-right: 1px;
    position: relative;
}
.button_disabled {
    background: #777777;
    border: 1px solid #777777;
    color: #cccccc;
    cursor: not-allowed;
}
.yourcard{
    margin: 0px -17px; 
    cursor: pointer;
    filter: blur(0px);
}
.yourcard-new {
    margin: 0px 5px; 
    cursor: pointer;
}
.tablecard{
    margin: 0px 20px; 
    cursor: pointer;
}
.info {
    position: absolute;
    width: 400px;
    top: 490px;
    height: 35px;
    font-size: 12px;
    margin: 0 auto;
    text-align: left;
    padding: 3px 6px;
    color: #333;
    background-color: #edf35a;
    border-radius: 4px;
    text-shadow: none;
    left: 50%;
    transform: translate(-50%, 0);
}
.actions {
    position: absolute;
    top: 455px;
    right: 33px;
    text-align: left;
}
.table {
    position: absolute;
    width: 400px;
    top: 300px;
    left: 50%;
    transform: translate(-50%,0);
    height: 100px;
    text-align: center;
    padding: 3px 6px;
    z-index: -1;
}
.games table {
    height: 200px;
    border-collapse: collapse;
    margin: 10px;
}
.games tbody {
    display: unset;
}
.games td,.games th{
    text-align: left;
    padding: 5px;
    border: 2px solid #ddd;
}
.ranking{
    margin: 10px auto !important;
}
.ranking td{
    font-size:13px;
    border: 1px solid #888;
    padding: 2px;
}
.ranking th{
    border: 1px solid #000;
    background-color: #cccccc;
}
.pass {
    position: absolute;
    top: 550px;
    left: 560px;
    z-index: 100;
}
.button1 {
    position: absolute;
    top: 550px;
    z-index: 100;
    right: 30px;
    text-align: right;
    display: none;
}
.placebid {
    display: none;
    box-sizing: border-box;
    padding: 10px;
    text-align: center;
    background-color: #edf35a;
    color: #000;
    border-radius: 10px;
    width: 270px;
    box-shadow: #000 0 0 5px;
    position: absolute;
    z-index: 100;
    color: #800000;
    opacity: 0.93;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.placebid img {
    height: 60px; 
    margin: 0px 5px;
    cursor: pointer;
}
.bid_nr {
    cursor: pointer;
    display: inline-block;
    background-color: #fff;
    border: solid 1px gray;
    color: #222;
    width: 25px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    margin: 4px;
    font-size: 18px;
}
.bid_nr.banned {
    background: #eee;
    color: #aaa;
    border-color: gray;
    cursor: default;
}
.score {
    display: inline-block;
    background-color: #fff;
    border-radius: 3px;
    font-family: Arial, sans-serif;    
}
.score table {
    border-collapse: collapse;
    border: solid 1px #000;
    width: 100%;
}
.showscore {
    display: none;
    box-sizing: border-box;
    padding: 10px;
    text-align: center;
    color: #ffffff;
    border-radius: 10px;
    left: 50%;
    transform: translateX(-50%);
    position: absolute;
    top: 120px;
    z-index: 900;
    font-size: 22px;
    line-height: 15px;
    font-weight: bold;
}
.showlie {
    display: none;
    position: absolute;
    width: 110px;
    top: 414px;
    height: 35px;
    font-size: 12px;
    margin: 0 auto;
    text-align: left;
    padding: 3px 6px;
    color: #333;
    background-color: #ffffff;
    border-radius: 4px;
    left: 50%;
    transform: translate(-50%, 0);
}
.pile2 {
    position: absolute;
    top: 304px;
    height: 90px;
    margin: 0 auto;
    left: 380px;
}
.scoreboard {
    position: absolute;
    display: none;
    padding: 3px;
    text-align: center;
    background-color: #ffffff;
    color: #000;
    border-radius: 3px;
    bottom: 10px;
    right: 13px;
    z-index: 100;
}


th {
    position: sticky;
    top: 0;
    z-index: 1;
    background-color: #ffffff;
}
tbody {
    max-height: 150px;
    overflow-y: auto;
}
.score .thick-bottom {
    border-bottom: solid 2px #000;
}
tr {
    display: table-row;
    vertical-align: inherit;
    unicode-bidi: isolate;
    border-color: inherit;
}
.score table td, .score table th {
    text-align: center;
    border: solid 1px #000;
    padding: 2px;
    white-space: nowrap;
    font-size: 12px;
    width: 60px;
    color: #000000;
}
.score table th {
    background-color: #ffffff;
}
.scoreboard table {
    border-collapse: collapse;
    padding: 2px;
}
.scoreboard td {
    border: solid 1px #ccc;
    font-size: 12px;    
    padding: 1px 2px;
    text-align: center;
    min-width: 30px;
}
.trophy {
    position: absolute;
    top: 256px; 
    left: 50%;
    transform: translate(-50%, 0%);
    font-weight: bold;
    color: #6E4F06;
    font-size: 18px;
    white-space: nowrap;
}
.rules tbody {
     max-height: max-content;
}
.rules th {
    background-color: unset;
}
.rules{
  line-height: 1.34;
  color: #f2f4f7;
  text-align: left;
  margin-top: 30px;
}
.rules h2:first-of-type{
  margin: 26px 0 14px 0;
  padding: 10px 14px;
  font-size: 20px;
  line-height: 1.15;
  font-weight: 700;
  color: #ffffff;
  /*background: rgba(40,196,67,0.12);*/
  border: 2px solid #00a000;
  border-radius: 6px;
}
.rules h2{
  margin: 20px 0 8px 0;
  padding: 0 0 5px 0;
  font-size: 20px;
  line-height: 1.15;
  font-weight: 700;
  color: #ffffff;
  border-bottom: 2px solid #00a000;
}
.rules h3{
  margin: 12px 0 6px 0;
  font-size: 15px;
  line-height: 1.15;
  font-weight: 700;
  color: #dfe7f2;
}
.rules p{
  margin: 0 0 8px 0;
  font-size: 16px;
  line-height: 1.34;
}
.rules ul,
.rules ol{
  margin: 0 0 10px 18px;
  padding: 0;
}
.rules li{
  margin: 0 0 3px 0;
  line-height: 1.32;
}
.rules h3+ul,
.rules h3+ol{
  margin-top: 2px;
  margin-left: 28px;
}
.rules table{
  width: auto;
  border-collapse: collapse;
  margin: 4px 0 12px 0;
}
.rules th,
.rules td{
  padding: 6px 8px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.rules th{
  color: #ffffff;
  font-weight: 700;
}
.rules strong{
  font-weight: 700;
  color: #ffffff;
}
#score-wrapper {
    max-height: 250px;
    overflow-y: auto;
    background-color: #ffffff;
    color: #000;
    font-size: 16px;   
    box-shadow: 0 0 10px #2e3a4a;
}
#score-wrapper .header {
    display: flex;
    position: sticky;
    top: 0;
    font-weight: bold;
    color:#000000;
    background-color: #dddddd;
}
#score-wrapper .footer {
    display: flex;
    background-color: #2e3a4a;
    color: white;
    font-weight: bold;
}
#score-wrapper .header .cell{
    border-left: 1px solid #000000;
}
#score-wrapper .footer .cell{
    border-left: 1px solid #000000;
    background-color: #2e3a4a;
    border-bottom: 1px solid #000000;
}
#score-wrapper .cell {
    width: 80px;
    padding: 2px 2px 5px 2px;
    border: 1px solid #000000;
    font-size: 14px;
    white-space: nowrap;
}
.ready {
    font-size:16px; 
    position: absolute; 
    top: 310px; 
    left: 193px;
}
.gamesdiv {
    line-height:21px;
    height:200px;
    margin:0px 11px 15px 11px;
    cursor: pointer;
    border: 1px solid #cccccc;
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 10px;
}
.gamesdiv img{
    border-radius: 10px 10px 0px 0px;
}

.gamesdiv:hover{
  box-shadow: 0 12px 28px rgba(0,0,0,.16);
  transform: translateY(-2px);
  filter: brightness(1.04) saturate(1.05);
}
.speak-opp {
    background-image: url(images/speak-opp.png);
    background-position: center;
    background-size: 100% 100%;
    z-index: 1000;
    position: absolute;
    margin-left: -7px;
    height: 80px;
    width: 100px;
    top: 100px;
    color: #333333;
    justify-content: center;
    align-items: center;
    display: none;
    padding: 20px 10px 0px 10px; 
}
.speak-you {
    background-image: url(images/speak-you.png);
    background-position: center;
    background-size: 100% 100%;
    z-index: 1000;
    position: absolute;
    height: 70px;
    width: 90px;
    top: -90px;
    color: #333333;
    justify-content: center;
    align-items: center;
    left: 50%;
    transform: translate(-50%, 0%);
    margin-left: -40px;
    padding: 0px 10px 24px 10px;
    display: none;
}
.nextround {
    font-size:16px; 
    position: absolute; 
    top: 410px; 
    left: 50%;
    transform: translate(-50%, 0%);
    display: none;
    z-index:100;
}
.buttonscore {
    position: absolute;
    top: 500px;
    z-index: 1000;
    left: 30px;
    text-align: right;
    display: none;
}
.buttonspeak {
    position: absolute;
    top: 550px;
    z-index: 1000;
    left: 30px;
    text-align: right;
}
.speak {
    position: absolute;
    top: 250px;
    z-index: 1000;
    left: 50%;
    transform: translate(-50%, 0%);
    width: 450px;
    height: 200px;
    background-color: #eeeeee;
    color: #333333;
    border-radius: 10px;
    text-align: left;
    display: none;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.8);
}
.speak img {
    width: 30px;
    margin: 10px;
    cursor: pointer;
}
.speak div {
    margin-left: 20px;
    margin-top: -2px;
    display: inline-block;
    width: 200px;
    font-size: 20px;
    font-weight: 500;
    cursor: pointer;
}

.magnify {
  font-size: 80px;
  display: inline-block;
  animation: sweep 10s ease-out infinite; /* totale cyclus van 5s */
}

@keyframes sweep {
  0%, 20% { transform: scale(1); }   /* eerste 2s (40% van 5s) niets */
  25%     { transform: scale(1.2); } /* vergroting rond 2.5s */
  30%     { transform: scale(1); }   /* terug naar normaal */
  100%    { transform: scale(1); }   /* rest van de cyclus normaal */
}


