/* General styles */
body {
  background-color: black;
  color: white;
}

a:visited {
  color: yellow;
}

/* Top bar styles */
.top-bar {
  background-color: transparent;
  margin-bottom: 0;
  padding-bottom: 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 15px;
  margin: 0 auto;
  max-width: 1300px;
}

.top-bar-banner {
  margin-left: -165px;
}

.top-bar-links {
  background-color: #333;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  margin-right: 40px;
  border-radius: 0;
}

.top-bar-nav-link {
  color: white !important;
  font-size: 20px;
  text-shadow: 2px 2px #000000;
  transition: color 0.3s ease;
  white-space: nowrap;
  text-decoration: none;
}

.top-bar-nav-link:hover {
  color: yellow !important;
}

/* Navbar styles */
.navbar {
  margin-bottom: 25px;
  background-color: transparent;
  text-shadow: 2px 2px #000000;
  padding: 0;
}

.navbar .container {
  background-color: #333;
  padding: 0.5rem 15px;
  margin: 0 auto;
  max-width: 1300px;
  width: 100%;
  box-sizing: border-box;
}

.navbar-nav {
  display: flex;
  justify-content: flex-start;
  width: auto;
}

.navbar-nav .nav-link {
  color: white;
  font-size: 20px;
  text-shadow: 2px 2px #000000;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: yellow;
}

.navbar-nav .mobile-only {
  display: none;
}

/* Main card styles */
.main-card {
  background-color: #333;
  border-radius: 5px;
  padding: 0;
}

.main-card-body {
  text-shadow: 1px 1px 2px #000;
  padding: 15px;
  text-align: left;
}

.main-card-title {
  margin-bottom: 10px;
  color: white;
}

.main-card-text {
  margin-bottom: 10px;
  color: white;
}

.platform-highlight {
  font-weight: bold;
  background-color: #444;
  padding: 2px 5px;
  border-radius: 3px;
}

h6.main-card-title {
  margin-top: 15px;
}

/* Footer styles */
footer {
  background-color: #333;
  padding: 10px;
  color: white;
}

.footer-legal-links a {
  color: white;
  text-decoration: underline;
  margin: 0 5px;
}

.footer-legal-links a:hover {
  color: #ccc;
}

.footer-copyright {
  color: white;
  margin-top: 10px;
}

/* Card styles */
.card {
  background-color: #333;
  padding: 0;
  border-radius: 5px;
}

.card-header {
  font-size: 18px;
  color: white;
  text-decoration: none;
  padding: 10px;
  background-color: #444;
}

.card-body {
  display: block;
  padding: 15px;
  color: white;
  text-align: left;
}

.card-body a {
  color: yellow !important;
}

.card-footer {
  text-align: left;
  padding: 5px 15px;
  color: white;
  text-shadow: 1px 1px 2px #000;
}

.card-footer a {
  font-size: 18px;
  color: yellow !important;
  text-decoration: underline;
}

.card-footer-link {
  color: yellow !important;
  text-decoration: underline;
  font-size: 18px;
}

.card-footer-link:hover {
  color: #ccc !important;
}

/* Payment and download accordion styles */
.payment-header, .download-header {
  background-color: #444;
  padding: 10px;
  cursor: pointer;
  font-size: 18px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.payment-header:hover, .download-header:hover {
  background-color: #555;
}

.payment-header h4, .download-header h4 {
  margin: 0;
  color: white;
}

.payment-body, .download-body {
  padding: 15px;
  color: white;
  text-shadow: 1px 1px 2px #000;
  text-align: left;
}

.payment-body a, .download-body a {
  color: yellow !important;
}

.payment-body img.payment-button {
  max-width: 179px;
  max-height: 64px;
}

/* Price text */
.price-text {
  font-size: 1.8rem;
  color: yellow;
  font-weight: bold;
}

/* Mobile notice */
.mobile-notice {
  background-color: #990033;
  color: white;
  padding: 5px;
  margin-top: 10px;
  border-radius: 5px;
  text-align: left;
  font-weight: bold;
  display: none;
}

.mobile-notice.active {
  display: block;
}

/* Universe warning notice */
.warning-notice-universe {
  background-color: #990033;
  color: white;
  padding: 5px;
  margin-top: 10px;
  border-radius: 5px;
  text-align: left;
  font-weight: bold;
}

/* Download section header */
.download-section-header {
  background-color: #990033;
  color: white;
  text-shadow: 0 0 3px black;
  text-align: left;
  padding: 10px;
  margin-bottom: 15px;
}

/* Help section */
.help-section {
  background-color: #333;
  padding: 15px;
  margin: 20px 0;
  border-radius: 5px;
  text-align: left;
}

/* Code styling */
code {
  color: #FFFF00;
  background-color: #444;
  padding: 2px 4px;
  border-radius: 3px;
}

/* Download notice */
.download-notice {
  font-size: 0.9rem;
  text-align: left;
  margin-bottom: 20px;
  color: #ccc;
}

/* Download list */
.download-list {
  margin-bottom: 20px;
}

.download-list p {
  margin: 5px 0;
  font-size: 16px;
}

.download-title {
  color: white;
  font-size: 20px;
  text-shadow: 1px 1px 2px #000;
  display: inline;
}

.download-list a {
  color: yellow;
  text-decoration: underline;
  font-size: 16px;
}

.download-list a:hover {
  color: #ccc;
}

.download-list span {
  color: white;
  font-size: 14px;
}

/* Download instructions */
.download-instructions {
  color: white;
  font-size: 0.9rem;
}

/* Highlight text for email addresses */
.highlight-text {
  color: yellow;
  font-weight: bold;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .top-bar-links {
    display: none;
  }
  .top-bar-banner {
    margin-left: 0;
  }
  .navbar-nav .mobile-only {
    display: block;
  }
  .navbar-nav {
    justify-content: flex-start;
  }
  .top-bar .container,
  .navbar .container {
    max-width: 700px;
  }
}

@media (max-width: 1200px) {
  .top-bar .container,
  .navbar .container {
    max-width: 1120px;
  }
}

/* Support page accordion styles */
.support-accordion-header {
  background-color: #990033; /* Red background for headers */
  padding: 10px;
  cursor: pointer;
  font-size: 18px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.support-accordion-header:hover {
  background-color: #aa0044; /* Slightly lighter red on hover for visual feedback */
}

.support-accordion-header h4 {
  margin: 0;
  color: white;
}

.support-accordion-body {
  background-color: #333; /* Grey background matching footer */
  padding: 15px;
  color: white;
  text-shadow: 1px 1px 2px #000;
  text-align: left;
}

.support-accordion-body a {
  color: yellow !important;
}

/* Styles for ep1.htm */
body {
    background-color: black;
    color: white;
}

.navbar {
    margin-bottom: 25px;
    background-color: #333;
    text-shadow: 2px 2px #000000;
}

.navbar-nav .nav-link {
    color: white;
    font-size: 20px;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: yellow;
}

.main-card {
    background-color: #333;
}

.main-card-body {
    text-shadow: 1px 1px 2px #000;
    padding: 15px;
}

.main-card-title {
    margin-bottom: 10px;
}

.main-card-text {
    margin-bottom: 10px;
}

.platform-highlight {
    font-weight: bold;
    background-color: #444;
    padding: 2px 5px;
    border-radius: 3px;
}

h6.main-card-title {
    margin-top: 15px;
}

.custom-card {
    width: 300px;
    border: none;
    margin-bottom: 15px;
}

.custom-card .card-img-top {
    width: 100%;
    height: 169px;
    object-fit: cover;
}

.screenshots-header {
    background-color: #990033;
    color: white;
    text-shadow: 0 0 3px black;
    text-align: center;
    padding: 10px;
    margin-bottom: 15px;
}

.language-notice {
    background-color: #444;
    border: 2px solid #ccb900;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 5px;
    text-align: center;
    display: none;
}

.language-notice.active {
    display: block;
}

@media (max-width: 576px) {
    .language-notice {
        font-size: 0.9rem;
    }
}

.screenshot-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

/* Styles for ep1-buy.htm */
body {
    background-color: black;
    color: white;
}

.navbar {
    margin-bottom: 25px;
    background-color: #333;
    text-shadow: 2px 2px #000000;
}

.navbar-nav .nav-link {
    color: white;
    font-size: 20px;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: yellow;
}

.main-card {
    background-color: #333;
}

.main-card-body {
    text-shadow: 1px 1px 2px #000;
    padding: 15px;
}

.main-card-title {
    margin-bottom: 10px;
}

.main-card-text {
    margin-bottom: 10px;
}

.platform-highlight {
    font-weight: bold;
    background-color: #444;
    padding: 2px 5px;
    border-radius: 3px;
}

h6.main-card-title {
    margin-top: 15px;
}

.custom-card {
    width: 300px;
    border: none;
}

.custom-card .card-img-top {
    width: 100%;
    height: 169px;
    object-fit: cover;
}

.screenshots-header {
    background-color: #990033;
    color: white;
    text-shadow: 0 0 3px black;
    text-align: center;
    padding: 10px;
    margin-bottom: 15px;
}

.tooltip-wrapper {
    position: relative;
    text-decoration: underline;
    color: #ccb900;
    cursor: help;
}

.tooltip-text {
    visibility: hidden;
    width: 300px;
    background-color: #333;
    color: white;
    text-align: left;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccb900;
    position: absolute;
    z-index: 1;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip-wrapper:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

@media (max-width: 576px) {
    .tooltip-text {
        width: 200px;
        font-size: 0.9rem;
    }
}

/* Styles for collapsible sections */
.payment-header, .download-header {
    background-color: #333; /* Grey background matching footer */
    padding: 10px;
    cursor: pointer;
    font-size: 18px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.payment-header:hover, .download-header:hover {
    background-color: #555; /* Lighter grey on hover */
}

.payment-header h4, .download-header h4 {
    margin: 0;
    color: white;
}

.payment-body, .download-body {
    background-color: #333; /* Grey background matching footer */
    padding: 15px;
    color: white;
    text-shadow: 1px 1px 2px #000;
    text-align: left;
}

.payment-body a, .download-body a,
.card-footer a {
    color: yellow !important;
}

.payment-body img.payment-button {
    max-width: 179px;
    max-height: 64px;
}

/* Style for larger price text */
.price-text {
    font-size: 1.8rem;
    color: yellow;
    font-weight: bold;
}

/* Style for Chinese-only mobile notice */
.mobile-notice {
    background-color: #990033;
    color: white;
    padding: 10px;
    margin-top: 10px;
    border-radius: 5px;
    text-align: left;
    font-weight: bold;
    display: none;
}

.mobile-notice.active {
    display: block;
}

/* Style for download section header */
.download-section-header {
    background-color: #990033; /* Red background */
    color: white;
    text-shadow: 0 0 3px black;
    text-align: left;
    padding: 10px;
    margin-bottom: 15px;
}

/* Style for help section */
.help-section {
    background-color: #333;
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
    text-align: left;
}

/* Style for code elements */
code {
    color: #FFFF00;
    background-color: #444;
    padding: 2px 4px;
    border-radius: 3px;
}

/* Style for disclaimer */
.disclaimer {
    background-color: #990033;
    color: white;
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    font-size: 1.1rem;
    display: none;
}

.disclaimer.active {
    display: block;
}

.download-card-body {
    padding: 15px;
    text-align: center;
}

.download-button {
    display: inline-flex;
    align-items: center;
    margin: 10px;
    padding: 10px 20px;
    background-color: #444;
    color: yellow;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.download-button:hover {
    background-color: #555;
    color: yellow;
    text-decoration: none;
}

.download-button img {
    margin-right: 10px;
    width: 24px;
    height: 24px;
}

/* New styles for section headers */
.section-header {
    background-color: #990033; /* Reddish background */
    font-size: 24px; /* Larger text */
    font-weight: bold;
    padding: 15px;
    border-radius: 5px;
}

/* New styles for welcome text section */
#welcome-text {
    background-color: #333; /* Grey background */
    font-size: 18px; /* Slightly larger text */
    padding: 15px;
    border-radius: 5px;
}

/* Remove margin from footer copyright to eliminate line space */
.footer-copyright {
    margin-top: 0;
}

/* Add half-line space between section headers and cards */
.section-header {
    margin-bottom: 20px; /* Adds space below headers */
}

/* Center game titles in card footers */
.card-footer {
    text-align: center; /* Center-aligns text in card footers */
}

/* Center card images */
.card-body img {
    display: block; /* Ensures image is block-level for centering */
    margin-left: auto; /* Centers image horizontally */
    margin-right: auto; /* Centers image horizontally */
}

/* Align text left under buttons in payment and download accordion sections */
#credit-card-footer p,
#alipay-footer p,
#bitcoin-footer p,
#windows-footer p,
#macos-footer p {
  text-align: left !important;
}
