/* Game container: Fixed 1000x800 window, centered */
.game-container {
    width: 1000px;
    height: 800px;
    position: relative;
    margin: 0 auto;
    overflow: hidden;
    font-family: comicsans;
    color: darkblue;
}

/* Table background (bottom layer) */
#table-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Player image (dynamic, left side of table) */
#player-image {
    position: absolute;
    bottom: 0px;
    left: 0px;
    width: 1000px;
    height: auto;
    z-index: 2;
}

/* Computer image (dynamic, right side of table) */
#computer-image {
    position: absolute;
    bottom: 0px;
    right: 0px;
    width: 1000px;
    height: auto;
    z-index: 2;
}

/* Prompt at top center */
#prompt {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    text-align: center;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    z-index: 3;
}

/* Status (lives/score) at top-left */
#status {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    gap: 20px;
    font-size: 24px;
    font-weight: bold;
    color: pink;
    text-shadow: none;
    z-index: 3;
}

/* Word bank (above player's head, upper-left) */
#word-bank {
    position: absolute;
    top: 150px;
    left: 100px;
    width: 400px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
    background-color: lightblue;
    border-radius: 8px;
    box-shadow: none;
    z-index: 3;
	cursor: pointer;
}
/* Buttons below word bank */
#refresh, #submit {
    position: absolute;
    top: 220px;
    left: 100px;
    width: 140px;
    padding: 10px;
    background-color: darkblue;
    color: pink;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    z-index: 3;
}
#refresh {
    left: 100px;
}
#submit {
    left: 260px;
}
#refresh:hover, #submit:hover:not(:disabled) {
    background-color: #218838;
}
#submit:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Constructed sentence (subtitle at bottom-center) */
#constructed-sentence {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px;
    background-color: rgba(255, 192, 203, 0.9);
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    color: #000;
    max-width: 600px;
    z-index: 3;
}

/* Computer response (subtitle at bottom-center, overlays sentence) */
#response {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 8px;
    max-width: 600px;
    text-align: center;
    color: #fff;
    z-index: 3;
}
#response-text {
    font-size: 20px;
}

/* Win screen overlay */
#win-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    background-color: rgba(0, 128, 0, 0.9);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: #fff;
    z-index: 4;
}
#win-screen button {
    margin: 10px;
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}
#win-screen button:hover {
    background-color: #0056b3;
}
#end-game-btn {
    background-color: #dc3545;
}
#end-game-btn:hover {
    background-color: #c82333;
}

/* Game over overlay */
#gameover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    background-color: rgba(255, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: #fff;
    z-index: 4;
}
#restart-btn {
    background-color: #28a745;
    margin-top: 10px;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}
#restart-btn:hover {
    background-color: #218838;
}
/* Container for streak dots (positioned above the bottom caption) */
#streak-dots {
    display: flex;
    justify-content: center; /* Centers the dots horizontally */
    gap: 10px; /* Space between dots */
    position: absolute;
	bottom: 120px;
	left: 50%;
	transform: translateX(-50%);
	border: 2px solid red;
	padding: 10px;
	width: 100%;
}

/* Base style for each dot */
.dot {
    width: 20px; /* Size of the dot */
    height: 20px;
    border-radius: 50%; /* Makes it a circle */
    background-color: rgba(0, 128, 0, 0.3); /* Semi-transparent green (inactive) */
    border: 2px solid #008000; /* Green border */
    transition: opacity 0.3s ease, background-color 0.3s ease; /* Smooth animation */
    opacity: 0.8; /* Dimmed when inactive */
}

/* Active dot style (lights up) */
.dot.active {
    opacity: 1; /* Fully visible */
    background-color: #00FF00; /* Bright green fill */
    box-shadow: 0 0 10px #00FF00; /* Optional glow effect */
}

/* Selected words (hidden, for internal logic) */
#selected-words {
    display: none;
}