                                                  /* MIMI FONT */
@font-face {
  font-family: Futura;
  src: url(PlaywriteNO-Regular.ttf);
}

body {
  background-image: url(images/backgroundgif.gif);
  font-family: Futura, cursive;
  color: white;
  margin: 0;
  padding: 0;
}

                                                  /* FONT SWITCH */
body.alt-font,
body.alt-font p,
body.alt-font a,
body.alt-font .dropbtn,
body.alt-font button,
body.alt-font h1,
body.alt-font h3 {
  font-family: Arial, sans-serif !important;
}

                                                  /* HEADINGS */
h1 {
  text-align: center;
  font-size: 50px;
  margin-bottom: 0;
}

h3 {
  text-align: center;
  font-size: 20px;
  margin-top: 5px;
}

.dropbtn {
  background-image: url(images/backgroundbutton.gif);
  background-size: contain;
  background-color: #3377ff;
  color: white;
  margin-left: 40px;
  margin-top: 40px;
  padding: 16px;
  font-size: 26px;
  font-family: Futura, cursive;
  border: 2px solid white;
  cursor: pointer;
}

.dropbtn:hover, .dropbtn:focus {
  background-image: url(images/backgroundbutton.gif);
  transition: 0.2s ease-in;
  background-color: #0000b3;
}

.dropdown {
  position: absolute;
  top: 20px;
  left: 20px;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #e6e6ff;
  background-image: url(images/buttoncontent.gif);
  min-width: 160px;
  overflow: auto;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
  margin-left: 40px;
}

.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-size: 20px;
}

.dropdown a:hover { background-color: #ddd; }

.show { display: block; }

                                                  /* FONT SWITCH BUTTON */
.font-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  background-image: url(images/backgroundbutton.gif);
  color: white;
  border: 2px solid white;
  padding: 16px;
  font-size: 20px;
  cursor: pointer;
  font-family: Futura, cursive;
}

.footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  font-size: 24px;
  text-align: center;
  background: rgba(0,0,0,0.3);
}

                                                  /* GAME LAYOUT */
.game-wrapper {
  margin-top: 100px;
  padding-bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

                                                  /* POINT COUNTER */
.star-display {
  border: 1px solid white;
  padding: 20px 40px;
  text-align: center;
  min-width: 300px;
}

.star-count {
  font-size: 48px;
  display: block;
}

.star-per-click {
  font-size: 18px;
  opacity: 0.8;
}

                                                  /* CLICK BUTTON */
.click-btn {
  font-size: 60px;
  background: none;
  border: 2px solid white;
  color: white;
  padding: 20px 40px;
  cursor: pointer;
  font-family: Futura, cursive;
  transition: transform 0.08s, box-shadow 0.08s;
  user-select: none;
}

.click-btn:hover {
  box-shadow: 0 0 20px rgba(255,255,255,0.4);
}

.click-btn:active {
  transform: scale(0.93);
}

                                                  /* FLOATING POINTS ANIMATION */
.float-text {
  position: fixed;
  pointer-events: none;
  font-size: 28px;
  color: #ffffaa;
  font-family: Futura, cursive;
  animation: floatUp 1s ease-out forwards;
  z-index: 999;
}

@keyframes floatUp {
  0%   { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-80px); }
}

                                                  /* UPGRADES */
.upgrades-title {
  font-size: 28px;
  border-bottom: 1px solid white;
  padding-bottom: 8px;
  width: 100%;
  max-width: 700px;
  text-align: center;
}

.upgrades-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 700px;
  padding: 0 20px;
  box-sizing: border-box;
}

.upgrade-card {
  border: 1px solid white;
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.upgrade-card.locked {
  opacity: 0.35;
}

.upgrade-info {
  flex: 1;
}

.upgrade-name {
  font-size: 20px;
  display: block;
}

.upgrade-desc {
  font-size: 14px;
  opacity: 0.75;
}

.upgrade-count {
  font-size: 18px;
  min-width: 30px;
  text-align: center;
  opacity: 0.8;
}

.upgrade-buy {
  background: none;
  border: 1px solid white;
  color: white;
  font-family: Futura, cursive;
  font-size: 16px;
  padding: 8px 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}

.upgrade-buy:hover:not(:disabled) {
  background: rgba(255,255,255,0.15);
}

.upgrade-buy:disabled {
  opacity: 0.4;
  cursor: default;
}

                                                  /* SAVE AND LOAD FEATURE */
.save-area {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.save-btn {
  background: none;
  border: 2px solid white;
  color: white;
  font-family: Futura, cursive;
  font-size: 18px;
  padding: 10px 22px;
  cursor: pointer;
  transition: background 0.15s;
}

.save-btn:hover {
  background: rgba(255,255,255,0.15);
}

.save-notice {
  font-size: 16px;
  opacity: 0;
  transition: opacity 0.3s;
  text-align: center;
}

.save-notice.show {
  opacity: 1;
}

                                                  /* MOBILE VERSION */
@media only screen and (max-width: 600px) {
 
  h1 { font-size: 28px; margin-top: 10px; }
  h3 { font-size: 16px; margin-top: 2px; }
 
  .dropdown,
  .font-toggle {
    position: static;
    display: block;
    width: 50%;
    float: left;
    box-sizing: border-box;
    margin: 0;
    text-align: center;
  }
 
  .dropbtn,
  .font-toggle {
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    border-radius: 0;
    font-size: 18px;
    padding: 12px;
  }
 
  .game-wrapper {
    clear: both;
    margin-top: 20px;
    padding-bottom: 80px;
    padding-left: 10px;
    padding-right: 10px;
    gap: 14px;
    width: 100%;
    box-sizing: border-box;
  }
 
  .star-display {
    min-width: unset;
    width: 100%;
    box-sizing: border-box;
    padding: 14px 10px;
  }
 
  .star-count { font-size: 34px; }
  .star-per-click { font-size: 15px; }
 
  .click-btn {
    font-size: 42px;
    padding: 16px 30px;
    width: 100%;
    box-sizing: border-box;
  }

  .upgrades-title {
    font-size: 22px;
    width: 100%;
    max-width: unset;
  }
 
  .upgrades-grid {
    padding: 0;
    max-width: unset;
    width: 100%;
  }
 
  .upgrade-card {
    padding: 10px 12px;
    gap: 8px;
  }
 
  .upgrade-name { font-size: 16px; }
  .upgrade-desc { font-size: 12px; }
 
  .upgrade-buy {
    font-size: 14px;
    padding: 6px 10px;
  }

  .save-area {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 8px;
  }
 
  .save-btn {
    font-size: 16px;
    padding: 12px;
    text-align: center;
  }

  .dropdown-content {
    min-width: unset;
    width: 90vw;
    margin-left: 0;
  }
}
