@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');
@import url('./landing-page.css');

::-webkit-scrollbar {
  width: 0px;
  height: 0px;
}

body {
  margin: unset !important;
  position: relative;
  font-family: 'VT323', monospace;
  font-weight: 400;
  font-style: normal;
  overflow: hidden;
}

canvas {
  z-index: 0;
  width: 100% !important;
  height: 100vh !important;
  margin: unset !important;
}

.hover {
  cursor: pointer;
  box-shadow: 0px 0px 4px 4px #faf8d3;
}

#gap_dash_form {
  width: 500px;
  height: 450px;
  position: absolute;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  top: calc(50% - 240px);
  border-radius: 10px;
  justify-content: center;
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0px 0px 10px 5px rgba(0, 0, 0, 0.5);
  left: 50%;
  transform: translateX(-50%);
}

.title-gap-dash {
  font-size: 40px;
  color: rgba(255, 255, 255, 0.8);
  font-family: 'VT323', monospace;
  font-weight: 400;
  font-style: normal;
}

.input-gap-dash {
  border-radius: 10px;
  font-family: 'VT323', monospace;
  font-weight: 400;
  font-style: normal;
  margin: 0px auto;
  background-color: rgba(255, 255, 255, 0.8);
  width: 80%;
  padding: 10px;
  text-align: center;
  font-size: 18px;
  border: none;
}

.input-gap-dash::placeholder {
  color: rgba(0, 0, 0, 0.5);
  font-family: 'VT323', monospace;
  font-weight: 400;
  font-style: normal;
}

.gap_button {
  width: 30%;
  font-family: 'VT323', monospace;
  font-weight: 400;
  font-style: normal;
  transform: scale(1.5);
  margin-top: 10px;
  border: unset;
  border-radius: 5px;
  background-color: rgba(238, 246, 79, 1);
  padding: 5px 10px;
  font-size: 18px;
  border: 1px solid white;
  margin-bottom: 12px;
}

.gap-button-hover {
  box-shadow: 0px 0px 3px 3px #e1e1e1;
}
/* 
#submitButton {
  width: 30%;
  font-family: "VT323", monospace;
  font-weight: 400;
  font-style: normal;
  transform: scale(1.5);
  margin-top: 10px;
  border: unset;
  border-radius: 5px;
  background-color: rgba(238, 246, 79, 1);
  padding: 5px 10px;
  font-size: 18px;
  border: 1px solid white;
} */

#gameOverCard {
  width: 520px;
  position: absolute;
  z-index: 1000;
  top: calc(50% - 150px);
  left: calc(50% - 300px);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background-color: rgba(0, 0, 0, 0.4);
  align-items: center;
}

.game-over-title {
  color: wheat;
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  position: absolute;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  top: -140px;
  list-style: none;
}

.congratulation {
  color: yellow;
  top: -100px;
  font-size: 50px;
}

.sub-card {
  display: flex;
  /* border: 1px solid; */
  justify-content: center;
  align-items: center;
  /* background-color: #30b1fa; */
  /* border-radius: 5px;
  border-color: #f5c4ad; */
  color: white;

  margin-top: -18px;
}

.game-info {
  min-height: 120px;
  width: 100%;

  display: flex;
  gap: 20px;
}

.game-info > div {
  flex: 1;
  background-color: rgba(255, 255, 255, 0.3);
  display: flex;
  flex-direction: column;
  padding: 10px;
  border-radius: 6px;
  text-align: center;
  line-height: 26px;
  justify-content: center;
  font-size: 20px;
  border: 1px solid #676767;
  color: #ffd27d;
  align-items: center;
  padding: 20px 10px;
}
.game-info > div > img {
  width: 50px;
  height: 50px;
  margin-top: 10px;
}

.action-button-container {
  display: flex;
  width: 100%;
  gap: 20px;
  justify-content: center;
  gap: 40px;
}

.action-button {
  width: 100px !important;
  height: 40px;
  /* box-shadow: unset !important; */
  margin: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}
/* 
#playAgainButton {
 background-image: url(assets/images/1.png);
  background-repeat: no-repeat;
  background-size: contain;
}
 */
#goHomeButton {
  background-color: #30b1fa;
}

button#nextButton {
  font-size: 30px;
  font-family: 'VT323';
  width: fit-content;
  padding: 5px 20px;
  align-self: center;
}

.game-over-falling {
  /* background-color: unset !important;
  border: unset !important; */
}

.new-score-container {
  display: flex;
  justify-content: center;
  color: wheat;
  margin-top: -30px;
}
img.game-over-icon {
  width: 150px;
  margin-bottom: 13px;
}

img.game-logo-gap-dash {
  width: 125px;
  height: 125px;
  margin-top: -40px;
  border-radius: 15px;
  border: 2px inset rgba(255, 255, 255, 0.7);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.leaderboard-container {
  max-width: 500px;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  position: absolute;
  background-color: rgba(0, 0, 0, 0.3);

  min-height: 320px;
  width: 80%;
  z-index: 1000;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.leaderboard-wrapper {
  max-height: 350px;
  overflow-y: scroll;
  gap: 20px;
  display: flex;
  flex-direction: column;
}

.leaderboard {
  text-transform: uppercase;
  letter-spacing: 7px;
  text-shadow: 0 0 2px red;
  top: -40px;
  display: inline-flex;
  margin-left: 10px;
  margin-right: 10px;
  position: relative;
}

.heading-wrapper {
  display: flex;
  justify-content: space-evenly;
  position: absolute;
  top: -60px;
  left: 0;
  right: 0;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

img.adware-img {
  width: 40px;
  height: 40px;
}

.leaderboard-row {
  display: flex;
  flex-direction: row;
  gap: 20px;
  font-size: 25px !important;
  color: white;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 7px;
  padding: 5px 20px;
  border: 1px solid #23416210;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  justify-content: space-between;
  padding-top: 15px;
  padding-bottom: 15px;
}

.leaderboard-rank {
  width: 35px;
  height: 35px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid white;
  border-radius: 100%;
}

.leaderboard-row-top1 {
  background-color: rgba(255, 241, 196, 0.8);
  color: #676767;
}
.leaderboard-row-top2 {
  background-color: #c5f2fd;
  color: #676767;
}
.leaderboard-row-top3 {
  background-color: #ffc6c8;
  color: #676767;
}
.top-1,
.top-2,
.top-3 {
  border: unset;
}

.leaderboard-rank-icon {
  width: 45px;
  height: 45px;
}

.leaderboard-user {
  text-transform: uppercase;
  flex: 1;
  padding-left: 8px;
}

.leaderboard-container .gap_button {
  width: 30%;
  font-weight: 400;
  font-style: normal;
  border: unset;
  border-radius: 5px;
  background-color: rgba(238, 246, 79, 1);
  padding: 5px 10px;
  font-size: 18px;
  border: 1px solid white;
  margin-top: 20px;
}

.loader {
  width: 48px;
  height: 48px;
  border: 5px solid #f0f0f0;
  border-bottom-color: transparent;
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
  align-self: center;
  margin: 10px;
}

.back-button {
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.5px;
  cursor: pointer;
  text-decoration: underline;
}

#rankDiv {
  animation: mymove 5s infinite;
}

@keyframes mymove {
  50% {
    box-shadow: 5px 10px 15px #f9f5b7;
  }
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
