/* Add some basic styling to the crossword puzzle */
body{
  background-color: rgb(230,230,230);
  
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
  
  position: relative;
}

.replacement-text {
  font-weight: bold;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  
}

.labelcheckcombo {
  display: flex;
  align-items: center;
  background-color: lightsalmon;
  width: 100%;
  aspect-ratio: 3 / 1;
  font-size: x-large;
  cursor: pointer; /* Make it clear it's clickable */
}

.populateCheckbox {
  width: 3em; /* Adjust width and height to scale the checkbox */
  height: 3em;
  margin-right: 10px; /* Space between checkbox and label */
}

.checkboxlabel {
  flex-grow: 1;
  text-align: center;
}


.piccheckbox {
  width: 3em; /* Adjust width and height to scale the checkbox */
  height: 3em;
  margin-right: 10px; /* Space between checkbox and label */
}

.piccheckboxlabel {
  flex-grow: 1;
  text-align: center;
}

.mitbildern {
  display: flex;
  align-items: center;
  background-color: rgb(179, 179, 179);
  width: 100%;
  aspect-ratio: 3 / 1;
  font-size: x-large;
  cursor: pointer; /* Make it clear it's clickable */
}

:root {
  --highbordwidth: 5px; /* Set the default border width */
  --highbordcol: #7885e8; /* Set the default border color */
  --gehtdas: var(--highbordwidth) solid var(--highbordcol) !important;
  --bigness: 15;
  --input-text: 16px;
}

#crosswordbox{
  overflow: scroll;
  padding-top: 50px;
}

.crossword{
  display: grid;
  grid-template-columns: repeat(15, 1fr);
  grid-template-rows: repeat(15, 1fr);
  gap: 2px;
  border: 2px solid black;
  background-color: #bababa;
  padding: 0.5%;
  overflow: auto;
  transform-origin: 0 0; /* Set the zoom to originate from the top-left corner */
  transition: transform 0.2s ease; /* Smooth zoom transition */
  width: 98%;
  height: 98%;
}

/* Style the crossword puzzle cells */
.cell {
  background-color: black;
  width: 95%;
  height: 95%;
  
}



.highlightns {
  border-top: var(--highbordwidth) solid var(--highbordcol) !important;
  border-bottom: var(--highbordwidth) solid var(--highbordcol) !important;
}

.highlightow {
  border-left: var(--highbordwidth) solid var(--highbordcol) !important;
  border-right: var(--highbordwidth) solid var(--highbordcol) !important;
}

.highlightopenn {
  border-left: var(--highbordwidth) solid var(--highbordcol) !important;
  border-right: var(--highbordwidth) solid var(--highbordcol) !important;
  border-bottom: var(--highbordwidth) solid var(--highbordcol) !important;
}

.highlightopeno {
  border-left: var(--highbordwidth) solid var(--highbordcol) !important;
  border-top: var(--highbordwidth) solid var(--highbordcol) !important;
  border-bottom: var(--highbordwidth) solid var(--highbordcol) !important;
}

.highlightopens {
  border-left: var(--highbordwidth) solid var(--highbordcol) !important;
  border-right: var(--highbordwidth) solid var(--highbordcol) !important;
  border-top: var(--highbordwidth) solid var(--highbordcol) !important;
}

.highlightopenw {
  border-right: var(--highbordwidth) solid var(--highbordcol) !important;
  border-top: var(--highbordwidth) solid var(--highbordcol) !important;
  border-bottom: var(--highbordwidth) solid var(--highbordcol) !important;
  
}


.input.basic{
  background-color: transparent;
  margin: var(--highbordwidth) solid transparent;
  font-size: 100%;
  font-weight: bold;
}

.input.loser{
  background-color: transparent;
  pointer-events: none;
  
}

.cell.input { 
  background-color: rgb(255, 255, 255);
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  font-weight: bold;
  
}

.cell.loser{
  width: 95%;
  height: 95%;
  text-align: center;
  font-weight: bold;
  font-size: 100%;
  caret-color: transparent;
  background-color: rgb(255, 47, 47);
  box-sizing: border-box;

}


.cell.genie{
  width: 95%;
  height: 95%;
  text-align: center;
  font-weight: bold;
  font-size: 100%;
  caret-color: transparent;
  background-color: rgb(64, 255, 47);
  box-sizing: border-box;
 

}




.cell input {
  border: none;
  width: 95%;
  height: 95%;
  text-align: center;
  font-weight: bold;
  font-size: 100%;
  caret-color: transparent;
  
}

.cell.incorrect {
  background-color: #FFCCCC;
}

.questions {
  margin-bottom: 10px;
  font-weight: bold;
  min-height: 0px;
  width: 95%;
  display: block;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  max-height: 10%;
  position: fixed;
  top: 0;
  
  z-index: 10;
  
}

.questions .questis {
  font-size: 20px;
  width: 100%;
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */

  background-color: rgb(158, 158, 158);
  
}





.buttContainer {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columns */
  gap: 10px;
}

.buttons {
  
  font-size: large;
  padding: 5%;
  justify-content: center;
  margin-bottom: 10px; /* Margin below the buttons */
}



.buttons button {
  width: 30%; /* 20% of screen width */
  padding: 10px;
  background-color: #adadad; /* Button color */
  color: white;
  border: none;
  cursor: pointer;
  
}

.buttons button:disabled {
  background-color: gray; /* Disabled button color */
  cursor: not-allowed;
}


.aufgeber {
  background-color: red;
  color: black;
  margin-top: 20%;
  padding-block: 20%;
  height: 10%;
  font-size: 16px;
}

.picbox {
  display: none;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.picswitchbutton{
  background: white;
  border: none;
  font-size: 3rem;
  cursor: pointer;
  border-radius: 40%;
}