select:not(:-internal-list-box) {
    overflow: visible !important;
}

/*
select {
    writing-mode: horizontal-tb !important;
    text-rendering: auto;
    color: -internal-light-dark(rgb(166, 39, 39), white);
    letter-spacing: normal;
    word-spacing: normal;
    line-height: normal;
    text-transform: none;
    text-indent: 0px;
    text-shadow: none;
    display: inline-block;
    text-align: start;
    appearance: auto;
    box-sizing: border-box;
    align-items: center;
    white-space: pre;
    -webkit-rtl-ordering: logical;
    background-color: -internal-light-dark(rgb(255, 255, 255), rgb(59, 59, 59));
    cursor: default;
    margin: 0em;
    border-width: 1px;
    border-style: solid;
    border-color: -internal-light-dark(rgb(118, 118, 118), rgb(133, 133, 133));
    border-image: initial;
    border-radius: 0px;
}
*/
#selectNumber {
    background-color:#fff5e6;
    cursor: pointer;
    border-color: none;
}

/* CSS */
.buttonek{
    border: 1px solid rgb(236, 206, 168);
    background-color: #fff5e6;
}

.buttonek:hover{
    background-color: #ffebcd;
}
.button-5 {
  background-color: #fff5e6;
  border: 1px solid rgb(236, 206, 168); 
  border-radius: .3rem;
  box-sizing: border-box;
  color: #111827;
  font-family: "Inter var",ui-sans-serif,system-ui,-apple-system,system-ui,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
  font-weight: 600;
  line-height: 16px;
  padding: .8px 1rem;
  text-align: center;
  text-decoration: none #D1D5DB solid;
  text-decoration-thickness: auto;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.button-5:hover {
  background-color: rgb(249,250,251);
}

.button-5:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.button-5:focus-visible {
  box-shadow: none;
}

body {
    margin: 0;
    padding: 0;
}

#map {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
}

.map-overlay {
    font: 12px/20px 'Helvetica Neue', Arial, Helvetica, sans-serif;
    position: absolute;
    width: 100%;
    /* 100 dela okraje */
    top: 0;
    left: 0;
    z-index: 3000;
    padding: 10px;
}

.map-overlay .map-overlay-inner {
    position: absolute;
    right: 10px;
    background-color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    border-radius: 3px;
    padding: 10px;
    margin-right: 20px;
}

.map-overlay h2 {
    line-height: 24px;
    display: block;
    margin: 0 0 10px;
}

.map-overlay input {
    background-color: transparent;
    display: inline-block;
    width: 100%;
    position: relative;
    margin: 0;
    cursor: ew-resize;
}

.legend {
    position: relative;
    font-size:12px;
  color:#808080;
}

.legend h1 {
    color: #000; 
    text-align: center;
    line-height: normal;
    margin-bottom: 10px;
    margin-top: 5px;
}

.legend p {
margin: 2px;
    line-height: normal;
    
}

.legend i {
    width: 30px;
    height: 20px;
    float: left;
    opacity: 1;
    margin-top: 5px;
}

.legend button {
    width: 30px;
    height: 20px;
    float: left;
    opacity: 1;
    margin-top: 5px;
    border: white;
    cursor: pointer;
}

.legend button:hover {
    border: 3px solid grey;     
}


.legend label {
display:block;
  float:left;
  height:15px;
  width:30px;
  text-align:center;

}

.legend .prvni {
    width: 30px;
    height: 18px;
    float: left;
    opacity: 1;
    text-align: center;
    margin-top: 4px;
    margin-right: 0px;
    
}

.map-overlay-inner button:focus {
    outline: none;
    }
     
    .map-overlay-inner button:hover {
    box-shadow: inset 0 0 0 3px rgba(0, 0, 0, 0.1);
    }

/*sidebar*/
.rounded-rect {
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 50px -25px black;
    }
     
    .flex-start {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    }
     
    .flex-center {
        position: absolute;
        display: flex;
        justify-content: center;
        align-items: flex-start;
        padding-top: 10px;
        }

        .sidebarIn {
          color: black;
          font-size: 12px;
          max-width: 400px;
          
      }
     
    .flex-center.left {
    left: 0px;
    }
     
    .sidebar-content {
    position: absolute;
    width: 95%;
    height: 95%;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 32px;
    color: gray;
    }
     
    .sidebar-toggle {
    position: absolute;
    width: 1.3em;
    height: 1.3em;
    overflow: visible;
    display: flex;
    justify-content: center;
    align-items: center;
    }
     
    .sidebar-toggle.left {
      right: -1.5em;
      }
     /*
    .sidebar-toggle.right {
    left: -1.5em;
    }
    */
     
    .sidebar-toggle:hover {
    color: #8e651a;
    cursor: pointer;
    }
     
    .sidebar {
    transition: transform 1s;
    z-index: 1;
    width: 500px;
    height: 100%;
    }
     
    /*
    The sidebar styling has them "expanded" by default, we use CSS transforms to push them offscreen
    The toggleSidebar() function removes this class from the element in order to expand it.
    */
     
    .right.collapsed {
    transform: translateX(495px);
    }

    .left.collapsed {
      transform: translateX(-500px);
      }

#info_map{
    position: absolute;
    z-index: 1; 
    top: 0;
    right: 50px;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    width: 200px;
    height: 70px;
    text-align: left;
    border-radius: 3px;
    top: 10px;
    padding: 10px;
}

/* LEGEND BIVAR */
/* výchozí grid je 6x6 */
.game-board {
    display: grid;
    grid-template-rows: 80px 30px 30px 30px 30px 80px;
    grid-template-columns: 80px 30px 30px 30px 30px 80px;
    transform: rotate(45deg);
    margin-top: 60px;
    margin-left: 60px;
    margin-bottom: -50px;
}

body {
  display: flex;
  justify-content: center;
}

/* polozka legendy */
.box {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #AAA;
  border: none;
  font-size: 12px;
}

/*zarovnani textu*/
.textRot{
  transform: rotate(-45deg);
  text-align: center;
  white-space: nowrap;
  color: black
}

.RRight{
  transform: rotate(-90deg);
  text-align: center;
  white-space: nowrap;
  margin-left: -80px
}

.Rleft {
    text-align: center;
    white-space: nowrap;
    overflow: visible;
    margin-bottom: 80px
}

.hr{
  margin-top:30px; 
  margin-left:30px;
}

.pr{
  margin-bottom:50px; 
  margin-right:50px;
}

.dr{
  margin-bottom:30px; 
  margin-right:30px; 
}

.lr{
  margin-bottom:50px;
  margin-right:50px;
}

.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltiptext {
  transform: rotate(-45deg);
  visibility: hidden;
  width: 120px;
  background-color: #fff5e6;
  color: black;
  text-align: center;
  border-radius: 5px;
  padding: 2px 0;
  position: absolute;
  z-index: 1;
  bottom: 100%;
  left: 0%;
  margin-left: -79px;
  margin-bottom: -10px;
}

.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  
}

button:hover{
   border: 3px solid grey;
}

.nodata {
 width: 30px;
 height: 30px;
    transform: rotate(45deg);
    margin-top: 20px;
    margin-left: 200px;
    margin-bottom: -10px;
    background:rgba(232,232,232, 0.5);
    display:inline-block;
}

.nodataText{
    display:inline-block;
    color: #AAA; 
    margin-left: 10px; 
    margin-bottom: 20px;
}