:root {
    --bg-color: #f0f0f0;
    --text-color: red;
    --text-hover: black;
    --button-bg: #007bff;
    --button-hover: #0056b3;
}

[data-theme="dark"] {
    --bg-color: #121212;
    --text-color: white;
    --text-hover: black;
    --button-bg: #1e90ff;
    --button-hover: #0056b3;
}

body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background-color: var(--bg-color);
    margin: 0;
    transition: background 0.3s;
}

div {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    max-width: 600px;
}

section {
    width: 280px;
    height: 400px;
    background: center/cover;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, filter 0.3s ease;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

section:nth-child(1) { background-image: url("/public/images/jack_of_hearts2.png"); }
section:nth-child(2) { background-image: url("/public/images/king_of_hearts2.png"); }
section:nth-child(3) { background-image: url("/public/images/queen_of_hearts.png"); }
section:nth-child(4) { background-image: url("/public/images/red_joker.png"); }

section h1, section p {
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    transform: translateY(10px);
}

section:hover h1, section:hover p {
    opacity: 1;
    transform: translateY(0);
}

section:hover {
    transform: scale(1.05);
}



button {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    background-color: var(--button-bg);
    color: white;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s;
    width: 200px;
}

button:hover {
    background-color: var(--button-hover);
}


@media only screen and (max-width: 768px) {
    body {
        justify-content: center;
        align-items: center;
    }
}