:root {
    --bg-color: #f0f4f8;
    --text-color: #333;
    --box-bg-color: #f9f9f9;
    --header-bg-color: #007bff;
    --button-bg-color: #007bff;
    --button-hover-bg-color: #0056b3;
}

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
}

header {
    background-color: var(--header-bg-color);
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
}

h1 {
    margin: 0;
}

.nav {
    display: flex;
    gap: 15px;
}

.nav a {
    color: white;
    text-decoration: none;
    font-size: 16px;
}

.nav a:hover {
    text-decoration: underline;
}

#insideBox, #popularGames {
    border: 2px solid var(--button-bg-color);
    border-radius: 10px;
    padding: 15px;
    background: var(--box-bg-color);
    margin: 20px auto;
    width: 300px;
}

select, button, input {
    margin: 10px;
    padding: 10px;
    font-size: 16px;
    border: 2px solid var(--button-bg-color);
    border-radius: 5px;
    background: #ffffff;
    color: var(--button-bg-color);
    transition: background 0.3s, color 0.3s;
}

select:hover, button:hover, input:hover {
    background: var(--button-bg-color);
    color: #ffffff;
}

#customLinkBox {
    display: none;
}

.popular-button {
    display: block;
    margin: 10px auto;
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    background: var(--button-bg-color);
    color: white;
    cursor: pointer;
    transition: background 0.3s;
}

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

#bookmarkContainer {
    display: none;
    position: fixed;
    top: 10px;
    right: 10px;
    border: 2px solid var(--button-bg-color);
    border-radius: 10px;
    background: var(--box-bg-color);
    padding: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

#bookmarkList {
    margin-top: 10px;
}

.bookmark-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.bookmark-item a {
    color: var(--button-bg-color);
    text-decoration: none;
}

.bookmark-item a:hover {
    text-decoration: underline;
}

.bookmark-item button {
    background: #ff0000;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
}

.bookmark-item button:hover {
    background: #cc0000;
}

/* Styles for the Data Page */
#dataPage .container {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
    background-color: var(--box-bg-color);
    border-radius: 8px;
}

/* Section and header styles for consistency */
#dataPage header {
    background-color: var(--header-bg-color);
    padding: 20px;
    text-align: center;
    color: white;
    border-radius: 8px;
}

#dataPage section {
    margin: 20px 0;
    padding: 20px;
    background-color: var(--box-bg-color);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Button style for theme toggle */
#dataPage footer button {
    background-color: var(--button-bg-color);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

#dataPage footer button:hover {
    opacity: 0.8;
}
/* Existing CSS rules */

#downloadSection {
    margin: 20px auto;
    padding: 15px;
    background: var(--box-bg-color);
    border-radius: 10px;
    text-align: center;
    border: 2px solid var(--button-bg-color);
}

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

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

#contactInfo h2 {
    margin-top: 0;
    color: var(--header-bg-color);
}

#contactInfo p {
    font-size: 16px;
    margin: 10px 0;
}

#contactInfo strong {
    color: var(--button-bg-color);
}

/* About Page Styles */

#aboutContent h2 {
    margin-top: 0;
    color: var(--header-bg-color);
}

#aboutContent h3 {
    color: var(--button-bg-color);
}

#aboutContent p {
    font-size: 16px;
    margin: 10px 0;
}

#aboutContent a {
    color: var(--button-bg-color);
    text-decoration: none;
}

#aboutContent a:hover {
    text-decoration: underline;
}

#hoverImage {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Adjust this based on your image */
    display: none; /* Initially hidden */
    z-index: 9999; /* Ensure it appears above other content */
    pointer-events: none; /* Allow clicks to pass through the image */
    transition: opacity 0.3s ease; /* Smooth transition */
}