/* Reset dasar */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Chewy', cursive;
  background: url('media/wood.gif') no-repeat center center fixed;
  background-size: cover;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  gap: 30px;
}

.judul-utama {
  text-align: center;
  margin-top: 40px;
}

.judul-utama h1 {
  font-size: 48px;
  color: #fff;
  text-shadow: 4px 4px 4px #000;
}

.judul-utama h2 {
  font-size: 36px;
  color: #eee;
  text-shadow: 3px 3px 3px #000;
}

.menu-wrapper {
  text-align: center;
}

.judul-game {
  font-size: 28px;
  color: #fff;
  text-shadow: 3px 3px 3px #000;
  margin-bottom: 20px;
}

.menu-horizontal {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.menu-item img {
  width: 80vw;
  max-width: 300px;
  height: auto;
  cursor: pointer;
  border-radius: 12px;
  box-shadow: 5px 5px 10px rgba(0,0,0,0.5);
  transition: transform 0.2s, filter 0.2s;
}

.menu-item img:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.label {
  margin-top: 10px;
  font-size: 36px;
  color: #000;
  text-shadow: 1px 1px 2px #fff;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  position: fixed;
  top: 0;
  width: 100%;
  background-color: transparent;
  z-index: 999;
}

.top-right-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
}

.top-right-buttons img {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  background-color: #fff;
  padding: 5px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: transform 0.2s ease;
}

.top-right-buttons img:hover {
  transform: scale(1.1);
  background-color: #f0f0f0;
}

.btn-reset-nama {
  background-color: #ffc107;
  color: #000;
  font-size: 16px;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-reset-nama:hover {
  background-color: #e0a800;
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.popup-content {
  background-color: #fff;
  padding: 30px 25px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.popup-content h3 {
  margin-top: 0;
  font-size: 1.8em;
  color: #007acc;
}

.popup-content p {
  font-size: 1.1em;
  color: #333;
}

.popup-content input {
  width: 90%;
  padding: 10px;
  margin-top: 10px;
  font-size: 1em;
  border: 2px solid #007acc;
  border-radius: 8px;
}

.popup-content button {
  margin-top: 15px;
  padding: 10px 20px;
  font-size: 1em;
  background-color: #007acc;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.popup-content button:hover {
  background-color: #005f99;
}

#popup-profil {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#popup-profil .popup-content {
  background: white;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

#popup-profil img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 20px;
}

#popup-profil p {
  font-size: 18px;
  font-weight: initial;
  margin: 8px 0;
}

#popup-close {
  margin-top: 20px;
  padding: 10px 20px;
  background: #007bff;
  color: white;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

#popup-close:hover {
  background-color: #0056b3;
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

@media screen and (max-width: 600px) {
  .judul-utama h1 {
    font-size: 36px;
  }
  .judul-utama h2 {
    font-size: 28px;
  }
  .label {
    font-size: 28px;
  }
  .btn-reset-nama {
    font-size: 14px;
    padding: 8px 12px;
  }
  .top-right-buttons img {
    width: 40px;
    height: 40px;
  }
  .popup-content h3 {
    font-size: 1.5em;
  }
  .popup-content p {
    font-size: 1em;
  }
}
#popup-nama {
  display: none; /* Supaya tidak langsung muncul saat page load */
}
@media screen and (max-width: 600px) {
  .popup-content input {
    font-size: 0.9em;
  }

  .popup-content button {
    font-size: 0.9em;
    padding: 8px 16px;
  }

  #popup-profil .popup-content {
    width: 95%;
    padding: 20px;
  }

  #popup-profil img {
    width: 100px;
    height: 100px;
  }

  .btn-reset-nama {
    display: block;
    width: 100%;
    text-align: center;
  }
}
#hamburger {
  display: none;
}
