.ts {
    margin-bottom: 60px;
    color: rgb(0, 0, 0);
    margin-left: 20px;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    font-size: 70px;
}

body {
    background: linear-gradient(to bottom, #87c8ff 70%, #7ed957 70%);
    min-height: 100vh;
    text-align: center;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.games {
    background: white;
    padding: 40px;
    border-radius: 20px;
    width: 900px;
    margin: auto;
}

.memogame,
.memgame,
.memogam {
    display: inline-block;
}

.memogame img,
.memgame img,
.memogam img {
    height: 350px;
    width: auto;
    margin: 20px;
    border-radius: 20px;
}

.memogame img {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.memogame img:hover {
    transform: scale(1.03);
}

.forkds a {
    text-decoration: none;
    color: black;
    font-weight: bold;
}

.forkds {
    position: absolute;
    top: 20px;
    left: 20px;
    font-weight: bold;
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 700px;
    text-align: center;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

.game-board {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(4, 100px);
    gap: 15px;
    justify-content: center;
}

.card {
    width: 100px;
    height: 100px;
    background-color: #ffb3b3;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    user-select: none;
    font-weight: bold;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.question-mark {
    font-size: 40px;
    color: white;
}

.card.flipped {
    background-color: #fff0a6;
}

.card.matched {
    background-color: #9be79b;
    cursor: default;
}