* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  overflow: hidden;
  font-family: Arial, sans-serif;
}

body {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
  z-index: 1;
  transition: background-image 0.5s ease;
}

.logo {
  position: absolute;
  top: 0;
  left: 20px;
  z-index: 1000;
}

.logo img {
  height: 150px;
  width: 200px;
}

.mode-box {
  position: absolute;
  background: rgba(0, 0, 0, 0.7);
  padding: 10px;
  border-radius: 10px;
  text-align: center;
  color: white;
  text-shadow: 1px 1px 2px black;
  z-index: 10;
}

.mode-box img {
  max-height: 170px;
  width: auto;
  margin-top: 5px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.mode-box img:hover {
  transform: scale(1.05);
}

.easy { top: 20%; left: 5%; }
.medium { top: 20%; left: 20%; }
.hard { top: 60%; left: 3%; }
.insane { top: 60%; left: 23%; }

.ranked {
  top: 20%;
  right: 5%;
  width: 300px;
  height: 400px;
}
.ranked img {
  max-width: 100%;
  width: 220px;
}

.ranked-label {
  margin-top: 0px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 40px;
  color: #ff4444;
  text-shadow: 2px 2px 6px black;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.region {
  top: 40%;
  right: 40%;
  width: 250px;
  height: 250px;
}
.region img {
  max-width: 100%;
  width: 200px;
}
.region-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  color: #4463ff;
  text-shadow: 2px 2px 6px black;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.japan {
  top: 40%;
  left: 10%;
  width: 200px;
  height: 250px;
}
.japan img {
  max-width: 100%;
  width: 320px;
}

.indonesia {
  top: 30%;
  left: 60%;
  width: 200px;
  height: 250px;
}
.indonesia img {
  max-width: 100%;
  width: 320px;
}

.main-layout {
  display: flex;
  height: 100vh;
  padding: 20px;
}

.game-left {
  flex: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.leaderboard-right {
  flex: 1;
  background: rgba(0, 0, 0, 0.4);
  color: white;
  padding: 20px;
  overflow-y: auto;
}

.game-image {
  max-width: 350px;
  max-height: 350px;
  object-fit: contain;
  margin-bottom: 20px;
}

#guess-input {
  margin-top: 10px;
  padding: 8px;
  font-size: 16px;
}

#submit-guess, #play-btn {
  margin-top: 10px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
}
