* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: Arial, sans-serif;
}

h1 {
   font-size: 24px;
}

h2 {
   font-size: 18px;
}

h3 {
   font-size: 14px;
}

.page {
//  display: flex;
//  flex-direction: column;
  height: 100dvh;
}

/* Header & Footer */
header {
  height: 60px;
  background: #333;
  color: white;
  display: flex;
  align-items: center;
  padding: 0 16px;
  flex-shrink: 0;
}

footer {
  height: 40px;
  background: #333;
  color: white;
  display: flex;
  align-items: center;
  padding: 0 16px;
  flex-shrink: 0;
}

/* Hamburger (mobile default) */
.hamburger {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  margin-right: 12px;
  cursor: pointer;
}

/* Content area */
.content {
  position: relative;
  flex: 1;
  overflow: hidden;
}

/* Left panel = mobile menu */
.left {
  position: fixed;
  top: 60px;
  bottom: 40px;
  left: 0;
  width: 240px;
  background: #f0f0f0;
  padding: 16px;
  overflow: auto;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 1000;
}

.left.open {
  transform: translateX(0);
}

/* Right panel = main content */
.right {
  height: 100%;
  overflow: auto;
  padding: 2px;
  background: #fff;
}
h2 {
  margin-top: 10px;
}
h3 {
  margin-top: 5px;
}

.buttons {
   margin: 5px 0px 5px 0px;
}

.button {
   margin-right: 10px;
}

h2 .button {
   position: relative;
   top: -4px;
}

h3 .button {
   position: relative;
   top: -3px;
}

.button button {
   font-size: 16px;
   background-color: #99ffff;
   color: blue;
   padding: 5px 10px;
   border: 1px solid black;
   border-radius: 5px;
}

.toernooi_naam {
   margin-top: 10px;
}

.info {
   margin-top: 10px;
}

ul {
   padding-left: 0px;
}

ul li ul {
   display: none;
   padding-left: 10px;
}

li {
   list-style-type: none;
}

.left a {
   display: block;
   border-radius: 5px;
   color: black;
   text-decoration: none;
   border: 1px solid black;
   width: 100%;
   background-color: lightskyblue;
   padding: 5px;
   cursor: pointer;
}

.left a:visited {
   color: black;
}

.left a.current {
   color: blue;
   background-color: #66ffff;
}

.left a:hover {
   background-color: #99ffff;
}

.tabel_edit th {
   text-align: right;
}

.tabel {
   display: inline-block;
   border: 1px solid black;
   border-radius: 3px;
   border-collapse: collapse;
//   width: 100%;
   cursor: default;
   font-size: 13px;
}

.tabel table {
   border-spacing: 0px;
}

.tabel .ranking thead tr:nth-child(1) th {
   background-color: white;
   position: sticky;
   top: -16px;
   z-index: 10;
}

.tabel tr.even {
   background-color: #eeeeee;
}

.tabel tbody tr:hover {
   background-color: #cccccc;
}

.tabel th {
   text-align: left;
   padding-left: 5px;
   padding-right: 5px;
   border-bottom: 1px solid black;
}

.vertical {
   writing-mode: sideways-lr;
   padding-top: 5px;
   padding-bottom: 5px;
}

.tabel td {
   text-align: right;
   padding: 2px 5px;
   vertical-align: top;
}

.tabel td.pasnummer {
//   min-width: 80px;
   white-space: nowrap;
}

.tabel td.naam {
   text-align: left;
   width: 100%;
}

.tabel td.klasse {
   text-align: left;
}

.tabel td.pos {
//   min-width: 45px;
}

.tabel th.game {
   text-align: center;
}

.tabel .game {
   display: none;
}

.tabel .bonus {
   display: none;
}

.tabel .totaal_bonus {
   display: none;
}

.tabel .handicap {
   display: none;
}

.tabel .serie {
   display: none;
}

.tabel .totaal_handicap {
   display: none;
}

.tabel .nummer {
   display: none;
}

.tabel .toernooigemiddelde {
   display: none;
}

.tabel .gemiddelde {
   display: none;
}

.cutoffboven:not(:last-child) td {
   border-bottom: 2px solid #000000;
}

.cutoffonder td {
   border-top: 1px solid #000000;
}

.game250 {
   color: #CC0000;
}

.game200 {
   color: #990000;
}

.geenfinale {
   cursor: pointer;
}

.geenfinale:after {
   content: " *";
   color: red;
   cursor: pointer;
}

.actions {
   margin-bottom: 5px;
}

.actions form {
   display: inline-block;
   margin-right: 5px;
}

.edit {
   width: 12px;
   height: 12px;
}

.hint {
   position: relative;
   margin-left: 2px;
   top: 2px;
   width: 12px;
   height: 12px;
}

div.serie {
   float: left;
   margin-right: 20px;
}

.xaccount {
   display: none;
}

.xspeler {
   display: none;
}

.master {
   display: none;
}

.speler-list {
   margin-top: 5px;
   width: 300px;
   height: 200px;
   overflow: auto;
   border: 1px solid black;
}

.speler-item {
   width: 283px;
   height: 20px;
   text-overflow: ellipsis;
   white-space: nowrap;
   overflow: hidden;
   cursor: pointer;
   padding-top: 2px;
}

.speler-item:hover {
   background-color: #cccccc;
}

.filter {
   width: 300px;
}

.login th {
   text-align: right;
}

.gold {
   background-color: #d4af37;
}

.silver {
   background-color: #c0c0c0;
}

.bronze {
   background-color: #c79b56;
}

.popup-container {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
}
.popup-container .popup {
  position: relative;
  border-radius: 9px;
  background: #fff;
  width: 600px;
  max-width: 90%;
  padding: 70px 30px;
  font-size: 14px;
}
.popup-container .popup .popup-close {
  position: absolute;
  right: 15px;
  top: 20px;
  display: block;
  width: 20px;
  height: 20px;
  background-color: #DBEBEE;
  border-radius: 999px;
  background-image: url("../img/close.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px;
}
.popup-container .popup h1 {
  font-size: 26px;
  font-weight: 300;
  border-bottom: 1px solid black;
}
.popup-container .popup-small {
  width: 330px;
  padding: 40px 20px;
}

.popup-container {
   display: none;
}

.popup-container .popup-small {
   padding: 15px 15px;
}

.popup-text p {
   margin-top: 10px;
}

.popup-text .extra {
   margin-top: 10px;
}

.popup-text .actions {
   display: none;
}

.popup-text .switch {
   margin-right: 10px;
}

.popup-text .actions button {
   float: right;
   margin-left: 10px;
   padding-left: 10px;
   padding-right: 10px;
}

/* =========================
   LANDSCAPE PHONE OVERRIDES
   ========================= */
@media (min-width: 730px) {
  .tabel .bonus {
     display: table-cell;
     min-width: 60px;
  }

  .tabel .totaal_bonus {
     display: table-cell;
     min-width: 73px;
  }

  .tabel .handicap {
     display: table-cell;
     min-width: 60px;
  }

  .tabel .gemiddelde {
     display: table-cell;
     min-width: 60px;
  }

  .tabel .totaal_handicap {
     display: table-cell;
     min-width: 73px;
  }

  .tabel .game {
     display: table-cell;
  }

  .tabel .serie {
     display: table-cell;
  }

  .tabel .game input {
     width: 58px;
  }

  .tabel .nummer {
     display: table-cell;
  }
}

/* =========================
   DESKTOP / PC OVERRIDES
   ========================= */
@media (min-width: 1250px) {
  h1 {
     font-size: 32px;
  }

  h2 {
     font-size: 24px;
  }

  h3 {
     font-size: 18px;
  }

  .page {
    display: flex;
    flex-direction: column;
  }

  .hamburger {
    display: none;
  }

  .content {
    display: flex;
  }

  .left {
    position: static;
    transform: none;
    width: 240px;
    flex-shrink: 0;
    height: auto;
  }

  .right {
    flex: 1;
    min-width: 150px;
    padding: 16px;
  }

  .tabel {
     font-size: 16px;
     width: unset;
  }

  .tabel td.pasnummer {
    min-width: 100px;
  }

  .tabel td.naam {
     min-width: 250px;
     width: unset;
  }

  .tabel .totaal_bonus {
     min-width: 95px;
  }

  .tabel .totaal_handicap {
     min-width: 95px;
  }

  .tabel .gemiddelde {
    display: table-cell;
  }

  .tabel .toernooigemiddelde {
    display: table-cell;
  }

  .xtabel .baan {
     display: table-cell;
  }

   .account {
      display: block;
   }
}
