/* General Reset & Base Styles */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #000;
  color: #fff;
  text-align: center;
  overflow: hidden;
}

/* Header */
.site-header {
  background: #222;
  padding: 10px 20px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1000;
}
#desktop{
    display: flex;
}
#mobile{
    display: none;
}
.logo {
  font-weight: bold;
  font-size: 24px;
  color: #fff;
}

/* Navigation */
.main-nav {
  display: flex;
  gap: 15px;
  align-items: center;
}

.main-nav a,
.policy a {
  color: white;
  text-decoration: none;
  font-size: 16px;
}

.policy a {
  color: #ccc;
  font-size: 14px;
}

.hamburger {
  display: none;
  font-size: 26px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* Instructions */
.instructions {
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  width: 300px;
  font-size: 16px;
  z-index: 10;
}

/* Score Display */
.score-box {
  position: absolute;
  top: 30px;
  right: 20px;
  background: rgba(255, 255, 255, 0.8);
  padding: 10px 15px;
  border-radius: 8px;
  font-family: 'Arial Black', sans-serif;
  font-size: 20px;
  color: #000;
  z-index: 10;
}

/* Canvas */
#gameCanvas {
  background: url("assets/bg.webp") repeat-x;
  background-size: cover;
  display: block;
  margin: 20px auto;
  border: 2px solid #000;
  max-width: 100%;
  height: auto;
}

/* Popup Styles */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
}

.popup-content {
    position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  color: #222;
  width: 300px;
  margin:auto;
}

.popup-content input {
  padding: 10px;
  margin-bottom: 10px;
  width: 80%;
}

.popup-content button {
  margin: 5px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
}

/* Buttons */
.overlay-buttons {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 50;
}

#replayBtn,
#addToLeaderboardBtn {
  padding: 10px 20px;
  font-size: 18px;
  background: #2196F3;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
    #desktop{
        display: none;
    }
    #mobile{
        display: flex;
    }
  .main-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #111;
    padding: 10px 0;
    margin-top: 10px;
  }

  .main-nav.active {
    display: flex;
  }

  .main-nav a {
    padding: 10px;
    border-top: 1px solid #333;
  }

  .policy {
    display: none;
  }
}
