@import url("https://fonts.googleapis.com/css2?family=Bungee+Spice&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Bitcount+Ink:wght@100..900&family=Bungee+Spice&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Bitcount+Ink:wght@100..900&family=Bungee+Spice&family=Caprasimo&display=swap");

* {
  margin: 0;
  padding: 0;
  overflow: hidden;
}

html {
  overflow: hidden; 
} 


a {
  text-decoration: none;
}

header {
  border: solid 2px black;
  padding: 20px;
}

#bgImage {
  height: 100vh;
  width: 100vw;
  z-index: -2;
  position: fixed;
  top: 0;
  left: 0;
  object-fit: cover;
}

img {
  -webkit-user-drag: none; /*new*/
  -khtml-user-drag: none; /*old*/
  -moz-user-drag: none; /*mozilla*/
  -o-user-drag: none; /*opera*/
}

#changeUsername {
  visibility: hidden;
  opacity: 0;
  z-index: 5;
  display: flex;
  font-family: "Bungee Spice", cursive;
  background-color: darkblue;
  color: white;
  font-size: 150%;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-inline: 20%;
  margin-block: 10%;
  border-radius: 30px;
  outline: 20px solid yellow;
  text-shadow: -1px 1px 1px black;
  box-shadow: 0px 0px 100px 50px gray;
  transition: 0.2s ease;
}

#username {
  background-color: purple;
  outline: 2px solid white;
  width: 78%;
  height: 50%;
  border-radius: 10px;
  height: 30px;
  text-align: center;
  font-size: 80%;
  color: white;
  font-weight: bolder;
}

#username:hover {
  width: 80%;
  transition: 0.2s ease;
}

#applyUsername {
  background-color: yellowgreen;
  color: white;
  font-family: "Bungee Spice", cursive;
  width: 20%;
  height: 50px;
  margin: 10px;
  border-radius: 10px;
  outline: 2px solid white;
  font-size: 90%;
  text-shadow: -2px -3px 1px black;
}

#applyUsername:hover {
  width: 23%;
  transition: 0.2s ease;
}

#applyUsername:active {
  transform: scale(0.7);
}

#menuPage {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.2s ease;

  position: relative;
  z-index: 1;
  height: 100vh;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
}

#parent {
  border-radius: 10px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(5, 1fr);
  width: 100%;
  height: 100%;
}

#div1 {
  grid-column: span 5 / span 5;

  display: grid;
  grid-template-columns: 1fr 3fr 1fr;

  font-family: "Bungee Spice", cursive;
  font: 200%;
  text-shadow: 0px 0px 50px 50px grey;
}

#row1Left,
#row1Right,
#boardsDiv3,
#statsDiv3 {
  width: 100%;
  height: 100%;
}

#row1Middle {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 50vw;
}

#div2 {
  grid-column: span 5 / span 5;
  grid-column-start: 1;
  grid-row-start: 5;
}

#div3 {
  grid-column: span 3 / span 3;
  grid-row: span 3 / span 3;
  grid-column-start: 3;
  grid-row-start: 2;
}

#div4 {
  grid-column: span 2 / span 2;
  grid-row: span 3 / span 3;
  grid-column-start: 1;
  grid-row-start: 2;

  padding-left: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#gitLink {
  width: 100%;
  display: flex;
  justify-content: end;
  align-items: center;
  height: 90%;
}

#gitImg {
  height: 80%;
  margin-right: 10%;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

#gitImg:hover {
  background-color: white;
  height: 85%;
  transition: 0.1s ease;
}

#coverArt {
  width: 100%;
  height: 100%;
}

nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background-color: rgba(0, 0, 0, 0.5);
  width: 70%;
  height: 95%;
  justify-content: center;
  align-items: center;
  border-radius: 20px;
}

nav:hover {
  width: 72%;
  height: 97%;
  transition: 0.2s ease;
}

nav:disabled {
  transition: 1s ease;
}

nav button,
#stats {
  padding: 0;
  width: 80%;
  height: 18%;
  border-radius: 25px;
  outline: 1px solid black;
  background-color: yellowgreen;
  font-size: 170%;
  overflow: hidden;
  font-family: "Bungee Spice", cursive;
  text-shadow: 3px 10px 2px white;
  cursor: pointer;
}

nav button:hover {
  border: solid 10px white;
}

nav button:active {
  transform: scale(0.9);
  transition: 0.1s ease;
}

#title {
  box-shadow: 0px 0px 30px 10px lightgrey;
  background-color: lightgrey;
  border-radius: 20px;
  padding: 20px;
  padding-inline: 100px;
  font-family: "Bungee Spice", cursive;
}

#div2 h1 {
  color: white;
  font-family: "Bitcount Ink";
  size: 100%;
  text-shadow: 3px 2px 0px white;
  margin-top: 50px;

  animation: loop 6s linear infinite;
}

@keyframes loop {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

#optionsPage {
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease;

  color: white;

  z-index: 2;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(5, 1fr);
  background-color: rgba(0, 0, 0, 0.5);
}

#optDiv2 {
  grid-column: span 3 / span 3;

  min-width: 50vw;
  display: flex;
  justify-content: center;
  align-items: center;
}

#optDiv3 {
  grid-column-start: 5;
}

#optDiv4 {
  grid-row: span 3 / span 3;
  grid-column-start: 2;
  grid-row-start: 2;

  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  border-radius: 50px 0px 0px 50px;
}

#optDiv5 {
  grid-column: span 2 / span 2;
  grid-row: span 3 / span 3;
  grid-column-start: 3;
  grid-row-start: 2;
  border-radius: 0px 50px 50px 0px;

  position: relative;
  overflow: hidden;
}

#optDiv4,
#optDiv5 {
  background-color: rgba(0, 0, 0, 0.8);
  border: 5px solid white;
}

#optDiv6 {
  grid-column-start: 2;
  grid-row-start: 5;
}

#optDiv7 {
  grid-column: span 2 / span 2;
  grid-column-start: 3;
  grid-row-start: 5;
}

#row1Left,
#optDiv1 {
  display: flex;
  justify-content: center;
  align-items: center;
}

.menuButton {
  width: 50%;
  height: 50%;
  background-color: red;
  font-size: 250%;
  border-radius: 20px;
  font-family: "Caprasimo";
  color: white;
  text-shadow: 2px 5px 10px yellow;
  outline: 5px solid black;
  cursor: pointer;
}

.menuButton a {
  text-decoration: none;
  color: white;
}

.menuButton:hover {
  width: 55%;
  height: 55%;
  transition: 0.1s ease;
  font-size: 300%;
}

#optDiv4 button {
  border: none;
  height: 100%;
  text-align: center;
  width: 100%;
  background: none;
  color: white;
  cursor: pointer;
  font-size: 200%;
}

#optDiv4 #optName {
  background-color: orange;
}

#optDiv4 *,
#optDiv5 * {
  font-family: "Caprasimo";
}

#optDiv5 #optNamePage {
  margin-top: 5%;
  height: 100%;
  gap: 5%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#optDiv5 #optNamePage > div {
  width: 80%;
  height: 30%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 200%;
  text-align: center;
}

#optDiv5 #optNamePage #change {
  font-size: 400%;
  width: 60%;
  height: 20%;
  border-radius: 50px 10px 60px 20px;
  outline: greenyellow solid 2px;
  background: orange;
  color: white;
  margin-bottom: 10%;
}

#optDiv5 #optNamePage #change:hover {
  border-radius: 40px 10px 50px 20px;
  outline: 5px solid yellow;
  font-size: 410%;
  transition: 0.1s ease;
}

#currName {
  animation: bigSmall 3s linear infinite;
  outline: 2px solid red;
  background-color: red;
  border-radius: 25px;
}

@keyframes bigSmall {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

#stateOfName {
  color: greenyellow;
}

#optTypePage #how {
  text-align: center;
}

#optTypePage #choice {
  gap: 40px;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
}

#optTypePage #choice button {
  height: 50%;
  width: 40%;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 20px;
  max-width: 50%;
  margin-bottom: 20%;
  background-color: transparent;
  color: white;
  cursor: pointer;
}

#optTypePage #choice img {
  width: 100%;
  height: 100%;
  z-index: -0.5;
}

#optMusicPage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 200px;
}

#musicSelect {
  font-size: 1.2em;
  padding: 5px 20px;
  border-radius: 10px;
  text-align: center;
}

#uploadForm {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

#addMusicBtn {
  font-family: 'Caprasimo';
  background: orange;
  color: white;
  border-radius: 10px;
  padding: 5px 20px;
  border: none;
  cursor: pointer;
}

#optNamePage,
#optTypePage,
#optDifPage,
#optSoundPage,
#optMusicPage {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  visibility: hidden;
}

#optNamePage {
  visibility: visible;
}

#optTypePage {
  margin-top: 10%;
}

#difChoice {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
  gap: 40px;
}

#difEasy,
#difMid,
#difHard {
  flex: 1 1 1;
  width: 40%;
  height: 35%;
  border-radius: 15px;
  overflow: hidden;
  outline: 0px solid yellow;
}

#difEasy img,
#difMid img,
#difHard img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#soundVolumeLevels button {
  color: white;
  width: 30%;
  height: 40%;
  cursor: pointer;
  font-size: 80%;
  border-radius: 30px;
  border: 5px solid white;
}

#soundVolumeLevels {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
}

#soundFx,
#music {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 300%;
  margin-top: 5%;
}

#sound0,
#sound50,
#sound100,
#music0,
#music50,
#music100 {
  background-color: transparent;
}

#optDiv6,
#optDiv7 {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 90%;
  height: 80%;
}

#optDiv6 button,
#optDiv7 button {
  width: 95%;
  height: 85%;
  border-radius: 20px;
  font-size: 200%;
  font-family: "Caprasimo";
}

#optDiv6 button:hover,
#optDiv7 button:hover {
  width: 97%;
  height: 87%;
  transition: 0.2s ease;
}
#optDiv6 button:active,
#optDiv7 button:active {
  width: 93%;
  height: 83%;
  transition: 0.2s ease;
}

#optDiv6 button {
  background-color: red;
  color: white;
}

#optDiv7 button {
  background-color: orange;
}

#gamePage {
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.1s ease;
}

#gameParent {
  color: white;

  z-index: 2;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(5, 1fr);
  background-image: url("../imgs/bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#gameDiv1 {
  grid-column: span 5 / span 5;
  grid-column: 1;
  grid-row: 1;

  display: grid;
  grid-template-columns: 1fr 3fr 1fr;

  font-family: "Bungee Spice", cursive;
  font: 200%;
  text-shadow: 0px 0px 50px 50px grey;
}

#gameDiv2 {
  grid-column: span 3 / span 3;
  grid-row: 1;
  grid-column-start: 2;
}

#gameDiv3 {
  grid-column-start: 5;
  grid-row: 1;
  grid-column-start: 5;
}

#gameDiv4 {
  grid-row-start: 2;
  grid-column: 1;
}

#gameDiv5 {
  grid-row-start: 2;
  grid-column: 2;
}

#gameDiv6 {
  grid-row-start: 2;
  grid-column: 3;
}

#gameDiv7 {
  grid-column: span 2 / span 2;
  grid-row: span 2 / span 2;
  grid-column-start: 4;
  grid-row-start: 2;
}

#gameDiv8 {
  grid-column: span 3 / span 3;
  grid-row: span 3 / span 3;
  grid-column-start: 1;
  grid-row-start: 3;
}

#gameDiv9 {
  grid-column: span 2 / span 2;
  grid-row: span 2 / span 2;
  grid-column-start: 4;
  grid-row-start: 4;
}

#gameDiv1,
#gameDiv2,
#gameDiv3,
#gameDiv4,
#gameDiv5,
#gameDiv6,
#gameDiv7,
#gameDiv8,
#gameDiv9 {
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Caprasimo";
} 

#startGame {
  font-family: "Caprasimo";
  width: 100%;
  height: 50%;
  border-radius: 20px;
  font-size: 200%;
  background-color: yellowgreen;
  color: white;
  border-top: none;
  border-left: none;
  border-bottom: 10px solid green;
  border-right: 10px solid green;
}

#startGame:active {
  border: none;
}

/* #Ball {
  background-color: aqua;
  color: black;
  font-size: 400%;
  outline: 10px solid gold;
  height: 70%;
  aspect-ratio: 1;
  border-radius: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0px 0px 80px 20px gold;
  animation: breathe 5s ease infinite;
} */

/* @keyframes breathe {
  0%,
  100% {
    box-shadow: 0px 0px 80px 20px gold;
  }
  50% {
    box-shadow: 0px 0px 120px 40px gold;
  }
} */

/* #boardPlayer,
#boardBot {
  border-collapse: collapse;
  width: 100%;
  height: 100%;
  border: none;
  border-spacing: 0;
}

#boardPlayer td,
#boardBot td {
  outline: 2px solid black;
  padding: 10px;
  text-align: center;
  background-color: rgb(146, 233, 146);
}

.wrapper {
  border-radius: 25px;
  overflow: hidden;
  width: 90%;
  height: 60%;
  outline: 10px solid blue;
  margin-top: 2%;
} */

/* #gameDiv8,
#gameDiv9 {
  display: flex;
  flex-direction: column;
}

#botName {
  height: 20%;
  width: 80%;
  aspect-ratio: 1;
  background-color: red;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 15px;
  font-size: 300%;
}

#playerName {
  height: 20%;
  width: 80%;
  aspect-ratio: 1;
  background-color: yellow;
  color: black;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 15px;
  font-size: 300%;
} */

/* #gameDiv3 div {
  background-color: rgba(0, 0, 0, 0.1);
  width: 70%;
  height: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 20px;
  outline: 5px solid black;
} */

#boardsPage {
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.1s ease;

  width: 100%;
  height: 100%;
}

#boardsParent {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(5, 1fr);
  z-index: 2;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.8);
}

#boardsParent form {
  display: contents;
}

#boardsDiv2 {
  grid-column: span 3 / span 3;
}

#boardsDiv3 {
  grid-column-start: 5;
}

#boardsDiv4 {
  grid-column: span 2 / span 2;
  grid-column-start: 2;
  grid-row-start: 2;

  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

#boardsDiv5 {
  grid-column-start: 4;
  grid-row-start: 2;

  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

#boardsDiv6 {
  grid-column: span 3 / span 3;
  grid-row: span 3 / span 3;
  grid-column-start: 2;
  grid-row-start: 3;
}

#boardsDiv1,
#boardsDiv2,
#boardsDiv3,
#boardsDiv4,
#boardsDiv5,
#boardsDiv6 {
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Caprasimo";
  color: white;
}

#boardsDiv1 {
  font-family: "Bungee Spice", cursive;
  font: 200%;
  text-shadow: 0px 0px 50px 50px grey;
}

#boardsAmount {
  font-family: "Caprasimo";
  width: 80%;
  height: 50%;
  border-radius: 20px;
  font-size: 200%;
  background-color: yellowgreen;
  color: white;
  border-top: none;
  border-left: none;
  border-bottom: 10px solid green;
  border-right: 10px solid green;
  cursor: pointer;
}

#boardsAmount:active {
  border: none;
}

#boardsDiv5 #boardsAmount {
  font-family: "Caprasimo";
  width: 80%;
  height: 50%;
  border-radius: 20px;
  font-size: 200%;
  background-color: yellowgreen;
  color: white;
  border-top: none;
  border-left: none;
  border-bottom: 10px solid green;
  border-right: 10px solid green;
}

#boardsDiv5 #boardsAmount:active {
  border: none;
}

#boardsDiv4 input {
  border-radius: 30px;
  background-color: darkblue;
  color: white;
  font-size: 200%;
  font-family: "Caprasimo";
  text-align: center;
  width: 95%;
  height: 40%;
  outline: blue solid 10px;
}

#boardsDiv4 input::-webkit-outer-spin-button,
#boardsDiv4 input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

/* #boardsBox {
  overflow: auto;
  border: 2px solid white;
  padding: 10px;
  width: 90%;
  height: 90%;
  background-color: black;
} */

#boardsInput {
  border-radius: 30px;
  background-color: darkblue;
  color: white;
  font-size: 200%;
  font-family: "Caprasimo";
  text-align: center;
  width: 95%;
  height: 40%;
  outline: blue solid 10px;
}

#statsPage {
  /* visibility: visible;
  opacity: 1; */
  transition: opacity 0.1s ease;

  width: 100%;
  height: 100%;
  z-index: 2;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
}

#statsParent {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(5, 1fr);
  background-color: rgba(0, 0, 0, 0.6);
  width: 100%;
  height: 100%;
}

#statsDiv2 {
  grid-column: span 3 / span 3;
}

#statsDiv3 {
  grid-column-start: 5;
}

#statsDiv4 {
  grid-column: span 3 / span 3;
  grid-row: span 4 / span 4;
  grid-column-start: 2;
  grid-row-start: 2;
}

#statsDiv1,
#statsDiv2,
#statsDiv3,
#statsDiv4 {
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Caprasimo";
  color: white;
}

#statsDiv1 {
  font-family: "Bungee Spice", cursive;
  font: 200%;
  text-shadow: 0px 0px 50px 50px grey;
}

#startGame a {
  text-decoration: none;
}

#statsDiv4 {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

#statsWrapper {
  width: 100vw;
  overflow-x: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 40px 0;
}

#statsTable {
  min-width: 800px; 
  max-width: 1200px;
}

#statsTable th {
  background: orange;
  color: white;
  padding: 0.5em 1em;
  border: 2px solid white;
  font-family: "Caprasimo";
  text-align: center;
}

#statsTable td {
  background: #222;
  color: yellowgreen;
  padding: 0.4em 1em;
  border: 2px solid white;
  text-align: center;
  font-family: "Caprasimo";
}

@media (max-width: 700px) {
  #statsTable, #statsTable th, #statsTable td {
    font-size: 2em;
    min-width: unset;
    padding: 0.2em 0.5em;
  }
}