* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: rgba(0, 0, 0, 0.68);
    overflow-x: hidden;
    color: white;
    height: 100vh;
    width: 100vw;
}

h1 {
    margin-top: 5vh;
    margin-left: 40vw;
    margin-bottom: 5vh;
    background-color: black;
    width: fit-content;
    padding: 5px 10px;
}

.container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    width: 40vw;
    height: 40vh;
    gap: 20px;
    margin-left: 30vw;
}

.card {
    position: relative;
    height: 22vh;
    width: 8vw;
    perspective: 1000px;
}

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

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
}

.card-front {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.card-back {
    transform: rotateY(180deg);

}

.card-back img {
    height: 22vh;
    width: 8vw;
    border: 0.5px solid white;
}

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

.restart button {
    font-size: 20px;
    padding: 5px 10px;
    color: white;
    background-color: black;
    border-radius: 10px;
    position: relative;
    margin-top: 35vh;
    margin-left: 45vw;
}

.restart button:hover {
    font-size: 21px;

}

.restart p {
    color: white;
    background-color: black;
    border-radius: 10px;
    padding: 5px 10px;
    width: fit-content;
    position: relative;
    top: -10vh;
}