/* Allgemeines Design aller Seiten */
@import url('https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');

* { 
  font-family:'Ubuntu'; 
}

#player2Btn{
	  border: none;
      border-radius: 0.4em;
      position: absolute ;
      top: 65%;
      left: 35%;
      width: 30%;
      height: 25%;
      font-size: 150%;
      overflow: hidden;
      background-image: linear-gradient(to bottom, #4c9f0b 0%, #507d07);
      box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.25);
      color: white;      
	  }

#player2Btn:hover {
      cursor: pointer;
      transition: 0.25s ease;
      background-image: linear-gradient(to bottom, #45900A 0%, #538207);
}

#player1Btn{
      border: none;
      border-radius: 0.4em;
      position: absolute ;
      top: 65%;
      left: 4%;
      width: 30%;
      height: 25%;
      font-size: 150%;
      overflow: hidden;
      background-image: linear-gradient(to bottom, #4c9f0b 0%, #507d07);
      box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.25);
      color: white;
	  }

#player1Btn:hover {
      cursor: pointer;
      transition: 0.25s ease;
      background-image: linear-gradient(to bottom, #45900A 0%, #538207);
}
   
#player3Btn{
	    border: none;
      border-radius: 0.4em;
      position: absolute ;
      top: 65%;
	  right:5%;
      left: 66%;
      width: 30%;
      height: 25%;
      font-size: 150%;
      overflow: hidden;
      background-image: linear-gradient(to bottom, #4c9f0b 0%, #507d07);
      box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.25);
      color: white;      
	  }

#player3Btn:hover {
      cursor: pointer;
      transition: 0.25s ease;
      background-image: linear-gradient(to bottom, #45900A 0%, #538207);
}   



  body {
    background-image: url(Backgrounds/backG1.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
  }


/* CSS für die Startseite (index.html)*/
  b {
    font-weight: 400;
  ´}
  #logo {
    display: block;
    position: absolute;
    width: 47%;
    top: 4%;
    left: 26.5%;
    z-index: 100;
  }
  #start {
    display: block;
    position: absolute;
    width: 20%;
    top: 45%;
    left: 31%;
    height: 5%;
    z-index: 200;
    border-radius: 1em;
    background-color: lightgray;
    font-size: 1.7em;
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
    background-image: linear-gradient(to right, #4C9F0B, #507D07 100%);
    color: white;
    border: 0;
    transition: background-image 0.5s ease;
    }

  #start:hover {
    transition: 0.25s ease;
    background-image: linear-gradient(to right, #5EC111, #67A206 100%);
    cursor: pointer;
  }

  #regeln {
    display: block;
    position: absolute;
    width: 20%;
    top: 52.5%;
    left: 31%;
    height: 5%;
    z-index: 200;
    border-radius: 1em;
    background-color: lightgray;
    font-size: 1.7em;
    overflow: hidden;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
    background: linear-gradient(to right, #4C9F0B, #507D07 100%);
    color: white;
    border: 0;
    transition: background 0.5s ease;
  }

  #regeln:hover {
    background: linear-gradient(to right, #5EC111, #67A206 100%);
    cursor: pointer;
  }


  #impressum {
    display: block;
    position: absolute;
    width: 20%;
    top: 60%;
    left: 31%;
    height: 5%;
    z-index: 200;
    border-radius: 1em;
    background-color: lightgray;
    font-size: 1.7em;
    overflow: hidden;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
    background-image: linear-gradient(to right, #4C9F0B, #507D07 100%);
    color: white;
    border: 0;
  }

  #impressum:hover {
    transition: 0.25s ease;
    background-image: linear-gradient(to right, #5EC111, #67A206 100%);
    cursor: pointer;
  }


/* CSS zur Gameseite */
  #game {
    text-align: center;
  }

  #spielfeld {
    border: 1px solid black;
    background-color: #477148;
    opacity: 95%;
    position: absolute;
    top: 5%;
    left: 5%;
    width: 90%;
    height: 85%;
    border-radius: 1em;
    z-index: 0;
  }

  #canvasSecondary {
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
    background-image: linear-gradient(to bottom, #474747, #383434);
    opacity: 100%;
    position: absolute;
    top: 7.5%;
    right: 7.5%;
    width: 20%;
    height: 40%;
    border-radius: 1em;
  }

  #innerCanvas {
    border-radius: 10px;
    border: solid 3px #4b4b4b;
    background-color: #484848;
    opacity: 100%;
    position: absolute;
    top: 10%;
    right: 10%;
    width: 15%;
    height: 15%;
    border-radius: 1em;
  }

  #thirdCanvas {
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
    background-image: linear-gradient(to bottom, #474747, #383434);
    opacity: 100%;
    position: absolute;
    top: 7.5%;
    left: 7.5%;
    width: 20%;
    height: 40%;
    border-radius: 1em;
  }

  #infoSection {
    position: absolute;
    height: 7.5%;
    width: 10%;
    left: 45%;
    top: 15%;
    padding-top: -10px;
    z-index: 200;
    background-color: lightgray;
    border: double black 4px;
    border-radius: 1em;
    overflow: hidden;
  }

  #infoSection:hover {
    cursor: default;
  }

  #infoText {
    margin: 0;
    padding: 0.5em;
    padding-left: 0;
    padding-right: 0;
    top: auto;
    bottom: auto;
    font-size: 1.1em;
  }

  #reizwerteMnu {
    border-radius: 15px 15px 15px 15px;
    padding-left: 10px;
    border: solid 3px #4b4b4b;
    background-color: #444444;
    color: #E3E3E3;
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.25);
    display: block;
    position: absolute;
    height: 4%;
    width: 15%;
    top: 10%;
    left: 10%;
    font-size: 1em;
  }
  
  #neuesSpielBtn{
	    border: none;
      border-radius: 0.4em;
      position: absolute ;
      top: 7.5%;
      left: 40%;
      width: 20%;
      height: 4.5%;
      font-size: 150%;
      overflow: hidden;
	 
    }
  

  /* Buttons auf der Gameseite */
    #startGameBtn  {
      font-weight: 300;
      background-color: #393939;
      color: white;
      border: none;
      border-radius: 0.6em;
      position: absolute ;
      top: 7.5%;
      left: 40%;
      width: 20%;
      height: 4.5%;
      font-size: 125%;
      overflow: hidden;
      box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.25);
    }

    #startGameBtn:hover {
      cursor: pointer;
      transition: 0.25s ease;
      background-color: #414141;
    }

	#SpielAusWertenBtn, #confirmGameBtn, #nextPlayerBtn, #playBeginBtn, #openCardsBtn, 
	#playCardBtn, #stockDrueckenBtn, #stichBtn {
      color: white;
      font-weight: 300;
      border-radius: 15px;
      box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
      background-image: linear-gradient(to bottom, #4c9f0b 0%, #507d07);
      border: none;
      border-radius: 0.4em;
      display: block;
      position: absolute;
      width: 15%;
      height: 4.5%;
      font-size: 120%;
      top: 42%;
      right: 10%;
    }

    #SpielAusWertenBtn:hover, #confirmGameBtn:hover, #nextPlayerBtn:hover, #playBeginBtn:hover, #openCardsBtn:hover, 
  #playCardBtn:hover, #stockDrueckenBtn:hover, #stichBtn:hover {
    transition: 0.25s ease;
    background-image: linear-gradient(to bottom, #45900A 0%, #538207);
    cursor: pointer;
  }
dialog:not([open]) {
	display: none;
}

dialog[open]{
    display: flex;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
    background: #2D2D2D;
    border: 0;
    position: absolute;
    top:1em;
    height: 30%;
	width:70%;
    border-radius: 1em;
    z-index: 0;
    color: white;
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.25);
	}

dialog[open] p{
	
	
	font-size: 300%;
	padding: 2rem;
	color: white;
}

dialog[open]::backdrop{
	  background: rgba(0,0,0,0.1);
	  backdrop-filter: blur(3px);
	  width:200%;
	  
}


    #leftGameBtn {
      color: white;
      border-radius: 15px;
      border: 0;
      box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
      background-image: linear-gradient(to bottom, #4c9f0b 0%, #507d07);
      border-radius: 0.4em;
      display: block;
      position: absolute;
      width: 15%;
      height: 4.5%;
      font-size: 120%;
      font-weight: 300;
      top: 42%;
      left: 10%;
    }

    #leftGameBtn:hover {
    transition: 0.25s ease;
    background-image: linear-gradient(to bottom, #45900A 0%, #538207);
    cursor: pointer;
    }

/* Eingabefelder auf der Gameseite */
.playerName {
  border-radius: 15px 15px 15px 15px;
  border: solid 3px #4b4b4b;
  background-color: #444444;
  color: white;
  display: block;
  position: absolute;
  bottom: 2.5%;
  left: 5%;
  width: 20%;
  height: 5%;
  font-size: 1.6em;
  font-weight: 300;
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.25);
}

.playerName::placeholder {
  color: #E3E3E3;
}
#player1Name {
  width: 19%;
  padding-left: 0.75em;
}

#player2Name {
  left: 40%;
  padding-left: 0.75em;
  margin-left: -0.75em;

}

#player3Name {
  left: 74.5%;
  padding-left: 0.75em;
  margin-left: -0.75em;
}

.playerPoints {
  border-radius: 0px 15px 15px 0px;
  border: solid 3px #4b4b4b;
  background-color: #484848;
  color: #E3E3E3;
  display: block;
  position: absolute;
  bottom: 2.5%;
  left: 20.5%;
  width: 5%;
  height: 5.5%;
  font-size: 1.5em;
  text-decoration: none;
}

#player2Points {
  left: 55.5%;
}

#player3Points {
  left: 90%;
}

#playerInput0 {
  display: block;
  position: absolute;
  border: none;
  border-radius: 4px;
  height: 3.5%;
  width: 20%;
  top: 0.5%;
  left: 5%;
  padding-left: 1em;
  font-size: 1.3em;
  border: solid 1px #4b4b4b;
  background-color: #444444;
  color: #E3E3E3;
  font-weight: 300;
}

#playerInput1 {
  display: block;
  position: absolute;
  border: none;
  border-radius: 4px;
  height: 3.5%;
  width: 20%;
  top: 0.5%;
  left: 40%;
  padding-left: 1em;
  font-size: 1.3em;
  border: solid 3px #4b4b4b;
  background-color: #444444;
  color: #E3E3E3;
  font-weight: 300;
}

#playerInput2 {
  display: block;
  position: absolute;
  border: none;
  border-radius: 4px;
  height: 3.5%;
  width: 20%;
  top: 0.5%;
  right: 5%;
  padding-left: 1em;
  font-size: 1.3em;
  border: solid 3px #4b4b4b;
  background-color: #444444;
  color: #E3E3E3;
  font-weight: 300
}

/* Buttons zum aswählen ob Aufnehmen oder nicht*/
  .aufnahmeAuswahl {
    background-color: #393939;
    color: white;
    font-weight: 300;
    display: block;
    position: absolute;
    height: 5%;
    width: 10%;
    font-size: x-large;
    border: none;
    border-radius: 6px;
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.25);
  }

  .aufnahmeAuswahl:hover {
    transition: 0.25s ease;
    background-color: #414141;
    cursor: pointer;
    
  }

  #skatAufnehmenBtn {
    top: 23%;
    left: 32.5%;
    z-index: 110;
  }
  

  #handBtn {
    top: 29.5%;
    left: 32.5%;
    z-index: 110;
  }

/* Menü zum auswählen der Spielweise */
  .Reihenfolge {
    font-weight: 300;
    display: block;
    position: absolute;
    width: 7.5%;
    height: 3.5%;
    font-size: 1.1em;
    color: white;
    z-index: 100;
    border-radius: 10px;
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.25);
  }

  #karo {
    background-color: #CCB90B;
    border: none;
    top: 22.5%;
    left: 30%;
  }

  #karo:hover {
    transition: 0.25s ease;
    background-color: #DFCA0C;
    cursor: pointer;
  }

  #herz {
    background-color: #B01313;
    border: none;
    top: 22.5%;
    left: 38%;
  }

  #herz:hover {
    transition: 0.25s ease;
    background-color: #CC1212;
    cursor: pointer;
  }

  #pik {
    background-color: #008234;
    border: none;
    top: 27%;
    left: 30%;
  }

  #pik:hover {
    transition: 0.25s ease;
    background-color: #029F41;
    cursor: pointer;
  }

  #kreuz {
    background-color: #222222;
    border: none;
    top: 27%;
    left: 38%;
  }

  #kreuz:hover {
    transition: 0.25s ease;
    background-color: #393939;
    cursor: pointer;
  }

  #nullover {
    background-color: #393939;
    border: none;
    top: 36%;
    left: 34%;
  }

  #null {
    background-color: #393939;
    border: none;
    top: 31.5%;
    left: 30%;
  }

  #null:hover {
    transition: 0.25s ease;
    background-color: #535151;
    cursor: pointer;
  }

  #grand {
    background-color: #4F4F4F;
    border: none;
    top: 31.5%;
    left: 38%;
  }

    #grand:hover {dialog-Stich
    transition: 0.25s ease;
    background-color: #717171;
    cursor: pointer;
  }


/* CSS für die Regelseite */
  #zuStart {
    display: block;
    position: fixed;
    text-decoration: none;
    height: 5%;
    width: 17.5%;
    top: 2.5%;
    left: 2.5%;
    font-size: 110%;
    font-weight: 300;
    overflow: hidden;
    background-color: #393939;
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.25);
    color: white;
    border: 0;
    border-radius: 15px;
  }

  #zuStart:hover {
    transition: 0.25s ease;
    background-color: #414141;
    cursor: pointer;
  }

  #canvasRules {
    display: block;
    position: absolute;
    opacity: 95%;
    background-color: #393939;
    width: 50%;
    height: fit-content;
    left: 25%;
    top: 10%;
    padding: 5%;
    border-radius: 5%;
    color: white;
  }

  #überschrift {
    text-align: center;
    font-size: 250%;
  }

  table {
    border-collapse: collapse;
    margin-left: 20%;
  }

  th, td {
    border: 1px solid black;
    padding: 8px;
    text-align: center;
  }

  hr {
    margin-top: 5%;
    margin-bottom: 5%;
  }
  
 .custom-popup{
  font-weight: 300;
  color: white;
  display: block;
  position: absolute;
  padding-top: 20%;
  height: 15%;
  width: 20%;
  top: 42.5%;
  left: 40%;
	background-color: #393939;
  border-radius: 0.75em;
  padding: 1%;
  font-size: 2em;
  text-align: center	;
  overflow: hidden; 
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
 }

/* CSS für die Impressumseite*/
  #canvasImp {
    display: block;
    position: absolute;
    opacity: 95%;
    background-color: lightgray;
    width: 50%;
    height: fit-content;
    left: 25%;
    top: 10%;
    padding: 5%;
    border-radius: 5%;
  }

  .h2Imp {
    margin-bottom: -10px;
  }
  .aufnahmeAuswahl {
  display: none;
}