body {
  margin: 0;
  padding: 0;
  background-color: #eeeeee;
  font-family: sans-serif;
}

h1,
p {
  margin-top: 0; /* Remove top margin */
  margin-bottom: 0; /* Remove bottom margin */
}

.header {
  background-color: white;
  border-radius: 0 0 10px 10px;
  display: block;
  padding-left: 16px;
  padding-right: 16px;
  padding-bottom: 5px;
}
.header .header-logo {
  display: flex;
  justify-content: start; /* Center horizontally */
  align-items: center;
}
.header .header-logo img {
  height: 64px;
}
.header .header-title {
  color: #764ada;
  font-size: 1.2rem;
  font-weight: bolder;
}
.header .header-sub-title {
  color: white;
  background-color: red;
  border-radius: 5px;
  padding: 1px 5px;
  font-size: 0.85rem;
  font-weight: bolder;
}

.header .menu {
  justify-content: right;
  align-items: center;
  display: none;
}
.header .menu p {
  padding-top: 5px;
  padding-right: 12px;
  color: gray;
  cursor: pointer;
}
.header .menu a {
  text-decoration: none;
}

.header .menu .active {
  color: #1677ff;
}

.header .menu p:hover {
  color: #1677ff;
}

.header .header-marquee {
  padding-top: 5px;
}

.header .header-marquee span {
  font-size: 0.85rem;
}

@media (min-width: 768px) {
  .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 24px;
    padding-right: 24px;
  }
  .header .header-logo img {
    height: 56px;
  }
  .header .menu {
    justify-content: right;
    display: flex;
  }
  .header .header-title {
    font-size: 1.2rem;
  }
  .header .header-sub-title {
    font-size: 0.75rem;
  }
  .header .header-marquee span {
    font-size: 14px;
  }
}

.container {
  width: auto;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

@media (max-width: 480px) {
  .container {
    max-width: 100%; /* Full width on extra small screens */
    padding-left: 8px;
    padding-right: 8px;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .container {
    max-width: 100%; /* Full width on small screens */
    padding-left: 12px;
    padding-right: 12px;
  }
}

@media (min-width: 1380px) {
  .container {
    max-width: 1380px; /* Restrict width on larger screens */
    padding-left: 24px;
    padding-right: 24px;
  }
}


.live-video {
  margin-top: 10px;
  background-color: white;
  border-radius: 10px;
  display: block;
  padding: 16px;
}
.live-video .live-video-menu {
  display: block;
  align-items: center;
  justify-content: space-between;
}
.live-video .live-video-menu p {
  padding-top: 10px;
  text-align: right;
  color: #007bff;
  font-size: 1rem;
}
.live-video .live-video-content {
  margin-top: 10px;
  height: 246px;
}
@media (min-width: 768px) {
  .live-video {
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    margin-top: 20px;
  }
  .live-video .live-video-menu {
    display: flex;
  }
  .live-video .live-video-menu p {
    padding-top: 0px;
    font-size: 0.85rem;
  }
  .live-video .live-video-content {
    height: 680px;
  }
}

.live-video .live-video-result .result-header-issue {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1rem;
}
.live-video .live-video-result .result-header-ball {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.live-video .live-video-result .result-header-ball p {
  font-size: 0.85rem;
  font-weight: bold;
}
.live-video .live-video-result .result-header-ball-item {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  margin-left: auto;
  margin-right: auto;
}
.live-video .live-video-result .result-header-ball-item p {
  text-align: center;
  font-weight: bolder;
  font-size: 18px;
  color: #2b2b2b;
  margin-top: -6px;
}
@media (min-width: 768px) {
  .live-video {
    justify-content: space-between;
    align-items: center;
    padding: 24px;
  }
  .live-video .live-video-menu {
    display: flex;
  }
  .live-video .live-video-menu p {
    font-size: 1rem;
  }
  .live-video .live-video-result .result-header-issue {
    font-size: 1rem;
  }
  .live-video .live-video-result .result-header-ball p {
    font-size: 0.85rem;
    font-weight: bold;
  }
  .live-video .live-video-result .result-header-ball-item {
    width: 38px;
    height: 38px;
  }
  .live-video .live-video-result .result-header-ball-item p {
    font-size: 20px;
    margin-top: -7px;
  }
}

/* Live video menu button styles */
.live-video-menu .button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  /* Add explicit width for IE */
  width: 100%;
}

.live-video-menu .button {
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  background-color: #f0f0f0;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
  /* IE specific fixes */
  display: inline-block;
  margin-right: 10px;
  margin-bottom: 10px;
  text-align: center;
}

.live-video-menu .button.active {
  background-color: #1677ff;
  color: white;
  /* Explicit styles for IE */
  border: none;
  font-weight: normal;
}

/* Fix for IE button active state */
.live-video-menu .button-group {
  display: block;
  margin: 0 -5px;
  width: 100%;
}

.live-video-menu .button-group:after {
  content: "";
  display: table;
  clear: both;
}

.live-video-menu .button {
  float: left;
  margin: 0 5px 5px 5px;
  padding: 10px ;
  border: 1px solid #cccccc;
  border-radius: 4px;
  background-color: #f0f0f0;
  color: #000000;
  cursor: pointer;
  font-size: 16px;
  text-align: center;
  min-width: 98px;
  height: 43px;
}

/* Use attribute selector as an additional way for IE to recognize active state */
.live-video-menu .button[data-active="true"],
.live-video-menu .button.active {
  background-color: #1677ff !important;
  color: white !important;
  border-color: #1677ff !important;
  height: 43px;
}

/* Media queries for responsive design */
@media screen and (max-width: 768px) {
  .live-video-menu .button-group {
    text-align: center;
  }

  .live-video-menu .button {
    padding: 8px 12px;
    font-size: 15px;
    font-weight: bold;
    min-height: 40px;
  }
}

@media screen and (max-width: 480px) {
  .live-video-menu .button {
    width: calc(50% - 10px);
    padding: 8px 10px;
    font-size: 14px;
    font-weight: bold;
    min-height: 42px;
  }
}

/* Media queries for responsive design */
@media screen and (max-width: 768px) {
  .live-video-menu .button-group {
    gap: 6px;
    justify-content: center;
  }

  .live-video-menu .button {
    padding: 8px 12px;
    font-size: 15px;
    font-weight: bold; /* Make text bold on mobile */
    min-height: 40px; /* Ensure minimum height for touch targets */
  }
}

@media screen and (max-width: 480px) {
  .live-video-menu .button-group {
    justify-content: center;
    gap: 5px;
  }

  .live-video-menu .button {
    padding: 8px 10px;
    font-size: 14px;
    font-weight: bold;
    flex: 0 0 calc(50% - 5px); /* Two buttons per row with gap in between */
    min-height: 42px; /* Slightly larger touch targets for smaller screens */
    display: flex;
    align-items: center;
    justify-content: center;
    height: 43px;
  }

  /* Make active button stand out more on mobile */
  .live-video-menu .button.active {
    background-color: #1677ff;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: 43px;
  }
}

.button-group {
  display: flex;
  gap: 10px;
}
.button {
  min-width: 98px;
  padding: 5px;
  font-size: 0.85rem;
  border: 1px solid #007bff;
  background-color: white;
  color: #007bff;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s, color 0.3s;
}
.button.active {
  background-color: #007bff;
  color: white;
}
.button:hover:not(.active) {
  background-color: rgba(0, 123, 255, 0.1);
}

@media (min-width: 768px) {
  .button {
    min-width: 98px;
    font-size: 0.85rem;
    padding: 5px;
    border-radius: 3px;
  }
}

.history-container {
  margin-top: 20px;
  border-radius: 10px;
  background: white;
}

.iframe-container {
  margin-top: 20px;
  border-radius: 10px;
  width: 100%;
  background: white;
}
.iframe-container iframe {
  border: none;
  margin-top: 16px;
}

@media screen and (max-width: 768px) {
  .iframe-container iframe {
    margin-top: 0;
  }
}

/* Sticky Footer Styles */
.mobile-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: white;
  box-shadow: 0px -2px 10px rgba(0, 0, 0, 0.1);
  padding: 10px 16px;
  z-index: 1000;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.mobile-footer a {
  text-decoration: none;
  color: #767676;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 12px;
}

.mobile-footer a.active {
  color: #1677ff;
}

.mobile-footer .icon {
  margin-bottom: 4px;
  font-size: 20px;
}

.mobile-footer-spacer {
  height: 60px; /* Space to prevent content from being hidden behind the footer */
  display: none;
}

/* Show footer only on mobile screens */
@media screen and (max-width: 768px) {
  .mobile-footer {
    display: flex;
  }

  .mobile-footer-spacer {
    display: block;
  }
}

@media screen and (min-width: 769px) {
  .mobile-footer {
    display: none;
  }
}

/* Fix for result-header-issue display in IE */
.live-video .live-video-result .result-header-issue {
  margin-top: 10px;
  /* Replace flex with table display for IE compatibility */
  display: table;
  width: 100%;
  font-size: 1rem;
}

.live-video-countdown {
  width: 100%;
}

.live-video .live-video-result .result-header-issue p {
  /* Use table-cell for better IE compatibility */
  display: table-cell;
}

.live-video .live-video-result .result-header-issue p:first-child {
  text-align: left;
}

.live-video .live-video-result .result-header-issue p:last-child {
  text-align: right;
}
