:root {
  --accent-yellow: #F9FF08;
  --header-height: 60px;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  background: var(--accent-yellow);
  color: #222;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

header {
  background: var(--accent-yellow);
  height: var(--header-height);
  min-height: var(--header-height);
  padding: 0 0 0px 0;
  flex-shrink: 0;
  display: flex;
  align-items: center; /* Vertically center nav inside header */
}

nav {
  display: flex;
  align-items: center; /* Vertically center nav contents */
  justify-content: space-between;
  width: 100%;
  padding: 16px 32px;
  box-sizing: border-box;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0px; /* space between top-icons and hamburger */
}

.top-icons {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 10px;
}

.title-icon-text {
  display: flex;
  align-items: center; /* Align items vertically in the center */
  gap: 2px;
}

.icon-ace-img {
  display: flex; /* Ensure the <a> tag is a flex container */
  align-items: center;
}

.icon-ace {
  width: auto; /* Adjust as necessary */
  height: 50px; /* Adjust as necessary */
  vertical-align: middle;
}

.title-text {
  text-align: left;
  font-family: "Anton", sans-serif;
  font-weight: 400;
  font-style: normal;
  text-transform: uppercase;
  color: #ffffff;
  font-size: 1.4em;
  padding-left: 5px;
  -webkit-text-stroke: 1.3px black;
}


.top-icons img{
  width: auto;
  height: 20px;
  cursor: pointer;
}



hr {
  border: 0.1px solid rgba(0, 0, 0, 0.1);
}


/* New styles for the ad banner */
.lb-1{
  display: flex;
  justify-content: center; /* Center the banner horizontally */
  align-items: center; /* Center the banner vertically if needed */
  width: 100%; /* Ensure the container takes full width */
  margin: 5px 0; /* Add some margin to separate from other content */
  margin-bottom: 0px;
 display: none;/* Remove once ads are enabled. */
}

.lb-1 img  {
  max-width: 90%; /* Ensure the image does not overflow the container */
  height: auto; /* Maintain the aspect ratio */
}

.mrec-1{
  display: flex;
  justify-content: center; /* Center the banner horizontally */
  align-items: center; /* Center the banner vertically if needed */
  width: 300px; /* Ensure the container takes full width */
  margin: 5px 0; /* Add some margin to separate from other content */
  display: none; /* Remove once ads are enabled. */
}

.mrec-1 img  {
  max-width: 90%; /* Ensure the image does not overflow the container */
  height: auto; /* Maintain the aspect ratio */
}


label {
  color: #1b1b1b;
  padding-bottom: 10px;
  text-align: center;
  align-content: center;
  align-items: center;
  align-self: center;
}

.player-guess {
  color: black;
  display: block;
}

.guess-block {
  width: 30%;
  background-color: white;
  border-radius: 20px;
  text-align: center;
  display: block;
  margin-top: 20px;
  box-shadow: 10px 10px 15px rgba(0, 0, 0, 0.1);
}
@media screen and (max-width: 767px) {
  .guess-block {
    width: 70%;
    background-color: white;
    border-radius: 20px;
    text-align: center;
    display: block;
  }

}

.image-container {
  position: relative;
  display: inline-block; /* Ensures container only takes as much space as needed */
  margin: 0 auto; /* Center align horizontally */
}

.hidden-man {
  width: 40%; /* Adjust as needed */
  padding-top: 15px;
  padding-bottom: 10px;
  border-radius: 20%; /* Adjust as needed */
  display: block;
  margin: 0 auto; /* Center align horizontally */
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0); /* Transparent background */
  z-index: 2; /* Ensure it's above the image */
  margin: 0 auto; /* Center align horizontally */
}

.all-attempts {
  max-height: 60vh; /* Adjust the maximum height as needed */
  overflow-y: auto; /* Enable vertical scroll if content overflows */
  width: 100%; /* Make the div take the full width */
  margin-top: 20px; /* Add spacing at the top */
}

.attempt-1 {
  display: flex;
  justify-content: center; /* Center the circles horizontally */
}

.attempt-1-container {
  /* Add padding between attempts */
  padding-bottom: 10px;
}

.circle-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-right: 4px;
  margin-left: 4px;
  
  
}

.circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: grey;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 14px;
  /* Adjust font size and colors if needed */
  overflow: hidden;
  padding: 5px;
}

.circle img {
  max-width: 100%;
  max-height: 100%;
  filter: drop-shadow(1px 1px 10px rgba(0, 0, 0, 0.7));
}

.label {
  font-size: 12px;
  color: 1b1b1b;
}

.player-name-label {
  margin-top: 10px;
  font-weight: bold;
  /* Set the player's name as bold */
  text-align: center;
  /* Center the player's name */
  color: 1b1b1b;
}

.autocomplete {
  position: relative;
  display: block;
  align-content: center;
  text-align: center;
  padding-bottom: 20px;
}

.options-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #f9f9f9;
  border: 1px solid #ccc;
  border-radius: 4px;
  max-height: 150px;
  overflow-y: auto;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: none;
  z-index: 1;
}

.option {
  padding: 8px 12px;
  cursor: pointer;
}

.option:hover {
  background-color: #ddd;
}

/* Styling for the text input */
#player-guess {
  padding: 10px;
  border: 2px solid #007bff;
  /* Set the border color */
  border-radius: 8px;
  font-size: 16px;
  outline: none;
}

/* Styling for the attempt container */
.attempt {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #fff;
  /* Set the background color */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

/* Styling for the player name and surname */
.player-info {
  font-weight: bold;
  font-size: 18px;
  text-align: center;
  margin-bottom: 10px;
}

/* Styling for the circles in each attempt */
.circle-attempt {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-right: 10px;
}

.attempt-container {
  margin-top: 20px;
  /* Adjust the margin as needed */
}

.main-attempts {
  display: none;
}

/* Styling for the modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.1);
  /* Transparent black background with 10% opacity */
  justify-content: center;
  align-items: center;
  z-index: 9999;
  /* Place the modal on top of other content */
}

.modal-heading {
  margin-block-start: 0em !important;
}

.modal-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Styling for the Close button */
#close-modal {
  margin-top: 10px;
  padding: 8px 12px;
  background-color: #B2B2B2;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

#close-modal:hover {
  background-color: #d2d2d2;
}

/* Center the modal content horizontally and vertically */
.modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 300px;
  /* Adjust the width as needed */
  max-width: 80%;
  /* Adjust the maximum width as needed */
  min-height: 200px;
  /* Adjust the height as needed */
}

/* Define the pop animation */
@keyframes pop {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Apply the animation to the circle-container elements */
.circle-container.pop-animation {
  animation: pop 0.5s ease-in-out;
}

/* Modal styles */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 999999;
}

.modal-instructions {
  background: white;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  width: 80%;
  font-size: 0.8em;
  position: relative; 
}



.modal-instructions h2 {
  margin-top: 0;
}

.modal-instructions img {
  width: auto;
  height: 20px;
  cursor: pointer;
}

.attempt-0 {
  display: flex;
  justify-content: center; /* Center the circles horizontally */
}

.attempt-0-container {
  /* Add padding between attempts */
  padding-bottom: 10px;
}

.attempt-0-container .label {
  color: black;
}

.attempt-0-container {
  margin-top: 20px;
  /* Adjust the margin as needed */
}
.player-0-name-label {
  margin-top: 10px;
  font-weight: bold;
  /* Set the player's name as bold */
  text-align: center;
  /* Center the player's name */
  color: black;
}

.attempt-0 {
  display: flex;
  justify-content: center; /* Center the circles horizontally */
}

.attempt-0-container {
  /* Add padding between attempts */
  padding-bottom: 10px;
}

.circle-container-0 {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-right: 4px;
  margin-left: 4px;
}

.circle-0 {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: grey;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 14px;
  /* Adjust font size and colors if needed */
  overflow: hidden;
  padding: 5px;
}

.circle-0 img {
  max-width: 100%;
  max-height: 100%;
}

/* Close button styles */
.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #000000;
  color: white;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 20px;
  line-height: 30px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.close-btn:hover {
  background: #2a2a2a;
}

.circle.correct {
  background-color: green; /* green */
  color: white;
}

.circle.incorrect {
  background-color: grey;
  color: white;
}

.pop-animation {
  animation: pop 2s ease-in-out forwards;
}

@keyframes pop {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.share-buttons {
  margin-top: 20px;
}

.share-buttons button {
  margin: 2px;
  padding: 5px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer !important;
  height: 40px;
  width: 40px;
}

.share-buttons button:hover {
  background-color: #45a049;
}

.share-icons {
  width: 70%;
}

.share-buttons a {
  text-decoration: none;
  text-decoration-line: none;
}

.share-whatsapp {
  background-color: #25d366 !important;
}

.share-facebook {
  background-color: #1877F2 !important;
}

.share-twitter {
  background-color: #000 !important;
}

.share-email {
  background-color: rgb(98, 36, 36) !important;
}

.share-copy {
  background-color: grey !important;
  cursor: pointer;
}

.blur-transition {
  transition: filter 1.5s ease-in;
}

.widget {
  width: 28%;
  height: auto;
  background-color: rgba(255, 255, 255, 0.245);
  border-radius: 20px;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative; /* Add relative positioning */
  margin-top: 10px;
}

@media screen and (max-width: 767px) {
  .widget {
      width: 66%;
  }
}

.widget-label-container {
  position: absolute;
  top: -10px; /* Adjust positioning to align properly */
  left: 50%; /* Adjust positioning to center properly */
  transform: translateX(-50%); /* Center horizontally */
  width: 30%;
}

.widget-label {
  background-color: rgba(255, 255, 255, 1); /* Adjust background color */
  color: #333; /* Adjust text color */
  font-weight: bold;
  text-align: center;
  padding: 5px;
  border-radius: 10px;
  font-size: 0.4em;
}

.team-info {
  display: flex;
  align-items: center;
}

.team-logo {
  width: 20px; /* Adjust size as needed */
  height: auto;
  margin-right: 10px;
}

.team-name {
  font-weight: bold;
  color: #1b1b1bad;
  font-size: 0.8em;
}

.match-details {
  text-align: center;
  font-size: 0.6em;
  font-weight: bold;
  margin: auto 0;
}

.match-details p {
  padding: 0;
  color: #1b1b1bad;
}

@media (min-width: 500px) {}
.all-time-stats-container {
align-self: center;
}

.all-time-stats-container {
  display: flex;
  width: 100%;
  margin-bottom: 10px;
  }

  .all-time-stats {
    flex: 1;
    display: inline-grid;
   /* margin-left: 12px; */
    }

  ol, ul {
    list-style: none;
    }

    ul {
      padding-inline-start: 0px !important;
      margin-block-start: 0em !important;
      margin-block-end: 0em !important;
    }


      @media (min-width: 500px) {}
      .all-time-stats .single-stat:not(.Stats-module_small__zkkbW) {
      font-size: 34px;
      font-weight: 500;
      }
      .all-time-stats .single-stat {
      font-size: 24px;
      font-weight: 400;
      display: flex;
     /* align-items: center; */
      justify-content: center;
      text-align: center;
      letter-spacing: .05em;
      font-variant-numeric: proportional-nums;
      line-height: 34px;
      }

      @media (min-width: 500px) {}
.all-time-stats .stat-label {
margin-top: 4px;
}
.all-time-stats .stat-label {
color: gray;
font-size: 12px;
font-weight: 400;
display: flex;
/* align-items: center; */
justify-content: center;
text-align: center;
line-height: 14px;
letter-spacing: .1em;
}

.privacy-policy {
  background-color: white;
  margin: 20px;
  padding: 10px;
  border-radius: 20px;
}

.circle.secondary-correct {
  background-color: goldenrod; /* yellow */
  color: green;
}

.circle.previous-correct {
  background-color: goldenrod; /* yellow */
  color: green;
}

.widget {
display: none;
}

/* Stats styles */
.stats-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 999999;
}

.stats-modal {
  background: white;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  width: 80%;
  font-size: 0.8em;
  position: relative; 
}



.stats-modal h2 {
  margin-top: 0;
}

.stats-modal img {
  width: auto;
  height: 20px;
  cursor: pointer;
}

/* styles.css */
#star-rating {
  display: flex;
  font-size: 2rem;
  justify-content: center;
}

.star {
  cursor: pointer;
  width: 1em;
  height: 1em;
  background: lightgray; /* Default background for unshaded stars */
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  margin: 0 5px;
  
}

.star.filled {
  background: gold; /* Background for shaded stars */
}

.star.quarter-filled {
  background: linear-gradient(to right, gold 25%, lightgray 25%);
}

.star.half-filled {
  background: linear-gradient(to right, gold 50%, lightgray 50%); /* Half-shaded star */
}

.star.three-quarter-filled {
  background: linear-gradient(to right, gold 75%, lightgray 75%);
}

.small-badge-image {
  width: 20px;
  height: 20px;
  margin-right: 4px;
}

.option {
  padding: 8px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  line-height: 20px;
  vertical-align: middle;
  justify-content: center;
}

.option:hover {
  background-color: rgb(227, 237, 255);
}

.skeleton {
  animation: skeleton-loading 1s linear infinite alternate;
}

@keyframes skeleton-loading {
  0% {
    background-color: hs1(200, 20%, 50%);
    opacity: 50%;
  }
  100% {
    background-color: hs1(200, 20%, 95%);
    opacity: 95%;
  }
}
.guess-distribution {
  width: 90%;
  max-width: 600px;
}

.guess-distribution h2 {
  text-align: left;
  margin-top: 20px;
  color: #848484;
  text-transform: uppercase;
  font-size: 12px;
}

#distributionChart {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: small;
}

.graph-container {
  display: flex;
  align-items: center;
  width: 100%;
}

.attempt-number {
  width: 20px;
  text-align: center;
  font-weight: bold;
}

.graph-bar {
  flex-grow: 1;
/*   background-color: #b2b2b2; */
  margin: 0 10px;
  position: relative; /* Ensures that num-guesses can be positioned inside */
  height: 20px;
 /* border-radius: 5px; */
  overflow: hidden;
}

.graph-bar .bar {
  height: 100%;
  background-color: #1b1b1b;
  position: relative; /* Allow positioning of num-guesses inside */
  border-radius: 5px;
}

.num-guesses {
  position: absolute; /* Position inside the bar */
  right: 0px; /* Align to the right */
  top: 50%; /* Vertically center */
  transform: translateY(-50%); /* Fine-tune vertical alignment */
  font-weight: bold;
  color: #fff; /* White text for contrast */
  font-size: 12px;
  z-index: 2; /* Ensure it's above the bar */
  padding-right: 5px;
  white-space: nowrap; /* Prevent text overflow */
  overflow: hidden;
}

.play-area {
    height: 100vh;
    width: 100vw;
    background-color: white;
    display: flex;
    align-items: center;
    contain: content;
    flex-wrap: nowrap;
    margin: 0 auto;
    flex-direction: column;
}

/* Hamburger styles */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  margin-left: auto;
  margin-right: 0;
}
.hamburger span {
  display: block;
  height: 2px;
  width: 18px;
  background: #222;
  border-radius: 2px;
  transition: all 0.3s;
}

/* Side menu styles */
.side-menu {
  position: fixed;
  top: 0;
  right: -320px;
  width: 280px;
  height: 100%;
  background: #fff;
  box-shadow: -2px 0 16px rgba(0,0,0,0.08);
  transition: right 0.3s;
  z-index: 1000;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.side-menu.open {
  right: 0;
}
.side-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0px 24px 0px 24px;
  font-family: 'Anton', Arial, sans-serif;
  font-size: 1.2em;
  border-bottom: 1px solid #eee;
  height: 60px;
}

.side-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.side-menu li {
  margin: 0;
  padding: 12px 24px;
  width: 100%;
  box-sizing: border-box;
  border-radius: 0;
  transition: background 0.2s;
}

.side-menu li:hover {
  background-color: #8d99ae;
}

.side-menu a {
  text-decoration: none;
  color: #222;
  font-size: 1.1em;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}
.side-menu a:hover {
  color: #222; /* Keep link text black on hover */
}

#closeMenu {
  background: none;
  border: none;
  font-size: 2em;
  cursor: pointer;
  color: #222;
  line-height: 1;
  padding: 0;
}

/* Responsive: hide hamburger on wide screens if desired */
@media (max-width: 900px) {
  .hamburger {
    display: flex;
  }
}
@media (min-width: 901px) {
  .hamburger {
    display: flex;
  }
}