/* Word Search Game Styles */

/* Screen Management */
.screen {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hidden {
    display: none;
}

/* Start Screen */
#start-screen {
    text-align: center;
}

#start-screen h2 {
    font-size: 3rem;
    color: #00699F;
    margin-bottom: 1rem;
}

#start-screen p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

#start-button {
    padding: 1rem 2rem;
    font-size: 1.5rem;
    background-color: #00699F;
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-family: "League Spartan", sans-serif;
}

#start-button:hover {
    background-color: #005080;
}

/* Game Screen */
.game-container {
    display: flex;
    width: 100%;
    height: 100%;
}

/* Word Search Grid */
.word-search-container {
    width: 70%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.word-search-grid {
    display: grid;
    gap: 0.25rem;
    background-color: #f0f0f0;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

.grid-cell {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 0.25rem;
    font-weight: bold;
    font-size: 1.2rem;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}

.grid-cell:hover {
    background-color: #e8f4ff;
}

.grid-cell.selected {
    background-color: #b3d9ff;
}

.grid-cell.found {
    background-color: #d4edda;
    color: #00699F;
    font-weight: 700;
}

.selecting .grid-cell.highlighted {
    background-color: #b3d9ff;
}

/* Word List */
.word-list-container {
    width: 30%;
    padding: 1rem;
	margin-left:2rem;
}

.word-list-container h3 {
    color: #00699F;
    margin-bottom: 1rem;
}

.word-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.word-list li {
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 0.25rem;
    transition: all 0.5s ease;
    display: none;
}

.word-list li.found {
    transition: all 0.5s ease;
    text-decoration: line-through;
    color: #258174;
    background-color: rgba(37, 129, 116, 0.1);
    display: block;
}

/* End Screen - Overlay */
#end-screen.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

#end-screen.hidden{
display:none !important;
}

.congrats-message {
    z-index: 110;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.congrats-message h2 {
    font-size: 3rem;
    color: #00699F;
    margin-bottom: 1rem;
}

.congrats-message p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

#play-again-button {
    padding: 1rem 2rem;
    font-size: 1.5rem;
    background-color: #00699F;
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-family: "League Spartan", sans-serif;
}

#play-again-button:hover {
    background-color: #005080;
}

#confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 101;
    pointer-events: none;
}

.confetti {
    position: absolute;
    z-index: 102;
    animation-iteration-count: infinite !important;
} 