/* style.css */
:root {
    --background-color: #121212;
    --surface-color: #1E1E1E;
    --primary-color: #BB86FC;
    --secondary-color: #03DAC6;
    --text-color: #E0E0E0;
    --error-color: #CF6679;
}

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
}

header {
    background-color: var(--surface-color);
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.game-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Creates three columns */
    gap: 20px;
    padding: 20px;
}

.discount-info {
    position: absolute;
    opacity: 0.9; /* Adjust for desired visibility */
    pointer-events: none; /* Prevents the overlay from interfering with clicks */
    color: white; /* Change the color if needed for better visibility */
    z-index: 1;

    position: absolute;
    background-color: #ff4444; /* Bright red for visibility, adjust as needed */
    color: white;
    padding: 5px 10px;
    margin-left: 15px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 16px;
    z-index: 1;
}

/* Scaling down images */
.game-card img {
    width: 100%; /* Ensures the image is responsive and fits the container */
    max-height: 250px; /* Adjust this value as needed */
    object-fit: cover; /* This will cover the area without stretching the image */
    transition: opacity 0.3s ease;
}

@media screen and (max-width: 768px) {
    .game-container {
        grid-template-columns: repeat(2, 1fr); /* Adjust to two columns on smaller screens */
    }
}

@media screen and (max-width: 480px) {
    .game-container {
        grid-template-columns: 1fr; /* Single column layout on very small screens */
    }
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.game-card img {
    position: relative;
    width: 100%;
    height: auto;
    transition: opacity 0.3s ease;
}

.medal-overlay {
    position: absolute;

    font-size: 48px; /* Adjust size as needed */
    opacity: 0.9; /* Adjust for desired visibility */
    pointer-events: none; /* Prevents the overlay from interfering with clicks */
    color: white; /* Change the color if needed for better visibility */
    z-index: 1;
}

.game-card img:hover {
    opacity: 0.8;
}

.game-card h2, .game-card p {
    margin: 16px;
}

.purchase-button {
    background-color: var(--primary-color);
    color: black;
    border: none;
    padding: 12px 24px;
    text-align: center;
    text-decoration: none;
    display: block;
    font-size: 16px;
    margin: 16px auto;
    cursor: pointer;
    transition: background-color 0.3s ease;

    background-color: #BB86FC; /* Material Design's purple */
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease; /* Smooth transition for color and slight scale */
    position: relative; /* Needed for pseudo-elements */
    overflow: hidden; /* Ensures the underline doesn't extend outside the button */
}

.purchase-button:hover {
    background-color: #ff575a; /* A darker shade for contrast */
    color: #FFF; /* Ensures legibility */
    transform: scale(1.05); /* Slightly larger to draw attention */
    box-shadow: 0 4px 8px rgba(0,0,0,0.7); /* Deeper shadow for a "lifting" effect */
}

footer {
    background-color: #121212; /* Dark background */
    color: #E0E0E0; /* Light text color */
    text-align: center;
    padding: 20px 0;
    margin-top: 40px; /* Adds some space between the content and the footer */
    box-shadow: 0 -2px 4px rgba(0,0,0,0.5); /* Subtle shadow for depth */
}

footer p {
    margin: 0;
    padding: 0;
    font-size: 16px;
}

footer a {
    color: #BB86FC; /* Material Design's purple, for contrast and visibility */
    text-decoration: none; /* Optional: removes the underline */
}

footer a:hover {
    text-decoration: underline; /* Adds underline on hover for interaction feedback */
}
