/* Schriftart und Grundgröße der App */
body {
   font-family: "Varela Round", sans-serif;
   font-weight: 400;
   font-style: normal;
   font-size: 12pt;
   /* Verhindert das markieren von Text: */
   -webkit-user-select: none;
   -moz-user-select: none;
   -ms-user-select: none;
   user-select: none;
   /* Verhindett das manuell Zoomen */
    touch-action: manipulation; /* Verhindert das Zoomen durch Pinch-Gesten */
    -ms-touch-action: manipulation;
}
body, html {
   margin: 0;
   padding: 0;
   height: 100%;
}
/* Aufteilung und Steuerung der zweigeteilten Ansicht */
#maincontainer {
   display: flex;
   flex-direction: column;
   height: 100%;
}
@media (orientation: landscape) {
   #maincontainer {
      flex-direction: row;
   }
}
#leftcontent, #rightcontent {
   flex: 1;
   align-items: center;
   justify-content: center;
}

.mainmenuicon {
   position: fixed;
   top: 1%;       
   left: 1%;
   height: 6%;
   width: auto;
   z-index: 998;
}
@media (orientation: portrait) {
   .mainmenuicon {
      top: 0.5%;
      left: 1%;
      height: 3%;
   }
}
.mainmenuicon img{
   height: 100%;
   width: auto;
}

.sidenav {
   height: 100%;
   width: 0;
   position: fixed;
   z-index: 999;
   top: 0;
   left: 0;
   overflow-x: hidden;
   transition: 0.5s;
   display: flex;
   flex-direction: column;
}
.sidenav a {
   padding: 20px;
   text-decoration: none;
   font-size: 1.1em;
   display: block;
   transition: 0.3s;
}
.sidenav .close-btn {
   cursor: pointer;
   padding: 20px;
   background-color: transparent;
   border: none;
   width: 100%;
   text-align: right;
   font-size: 2em;
}

.kopfzeile {
   width: 100%;
   height: 8%;
   display: flex;
   justify-content: center; /* Horizontale Zentrierung */
   align-items: center; /* Vertikale Zentrierung (optional) */
}
.kopfzeile img{
    width: 80%;
    display: block;
}
.round-info {
   text-align: center;
   font-size: 1.2em;
   display: flex;
   align-items: center;
   white-space: nowrap; /* Verhindert Umbruch der Span-Elemente */
}
.round-info span{
   margin: 0 7%;
}
.spieleranzeige {
   display: flex;
   width: 100%;
   height: 77%;
}
.gamePlayerDesc {
   font-size: 0.85em;
   width: 100%;
   padding: 5%;
   display: inline;
   font-weight: 200;
   overflow: auto;

}
#players{
   display: grid;
   grid-template-columns: repeat(auto-fill, minmax(50%, 1fr));
   grid-gap: 0px;
   width: 100%;
/*   height: 70%;*/
}
#selectedPlayers {
   display: grid;
   width: 100%;
   height: 100%;
   grid-gap: 0px;
}
.player-card {
   position: relative;
   display: flex;
   border: 1px solid white;
   margin: 0;
   padding: 3%;
   flex-direction: column;
   align-items: center;
   justify-content: space-evenly;
}
#players .player-card {
   justify-content: flex-start;
}

.player-card-button {
   position: absolute;
   top: 2%;
   right: 2%; 
   margin: 0;
   background-color: transparent;
   font-size: 1em;
   cursor: pointer;
   border: none;
   padding: 2%;
   border-radius: 5px;
   cursor: pointer;
}
.score-display {
   align-items: center;
   justify-content: center;
   font-size: 3em;
   font-weight: bold;
   margin: 1% 0;
}
.score-display input{
   align-items: center;
   justify-content: center;
   font-size: 1em;
   font-weight: bold;
   margin: 1% 0;
    width: 100%;
    text-align: center;
   background-color: transparent;
}

.player-name {
   font-size: 1.5em;
   font-weight: bold;
   margin: 10% 0 1% 0;
   text-align: center;
}

#selectedPlayers .player-name {
   margin: 0 0 1% 0;
   text-transform: uppercase;
}
.leg-player-display {
   display: flex;
   justify-content: center;
   align-items: center;
   margin: 0 0 1% 0;
   height: 20px;
}
.leg-player-display .round {
   display: inline-block;
   height: 100%;
   aspect-ratio: 1;
   margin: 0 5%;
   border-radius: 50%;
}
.player-leg-avg {
   font-size: 1em;
   font-weight: normal;
   margin: 0;
   text-align: center;
}
.playerAvatar {
   display:block;
   margin: 0;
}
.player-info-container {
   position: relative;
   display: flex;
   margin: 0;
   padding: 0;
   flex-direction: column;
   justify-content: center;
   align-items: center;
}
.player-infotext {
   font-size: 1em;
   font-weight: normal;
   margin: 3%;
   text-align: center;
}
.player-addtogame {
   font-size: 1.2em;
   cursor: pointer;
   margin-top: 3%;
   text-align: center;
}
#scores {
   width: 100%;
   height: 15%;
   display: flex;
   align-items: center;
   justify-content: center;
}
#scores div.scorefield {
   height: 60%;
   aspect-ratio: 1.5;
   margin: 5%;
   font-size: 2em;
   font-weight: bold;
   border-radius: 0;
   display: flex;
   justify-content: center;
   align-items: center;
}
.finish-suggestion {
   border: 2px dashed;
   border-color: white;
   color: #555 !important;
}
.input-error {
   transition: background-color 0.5s;
}
.popupmodal {
   display: none;
   position: fixed;
   z-index: 1000;
   left: 0;
   top: 0;
   width: 100%;
   height: 100%;
   overflow: auto;
   justify-content: center;
   align-items: center;
}
.popupmodal .modal-content {
   margin: 15% auto;
   padding: 3%;
   border: 1px solid;
   width: 80%;
   max-width: 500px;
   border-radius: 8px;
   box-shadow: 0 4px 8px;
   text-align: center;
   animation: fadeIn 0.5s;
}
.configmodal {
   display: none;
   position: fixed;
   z-index: 1000;
   left: 0;
   top: 0;
   border-radius: 5px;
   box-shadow: 0 4px 6px;
   animation: fadeIn 0.5s;
   border: 2px solid;
   flex-direction: column;
   width: 100%;
   height: 100%;
   overflow: auto;
   justify-content: center;
   align-items: center;
}
.configmodal .modal-header {
   position: relative;
   width: 80%;
   height: 5%;
   display: flex;
   align-items: center;
   justify-content: center;
   padding: 0;
   box-sizing: border-box;
   border-radius: 8px 8px 0 0;
}
.configmodal .modal-header h2 {
   flex-grow: 1;
   padding: 1%;
   margin: 0;
   font-size: 1em;
}
.configmodal .modal-header .close-btn, .popupmodal .close-btn {
   position: absolute;
   top: 2%;
   right: 2%;
   font-size: 2.5em;
   cursor: pointer;
   border: none;
   width: auto;
   height: 90%;
   display: flex;
   align-items: center;
   justify-content: center;
   padding: 0;
}
.popupmodal .close-btn {
   position:relative;
   justify-content: right;
   margin: -4% 0;
}
.configmodal .modal-content {
   width: 80%;
   max-height: 80%;
   overflow-y: auto;
   padding: 1% 3% 3% 3%;
   box-sizing: border-box;
   font-size: 1em;
   border-radius:  0 0 8px 8px;
   box-shadow: 0 4px 8px;
}
.configmodal .modal-content h3{
   margin: 0.75em 0;
   font-size: 1.1em;
}
.configmodal .modal-content p{
   font-size: 0.9em;
}
.menuslider {
   width: 100%;
}
input[type="range" i] {
   width: 50%;
   margin: 1%; 
}
#dataUrlContainer {
   word-break: break-all;
   font-size: 0.7em;
   margin: 2% 0;
}
#qrcode {
   margin: 2%;
}
.clearfloat {
   clear: both;
   height: auto;
}
#qrcode img{
   max-width: 100%;
   max-height: 75vh;
   object-fit: contain;
}

.inputmultilist .option {
   display: inline-block;
   padding: 1% 2%;
   border: 1px solid;
   border-radius: 5px;
   cursor: pointer;
}
.inputmultilist .option.selected {
   cursor: pointer;
}
.inputselectbox {
   padding: 1%;
   font-size: 1em;
   border: 1px solid;
   border-radius: 5px;
}
.inputselectbox option {
}
.inputselectbox option:checked {
}
.inputselectbox::-moz-scrollbar {
   width: 10px;
}
.inputselectbox::-moz-scrollbar-thumb {
}
.inputselectbox::-webkit-scrollbar {
   width: 10px;
}
.inputselectbox::-webkit-scrollbar-thumb {
}
.inputtext {
   border: 1px solid;
   font-size: 1em;
   padding: 1%;
}
.sliderbutton, .inputbutton, .player-addtogame {
   margin: 5px;
   border: none;
   padding: 1% 2%;
   border-radius: 5px;
   cursor: pointer;
   font-size: 1em;
}
#avatarPreview {
   display: flex;
   flex-wrap: wrap;
   gap: 10px;
}
#avatarPreview img {
   max-width: 100px;
   max-height: 100px;
   object-fit: cover;
}
.eingabecontainer {
   display: block;
   width: 100%;
   height: 85%;
}
.eingabenavigation {
   display: flex;
   width: 100%;
   height: 15%;
}
svg {
   width: 100%;
   height: 100%;
}
.segment {
   stroke-width: 0.3;
}
.double, .triple {
   stroke-width: 0.3;
   fill-opacity: 0.8;
}
.label {
   font-size: 0.3em;
   text-anchor: middle;
   dominant-baseline: central;
   font-weight: bold;
}
.buttons-container {
   display: flex;
   flex-wrap: wrap;
   justify-content: center;
   width: 100%;
   height: 100%;
}
.countbutton {
   width: 20%;
   height: 20%;
   padding: 0;
}
.countbutton button, .corrbutton {
   width: 100%;
   height: 100%;
   padding: 20px;
   margin: 0;
   border-radius: 0;
   font-weight: bold;
   border: 1px solid white;
}
.corrbutton {
   font-size: 1em;
}
.countbutton button {
   font-size: 1.5em;
}
.countbutton button.corrbutton {
   width: 33.3%;
   height: 100%;
}
a {
   text-decoration: none;
}
a:hover {
   text-decoration: none;
}
.hidden {
   display: none;
}
.pdffinnofleetlogo{
   height: auto;
   width: 80%;
   margin: 2%;
}


#players img.playerAvatar {
width:200px;
max-width: 80%;
text-align: center;
cursor: pointer;
}
/*#players a {
text-align: center;
margin: 0;
}*/

#liveDisplayid {
   font-size: 1.7em;
   font-weight: bold;

}




        .copy-button {
            cursor: pointer;
            color: #007bff;
        }
        #importExportModal .copy-button {
            display: none;
        }
        .copy-button:hover {
            color: #0056b3;
        }


.copytooltip {
  background-color: #007bff;
  color: white;
  text-align: center;
  border-radius: 6px;
  padding: 5px 10px;
  position: absolute;
  z-index: 1;
  margin-left: -2.5em;
  margin-top: -1.5em;
  visibility: hidden;
  opacity: 0;
  transition: opacity 1s ease-in-out, visibility 0s linear 1s;
}

.copytooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #007bff transparent transparent transparent;
  transition: opacity 1s ease-in-out;
}

.copytooltip.visible {
  visibility: visible;
  opacity: 1;
  transition: opacity 1s ease-in-out;
}


        .log { color: #000; }
        .warn { color: #f39c12; }
        .error { color: #e74c3c; }
        .info { color: #3498db; }

        .consolemessages {
            font-size: 0.75em;
            font-family: monospace;
            text-align: left;
            height: 50vh;
            overflow: auto;
         }


        .player-name.editable input{
           width: 70%;
        }

        .player-name.editable {
            display: inline-block;
            padding: 5px;
            cursor: pointer;
        }
        .edit-controls {
            display: inline-block;
            margin-left: 5px;
        }
        .edit-controls button {
            background: none;
            border: none;
            cursor: pointer;
            font-size: 1em;
            margin: 0 2px;
        }
        .edit-controls button.confirm {
            color: green;
        }
        .edit-controls button.cancel {
            color: red;
        }
        .edit-controls {
            display: inline-block;
            margin: 0;
        }
        .confirm:disabled {
            opacity: 0.3;
            cursor: not-allowed;
        }

 .audiofeedbacktext {
      text-align: left;
      font-style: italic;
      }
    .toggle-wrapper {
      display: flex;
      align-items: center; /* Zentriert den Text vertikal */
      gap: 10px; /* Abstand zwischen Toggle und Text */
    }

    /* Container für den Toggle */
    .toggle-container {
      position: relative;
      width: 50px;
      height: 26px;
    }

    /* Versteckte Checkbox */
    .toggle-input {
      opacity: 0;
      width: 0;
      height: 0;
    }

    /* Toggle-Label (der sichtbare Schalter) */
    .toggle-label {
      position: absolute;
      cursor: pointer;
      background-color: #ccc;
      border-radius: 20px;
      width: 100%;
      height: 100%;
      transition: background-color 0.3s ease;
    }

    /* Kreis im Schalter */
    .toggle-label::after {
      content: "";
      position: absolute;
      width: 22px;
      height: 22px;
      background-color: #fff;
      border-radius: 50%;
      top: 2px;
      left: 2px;
      transition: transform 0.3s ease;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

    /* Wenn aktiviert (Checkbox ist gecheckt) */
    .toggle-input:checked + .toggle-label {
      background-color: #4a90e2;
    }

    .toggle-input:checked + .toggle-label::after {
      transform: translateX(24px); /* Kreis nach rechts verschieben */
    }
