
#meowdoku {
    --meowdoku-size: 5;

    display: grid;

    grid-template-columns:
        repeat(var(--meowdoku-size), 54px);

    grid-template-rows:
        repeat(var(--meowdoku-size), 54px);

    gap: 5px;

    width: max-content;

    margin-left: auto;
    margin-right: auto;

    padding: 6px;

    background-color: #222;

    border: 2px solid #000;

    border-radius: 10px;

    box-sizing: border-box;
}

.meow-cell {
    position: relative;

    width: 54px;
    height: 54px;

    padding: 0;

    border: 2px solid rgba(0, 0, 0, 0.30);

    border-radius: 7px;

    cursor: pointer;

    box-sizing: border-box;

    transition:
        transform 0.12s ease,
        filter 0.12s ease,
        box-shadow 0.12s ease;

    appearance: none;
}

.meow-cell:hover {
    transform: scale(0.94);

    filter: brightness(1.10);

    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.80);
}

.meow-cell:focus {
    outline: 3px solid #0066FF;

    outline-offset: 2px;
}

.meow-cell:active {
    transform: scale(0.88);
}

.meow-cell.revealed {
    cursor: default;
}

.meow-cell.revealed:hover {
    transform: none;

    filter: none;

    box-shadow: none;
}

.meow-cell.empty {
    opacity: 0.58;
}

/*
.empty-symbol {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    color: rgba(255, 255, 255, 0.75);

    font-size: 26px;

    font-weight: bold;
}
*/

.empty-symbol {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

/*    color: rgba(255, 255, 255, 0.75);*/

    font-size: 28px;

    font-weight: bold;

	color: #D3D3D3; /* Gris clair à l'intérieur des traits*/
	-webkit-text-stroke: 2px #000000; /* Épaisseur et couleur du contour */
}

.meow-cell.has-cat {
    background-color: #FFFFFF !important;

    border: 3px solid #222;

    animation: catFound 0.45s ease;
}

.cat {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    font-size: 32px;

    line-height: 1;

    animation: catAppear 0.35s ease;
}

@keyframes catAppear {

    0% {
        transform: scale(0);
        opacity: 0;
    }

    70% {
        transform: scale(1.20);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes catFound {

    0% {
        transform: scale(0.80);
    }

    60% {
        transform: scale(1.10);
    }

    100% {
        transform: scale(1);
    }
}

#meowdoku.completed {
    border: 2px solid #000;
/*  Bordure avec ombre jaune entourant la grille et qui ne disparaît plus en cas de clique sur "Nouveau jeu"  
		box-shadow:
        0 0 0 4px #FFD700,
        0 0 20px rgba(255, 215, 0, 0.65);
*/
}

#message {
    margin-top: 15px;

    min-height: 24px;

    text-align: center;

    font-weight: bold;

    line-height: 1.5;
}

#colorStatus {
    margin-top: 12px;

    text-align: center;
}

.status-title {
    margin-bottom: 7px;

    font-weight: bold;
}

.status-colors {
    display: flex;

    align-items: center;
    justify-content: center;

    flex-wrap: wrap;

    gap: 7px;
}

.status-color {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;

    border: 2px solid #555;

    border-radius: 50%;

    box-sizing: border-box;

    opacity: 0.35;

    font-size: 17px;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.status-color.found {
    opacity: 1;

    transform: scale(1.08);

    border-color: #222;

    box-shadow:
        0 0 5px rgba(0, 0, 0, 0.40);
}

#nouveau {
    width: auto;
    height: auto;

    margin-bottom: 10px;

    padding: 14px 16px !important;

    border-radius: 8px;

    border: 2px solid #2B7CFF;

    background:
        linear-gradient(
            #FFFFFF,
            #EEF6FF
        );

    cursor: pointer;

    font-weight: 550;

    font-size: 15px;
}

#nouveau:hover {
    background:
        linear-gradient(
            #F4F9FF,
            #DCEBFF
        );

    color: #0066CC;
}

#gridSize,
#difficulty {
    font-size: 14px;

    font-weight: bold;

    padding: 5px;

    outline: none;

    border-color: #0066CC;

    box-shadow:
        0px 0px 0px 0.5px #0066CC;

    border-radius: 3px;
}

#gridSize:hover,
#difficulty:hover {
    background-color: #F0F0F0;

    color: #FF0000;
}

.devinernum {
    margin-left: 0px;
    margin-right: 0px;

    margin-top: -10px;
    margin-bottom: -10px;
}

.txtmobile {
    display: none;
}

.txtnormal {
    display: block;
}

@media only screen and (max-width: 700px) {

    #meowdoku {
        grid-template-columns:
            repeat(var(--meowdoku-size), 42px);

        grid-template-rows:
            repeat(var(--meowdoku-size), 42px);

        gap: 4px;

        padding: 5px;
    }

    .meow-cell {
        width: 42px;
        height: 42px;

        border-radius: 6px;
    }

    .cat {
        font-size: 26px;
    }

    .empty-symbol {
        font-size: 21px;
    }

    .txtmobile {
        display: block;
    }

    .txtnormal {
        display: none;
    }

    #nouveau {
        padding: 16px 14px !important;
    }

    .status-color {
        width: 27px;
        height: 27px;

        font-size: 15px;
    }
}

@media only screen and (min-width: 701px)
and (max-width: 900px) {

    .txtmobile {
        display: block;
    }

    .txtnormal {
        display: none;
    }
}
