* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    position: relative;
}
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
#grid th, #grid td {
    width: 200px;
    height: 150px;
    text-align: center;
    vertical-align: middle;
    border: 2px solid #000;
    cursor: pointer;
    overflow: hidden;
}
#grid th img, #grid td img {
    max-width: 100%;
    max-height: 100%;
}
#grid td {
    background-color: #f0f0f0;
}
#grid th {
    background-color: #e0e0e0;
}
#grid td.correct-answer {
    background-color: #d4edda;
}
#grid td.wrong-answer {
    background-color: #f8d7da;
}
.card-logo {
    width: 40px;
    height: 40px;
}
.tick {
    font-size: 24px;
    display: inline-block;
}
.card-name {
    display: inline-block;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cell-content {
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    white-space: normal;
}

#grid td.correct-answer {
    background-size: cover; /* Ensure the image covers the entire cell */
    background-repeat: no-repeat; /* Prevent the image from repeating */
}

/* Media Queries for Responsiveness */
@media (max-width: 800px) {
    #grid th, #grid td {
        position: relative; /* contain the absolute positioning of children */
        width: 24%; /* set the width to 24% of the parent container (e.g., table) */
        height: 120px;
    }
}
@media (max-width: 600px) {
    #grid th, #grid td {
        height: 100px;
    }
}
@media (max-width: 500px) {
    #grid th, #grid td {
        height: 85px;
    }
}
@media (max-width: 400px) {
    #grid th, #grid td {
        height: 75px;
    }
}




