body{
    margin: 0px;
}

@font-face {
  font-family: 'MoreSugar';
  /* CSS file is in css/, fonts are in ../fonts/ */
  src: url('../fonts/MoreSugar-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Project defaults */
html, body { background: #ffffff; font-family: 'MoreSugar', 'Segoe UI', Roboto, Arial, sans-serif; color: #1b2b33; }
/* Ensure the custom font is applied site-wide */
* { font-family: 'MoreSugar', 'Segoe UI', Roboto, Arial, sans-serif; }
main{
  margin-left: 80px;
  margin-right: 80px;
}
.navbar {
    background-color: #b7aee6; /* soft lavender */
    display: flex;
  align-items: center;
  padding: 0 10px;
    overflow: hidden;
}
.logo img{
  height: 50px;
  margin-right: 20px;
}
.navbar ul { width:100%; display:flex; justify-content:center; gap:48px; }
.navbar a{
  font-family: 'MoreSugar', 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 36px;
  color: #f7f6fd;
  padding: 10px 22px;
  text-decoration: none;
  transition: transform 0.12s ease, background-color 0.12s ease, color 0.12s ease;
  border-radius: 8px;
}
.navbar a:hover, .navbar a:focus {
  background-color: #ffffff; /* white highlight on hover */
  color: #b7aee6; /* lavender text when hovered */
  transform: translateY(-2px);
}
.navbar a:active { transform: translateY(0); }

/* Rounded main images */
.rounded-image { border-radius: 28px; overflow: hidden; display: inline-block; }

/* Welcome heading */
#welcome h2 { font-family: 'MoreSugar', 'Segoe UI', Roboto, Arial, sans-serif; font-size: 42px; text-align:center; color: #bfb6ee; margin: 18px 0 8px; }
#welcome p { text-align: center; color: #b1b4ec; margin-top: 6px; }
#welcome .username { color: #d4d6f8; }
.navbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}
.navbar a{
    color: aliceblue;
    text-decoration: none;
    padding: 15px;
    display: block;
    text-align: center;
}
.navbar a:hover{
    background-color: rgb(255, 248, 248);
}
.navbar li{
    float: left;
}








#gamearea {
  position: relative;
  width: 900px; /* scaled down game area */
  height: 180px;
  margin: 0 auto;
  transform-origin: top center;
}

/* Wrapper that groups all minigame elements so they can be moved/resized together */
#minigame-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  max-width: 920px;
  margin: 12px auto;
  padding: 6px;
  box-sizing: border-box;
}

@media (max-width: 700px) {
  #minigame-box {
    width: 90vw;
    max-width: 90vw;
    margin: 8px auto;
    padding: 4px;
  }
  #gamearea {
    width: 100% !important;
    height: auto !important;
    min-height: 48px;
  }
}

#bar {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  z-index: 1;
}

#player {
  position: absolute;
  top: 28px;  /* adjust to align with rod */
  width: auto;
  height: 36px;
  z-index: 2;
}

#fish {
  position: absolute;
  top: 28px;  /* adjust to align with rod */
  height: 36px;
  z-index: 2;
  display: none;
}












#fish {
  position: absolute;
  top: 28px;
  height: 36px;
  display: none;
  z-index: 2;
}

#player {
  position: absolute;
  top: 28px;
  height: 36px;
  z-index: 2;
}

/* Message under the minigame */
#message {
  color: #9291c6;
  font-weight: 700;
  text-align: center;
  margin-top: 12px;
  font-size: 20px; /* larger call-to-action text */
  padding: 6px 0;
}



