﻿    .win-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.7);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 1000;
    }

    .win-modal p {
        font-size: 12px;
    }

    .win-content {
        background: white;
        padding: 20px;
        border-radius: 10px;
        text-align: center;
        animation: popin 0.4s ease-out;
        width: 340px;
    }

    .win-modal.hidden {
        display: none;
    }

    .tile {
        width: 100%;
        aspect-ratio: 1/1;
        height: auto;
        display: block;
    }

        .tile.active {
            outline: 3px solid #4CAF50;
            box-shadow: 0 0 10px red;
            transform: scale(0.97);
            transition: transform 0.2s;
            animation: tilePulse 1.2s infinite ease-in-out;
        }

    #puzzle {
        display: grid;
        width: 100%;
        gap: 0;
        margin: auto;
        position: relative;
    }

    #puzzle-loading {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--darkBlue);
        color: var(--textWhite1);
        font-size: 18px;
        font-weight: 500;
        z-index: 10;
    }

    @keyframes popin {
        from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.vertical-bar {
    width: 5px;
    padding: 0;
    margin: 5px 0px 5px 30px;
    background-color: var(--skyBlue);
}
.horizontal-bar {
    background-color: var(--skyBlue);
    height: 4px;
    width: 100%;
    margin: 40px 0px 40px 0px;
}

.flip-card {
    perspective: 800px;
}

.flip-inner {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    transform-style: preserve-3d;
    transition: transform .6s ease;
}

    .flip-inner.flipped {
        transform: rotateY(180deg);
    }

.flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    background: black;
}
.flip-front {
    transform: rotateY(180deg);
    backface-visibility: hidden;
}