html {
  overflow-y: scroll;
}

:root {
  --bingeclock-primary-color: #5193C1;
  --bingeclock-secondary-color: #3b7ba3;
  --bingeclock-background-color: #121212;
  --bingeclock-card-background: #1f1f1f;
  --bingeclock-page-background: #292824;
  --bingeclock-runtime-box-background: #114c92;
  --bingeclock-text-color: #f0f0f0;
  --bingeclock-border-radius: 12px;
}

#loaded-content {
  display: none;
}

#unloaded-content {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80vh;
}

.complete-page-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  background-color: var(--bingeclock-background-color);
  font-family: 'Arial', sans-serif;
  color: var(--bingeclock-text-color);
}

.bingeclock-show-hero {
  display: flex;
  align-items: center;
  background-color: var(--bingeclock-primary-color);
  border: 2px solid var(--bingeclock-secondary-color);
  border-radius: var(--bingeclock-border-radius);
  overflow: hidden;
  margin-bottom: 30px;
}

.bingeclock-show-hero-content {
  flex: 1;
  padding: 40px;
  color: white;
}

.bingeclock-show-title {
  font-size: 2.5em;
  margin-bottom: 10px;
}

.bingeclock-show-tag {
  display: inline-block;
  padding: 5px 10px;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 20px;
  margin-right: 10px;
  font-size: 0.9em;
}

#bingeclock-show-hero-image-container {
  flex: 1;
  max-width: 50%;
}

.bingeclock-show-hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.bingeclock-show-card {
  background-color: var(--bingeclock-card-background);
  border-radius: var(--bingeclock-border-radius);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-bottom: 30px;
}

.bingeclock-show-card-title {
  font-size: 1.5em;
  margin-bottom: 20px;
  color: var(--bingeclock-primary-color);
}

.bingeclock-show-card-title a {
  color: var(--bingeclock-primary-color);
}

.bingeclock-show-time-display {
  display: flex;
  justify-content: space-around;
  margin-bottom: 20px;
}

.bingeclock-show-time-unit {
  text-align: center;
}

.bingeclock-show-time-value {
  font-size: 3em;
  font-weight: bold;
  color: var(--bingeclock-primary-color);
}

.bingeclock-show-time-label {
  font-size: 1.2em;
  color: #999;
}

.bingeclock-show-time-adjustments,
.bingeclock-show-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.bingeclock-show-action-button {
  display: flex;
  align-items: center;
  padding: 0;
  background-color: transparent;
  border: 1px solid var(--bingeclock-primary-color);
  border-radius: var(--bingeclock-border-radius);
  overflow: hidden;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.button-image-container {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bingeclock-background-color);
  padding: 10px;
  width: 40px;
  height: 40px;
}

.button-image-container img {
  max-width: 100%;
  max-height: 100%;
}

.button-text {
  flex-grow: 1;
  padding: 10px 15px;
  background-color: var(--bingeclock-primary-color);
  color: white;
  text-align: center;
}

.bingeclock-show-action-button:hover .button-text {
  background-color: var(--bingeclock-secondary-color);
}

.bingeclock-show-toggle-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  background-color: var(--bingeclock-primary-color);
  color: white;
  border: none;
  border-radius: var(--bingeclock-border-radius);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.bingeclock-show-toggle-button:hover {
  background-color: var(--bingeclock-secondary-color);
}

.bingeclock-icon {
  margin-right: 10px;
  font-size: 1.2em;
}

.bingeclock-show-info-list {
  list-style-type: none;
  padding: 0;
}

.bingeclock-show-info-item {
  margin-bottom: 25px;
  margin-top: 25px;
}

.bingeclock-show-similar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.bingeclock-show-similar-image {
  width: 25%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 10px;
  border: 1px solid var(--bingeclock-primary-color);
}

.bingeclock-show-similar-title {
  font-weight: bold;
}

.bingeclock-show-similar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.bingeclock-show-meme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
}

.bingeclock-show-tag-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.bingeclock-show-categories-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.bingeclock-show-categories-column {
  flex: 1;
  min-width: 200px;
}

.bingeclock-show-categories-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bingeclock-show-categories-column h3 {
  margin-bottom: 10px;
  color: var(--bingeclock-primary-color);
}

.bingeclock-show-category {
  background-color: var(--bingeclock-primary-color);
  color: white;
  padding: 5px 10px;
  border-radius: var(--bingeclock-border-radius);
  transition: background-color 0.3s ease;
  cursor: pointer;
  display: inline-block;
  border: 1px solid var(--bingeclock-primary-color);
  text-align: center;
  width: 100%;
}

.bingeclock-show-category:hover {
  background-color: var(--bingeclock-secondary-color);
  border-color: var(--bingeclock-secondary-color);
}

.bingeclock-show-length-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 20px;
}

.bingeclock-show-length-visual table {
  margin: 0 auto;
}

.bingeclock-show-length-visual img {
  display: block;
  margin: 0 auto;
}

.bingeclock-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.bingeclock-modal {
  background-color: var(--bingeclock-card-background);
  border-radius: var(--bingeclock-border-radius);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 90%;
  max-width: 80vw;
  min-height: 80vh;
  max-height: 80vh;
  z-index: 2000;
  display: flex;
  flex-direction: column;
}

.bingeclock-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2em;
  border-bottom: 1px solid var(--bingeclock-primary-color);
}

.bingeclock-modal-title {
  color: var(--bingeclock-primary-color);
  margin: 0;
  font-size: 1.5em;
}

.bingeclock-modal-close {
  background: none;
  border: none;
  font-size: 1.5em;
  color: var(--bingeclock-text-color);
  cursor: pointer;
}

.bingeclock-modal-content {
  padding: 2em;
  overflow-y: auto;
  max-height: 80vh;
  color: var(--bingeclock-text-color);
}

.bingeclock-modal-overlay.show {
  display: flex;
}

.bingeclock-season-modal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2em;
}

.season-segment-title {
  font-size: 2em;
  color: var(--bingeclock-primary-color);
}

.season-segment-title a {
  color: var(--bingeclock-primary-color);
}

.season-segment-episodes {
  font-size: 1.5em;
  color: var(--bingeclock-secondary-color);
}

.season-segment-episodes a {
  color: var(--bingeclock-secondary-color);
}

.bingeclock-show-action-button {
  flex: 1;
}

.planner-hour-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 0 auto;
  padding: 20px;
}

.planner-hour-btn {
  background-color: var(--bingeclock-primary-color);
  border: none;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  font-size: 3em;
  font-weight: bold;
  padding: 1em;
  transition: all 0.3s ease;
}

.planner-hour-btn:hover {
  background-color: var(--bingeclock-secondary-color);
  transform: scale(1.05);
}

.planner-hour-btn:active {
  background-color: var(--bingeclock-secondary-color);
  transform: scale(0.95);
}

.bingeclock-popup {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bingeclock-card-background);
  color: var(--bingeclock-text-color);
  border-top: 2px solid var(--bingeclock-primary-color);
  box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
  z-index: 3000;
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out;
}

.bingeclock-popup.show {
  transform: translateY(0);
}

.bingeclock-popup-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bingeclock-popup-message {
  flex-grow: 1;
  font-size: 1.1em;
}

.bingeclock-popup-button {
  margin-left: 15px;
  padding: 10px 20px;
  background-color: var(--bingeclock-primary-color);
  color: white;
  border: none;
  border-radius: var(--bingeclock-border-radius);
  cursor: pointer;
}

.bingeclock-popup-close {
  background: none;
  border: none;
  color: var(--bingeclock-text-color);
  font-size: 1.5em;
  cursor: pointer;
  padding: 0 10px;
  margin-left: 15px;
}

.bingeclock-mile-card {
  background-color: var(--bingeclock-card-background);
  border-radius: var(--bingeclock-border-radius);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-bottom: 30px;
  display: flex;
  align-items: flex-start;
}

.bingeclock-mile-card-content {
  flex: 2;
  margin-right: 20px;
}

.bingeclock-mile-card-image {
  flex: 1;
  max-width: 33.333%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.bingeclock-mile-card-image img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--bingeclock-border-radius);
}

.invisible-button {
  visibility: hidden;
}

#bingeclock-marathon-creator-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
}

.creator-info-left,
.creator-info-sharing-1,
.creator-info-sharing-2,
.creator-info-sharing-3,
.creator-info-sharing-4,
.creator-info-sharing-5,
.creator-info-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 14.21%;
  text-align: center;
}


.list-navigation-container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 20px 0;
}

.list-navigation-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.list-navigation-title {
  color: var(--bingeclock-text-color);
  margin-bottom: 15px;
  font-size: 1.2em;
}

.list-navigation-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.list-navigation-button {
  display: block;
  padding: 12px 20px;
  background-color: var(--bingeclock-card-background);
  color: var(--bingeclock-text-color);
  text-decoration: none;
  border-radius: var(--bingeclock-border-radius);
  text-align: center;
  border: 2px solid var(--bingeclock-primary-color);
  transition: all 0.3s ease;
}

.list-navigation-button:hover {
  background-color: var(--bingeclock-runtime-box-background);
  transform: translateY(-2px);
}

.list-navigation-button.active {
  background-color: var(--bingeclock-runtime-box-background);
  cursor: default;
}

.list-navigation-sort {
  margin: 20px 0;
}

.list-navigation-sort .list-navigation-buttons {
  flex-direction: row;
  justify-content: center;
  gap: 10px;
}

.list-navigation-sort .list-navigation-button {
  flex: 1;
  max-width: 200px;
}

.home-content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.home-content-item {
  background-color: var(--bingeclock-card-background);
  border-radius: var(--bingeclock-border-radius);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
}

.home-content-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.home-content-title {
  padding: 10px;
  color: var(--bingeclock-text-color);
  font-size: 1.1em;
}

:root {
  --profile-primary-color: #5193C1;
  --profile-secondary-color: #3b7ba3;
  --profile-background-color: #121212;
  --profile-card-background: #1f1f1f;
  --profile-text-color: #f0f0f0;
  --profile-border-radius: 12px;
}

.profile-title {
  font-size: 2.5em;
  margin-bottom: 10px;
  color: var(--profile-primary-color);
}

.profile-card {
  background-color: var(--profile-card-background);
  border-radius: var(--profile-border-radius);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-bottom: 30px;
}

.profile-action-button {
  display: flex;
  align-items: center;
  padding: 0;
  background-color: transparent;
  border: 1px solid var(--profile-primary-color);
  border-radius: var(--profile-border-radius);
  overflow: hidden;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.profile-button-text {
  flex-grow: 1;
  padding: 10px 15px;
  background-color: var(--profile-primary-color);
  color: white;
  text-align: center;
}

.profile-action-button:hover .profile-button-text {
  background-color: var(--profile-secondary-color);
}

.center-profile-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.center-profile-content h5,
.center-profile-content a,
.center-profile-content .date_content_div {
  text-align: center;
  width: 100%;
}

.rewards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  width: 100%;
  text-align: center;
}

.photo-credit {
  color: #666;
  font-size: 0.8em;
  margin-top: 5px;
}

.listings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
  margin-top: 15px;
}

@media (max-width: 768px) {
  .bingeclock-show-hero {
    flex-direction: column;
  }

  .bingeclock-show-hero-content {
    order: 1;
    padding: 20px;
  }

  #bingeclock-show-hero-image-container {
    order: 2;
    max-width: 100%;
  }
  .bingeclock-show-similar-image {
    width: 50%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
  }

  .bingeclock-season-modal-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
  }

  .planner-hour-buttons {
    grid-template-columns: repeat(4, 1fr);
  }

  .planner-hour-btn {
    font-size: 2em;
    padding: 1em 0;
  }

  .bingeclock-popup-content {
    flex-direction: column;
    text-align: center;
  }

  .bingeclock-popup-button,
  .bingeclock-popup-close {
    margin-left: 0;
    margin-top: 15px;
  }

  .bingeclock-show-actions-grid {
    grid-template-columns: 1fr;
  }

  .bingeclock-show-action-button {
    width: 100%;
  }

  .bingeclock-mile-card {
    flex-direction: column;
  }

  .bingeclock-mile-card-content {
    width: 100%;
  }

  .bingeclock-mile-card-image {
    max-width: 100%;
    margin-top: 20px;
  }

  #bingeclock-marathon-creator-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .creator-info-left,
  .creator-info-right {
    width: 50%;
    order: 1;
  }

  .creator-info-sharing-1,
  .creator-info-sharing-2,
  .creator-info-sharing-3,
  .creator-info-sharing-4,
  .creator-info-sharing-5 {
    width: 20%;
    order: 2;
  }

  .creator-info-sharing-1,
  .creator-info-sharing-2,
  .creator-info-sharing-3,
  .creator-info-sharing-4,
  .creator-info-sharing-5 {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
  }
  .list-navigation-container {
    flex-direction: column;
  }

  .list-navigation-column {
    width: 100%;
  }

  .list-navigation-sort .list-navigation-buttons {
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  .list-navigation-sort .list-navigation-button {
    width: calc(50% - 5px);
    max-width: none;
  }
  .rewards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .listings-grid {
    grid-template-columns: 1fr;
  }

}
