/* Combined fixed block for top content */
        .cluesContainer {
	    /*position clues behind the cube and centered */
	    position: fixed;
	    top: 0;
	    left: 0;
	    width: 100%;
	    height: 100%;
	    justify-content: center;
	    align-items: center;
	    z-index: 2;
	}
	.cube {
	    
	    position: fixed;;
	    top : 25%;
	    width: 250px;
	    height: 250px;	
	    /* center the cube */
	    margin: 0 auto;
	    transform-style: preserve-3d;
	    transform: rotateX(-30deg) rotateY(45deg);
	    transition: transform 1s;
	}
	.mark {
	    background-color: rgba("yellow", 0.5);
	}
	.cube-side {
	    position: absolute;
	    /*border: 1px solid #000;*/
	    background-color: #fff;
	}
	/*.top { transform: rotateX(90deg) translateZ(150px) }
	.front { transform: translateZ(150px); }
	.right { transform: rotateY(90deg) translateZ(150px); }
	.back { transform: rotateY(180deg) translateZ(150px); }
	.left { transform: rotateY(-90deg) translateZ(150px); }
	.bottom { transform: rotateX(-90deg) rotateY(360deg) rotateZ(-90deg) translateZ(150px) ; }
	*/
	.cube-cell {
	    width: 25px;
	    padding: 0;
	    margin: 0;
	    border: 0;
	    height: 25px;
	    text-align: center;
	    vertical-align: middle;
	    font-size: 12px;
	    cursor: pointer;
	    transition: background-color 0.8s;
	}
	
	td {  
	    cursor: pointer;
	    contenteditable: true;
	}
        
        
.fixed-top-block {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #f4f4f4;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* First row: subject + button */
.subject-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60px;
  padding: 4px;
  gap: 4px;
}

/* Prevents resizing */
/* make aiPrompt and buttons the same height */
#aiPrompt {
  display: flex;
	/* make sure the input is the same height as the buttons */
	/* make work on mobile as well as desktop */
  width: 35%;
  height: 20px;
  font-size: 1.5rem;
  padding: 0.5rem;
}
#aiPrompt:focus {
  outline: none;
  border: 1px solid #007bff;
}
#subject-input::placeholder {
  color: #999;
}

/* Button styling */
#generate-button {
  height: 2em;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
#generate-button:hover {
  background-color: #0056b3;
}
/* Button for generating the crossword */
#subject-generate-crossword,
#subject-get-words {
  height: 20px;
  width: 25%;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

/* Second row: fixed definition display 
.defDisplay {
  height: 50px;
  line-height: 50px;
  text-align: center;
  font-weight: bold;
  border-top: 1px solid #ccc;
  background-color: #fff;
}
*/

/* Push the main content down so it’s not under the fixed header */
#main-container {
  margin-top: 120px; /* 60 + 40 + 10px spacing */
  background: solid;
}
/* Reset and basic styling */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Top fixed container for both subject and definition display */
.top-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #f4f4f4;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Row 1: subject + button */
.subject-wrapper {
  display: flex;
  justify-content: left;
  align-items: center;
  padding: 10px;
  gap: 10px;
}

/* Row 2: definition display */
.defDisplay {
  width: 100%;
  text-align: left;
  font-weight: bold;
  padding: 10px;
  border-top: 1px solid #ccc;
  z-index: 1001; /* Ensure it’s above other content */
}


body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

table {
    border-collapse: collapse;
    margin: 0;
    border: 0;
    padding: 0;
    margin: 0;
}

.crossword-cell {
    background-color: white;
    margin: 0;
    border: none;
    padding: 0;
    width: 15px;
    height: 15px;
    text-align: center;
    /*font-size: 20px;*/
}

.crossword-cell-empty {
    background-color: black;
    border-color: black;
    margin: 0;
    border: none;
    padding: 0;
    width: 15px;
    height: 15px;
    text-align: center;
    /*font-size: 20px;*/
}

.hamburger-menu {
    position: relative;
}

.hamburger-icon{
    font-size: 30px;
    cursor: pointer;
    padding: 10px;
}

.hamburger-icon2{
    font-size: 30px;
    cursor: pointer;
    padding: 10px;
    color: white;
}

.side-panel {
    width: 0;
    position: fixed;
    height: 100%;
    top: 0;
    left: 0;
    background-color: #111;
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;
    z-index: 1002
}

.side-panel button {
    padding: 10px;
    text-align: left;
    border: none;
    background: none;
    color: white;
    width: 100%;
    font-size: 20px;
    cursor: pointer;
    transition: 0.3s;
}

.side-panel button:hover {
    background-color: #575757;
}

.content {
   /* padding: 20px;*/
}

.hidden {
    display: none;
}

.visible {
    display: block;
}
