html,
body {
  display: flex;
  height: 100%;
  margin: 0;
  align-items: center;
  justify-content: center;
  font-family: Arial, Helvetica, sans-serif;
  overflow: hidden !important;
}

.background {
  background-image: url("../assets/images/background.png");
  padding: 0 20px 20px 20px;
  border-radius: 5px;
  box-shadow: rgba(100, 100, 111, 0.8) 0px 7px 29px 0px;
  width: 600px;
  height: 825px;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #2c2c2c;
  padding: 0.5rem 1rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  margin-bottom: 5px;
}

#logo {
  width: auto;
  max-width: 150px;
  height: auto;
  padding: 0;
  object-fit: contain;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav-links li a {
  text-decoration: none;
  color: #fff;
  font-size: 1.75rem;
  transition: color 0.3s, transform 0.2s;
}

.nav-links li a:hover {
  color: #ef1717;
}

main {
  border-left: 6px solid rgb(63, 63, 63);
  border-right: 6px solid rgb(63, 63, 63);
  height: 97%;
  margin-top: 20px;
}

h1 {
  text-transform: uppercase;
  font-size: 2rem;
  font-family: Arial, Helvetica, sans-serif;
  margin: 20px 0 20px 10px;
}

main h1 span:nth-child(1),
main span:nth-child(2) {
  color: red;
}

main h1 span:nth-child(1) {
  font-weight: bold;
}

main h1 span:nth-child(2) {
  font-weight: 500;
}

.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(2.5px);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.popup-content {
  display: flex;
  flex-direction: column;
  position: relative;
  background-color: white;
  padding: 20px;
  text-align: center;
  width: 100%;
  max-width: 500px;
  border-radius: 8px;
}

.popup-content #kofi-button {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #ef1717;
  color: white;
  font-weight: bold;
  font-size: 1.05rem;
  height: 45px;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.popup-content #kofi-button:hover {
  background: #ba1313;
}

.popup-content #kofi-button::after {
  content: '➔';
  margin: 0 10px 0 10px;
}

.popup-content #kofi-button img {
  margin: 0 10px 0 10px;
  width: 35px;
  height: auto;
}

.popup-content #kofi-button img.shake {
  animation: kofiShake 2s infinite ease-in-out;
}

#cheer1 {
  transform: scaleX(-1);
  width: 35px;
  height: 35px;
  position: relative;
  animation: cheer1 2s infinite ease-in-out;
  margin: 0;
}

#cheer2 {
  width: 35px;
  height: 35px;
  position: relative;
  animation: cheer2 2s infinite ease-in-out 1s;
  margin: 0;
}

@keyframes cheer1 {
  0% {
    transform: scaleX(-1) translateX(0);
  }

  50% {
    transform: scaleX(-1) translateX(20px);
  }

  100% {
    transform: scaleX(-1) translateX(0)
  }
}

@keyframes cheer2 {
  0% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(-20px);
  }

  100% {
    transform: translateX(0);
  }
}

@keyframes kofiShake {
  0% {
    transform: rotate(-5deg);
  }

  25% {
    transform: rotate(5deg) scale(1.1);
  }

  50% {
    transform: rotate(-5deg) scale(1);
  }

  75% {
    transform: rotate(5deg) scale(1.1);
  }

  100% {
    transform: rotate(-5deg) scale(1);
  }
}

.popup h2 {
  font-size: 30px;
  margin-bottom: 10px;
  font-weight: bold;
  font-family: Arial, Helvetica, sans-serif;
}

.popup p {
  margin-bottom: 20px;
}

.close-btn {
  position: absolute;
  top: 0;
  right: 10px;
  font-size: 50px;
  font-family: 'Courier New', Courier, monospace;
  color: black;
  cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
  color: #7a7979;
  text-decoration: none;
  cursor: pointer;
}

.popup-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.popup-buttons button {
  padding: 10px 20px;
  background-color: rgb(37, 36, 36);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.popup-buttons button:hover {
  background-color: rgb(55, 54, 54);
}

.stats-container {
  display: flex;
  justify-content: space-around;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.stats-item {
  text-align: center;
}

.stats-value {
  font-size: 24px;
  font-weight: bold;
  color: black;
  margin: 0;
}

.stats-label {
  font-size: 14px;
  color: #333;
  margin: 0;
}

.guess-distribution {
  width: 100%;
  max-width: 600px;
}

.guess-distribution h3 {
  text-align: center;
  margin-bottom: 10px;
  font-weight: bold;
}

.guess-distribution .guess-bar {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  position: relative;
}

.guess-distribution .guess-bar span {
  width: 100px;
}

.guess-distribution .guess-bar .bar-container {
  flex-grow: 1;
  background-color: #e0e0e0;
  height: 20px;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
}

.guess-distribution .guess-bar .bar {
  height: 100%;
  border-radius: 10px;
  position: relative;
}

.guess-distribution .guess-bar .percentage {
  width: 50px;
  text-align: right;
  padding-left: 5px;
}

.guess-distribution .guess-bar .count {
  position: absolute;
  right: -25px;
  top: 2px;
  color: white;
}

@media screen and (max-width: 3000px) {

  html,
  body {
    overflow: visible !important;
  }

}

@media (max-width: 1600px) {

  html,
  body {
    overflow: visible !important;
  }

  .background {
    width: auto;
    /* Adjust the width for smaller screens */
    height: auto;
    /* Allow height to adjust automatically */
  }
}

@media (max-width: 1260px) {

  html,
  body {
    overflow: visible !important;
  }
}

@media screen and (max-width: 600px) {

  html,
  body {
    height: auto;
  }

  .background {
    width: auto;
    height: auto;
    padding: 5px;
    margin-top: 0;
  }

  .nav-links {
    gap: 1rem;
  }

  .nav-links li a {
    font-size: 1.5rem;
  }

  #logo {
    width: auto;
    margin: 0 5px 0 5px;
    padding: 5px;
  }
}