@font-face {
  font-family: 'RubikOne';
  src: url('./RubikOne-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* Apply the custom font to specific elements */
.custom-font {
  font-family: 'RubikOne'; /* Fallback to sans-serif */
}

body {
  background-image: url(../assets/main_menu.png);
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

#daikin_image {
  position: absolute;
  left: 47%;
  top: 2%;
  transform: translateX(-50%);
  margin: 15px 15px 15px 0px;
  padding-bottom: 0%;
  width: 40%;
  height: auto;
}

#logo_image {
  position: absolute;
  left: 50%;
  top: 5%;
  transform: translateX(-50%);
  margin: 15px 15px 15px 0px;
  padding-bottom: 0%;
  width: 80%;
  height: auto;
}

#main_menu_page {
  background-image: url(../assets/main_menu.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  font-family: 'Rubik One', sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh; /* so absolute children like #shop_button position correctly */
  overflow: hidden;
}

.allow-audio-prompt-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  background-image: url('../assets/sprites/audioallow.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 90%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  color: #fff;
}

.overlay-content {
  text-align: center;
  display: flex; /* Flexbox for better layout */
  flex-direction: column; /* Align items in a column */
  justify-content: center; /* Center vertically */
  align-items: center; /* Center horizontally */
}

.allow-btn {
  margin-top: 20px; /* Add space between text and button */
  transition: background-color 0.3s, box-shadow 0.3s, transform 0.3s; /* Existing styles */
}

.overlaytext {
  font-size: 18px;
  margin: 0; /* Remove default margin */
  text-shadow: 0px 4px 8px rgba(0, 0, 0, 0.5); /* Shadow for readability */
  position: absolute; /* Position absolutely within the overlay-content */
  margin-bottom: 35px;
  display: flex; /* Flexbox for better layout */
  left: 50%; /* Center the text */
  font-family: 'RubikOne';
  transform: translateX(-50%); /* Center the text horizontally */
  white-space: nowrap; /* Prevent text from wrapping to a new line */
}

/* Button styling */
.allow-btn {
  background-color: #ffaf00; /* Base color */
  color: white; /* Text color */
  padding: 12px 24px; /* Increased padding for a larger button */
  border-radius: 12px; /* More rounded corners */
  cursor: pointer; /* Pointer on hover */
  font-size: 18px; /* Slightly larger font size */
  font-family: 'RubikOne';
  top: 50px;
  transition: background-color 0.3s, box-shadow 0.3s, transform 0.3s; /* Transition for smooth effects */
  box-shadow: 0 4px 10px rgba(255, 185, 45, 0.925); /* Soft shadow */
  position: relative; /* For pseudo-element positioning */
  overflow: hidden; /* To contain the glowing effect */
  animation: pulse 2s infinite; /* Idle pulse animation */
}

/* Hover effect */
.allow-btn:hover {
  background-color: #ddbb70; /* Lighter color on hover */
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.7), 0 0 10px rgba(255, 175, 0, 0.5); /* Stronger shadow with glow */
  transform: translateY(-2px) scale(1.05); /* Slight upward movement with scaling */
  animation: none; /* Disable pulse on hover */
}

/* Add a glowing effect on hover */
.allow-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 400%; /* Larger than the button */
  height: 400%; /* Larger than the button */
  background-color: rgba(255, 175, 0, 0.6); /* Glow color */
  border-radius: 50%; /* Circular shape */
  transform: translate(-50%, -50%) scale(0); /* Centered and initially hidden */
  transition: transform 0.5s ease; /* Smooth transition */
  z-index: 0; /* Behind the button */
}

.allow-btn:hover::before {
  transform: translate(-50%, -50%) scale(1); /* Scale up on hover */
}

/* Text style on button */
.allow-btn span {
  position: relative; /* For layering the text */
  z-index: 1; /* Ensure text appears above glow */
}

/* Pulse animation */
@keyframes pulse {
  0%,
  100% {
    transform: scale(1); /* Initial scale */
  }
  50% {
    transform: scale(1.05); /* Slightly larger in the middle */
  }
}

.merge-button {
  position: relative;
  z-index: 1; /* Make sure the button is on top */
  padding: 10px 20px;
  font-size: 18px;
}

@keyframes float {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(100px, 0); /* Adjust the distance from the button */
  }
}

/* Add unique animations for each bacteria */
#bacteria1 {
  animation-delay: 0s;
}
#bacteria2 {
  animation-delay: 1s;
}
#bacteria3 {
  animation-delay: 2s;
}
#bacteria4 {
  animation-delay: 3s;
}

.allow-audio-content {
  background-color: rgba(255, 255, 255, 0.8); /* Slightly transparent white background */
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  max-width: 300px; /* Maximum width for the overlay content */
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
  color: #333;
}

/* Music selection and other elements styling */
.menu {
  margin-top: 20px;
}

.music-select-container {
  position: relative;
  margin-left: -20px;
  margin-top: -20px;
}

.music-icon {
  width: 50px;
  height: 50px;
  background-size: cover;
  cursor: pointer;
}

.music-overlay {
  display: none;
  position: absolute;
  top: 60px;
  left: 0;
  width: 150px;
  background-color: white;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  padding: 10px;
  border-radius: 8px;
}

.music-option {
  width: 100%;
  height: 50px;
  background-size: cover;
  cursor: pointer;
  margin-bottom: 10px;
}

.menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: absolute;
  bottom: 140px;
  left: 50%;
  right: 50%;
}

button {
  border: none;
  transition: transform 0.3s, box-shadow 0.3s;
  padding: 0;
  border: none;
}

button:hover {
  transform: translateY(-5px);
}

#start_button {
  background: url('../assets/buttons/start.png');
  background-size: 90%;
  background-repeat: no-repeat;
  width: 155px;
  height: 80px;
}

#how_to_play_button {
  background: url('../assets/buttons/how_to_play.png');
  background-size: 80%;
  background-repeat: no-repeat;
  width: 260px;
  height: 90px;
  margin-left: 50px;
  margin-top: 10px;
}

#shop_button {
  background: url('../assets/buttons/shop.png');
  background-size: 100%;
  background-repeat: no-repeat;
  width: 70px;
  height: 70px;
  position: absolute;
  right: 20px;
  bottom: 40px;
}

.music-select-container {
  position: absolute;
  left: 2%; /* Use percentage for left margin to position it relative to the left side */
  bottom: 13%; /* Use percentage for bottom margin */
}

.music-icon {
  width: 100px;
  height: 100px;
  background-size: cover;
  cursor: pointer;
  transition: transform 0.3s;
}

.music-overlay {
  display: none;
  position: absolute;
  top: -125px;
  left: -10%; /* Adjusted to ensure it shows correctly on the left */
  transform: translateX(50%);
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  z-index: 20;
  width: 180px;
  text-align: center;
}

@media (max-width: 768px) {
  .music-select-container {
    left: 5%; /* Adjust percentage for smaller screens */
    bottom: 3%;
  }
}

.music-option {
  width: 100%; /* Use full width of the overlay */
  height: 60px; /* Adjust size for the option */
  margin: 5px 0; /* Small margin for spacing */
  background-size: contain; /* Ensure icon fits */
  background-repeat: no-repeat; /* No repeating */
  cursor: pointer;
  transition: transform 0.3s;
}

.music-option.selected {
  /* Style for the selected state */
  background-size: contain; /* Adjust size if necessary */
  filter: grayscale(100%); /* Make the icon gray */
}

.music-option:hover {
  transform: scale(1.1); /* Slightly enlarge on hover */
}

label {
  font-family: 'Arial', sans-serif;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.custom-select {
  position: relative;
  display: inline-block;
}

.custom-select select {
  width: 200px;
  padding: 10px;
  font-size: 16px;
  font-family: 'Arial', sans-serif;
  border: 2px solid #3498db;
  border-radius: 8px;
  background-color: #fff;
  color: #3498db;
  appearance: none;
  cursor: pointer;
  outline: none;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.custom-select select:hover {
  border-color: #2980b9;
}

.custom-select select:focus {
  border-color: #2980b9;
  box-shadow: 0 0 5px rgba(0, 0, 255, 0.5);
}

.custom-select::after {
  content: '▼';
  font-size: 16px;
  color: #3498db;
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.custom-select select::-ms-expand {
  display: none; /* Hides the default dropdown arrow in IE */
}

