body {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 100vh;
    background: rgba(230, 178, 203, 0.637);
}

#start {
    display: flex;
    flex-direction: column;
    background: white;
    padding: 60px 35px;
    border-radius: 10px;
    text-align: center;
    font-size: larger;
    color: rgba(54, 47, 50, 0.637);
    font-family: monospace;
    
}


#start h1 {
    font-family: 'Courier New', Courier, monospace;
}

input[type="radio"] {
    accent-color: #f097bf;
}

button{
    margin-top: 10px;
    padding: 10px 5px;
    background-color: #f097bf;
    border: none;
    color: white;
    border-radius: 20px;
    transition: transform .3s ease-in-out;
}

button:hover {
    background: #f86eb0;
    transform: scale(1.1);
}

#gameboard {
    gap: 15px;
    margin-top: 80px;
}

.card {
    height: 100px;
    width: 100px;
    border-radius: 12px;
    perspective: 800px;
    overflow: hidden;
    background: none;
    transition: transfor .25s ease;
    cursor: pointer;
}

.inner {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 12px;
    transform-style: preserve-3d;
    transition: transform .45s ease;
}

.front, .back {
    width: 100%;
    height: 100%;
    position: absolute;
    border-radius: 12px;
    object-fit: cover;
    backface-visibility: hidden;
}

.card.flipped .inner, .card.matched .inner, .front {
    transform: rotateY(180deg);
}

.card:not(.matched):hover {
    transform: translateY(-4px);
}

.card.matched {
    cursor: default;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.176);
}

#stats {
    display: flex;
    position: absolute;
    top: 10px;
    color: rgba(54, 47, 50, 0.637);
    background: white;
    font-size:x-small;
    padding: 2px 15px;
    border-radius: 15px;
    font-family: monospace; 
}

#popup {
    position: fixed;
    background: rgba(255, 194, 220, 0.35);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    inset: 0;
    animation: fadeIn .3s ease;
}

#popup-box {
    background: white;
    padding: 35px 40px;
    border-radius: 20px;
    text-align: center;
    font-family: monospace;
    color: rgba(54, 47, 50, 0.637);
}