@font-face {
  font-family: "Bull";
  src: url("src/fonts/BULL-MEDIUM.OTF") format("opentype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Bull";
  src: url("src/fonts/BULL-HEAVY2.OTF") format("opentype");
  font-weight: bold;
  font-style: bold;
}

@font-face {
  font-family: "Bull";
  src: url("src/fonts/BULL-HEAVY2.OTF") format("opentype");
  font-weight: 600;
  font-style: 600;
}

body {
  cursor: url("https://storage.googleapis.com/red-bull-geogamer/webp/cursor/pano.cur"),
    auto;
}

button:hover,
a:hover {
  cursor: url("https://storage.googleapis.com/red-bull-geogamer/webp/cursor/active-link.cur"),
    auto;
}

#mapContainer {
  cursor: url("https://storage.googleapis.com/red-bull-geogamer/webp/cursor/drag.cur"),
    auto;
}

body,
html {
  font-family: "Bull";
  width: 100%;
  height: 100%;
  padding: 0px;
  margin: 0px;
  overflow: hidden;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 1);
  background: rgb(2, 0, 36);
  background: linear-gradient(
    90deg,
    rgba(2, 0, 36, 1) 0%,
    rgba(2, 0, 36, 1) 25%,
    rgba(0, 22, 43, 1) 69%,
    rgba(0, 74, 89, 1) 100%
  );
}

body.clicking {
  cursor: url("https://storage.googleapis.com/red-bull-geogamer/webp/cursor/pano-clicked.cur"),
    auto;
}
.container {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.box {
  position: absolute;
  top: 100px;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#progress-bar {
  width: 400px;
  height: 10px;
  background-color: #d2003c;
}

.timer-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.center {
  text-align: center;
  font-size: 42px;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-weight: bold;
}

.time-text-container {
  font-weight: normal;
  font-size: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  color: hsla(0, 0%, 100%, 0.75);
  padding-bottom: 10px;
}

.navbar-game {
  position: fixed;
  top: 10;
  width: 100%;
  text-align: center;
  height: 120px;
  color: white;
  font-size: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 999;
}

.navbar-logo {
  padding-left: 30px;
  margin-right: auto;
}

.navbar-logo img {
  height: 80px;
}

.navbar-palier {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-right: 50px;
}

.navbar-palier-text {
  font-weight: normal;
  font-size: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  color: hsla(0, 0%, 100%, 0.75);
}

.navbar-palier-number {
  font-weight: bold;
  font-size: 26px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.navbar-round {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-right: 50px;
}

.navbar-round-text {
  font-weight: normal;
  font-size: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  color: hsla(0, 0%, 100%, 0.75);
}

.navbar-round-number {
  font-weight: bold;
  font-size: 26px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.navbar-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-right: 50px;
}

.navbar-score-text {
  font-weight: normal;
  font-size: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  color: hsla(0, 0%, 100%, 0.75);
}

.navbar-score-number {
  font-weight: bold;
  font-size: 26px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#map {
  width: 600px;
  height: 400px;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(20px);
  border-radius: 5px 5px 0px 0px;
}

.map-container {
  position: absolute;
  background-color: transparent;
  bottom: 5px;
  right: 5px;
  border: 1px solid white round;
  transform-origin: bottom right;
  transition-duration: 400ms;
  opacity: 40%;
}

.map-container.result {
  position: absolute;
  background-color: transparent;
  top: 50%;
  left: 50%;
  border: 1px solid white round;
  transform-origin: bottom right;
  transition-duration: 400ms;
  opacity: 40%;
  pointer-events: none;
}

.map-container:hover {
  transform: scale(140%, 140%);
  opacity: 100%;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(20px);
}

.map-container .submit-button {
  color: white;
  font-weight: 600;
  font-size: 22px;
  background: linear-gradient(
    to bottom,
    #d2003c,
    rgba(210, 0, 60, 0.2),
    transparent
  );
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 600px;
  border-radius: 0px 0px 5px 5px;
  border-top: 2px solid white;
}

.map-bg {
  background-image: url(src/1-1-GTASanAndreas-fond.webp);
  display: none;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-color: blue;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.map-container-result {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
}

.map-container-result .submit-button {
  display: none;
}

.submit-button:hover {
  background-color: #c10036;
}

.submit-button:disabled {
  background: linear-gradient(
    to bottom,
    rgba(105, 105, 105, 1),
    rgba(0, 0, 0, 0.4),
    transparent
  );
  cursor: not-allowed;
}

.logo-game {
  width: 3%;
  position: absolute;
  top: 5px;
  left: 5px;
  opacity: 0.6;
}

.hidden {
  display: none;
}

.input-container {
  position: fixed;
  bottom: 100px;
  left: 51%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
}

#game-input {
  width: 575px;
  height: 85px;
  border: none;
  border-radius: 5px;
  font-size: 32px;
  font-weight: bold;
  outline: none;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  color: white;
  text-transform: uppercase;
}

.submit-input {
  font-weight: bold;
  height: 85px;
  background-color: #d2003c;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 42px;
  cursor: pointer;
  border-radius: 0 5px 5px 0;
  visibility: hidden;
  transition: visibility 0.3s ease-in-out, width 0.3s ease-in-out;
}

.submit-input:hover {
  background-color: #c10036;
}

::placeholder {
  color: rgb(97, 92, 92);
  text-align: center;
  font-weight: bold;
  font-size: 32px;
}

#error-message {
  text-align: center;
  font-size: 24px;
  position: fixed;
  margin-bottom: 200px;
  opacity: 0%;
  color: #c10036;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(100px);
  border-radius: 30px;
  padding: 20px;
}

.centered-text {
  text-align: center;
}

@keyframes blink {
  0% {
    color: white;
  }
  50% {
    color: #c10036;
  }
  100% {
    color: white;
  }
}

.blink {
  animation: blink 1s linear infinite;
}

#attempt-container {
  position: fixed;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  left: 50%;
  transform: translateX(-50%);
  bottom: 70px;
}

.square {
  width: 20px;
  height: 20px;
  background: white;
  transition: background 0.3s;
}

.grayed {
  background: rgba(128, 128, 128, 0.5);
}

.glowing-border {
  outline: none !important;
  border: 1px solid #c10036;
  box-shadow: 0 0 20px 5px #c10036;
  border-radius: 5px;
}

.transition-effect {
  transition: box-shadow 0.5s ease-in-out;
}

#popup {
  display: none;
}

#popup.active {
  position: absolute;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 1);
  top: 50px;
  left: 50%;
  height: 1080px;
  display: block;
  pointer-events: none;
  z-index: 50;
  transform: translateX(-50%);
}

#popup-content {
  display: block;
}

#popup-game-answer {
  font-weight: bold;
  font-size: 42px;
  top: 800px;
}

.popup-score {
  position: absolute;
  bottom: 340px;
  font-weight: normal;
  font-size: 20px;
}

.popup-score-container {
  position: absolute;
  display: flex;
  flex-direction: row;
  bottom: 270px;
  font-weight: normal;
  font-size: 20px;
}

.popup-score-number {
  font-weight: bold;
  font-size: 60px;
}

.popup-score-max {
  font-weight: normal;
  font-size: 24px;
  margin-top: auto;
  margin-bottom: 8px;
}

.reload-button {
  font-size: 38px;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 1);
  width: 600px;
  height: 80px;
  position: absolute;
  bottom: 150px;
  background-color: #d2003c;
  border: 2px solid white;
  color: white;
}

#popup img {
  backdrop-filter: blur(100px);
}

#popup-content {
  width: 100%;
  height: 300px;
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  pointer-events: auto;
}

#popup-map {
  display: none;
}

#double-score-alert {
  display: none;
  position: fixed;
  font-weight: bold;
  font-size: 42px;
  color: white;
  top: 200px;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  padding: 20px;
  border-radius: 5px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 1);
  transition: visibility 0.3s ease-in-out;
}

#landing-page {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  background-color: black;
}

#landing-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: -100;
  transform: translateX(-50%) translateY(-50%);
}

#start-btn {
  width: 400px;
  height: 100px;
  position: absolute;
  bottom: 110px;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  opacity: 0;
  background-color: transparent;
  border: none;
}

.leaflet-grab {
  cursor: url("https://storage.googleapis.com/red-bull-geogamer/webp/cursor/drag.cur"),
    auto !important;
}

.leaflet-dragging .leaflet-grab,
.leaflet-dragging .leaflet-grab .leaflet-container {
  cursor: url("https://storage.googleapis.com/red-bull-geogamer/webp/cursor/drag-hold.cur"),
    auto !important;
}

#end-game {
  display: none; /* Change this to block for testing */
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 1000;
  background: black;
}

#end-game-video {
  width: 100%;
  height: 100%;
}

#end-logo img {
  position: absolute;
  width: 600px;
  height: auto;
  top: 5%;
  left: 50%;
  transform: translate(-50%);
}

#end-game-info {
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 1);
  top: 50%;
  left: 50%;
  pointer-events: none;
  transform: translateX(-50%);
}

.end-score-head {
  font-size: 32px;
}

.end-score-container {
  display: flex;
  flex-direction: row;
  bottom: 270px;
  font-weight: normal;
  font-size: 20px;
}

.end-score-value {
  font-weight: bold;
  font-size: 160px;
}

.end-score-total {
  font-weight: normal;
  font-size: 32px;
  margin-top: auto;
  margin-bottom: 30px;
}

.end-game-found {
  font-size: 32px;
  margin-top: 70px;
}

.end-game-found-value {
  margin-top: 10px;
  font-weight: bold;
  font-size: 70px;
}

.point-scored {
  position: absolute;
  color: #fad50a;
  font-weight: bold;
  left: 50%;
  bottom: 200px;
  font-size: 48px;
  opacity: 0;
}

@keyframes flyingScore {
  0% {
    transform: translateX(0);
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translatex(200px);
    transform: translateY(-400px);
    opacity: 0;
  }
}

.point-scored.animate {
  animation: flyingScore 2s ease-in-out forwards;
}

#resume-game-button {
  display: block;
  position: absolute;
  background-color: red;
  bottom: 1px;
  left: 1px;
  height: 200px;
  width: 200px;
  z-index: 99999;
  opacity: 0;
}

@keyframes glow {
  from {
    text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #e60073,
      0 0 40px #e60073, 0 0 50px #e60073, 0 0 60px #e60073, 0 0 70px #e60073;
  }
  to {
    text-shadow: 0 0 20px #fff, 0 0 30px #ff4da6, 0 0 40px #ff4da6,
      0 0 50px #ff4da6, 0 0 60px #ff4da6, 0 0 70px #ff4da6, 0 0 80px #ff4da6;
  }
}

.glow {
  animation: glow 1s ease-in-out infinite alternate;
}
