body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-image: url('gifs/Space\ Background\(1\).png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}
.game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#timer {
    font-size: 1.5em;
    margin-bottom: 1em;
}

#grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.card {
    width: 100px;
    height: 100px;
    background-color: transparent;
    cursor: pointer;
    perspective: 1000px;
    border-radius: 5px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}


.card.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2em;
}

.card-front {
    background-color: #ffffff;
}

.card-back {
    background-color: #9e9e9e;
    transform: rotateY(180deg);
}
.card-logo {
    font-size: 3em;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.matched .card-inner {
    visibility: hidden;
}
.matched {
    pointer-events: none;
}
#grid-container {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}
