@import url('https://fonts.googleapis.com/css2?family=Rubik+One&family=Gloria+Hallelujah&family=Matemasie&display=swap');

body {
  background: linear-gradient(to top, rgb(180, 211, 244), rgb(83, 165, 252)) no-repeat center/cover
    fixed;
  font-family: 'Rubik One';
  color: #333;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 10px 0;
  background: rgba(208, 242, 248, 0.8);
}

.header_text_container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  position: relative;
}

.header_text_container button {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 30px;
  height: 30px;
  background: url('../assets/buttons/back.png');
  background-repeat: no-repeat;
  background-size: 100%;
  border: none;
}

.header_text_container h1 {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 40px;
  font-weight: bold;
  color: #3c9bf4;
}

.header_text_container h3 {
  margin: 0;
  margin-left: auto;
  font-size: 18px;
  padding: 5px 10px;
  background-color: #007bff;
  color: #fff;
  border-radius: 8px;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}

.header_button_container {
  display: flex;
  justify-content: space-around;
  vertical-align: middle;
  padding: 10px 0px 0px 0px;
}

#toggle_germs {
  width: 150px;
  height: 47px;
  background: url('../assets/buttons/shop_germs.png');
  background-size: 100%;
  background-repeat: no-repeat;
  padding: 0;
  border: none;
}

#toggle_backgrounds {
  width: 150px;
  height: 47px;
  background: url('../assets/buttons/shop_backgrounds.png');
  background-size: 100%;
  background-repeat: no-repeat;
  padding: 0;
  border: none;
}

#shop_browser {
  margin-top: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#bacteria_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 10px;
  width: 100%;
  box-sizing: border-box;
}

.bacteria_item {
  width: 100%;
  position: relative;
  padding: 5px;
  background-color: #f5f5dd;
  background-origin: content-box;
  border-radius: 10px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.bacteria_item::before {
  content: '';
  display: block;
  padding-top: 100%;
}

.bacteria_item > * {
  width: 100%;
  height: 100%;
}

#background_grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 10px;
}

.background_item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #f5f5dd;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.background_item h5 {
  margin: 5px 0 15px;
  font-size: 1em;
  font-weight: bold;
  color: #007bff;
  text-align: center;
}

.background_item img {
  margin-bottom: 15px;
  border-radius: 8px;
  width: 100%;
  height: auto;
}

.background_item button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s, box-shadow 0.3s;
  width: 100%;
  font-family: 'Gloria Hallelujah';
  font-size: 16px;
  text-align: center;
}

.background_item button:active {
  background-color: #0056b3;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

/* .pop_up_menu {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 60%;
  max-width: 500px;
  background: linear-gradient(to bottom, #ffdd59, #f7b731);
  border-radius: 20px;
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.3);
  padding: 20px;
  z-index: 2000;
  border: 4px solid #f39c12;
}

.pop_up_menu.hidden {
  display: none;
}

.pop_up_menu #close_pop_up {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 30px;
  height: 30px;
  background: url('../assets/buttons/close.png');
  background-repeat: no-repeat;
  background-size: 100%;
  border: none;
} */

.pop_up_menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4); /* overlay effect */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.pop_up_menu.hidden {
  display: none;
}

.pop_up_menu .popup-content {
  width: 80%;
  max-width: 500px;
  height: 60%;
  background: linear-gradient(to bottom, #ffdd59, #f7b731);
  border-radius: 20px;
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.3);
  padding: 20px;
  border: 4px solid #f39c12;
  position: relative;
}

.pop_up_menu .popup-content #close_pop_up {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 30px;
  height: 30px;
  background: url('../assets/buttons/close.png') no-repeat center/100%;
  border: none;
}

#skin_browser {
  height: 100%;
  box-sizing: border-box;
  overflow-y: auto;
}

#skin_grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 10px;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.skin_item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #f5f5dd;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.skin_item h5 {
  margin: 5px 0 10px;
  font-size: 1em;
  font-weight: bold;
  color: #007bff;
  text-align: center;
}

.skin_item img {
  margin-bottom: 10px;
  border-radius: 8px;
  width: 80%;
  height: auto;
  object-fit: contain;
}

.skin_item button {
  display: inline-block;
  padding: 8px 16px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s, box-shadow 0.3s;
  width: 100%;
  font-family: 'Gloria Hallelujah';
  font-size: 16px;
  text-align: center;
}

.skin_item button:active {
  background-color: #0056b3;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

#coin_icon {
  width: 1em;
  height: 1em;
  margin: 0;
  vertical-align: middle;
  position: relative;
  top: -2px;
}

.coin-warning-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.coin-warning-popup {
  position: relative;
  text-align: center;
}

.coin-warning-image {
  width: 90vw;
  max-width: 600px;
  border-radius: 8px;
}

.coin-warning-ok-btn {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  /* background: linear-gradient(to bottom, #f9d423, #f83600); */
  background-color: #ff7700;
  color: #c62828;
  font-weight: bold;
  font-size: 24px;
  border: none;
  border-radius: 16px;
  padding: 10px 30px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: all 0.2s ease;
  text-shadow: 1px 1px #fff3;
}

.coin-warning-ok-btn:hover {
  transform: translateX(-50%) scale(1.05);
}

/* Slightly shrink when clicked */
.coin-warning-ok-btn:active {
  transform: scale(0.95);
  filter: brightness(1.1);
}
