body {
  font-family: sans-serif;
  display: flex;
  align-items: center;
  flex-direction: column;
  background-color: #fff;
}

button {
  border-radius: 0px;
}
#intro-popup-container {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  font-size: 2em;
  /* background: #B5D9A9; */
  background: #3bbaf5;
  justify-content: center;
  align-items: center;
  z-index: 5;
}

#intro-popup {
  position: relative;
  background: rgba(0, 0, 0, 0);
  padding: 20px;
  text-align: center;
}

.intro-button {
  cursor: pointer;
  border-radius: 100px;
  background-color: #000;
  color: white;
  width: 10em;
  height: 4em;
  /* padding: 10px 60px; */
  border: none;
  margin-top: 2em;
}

#intro-popup {
  max-height: 100vh;
  width: 100%;
  /* max-width: 420px; */

  overflow-y: auto;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;

  padding: 1.25rem;
  box-sizing: border-box;
}

.intro-button {
  cursor: pointer;
  border-radius: 20px;
  background-color: #b5d9a9;
  color: black;
  width: 10em;
  height: 4em;
  /* padding: 10px 60px; */
  border: 5px solid;
  margin-top: 2em;
}

#how-to-play-button {
  background-color: white;
  color: black;
  border: 5px solid;
}

button[data-diff="beginner"] {
  background: #b5d9a9;
}
button[data-diff="novice"] {
  background: #b5d9a9;
}
button[data-diff="intermediate"] {
  background: rgba(246, 190, 0, 1);
}
button[data-diff="advanced"] {
  background: rgba(246, 190, 0, 1);
}
button[data-diff="expert"] {
  background: #f5793a;
  color: black;
  border-color: black;
}
button[data-diff="professional"] {
  background: #f5793a;
  color: black;
  border-color: black;
}

#board {
  display: flex;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 50px;
  /* flex-direction: column; */
}

#navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  /* background-color: #f5793a; */
  background-color: #3bbaf5;

  /* background-color: #d97840; */
  color: #000;
  padding: 10px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1;
}

#navbar-logo {
  font-size: 1.5em;
  font-weight: bold;
  margin-right: auto;
  padding-left: 2rem;
}

.navbar-icon {
  width: 50px;
  height: 50px;
  /* margin-right: auto; */
  padding-right: 2rem;
}

.navbar-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5em;
  height: 2.5em;
  border-radius: 50%;
  background-color: white;
  /* margin-right: 2rem; */
  font-weight: bold;
  cursor: pointer;
}

.navbar-back span {
  color: black;
  font-size: 1.5em;
  display: inline-block;
  transform: rotate(180deg);
}

/* Dropdown styles */
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  right: 2.5em;
  border: 2px solid #000;
  border-radius: 12px;
  /* background-color: #b5d9a9; */
  /* min-width: 120px; */
  overflow: hidden;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 2;
  flex-direction: column;
  /* padding-right: 2em; */
}

.dropdown-content button {
  color: #000;
  /* background-color: #b5d9a9; */
  border: none;
  padding: 15px;
  text-align: left;
  font-size: 1em;
  cursor: pointer;
  width: 100%;
  border-bottom: 1px solid #000; /* line between buttons */
}

/* Remove the border from the last button */
.dropdown-content button:last-child {
  border-bottom: none;
}

.dropdown-content button:hover {
  background-color: #d9a9d2;
  /* background-color: #b5d9a9; */
}

.dropdown-content #reset {
  /* background-color: #f5793a; */
  text-align: center;
  font-weight: 700;
}
.dropdown-content #reset:hover {
  background-color: #d9a9d2;
}

#logo {
  width: 3em;
}

#rules-popup-container {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  justify-content: center;
  align-items: center;
  z-index: 20;
  overflow: auto;
}

#rules-popup {
  position: relative;
  margin-top: 100px;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  text-align: left;
  overflow: auto;
}

#close-rules-popup {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
  font-size: 20px;
  font-weight: bold;
  color: #000;
}

.board {
  display: flex;
  flex-wrap: wrap;
  width: 440px;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}

.hole {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin: 10px;
  box-shadow: inset 0 0 0 4px #000; /* Inset box shadow with a 5px width and black color */

  /* border: 1px solid; */
}

.occupied {
  background-color: #3bbaf5;
  margin: 10px;
  cursor: pointer;
}

.occupied:hover {
  transform: scale(1.2);
}

.selected {
  background-color: #f5793a;
  transform: scale(1.2);
}

.empty {
  /* background-color: #CFCFCF; */
  background-color: rgba(230, 230, 230, 10);

  cursor: not-allowed;
}

.non-hole {
  background-color: #fff;
  box-shadow: inset 0 0 0 0 #000; /* Inset box shadow with a 5px width and black color */

  border: none;
}

.available {
  background-color: rgba(246, 190, 0);
  transform: scale(1.2);
  cursor: pointer;
}

.toast-success {
  background-color: #85c0f9;
  color: black;
}

#share-popup-container {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  justify-content: center;
  /*align-items: center;*/
  overflow: auto;
  overflow-y: auto;
  box-sizing: border-box;
  z-index: 10; /* Ensure the popup is above other elements */
}

#share-popup {
  position: relative;
  background: #fff;
  margin-top: 75px;

  padding: 20px;
  border-radius: 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-height: none;
  overflow-y: auto;
}

#close-share-popup,
#close-rules-popup {
  position: absolute;
  top: 10px;
  right: 10px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2em;
  height: 2em;
  border-radius: 50%;
  background-color: #d9a9d2;
  font-weight: bold;
  cursor: pointer;
}

#close-share-popup span {
  color: black;
  font-size: 1.5em;
}

#share-button,
#show-path-button {
  display: none;
  cursor: pointer;
  border-radius: 100px;
  background-color: #000;
  color: white;
  width: 10em;
  height: 3em;
  border: none;
  margin-bottom: 30px;
}

#share-icon {
  vertical-align: middle;
  margin-left: 10px;
  color: black;
}
@media screen and (max-width: 765px) {
  body {
    padding: 0;
    margin: 0;
    align-items: center;
    flex-direction: column;
  }
  .board {
    display: flex;
    flex-wrap: wrap;
    width: 90vw;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
  }

  .hole {
    width: 10vw; /* Adjusted size for smaller screens */
    height: 10vw;
    margin: 5px;
  }

  #rules-popup {
    width: 90%; /* Make popup fit better on small screens */
    padding: 15px;
    font-size: 0.9em;
  }

  #close-rules-popup {
    font-size: 1.2em;
    top: 8px;
    right: 8px;
  }
}

button[data-diff].completed {
  position: relative;
  background-color: grey;
  border-color: black;
  color: black;
  opacity: 75%;
}

button[data-diff].completed::after {
  content: "✓";
  position: absolute;
  justify-content: center;
  right: 10px;

  font-size: 1rem;
  font-weight: bold;
  color: white;
}

#try-difficulty-button {
  display: none;
  cursor: pointer;
  border-radius: 20px;
  background-color: #d9a9d2;
  color: black;
  width: 15em;
  height: 3em;
  border-color: black;
  border: 5px solid;
  margin-bottom: 10px;
}

#share-button {
  display: none;
  cursor: pointer;
  border-radius: 20px;
  background-color: #b5d9a9;
  color: black;
  width: 15em;
  height: 3em;
  border-color: black;
  border: 5px solid;
  margin-bottom: 10px;
}
