/* Updated CSS-Datei: styles.css */
:root {
    color-scheme: light;
}
   .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
  }

  .hidden {
    display: none;
  }

  .dialog-box {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }

  .dialog-box button {
    margin: 10px;
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
  }

  .dialog-box button:hover {
    background-color: #ddd;
  }

  body {
            font-family: Arial, sans-serif;
            padding: 0;
            overflow-x: hidden;
            margin: 0px;
			background-color: white !important!;
        }	
		
       #nonogram {
            margin-top: 0px;
			overflow-x: auto;  /* Allows horizontal scrolling if the table is too wide */
			width: 100%;       /* Takes the full width of the screen */			
        }

    .overlay-text {
      color: white;
      font-size: 24px;
      text-align: center;
      padding: 20px;
      background: rgba(0, 0, 0, 0.8);
      border-radius: 10px;
      box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    }
        .cell {
            width: 25px;
            height: 25px;
            text-align: center;
            vertical-align: middle;
            border: 1px solid #ccc;
            display: table-cell;
            line-height: 25px;
            font-size: 12px;
            box-sizing: border-box;
            cursor: pointer;
			margin:0;
        }

		@media (prefers-color-scheme: light) {
			.empty {
				background-color: #FFF !important;
			}
			.filled {
				background-color: black !important;
			}
			.marked {
				background-color: lightgray !important;
			}
		}
		@media (prefers-color-scheme: dark) {
			.empty {
				background-color: #FFF !important;
			}
			.filled {
				background-color: black !important;
			}
			.marked {
				background-color: #888 !important;
			}
		}
		/* Bouncing animation keyframes */
		@keyframes bounce {
			0% {
				transform: scale(1);
			}
			20% {
				transform: scale(1.2);
			}
			50% {
				transform: scale(0.9);
			}
			100% {
				transform: scale(1);
			}
		}

		/* Define bounce class for animation */
.bounce {
    animation: bounce 0.3s ease-out;
    transform-origin: center;

}
        .clue {
            background-color: #f7f7f7;
            font-weight: bold;
            display: table-cell;
			color: black;
        }
        .clue.satisfied {
            color: "gray";
        }
		.table-wrapper {
			overflow-x: auto;  /* Enables horizontal scrolling */
			width: 100%;       /* Full width of the screen */
		}		
        table {
            border-collapse: collapse;
            display: table;
            width: max-content;
        }
        tr {
            display: table-row;
        }
        td {
            border: 1px solid #ccc;
            text-align: center;
            vertical-align: middle;
        }
        /* Darker grid lines every 5th row/column */
        .thick-border {
            border: 3px solid #ccc;
        }
        .border-highlight-left {
            border-left: 3px solid #ccc;
        }
        .border-highlight-bottom {
            border-bottom: 3px solid #ccc;
        }
        .border-highlight-right {
            border-right: 3px solid #ccc;
        }
        .border-highlight-top {
            border-top: 3px solid #ccc;
        }
        #controls {
            margin-top: 20px;
			display: none;
        }
        #controls0 {
            margin-top: 10px;
			display: none;
        }
        #feedback {
            margin-top: 10px;
            margin-bottom: 20px;
            font-weight: bold;
        }
        #hintButton {
            margin-left: 10px;
        }

        header {
            position: fixed;
			width: 100%;
            padding: 10px;
            background: #f8f9fa;
            overflow: hidden;
        }

		main {
			padding-top: 90px; /* Adjust this value based on your header height */
		}

        .top-bar {
            display: flex;
            justify-content: flex-start;
            align-items: center;
        }

        .hamburger-menu {
            display: none;
            font-size: 24px;
            background: none;
            border: none;
            cursor: pointer;
            z-index: 2;
            position: relative;
       }

.hamburger-menu .menu-icon, 
.hamburger-menu .menu-icon::before, 
.hamburger-menu .menu-icon::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 3px;
    background-color: #000;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

@media (prefers-color-scheme: dark) {
	.hamburger-menu .menu-icon, 
	.hamburger-menu .menu-icon::before, 
	.hamburger-menu .menu-icon::after {
		content: '';
		position: absolute;
		width: 20px;
		height: 3px;
		background-color: #000;
		transition: transform 0.3s ease, opacity 0.3s ease;
	}
}

/* Create the hamburger bars */
.hamburger-menu .menu-icon::before {
    top: -8px;
    left: 0;
}

.hamburger-menu .menu-icon::after {
    top: 8px;
    left: 0;
}

/* Transform the bars to an "X" when active */
.hamburger-menu.is-active .menu-icon {
    background-color: transparent;
}

.hamburger-menu.is-active .menu-icon::before {
    transform: rotate(45deg);
    top: 0;
}

.hamburger-menu.is-active .menu-icon::after {
    transform: rotate(-45deg);
    top: 0;
}

        .logo {
            margin-left: 10px;
        }

        .main-menu {
            position: fixed;
            top: 0;
            left: -100%;
            width: 250px;
            height: 100%;
            background: #f8f9fa;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            z-index: 1;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            padding-top: 60px;
            transition: left 0.3s ease-in-out;
        }

        .main-menu ul {
            list-style-type: none;
            padding: 0;
            margin: 0;
            width: 100%;
        }

        .main-menu ul li {
            margin: 0;
            padding: 10px;
            width: 100%;
            text-align: left;
        }

        .main-menu ul li a {
            text-decoration: none;
            color: #333;
            display: block;
        }

        .main-menu.active {
            left: 0;
        }

        footer {
            padding: 20px;
            background: #e9ecef;
            text-align: center;
        }

        .footer-menu ul {
            list-style-type: none;
            padding: 0;
            display: flex;
            justify-content: center;
        }

        .footer-menu ul li {
            margin: 0 10px;
        }

        .footer-menu ul li a {
            text-decoration: none;
            color: #333;
        }
		
  * {
    box-sizing: border-box;
  }

/* General Button Styling for a Fresh Green Look */
button:not(.hamburger-menu) {
  background-color: #4CAF50; /* Fresh green background */
  color: white !important; /* White text color */
  font-size: 16px; /* Slightly larger font */
  padding: 10px 20px; /* Padding for a comfortable button size */
  border: none; /* Remove default border */
  border-radius: 8px; /* Rounded corners */
  cursor: pointer; /* Pointer cursor on hover */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  transition: background-color 0.3s ease, box-shadow 0.3s ease; /* Smooth hover transition */
}

/* Hover Effect for Buttons */
button:hover:not(.hamburger-menu) {
  background-color: #45a049; /* Darker green on hover */
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15); /* Slightly larger shadow on hover */
}

/* Close Button Specific Styling (X button in top-right corner) */
.close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 20px;
  color: white;
  background-color: #AF4C50;
  border-radius: 50%; /* Make it circular */
  padding: 5px 5px;
  width: 35px;
  height: 35px;
  line-height: 1.5; /* Center "X" within the button */
}

#zoomInButton, #zoomOutButton {
    background-color: #A0FEA0 !important; /* Light green background */
    color: grey;
    font-size: 16px;
    padding: 5px 10px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#zoomInButton:hover, #zoomOutButton:hover {
    background-color: #80DE80 !important; /* Slightly darker green on hover */
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

#hintButton {
    background-color: #A0FEA0 !important; /* Light green background */
    color: grey;
    font-size: 12px;
    padding: 5px 10px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#hintButton:hover {
    background-color: #80DE80 !important; /* Slightly darker green on hover */
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

#show-qr-reader-btn {
  font-size: 12px;
  padding: 5px 10px;
  background-color: #504CAF; 
  margin-top: 5px;
}


.close-button:hover {
  background-color: #DF5C60; /* Darker green on hover */
}
.hidden {
	 display: none;
}

.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Optional: semi-transparent background */
    z-index: 9999; /* High z-index to ensure it's in front */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white; /* Optional: text color */
    font-size: 24px; /* Optional: text size */
}

  .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
  }
#qr-reader-container {
  flex-direction: column; /* Stack elements vertically */
  align-items: center; /* Center-align content */
}
  .block {
    padding: 10px;
    margin: 10px;
    text-align: center;
  }
 

		/* Responsive layout for screens smaller than 760px */		
        @media (max-width: 768px) {
    .leftblock {
    background-color: lightblue;
    width: 100%;
	}
    .rightblock {
    width: 100%;
	}
	
	.qr-reader {
		width: 100%;
	}

			.varblock {
			  width: 100%;
			}

			#show-qr-reader-btn {
				display: inline;
			}
			
			.logo img {
				height: 60px;
			}
			
            .hamburger-menu {
                display: block;
            }

            .main-menu {
                display: flex;
            }

            .hamburger-only {
                display: block;
            }
			#main1 {
				background-color:none
			}
			#main2 {
				background-color:none
			}

            .footer {
                display: none;
            }

            .footer-menu {
                display: none;
            }

            .top-bar {
                justify-content: flex-start;
            }

            .logo {
                margin-left: 20px;
                display: flex;
                align-items: center;
            }
        }

        @media (min-width: 769px) {
		  .varblock {
			width: calc(90% - 370px);
		  }
			.leftblock {
				background-color: lightblue;
				width: 170px;
			}
			.rightblock {
			width: 200px;
			}
			.qr-reader {
				width: 300px;
			}
			#show-qr-reader-btn {
				display: inline;
			}
			
            .top-bar {
                justify-content: center;
            }

			.logo img {
				height: 90px;
			}

            .hamburger-menu {
                display: none;
            }

            .main-menu {
                display: flex;
                position: static;
                height: auto;
                width: 100%;
                flex-direction: row;
                align-items: center;
                justify-content: center;
                box-shadow: none;
                padding-top: 0;
                transition: none;
            }

            .main-menu ul {
                display: flex;
                justify-content: center;
            }
			main {
				padding-top: 160px; /* Adjust this value based on your header height */
			}
			.always {
                display: flex;
                justify-content: center;
            }
            .hamburger-only {
                display: none;
            }
			#main1 {
				background-color:#F0F0FF
			}
			#main2 {
				background-color:#FFFFF0
			}
        }
	
#my-qr-reader {
    padding: 20px !important;
    border: 1.5px solid #b2b2b2 !important;
    border-radius: 8px;
}

#my-qr-reader img[alt="Info icon"] {
    display: none;
}

#my-qr-reader img[alt="Camera based scan"] {
    width: 100px !important;
    height: 100px !important;
}

#html5-qrcode-anchor-scan-type-change {
    text-decoration: none !important;
    color: #1d9bf0;
}

video {
    width: 100% !important;
    border: 1px solid #b2b2b2 !important;
    border-radius: 0.25em;
}