body {
    font-family: Arial, sans-serif;
    text-align: center;
    margin: 20px;
    background-color: #f0f0f0;
    color: #333;
}

h1 {
    font-size: 2em;
    margin-bottom: 10px;
}

p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

#grid-container {
    display: grid;
    grid-template-columns: repeat(12, 30px);
    gap: 5px;
    justify-content: center;
    margin: 0 auto;
}

#grid-container div {
    border: 1px solid #666;
    background-color: #fff;
    text-align: center;
    line-height: 30px;
    width: 30px;
    height: 30px;
    font-weight: bold;
    font-size: 1.2em;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#grid-container div.selected {
    background-color: #90ee90; 
    color: #fff;
}

#grid-container div.found {
    background-color: #007bff; 
    color: #fff;
}

#grid-container div:hover {
    background-color: #0056b3;
    border-color: #000;
}
#congratulations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#congratulations .animation {
    text-align: center;
    animation: fadeIn 2s ease-in-out, fadeOut 2s 3s ease-in-out; 
}

#congratulations h2 {
    font-size: 3em;
    margin-bottom: 10px;
    color: #90ee90; 
}

#congratulations p {
    font-size: 1.5em;
    color: #ffffff;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.8);
    }
}

#restart-btn {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 1.2em;
    cursor: pointer;
    background-color:#0056b3;
}