/* General Styles */
body {
    background-image: url(Background1.jpg); /* Replace with the correct path */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    overflow: hidden;
}

.game-container {
    text-align: center;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.8); /* Adds transparency to show background image */
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1.title-blue {
    color: blue;
    font-size: 24px;
    margin: 0;
}

h2.title-black {
    color: black;
    font-size: 20px;
    margin: 0;
    margin-bottom: 20px;
}

/* Word Search Grid */
#word-search-container {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 2px;
    margin: 20px auto;
    padding: 10px;
    border: 2px solid #ccc;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    touch-action: none;
    user-select: none;
    box-sizing: border-box;
}

/* Grid Cells */
#word-search-container div {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    aspect-ratio: 1; /* Ensure cells are square */
    font-size: calc(8px + 1.5vw); /* Slightly smaller font size for better fit */
    background-color: #fff;
    border: 1px solid #ccc;
    cursor: pointer;
    box-sizing: border-box;
    text-align: center;
}

#word-search-container div.selected {
    background-color: yellow;
}

#word-search-container div.found {
    background-color: lightgreen;
}

/* Word List */
#word-list {
    margin-top: 20px;
}

#word-list div {
    margin-bottom: 5px;
}

#word-list div.found {
    text-decoration: line-through;
}

.celebration-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border: 2px solid #000;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    font-size: 24px;
    text-align: center;
    z-index: 1000;
}
