body {
    font-family: Arial, sans-serif;
    text-align: center;
    background-image: url(https://media0.giphy.com/media/v1.Y2lkPTc5MGI3NjExdTJ0YXY0MHl0Y2g0Yno4Mjlxbm8xcm1mM2V6Z2QwbDFoYWhmNGZjeCZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/FlodpfQUBSp20/giphy.gif); 
    color: white;
}
body.index-page {
    display: flex;
    flex-direction: column;
    justify-content: center; /* vertical center */
    align-items: center; /* horizontal center */
    height: 100vh;
    margin: 0;
    text-align: center;
}
body.game {
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center;     
    min-height: 100vh;
    margin: 0;
    text-align: center;
}


.board {
    display: grid;
    grid-template-columns: repeat(4, 100px); /* 4 columns for the board */
    gap: 15px;
    justify-content: center;
    margin-top: 50px;
}
.card {
    width: 100px;
    height: 100px;
    background-color: white; 
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 40px;
    cursor: pointer;
    transform: rotateY(180deg); /* Start flipped aka not show the text on the card */
    transition: transform 0.5s;
}
.card:hover {
    background-color: #dadada; /* Slightly darker on hover */
}
.card.flipped {
    background: white; 
    transform: rotateY(0deg); /* Show the card when flipped */
}
.button {
    padding: 10px 20px;
    font-size: 16px;
    margin-top: 20px;
    cursor: pointer;
    background-color: #28a745; /* Green button */
    color: white;
    border: none;
    border-radius: 5px;
    transition: 0.1s;
}
.button:hover { /* Makes the button inverted on hover */
    background-color: #fff; 
    color: black;
    border: #28a745 4px solid;
}