/* src/components/ConsentBanner.module.css */

.ConsentBanner_banner__zU_Iw {
  position: fixed;
  bottom: 16px;
  left: 0;
  right: 0;
  background-color: #1a1a1a;
  /* Black-ish */
  color: #ffffff;
  padding: 8px 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  /* gap: 12px; */

  /* z-index slightly above regular overlays' 10000: */
  z-index: 10001;
  font-family: sans-serif;
  font-size: 16px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
  flex-wrap: wrap;

  /* max-width: 1000px; */
  border-radius: 8px;

  margin: 16px;
}

.ConsentBanner_text__7SUmT {
  margin: 0;
  flex-grow: 1;
  line-height: 1.5;
  /* Allow text to take available space */
}

.ConsentBanner_buttons__ONPi5 {
  display: flex;
  gap: 12px;
  /* Prevent buttons from shrinking */
  flex-shrink: 0;
  margin: 6px 32px;
}

.ConsentBanner_button__y9lKb {
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.2s ease;

  height: 50px;
  width: 120px;

  font-size: 16px;
}

.ConsentBanner_primary__EJszX {
  background-color: #3b82f6;
  /* A nice blue */
  color: white;
}

.ConsentBanner_primary__EJszX:hover {
  background-color: #2563eb;
}

.ConsentBanner_secondary__szPvu {
  background-color: #4b5563;
  /* A neutral gray */
  color: white;
}

.ConsentBanner_secondary__szPvu:hover {
  background-color: #374151;
}
.Toast_toastContainer__GruH5 {
  position: fixed;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  padding: 16px;

  opacity: 0;
  top: -128px;
  transition: opacity 0.5s ease, top 0.5s ease, bottom 0.5s ease;

  z-index: 1000;
}

.Toast_toastTop__Dk1u2 {
  top: -128px;
}

.Toast_toastBottom__nVYXz {
  bottom: 0;
  transform: translateY(200%);
}

.Toast_toastContent__5l5Xg {
  display: flex;
  align-items: center;

  cursor: pointer;
  background: #fff;
  color: #363636;
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  max-width: 90%;

  -webkit-user-select: none;

     -moz-user-select: none;

          user-select: none;
}
/* LevelCard.module.css */

.LevelCard_levelCard__1qq5L {
  display: flex;
  flex-direction: column;
  /* Align content vertically */
  justify-content: center;
  /* Center content vertically */
  min-height: 64px;
  min-width: 64px;

  /* Padding will be reduced for smaller screens. */
  padding: 16px;

  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease-in-out;
  color: white;
  text-decoration: none;
  position: relative;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  text-align: center;
  /* Center standard IDs */
}

.LevelCard_levelCardContent__1AZhK {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

/* For music cards, align content to the start (left) */
.LevelCard_levelCard__1qq5L.LevelCard_isMusic__Qz5MM {
  text-align: left;
}

.LevelCard_levelCard__1qq5L.LevelCard_isMusic__Qz5MM .LevelCard_levelCardContent__1AZhK {
  justify-content: flex-start;
}

/* --- CONTENT STYLES --- */

.LevelCard_cardStandardId__nOCgU {
  font-size: 28px;
  font-weight: bold;
}

.LevelCard_cardDetails__bu7Yg {
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}

.LevelCard_cardTitle__FxtNu {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  line-height: 22px;

  overflow: hidden;
  text-overflow: ellipsis;
}

.LevelCard_customLevelCardTitle__c2V0y {
  /* Dimensions */
  width: 100%;
  max-height: 44px;
  /* Matches 2 lines at 22px line-height */

  /* Text Alignment */
  text-align: center;

  /* ELLIPSIS MAGIC (Line Clamp) */
  display: -webkit-box;
  -webkit-line-clamp: 1;
  /* Limits to 2 lines */
  -webkit-box-orient: vertical;
}

@media (max-width: 720px) {
  .LevelCard_customLevelCardTitle__c2V0y {
    -webkit-line-clamp: 2;
  }
}

.LevelCard_cardSubtitle__Mjc5E {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.LevelCard_cardMusicDuration__XH45P {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
}

/* --- STATES --- */

.LevelCard_levelCard__1qq5L.LevelCard_unlocked__xtiKQ {
  cursor: pointer;
}

.LevelCard_levelCard__1qq5L.LevelCard_unlocked__xtiKQ:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.LevelCard_levelCard__1qq5L.LevelCard_locked__MCodm {
  background-color: rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.7);
}


.LevelCard_levelCard__1qq5L.LevelCard_locked__MCodm .LevelCard_cardTitle__FxtNu,
.LevelCard_levelCard__1qq5L.LevelCard_locked__MCodm .LevelCard_cardSubtitle__Mjc5E,
.LevelCard_levelCard__1qq5L.LevelCard_locked__MCodm .LevelCard_cardMusicDuration__XH45P {
  color: rgba(255, 255, 255, 0.7);
}

.LevelCard_lockIcon__7wABO {
  font-size: 24px;
}

.LevelCard_levelCard__1qq5L.LevelCard_unavailable__spJ8u {
  background-color: rgba(0, 0, 0, 0.4);
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.2);
  cursor: not-allowed;
}

/* --- NEW STAR STYLES --- */

.LevelCard_starRatingContainer__tYzTk {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2px;
  margin-top: 12px;
  /* Gold color for filled/half-filled stars */
  color: #ffc700;
}

/* --- DELETE BUTTON --- */
.LevelCard_deleteButton__jkjvg {
  margin-top: 12px;
  background-color: rgba(255, 50, 50, 0.2);
  border: 1px solid rgba(255, 50, 50, 0.4);
  color: #ffcccc;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 10;
}

.LevelCard_deleteButton__jkjvg:hover {
  background-color: rgba(255, 50, 50, 0.4);
  color: white;
}

/* --- LOADING STATE --- */

.LevelCard_loading__xY4CM {
  cursor: wait !important;
  opacity: 0.8;
}

.LevelCard_loadingSpinner__q8typ {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-left-color: #ffffff;
  border-radius: 50%;
  flex-shrink: 0;

  position: absolute;
  top: 6px;
  right: 6px;
}
.OverlayText_overlayText__Ero7M {
  display: flex;
  justify-content: center;
  align-items: center;

  text-align: center;

  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 24px;
  margin: 8px;
}
.OverlayTip_overlayTipContainer__xVUVR {
  margin-top: 12px;
  text-align: center;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.OverlayTip_overlayTipContainer__xVUVR[data-next-tip-disabled] {
  cursor: default;
}

/* Fixes the "Sticky Hover" problem on mobile. */
/* Apply these styles only if the user's primary input mechanism can hover over elements,
   AND the 'data-next-tip-disabled' attribute is NOT present on the container. */
@media (hover: hover) {
  .OverlayTip_overlayTipContainer__xVUVR:not([data-next-tip-disabled]):hover {
    text-decoration: underline;
    font-weight: bolder;
  }
}

.OverlayTip_tipItem__0eJSS {
  margin: 0;
  display: inline;
}

.OverlayTip_tipTitle__Z8_dX {
  display: inline;
  margin: 0;
  font-weight: bolder;
}
/* Button container styles */
.LevelEndButtons_buttonContainer__xryVe {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Circle button wrapper styles */
.LevelEndButtons_circleButtonWrapper__6J4hq {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin: 8px;
  cursor: pointer;
}

/* Circle button styles */
.LevelEndButtons_circleButton__HUPQA {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  background-color: white;
  color: black;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.LevelEndButtons_circleButton__HUPQA:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.LevelEndButtons_circleButton__HUPQA:active {
  transform: scale(0.95);
}

/* Button label styles */
.LevelEndButtons_circleButtonLabel__4gjeG {
  margin-top: 8px;
  font-size: 14px;
  color: white;
  text-align: center;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

/* Download button specific styles */
.LevelEndButtons_downloadButton__ebF70 {
  background-color: white;
}
.VideoDownloader_videoContainer__kINAM {
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  height: 300px;

  margin-top: 16px;
}

.VideoDownloader_videoRecorded___22qz {
  /* XXX: object-fit contain only works as expected when both height and width are set. */
  height: 100%;
  width: 100%;
  object-fit: contain;
}

.VideoDownloader_videoDownloaderCompleteState__qr_OG {
  font-weight: 600;
  margin-bottom: 0;
  margin-top: 16px;
}

/* This targets the fullscreen button inside any video element that has the .electronHideFullscreen class */
.VideoDownloader_electronHideFullscreen__Rq8JG::-webkit-media-controls-fullscreen-button {
  display: none;
}
.Overlay_overlay__rKX6G {
  /* XXX: Height, width, top, left are set on the Overlay component */
  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: flex-start;

  z-index: 10000;

  overflow-y: auto;
}

.Overlay_overlayContent__KmRlH {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;

  width: 100%;
  color: white;
  padding: 16px 16px 48px 16px;

  box-sizing: border-box;
}

.Overlay_overlayTitle__Eq3Jp {
  font-size: 32px;
  margin-bottom: 24px;
  text-align: center;
}

.Overlay_overlayChildrenContainer__9jy_5 {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;

  margin-bottom: 16px;

  max-width: 100%;
}

.Overlay_overlayCloseButton__16_Pi {
  position: absolute;
  top: 15px;
  right: 25px;
  background: none;
  border: none;
  font-size: 40px;
  color: white;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  z-index: 10001;
  /* Ensure it's above content */

  -webkit-user-select: none;

     -moz-user-select: none;

          user-select: none;
}

.Overlay_overlayCloseButton__16_Pi:hover {
  color: #ccc;
}
.OverlayButton_overlayButton__d_c_I {
  padding: 12px 24px;
  background-color: transparent;
  color: white;
  border: 1px solid white;
  border-radius: 4px;
  cursor: pointer;

  font-size: 20px;
  font-weight: 600;

  transition: background-color 0.3s, color 0.3s;
}

.OverlayButton_overlayButton__d_c_I:hover {
  background-color: white;
  color: black;
}

.OverlayButton_overlayButton__d_c_I:disabled {
  background-color: transparent;
  color: rgba(255, 255, 255, 0.5);
  border-color: rgba(255, 255, 255, 0.5);
  cursor: not-allowed;

  transition: none !important;
}

.OverlayButton_overlayButton__d_c_I:disabled:hover {
  background-color: transparent !important;
  color: rgba(255, 255, 255, 0.5) !important;

  transition: none !important;
}
.OverlayButtonContainer_overlayButtonContainer__tE5Os {
  display: flex;
  justify-content: center;
  /* align-items: center; */
  flex-direction: column;

  min-width: 250px;
  gap: 16px;

  margin: 24px 0;
}
.SocialIcons_socialIcons__rgGAu {
  display: flex;
  flex-direction: row;
  gap: 24px;
}

.SocialIcons_iconLink__CJNR4 {
  opacity: 0.8;
  transition: opacity 0.2s ease-in-out;
}

.SocialIcons_iconLink__CJNR4:hover {
  opacity: 1;
}

.SocialIcons_iconImage__NH120 {
  filter: brightness(0) invert(1);
}
/* Page has a black-ish background. */

.WarningsAndErrorsDisplay_warningsErrorsContainer__7VMao {
  padding: 16px 16px 4px 16px;
  /* Increased margin for more separation */
  /* You might want a subtle background for the container itself if needed,
     or just let it blend with the page's black background.
     Example: background-color: rgba(255, 255, 255, 0.05);
              border-radius: 4px;
  */
}

.WarningsAndErrorsDisplay_messageItem__2yWsh {
  padding: 16px 20px;
  /* Increased padding */
  margin-bottom: 12px;
  /* Increased margin between items */
  border-left-width: 4px;
  border-left-style: solid;
  border-radius: 0 4px 4px 0;
  /* Rounded corners on the right */
  background-color: #222426;
  /* Dark background for items */
  color: #f0f0f0;
  /* Light grey text for general readability */
}

/* Default styling for paragraphs inside a message item.
   Specific classes below will override these where necessary.
   This helps reset browser default paragraph margins. */

/*
.warningsErrorsContainer p {
  margin-top: 0;
  margin-bottom: 0;
}
*/

.WarningsAndErrorsDisplay_warningItem__oR3zY {
  border-left-color: #ffcc00;
  /* Yellowish-orange for warning */
}

.WarningsAndErrorsDisplay_warningItem__oR3zY .WarningsAndErrorsDisplay_messageType__sS3aw {
  color: #ffcc00;
}

.WarningsAndErrorsDisplay_errorItem__yPBFl {
  border-left-color: #ff4d4d;
  /* Red for error */
}

.WarningsAndErrorsDisplay_errorItem__yPBFl .WarningsAndErrorsDisplay_messageType__sS3aw {
  color: #ff4d4d;
}

/* Style for the "Warning: TYPE" or "Error: TYPE" header */
.WarningsAndErrorsDisplay_messageType__sS3aw {
  font-size: 16px;
  /* Increased line-height */
  font-weight: bold;
  margin: 8px 0;
  /* Space below the type header */
}

/* Style for the main descriptive message */
.WarningsAndErrorsDisplay_messageText__bMXnx {
  font-size: 16px;
  line-height: 1.4em;
  /* Generous line-height for readability */
  margin-bottom: 16px;
  /* Space before solution or additional info */
}

/* Style for the paragraph containing the solution text */
.WarningsAndErrorsDisplay_solutionText__J3ZuE {
  font-size: 16px;
  line-height: 1.4em;
  /* margin-top is handled by the margin-bottom of the preceding element (.messageText) */
  margin-bottom: 8px;
  /* Generous space before additional info section */
}

/* Style for the "Possible solution:" part (the <strong> tag) */
.WarningsAndErrorsDisplay_possibleSolution__N9Ba_ {
  color: #4ade80;
  /* font-weight: bold; is inherent from <strong>, but can be explicit */
  /* text-decoration: wa; was invalid, removed. */
  /* If you need an underline: text-decoration: underline; */
  /* If you need a wavy underline: text-decoration: underline wavy #4ade80; */
}

/* Container for the whole "Additional Information" block */
.WarningsAndErrorsDisplay_additionalInfoSection__UD8V4 {
  /* margin-top is handled by the margin-bottom of the preceding element (.solutionText) */
  /* No specific margin-top needed here if it follows .solutionText */
}

/* Style for the "Additional Information:" header text */
.WarningsAndErrorsDisplay_additionalInfoHeader__KW3Uq {
  font-size: 16px;
  line-height: 1.4em;
  margin-bottom: 4px;
  /* Space between the header and the detailed content */
  /* The <strong> tag within will provide boldness */
}

/* Style for the actual content (renderer, vendor info) */
.WarningsAndErrorsDisplay_additionalTextContent__0OpnS {
  font-size: 14px;
  line-height: 1.4em;
  color: #999999;
  /* Lighter gray for better contrast on dark item background */
  margin-left: 8px;
  /* Indent detail info slightly more */
  font-style: italic;
  /* The white-space: pre-line; is applied inline in your component */
}
/* 1. Reset default button styles to make it look like a clean icon */
.MyInfoButton_button__QFYkP {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  /* Inherits text color from parent */
}

/* Optional: Add a slight opacity hover effect */
/* .button:hover {
  opacity: 0.7;
} */

/* 2. Animation Logic */
.MyInfoButton_icon__kqmZj {
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  /* Nice smooth snap */
}

.MyInfoButton_flipped__1akAG {
  transform: rotate(180deg);
}

@media (hover: hover) {
  .MyInfoButton_button__QFYkP:hover {
    opacity: 0.7;
  }
}
/* Main container for the checkbox and label */
.OverlayCheckbox_container__olBiH {
  display: flex;

  align-items: center;
  justify-content: center;

  /* margin-bottom: 10px; */

  gap: 8px;
  cursor: pointer;
  color: white;
  font-size: 18px;
  font-weight: 500;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

/* Visually hide the default checkbox but keep it accessible */
.OverlayCheckbox_hiddenCheckbox__s_eGQ {
  position: absolute;
  opacity: 0;
  height: 0;
  width: 0;
  cursor: pointer;
}

/* The custom-styled checkbox box */
.OverlayCheckbox_customCheckbox__bUokb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background-color: transparent;
  border: 1px solid white;
  border-radius: 4px;
  transition: background-color 0.2s, border-color 0.2s;
}

/* Style the custom box when the real checkbox is checked */
.OverlayCheckbox_hiddenCheckbox__s_eGQ:checked+.OverlayCheckbox_customCheckbox__bUokb {
  background-color: white;
  border-color: white;
}

/* --- State-based styles --- */

/* Style for the disabled/loading state */
.OverlayCheckbox_container__olBiH.OverlayCheckbox_disabled__hKidy {
  cursor: not-allowed;
  color: rgba(255, 255, 255, 0.5);
}

.OverlayCheckbox_container__olBiH.OverlayCheckbox_disabled__hKidy .OverlayCheckbox_customCheckbox__bUokb {
  border-color: rgba(255, 255, 255, 0.5);
  background-color: transparent;
  /* Ensure background is transparent */
}

/* Color for the loading icon */
.OverlayCheckbox_loadingIcon__jJk9E {
  color: rgba(255, 255, 255, 0.5);
}

/* --- Interaction styles --- */

/* Add hover effect ONLY when the container is NOT disabled */
.OverlayCheckbox_container__olBiH:not(.OverlayCheckbox_disabled__hKidy):hover .OverlayCheckbox_customCheckbox__bUokb {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Override hover effect when checked, but ONLY when NOT disabled */
.OverlayCheckbox_container__olBiH:not(.OverlayCheckbox_disabled__hKidy):hover .OverlayCheckbox_hiddenCheckbox__s_eGQ:checked+.OverlayCheckbox_customCheckbox__bUokb {
  background-color: white;
}
/* LoadingItem.module.css */

/* Pop animation for the check/error icon */
/* XXX: NOTE: These CSS animation were cause mediapipe to stutter A LOT. */
@keyframes LoadingItem_pop__qKUJv {
  0% {
    transform: scale(0);
    opacity: 0;
  }

  70% {
    transform: scale(1.4);
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Animation for the spinner */
/* XXX: NOTE: These CSS animation were cause mediapipe to stutter A LOT. */
/*
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}
*/

/* Loader Icon Styles */
.LoadingItem_iconLoader__FD_es {
  /* animation: spin 1.5s linear infinite; */
  color: transparent;
}

/* CheckCircle Icon Styles */
.LoadingItem_iconCheck__q_y5s {
  color: #10b981;
  animation: LoadingItem_pop__qKUJv 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}


.LoadingItem_loadingItem__k1DZ2 {
  display: flex;
  justify-content: center;
  /* Or flex-start if you prefer alignment to the left */
  align-items: center;
  gap: 8px;
  /* Added gap for spacing between icon and textContainer */
}

.LoadingItem_loadingItem__k1DZ2 svg {
  flex-shrink: 0;
}

/* Common class for icons that should pop in */
.LoadingItem_animatedIcon__nVxcd {
  animation: LoadingItem_pop__qKUJv 0.5s ease-out forwards;
}

.LoadingItem_iconError__YA7JV {
  color: #ef4444;
  /* Example: Red color for error */
}

.LoadingItem_textContainer__OZjft {
  display: flex;
  align-items: center;
  /* justify-content: center; -- This might not be needed if loadingItem handles main alignment */
}

.LoadingItem_statusText__JW5WM {
  transition: opacity 0.3s;
  /* No margin-left here, using &nbsp; in the component */
}

.LoadingItem_doneText__4jeQA {
  /* color: #22c55e; -- Optional: if you want done text to be green */
}

.LoadingItem_errorText__E_ery {
  color: #ef4444;
  /* Example: Red color for error text */
}
