/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

/* Header */
header {
    background-color: #333;
    color: #fff;
    padding: 40px 20px;
    text-align: center;
    position: relative;
}

.navbar ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    background-color: #444;
}

.navbar ul li {
    margin: 0 15px;
}

.navbar ul li a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    transition: background-color 0.3s, transform 0.3s;
}

.navbar ul li a:hover {
    background-color: #555;
    transform: scale(1.1);
}

.banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 50px;
}

/* Main Content */
main {
    padding: 20px;
    max-width: 1200px;
    margin: auto;
    margin-top: 50px;
}

.games {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 50px;
}

.game {
    border: 1px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
    width: calc(50% - 20px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    background-color: #fff;
    position: relative;
    padding: 10px;
    box-sizing: border-box;
    margin-bottom: 30px;
}

.game:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.game img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s;
}

.game:hover img {
    transform: scale(1.1);
}

.game h3 {
    margin: 10px 0;
    font-size: 1.4em;
    color: #333;
    transition: color 0.3s;
}

.game:hover h3 {
    color: #007bff;
}

.game p {
    padding: 0 10px;
    color: #666;
    font-size: 1em;
}

.game button {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #28a745;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.game button:hover {
    background-color: #218838;
    transform: scale(1.05);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    width: 80%;
    height: 80%;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

#game-container {
    width: 100%;
    height: calc(100% - 50px); /* Adjust height for timer and close button */
    margin-top: 10px;
}

#game-iframe {
    width: 100%;
    height: 100%;
}

#timer {
    margin-top: 10px;
    font-size: 1.2em;
}

#payment-info {
    margin-top: 20px;
    text-align: center;
}

#payment-info p {
    margin: 10px 0;
}

.instagram-link {
    color: #e4405f;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

.instagram-link:hover {
    color: #d62976;
    text-decoration: underline;
    transform: scale(1.1);
    letter-spacing: 0.5px;
}

#close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #e44;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px;
    cursor: pointer;
    font-size: 1.2em;
}

#close-modal:hover {
    background-color: #d44;
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px;
    position: fixed;
    width: 100%;
    bottom: 0;
    font-size: 1em;
}

footer p {
    margin: 0;
}

.shop-button, .subscribe-button {
    display: block;
    background-color: #ff0000;
    color: white;
    padding: 15px;
    text-decoration: none;
    font-size: 1.2em;
    border-radius: 5px;
    margin: 10px auto;
    width: 300px;
    text-align: center;
}
/* Payment prompt styles */
#payment-info {
    display: none; /* Initially hidden */
    position: absolute; /* Absolute positioning within the modal */
    top: 50%; /* Center vertically */
    left: 50%; /* Center horizontally */
    transform: translate(-50%, -50%); /* Centering transform */
    background-color: #fff; /* Background color */
    padding: 20px; /* Padding around the text */
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Shadow for emphasis */
    z-index: 1100; /* Ensure it's above other content */
    text-align: center; /* Center the text */
    font-size: 1.2em; /* Increase font size for better visibility */
}

/* Payment prompt text */
#payment-info p {
    margin: 0; /* Remove margin for better layout */
    font-size: 1.2em; /* Increase font size for readability */
}

