/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f7e6;
    color: #3a5a40;
    overflow-x: hidden;
    background-image: url('../img/Background.PNG');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    margin: 0;
    height: 100vh;
}

/* loading screen */
#output {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    background-color: #f0f7e6;
    z-index: 1004; /* Higher than dropdown */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Header Styles */
.header {
    text-align: center;
    padding: 20px 0;
    background-color: #e8f4d8;
    border-bottom: 3px solid #8ba888;
    box-shadow: 0 2px 10px rgba(139, 168, 136, 0.2);
    
}

.title {
    font-family: 'Wooden', 'Nature', 'Arial', sans-serif;
    font-size: 3rem;
    color: #5a7247;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    margin: 0;
}

/* Headline font: "Grubby's Garden" */
.header.fredericka-the-great-regular {
  font-family: "Fredericka the Great", serif;
  font-weight: 400;
  font-style: normal;
}

/* Navigation/Options Bar */
.options-bar {
    position: fixed;
    top: 36px;
    right: 20px;
    z-index: 1000;
}

.menu-icon {
    font-size: 2rem;
    cursor: pointer;
    color: #5a7247;
    background-color: rgba(232, 244, 216, 0.8);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.menu-icon:hover {
    background-color: #e8f4d8;
    transform: scale(1.1);
}

/* Main Content Area */
.main-content {
    margin-right: 350px; /* Make space for the emotional wheel */
    padding: 20px;
    min-height: 80vh;
}


/* Loading Output */
img {
    width: 100%;
    height: auto;
    z-index: 2000;
}

/* Sign Grubby */
.signgrub {
    position: absolute;
    height: 160px;
    width: auto;
    display: flex;
    float: left;
    overflow: hidden;
    z-index: auto;
    transform: translate(20px, 130px);
}

/* Responsive Design */
@media (max-width: 768px) {
    
    .main-content {
        margin-right: 0;
    }
    
    .title {
        font-size: 2rem;
    }
}


/* Container for Chia + Greenhouse */
.garden-creature{
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    height: 100vh;
}

/* Wrapper contains Chia + Greenhouse together */
.chia-wrapper{
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

/* Resting state */
.resting{
    width: 1200px;
    transform: translateY(125px);
}

/*Active state*/
.active{
    width: 1000px;
    transform: translateY(-100px);
}

.chia{
    width: 100%;
    display: block;
}

/*Greenhouse Position*/
.greenhouse{
    position: absolute;
    width: 16%;
    top: 50%;
    left: 64%;
    transform: translate(-50%, -50%);
    cursor: pointer;
}

.chia, .greenhouse{
    margin: 0;
    padding: 0;
}

.active .greenhouse{
    top:53%;
    left:64%
}

html, body{
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative;
}

/* EMOTION WHEEL */

/* Highlight selected segment */
.selected {
    stroke: black;
    stroke-width: 4;
    opacity: 1;
    transition: all 0.2s ease;
  }
  
  
  /* Hover effect on segments */
  #emotionWheel g:hover {
    opacity: 0.8;
    transform: scale(1.02);
    transition: transform 0.2s, opacity 0.2s;
    cursor: pointer;
  }
  
  #emotionOverlay {
    position: absolute;     /* Or use 'fixed' if you want it to stay put when scrolling */
    top: 50%;               /* Center vertically */
    left: 75%;              /* Center horizontally */
    transform: translate(-50%, -50%); /* Perfect centering */
    z-index: 1003; /* Higher than greenhouse/chia-wrapper (z-index: 1) */
    pointer-events: auto;  /* Make sure it can receive clicks */
  }
  
  #emotionWheel {
    width: 200px;
    height: 200px;
    display: block;
  }
  
.hidden {
    display: none;
}

.under_construction {
    display: none; /* Hide by default */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 80%;
    max-height: 80%;
    z-index: 1001; /* Above other content */
}

.plant-facts-bubble {
  position: absolute;
  top: 85%;
  left: 10%;
  transform: translate(-50%, -50%);
  background-color: #e8f4d8;
  color: #3a5a40;
  padding: 12px 20px;
  border: 2px solid #8ba888;
  border-radius: 20px;
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: all 0.2s ease;
}
.plant-facts-bubble:hover {
  background-color: #dbeed0;
}

/* The modal's background */
.modal {
  display: none;  
  background-image: url('../img/audio-background.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  
  position: fixed;  
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;

  z-index: 99999;
  padding-top: 10px;
  overflow: auto;     
}

/* first audio increase button */
#plus1 {
  position: absolute;
  top: 340px; /* adjust these values */
  left: 1000px; /* adjust these values */
  transform: translate(-50%, -50%);
  z-index: 10;
}

#plus1 img {
  width: 50px;
  height: auto;
}

/* second audio increase button */
#plus2 {
  position: absolute;
  top: 520px; /* adjust these values */
  left: 1000px; /* adjust these values */
  transform: translate(-50%, -50%);
  z-index: 10;
}

#plus2 img {
  width: 50px;
  height: auto;
}

/* first audio decrease button */
#minus1 {
  position: absolute;
  top: 340px; /* adjust these values */
  left: 600px; /* adjust these values */
  transform: translate(-50%, -50%);
  z-index: 10;
}

#minus1 img {
  width: 50px;
  height: auto;
}

/* second audio decrease button */
#minus2 {
  position: absolute;
  top: 520px; /* adjust these values */
  left: 600px; /* adjust these values */
  transform: translate(-50%, -50%);
  z-index: 10;
}

#minus2 img {
  width: 50px;
  height: auto;
}

/* worms */
.worm1 {
  position: absolute;
  top: 340px; /* adjust these values */
  left: 800px; /* adjust these values */
  transform: translate(-50%, -50%); 
}

.worm2 {
  position: absolute;
  top: 520px; /* adjust these values */
  left: 800px; /* adjust these values */
  transform: translate(-50%, -50%); 
}

.worm1 img {
  width: 600px;
  height: auto;
}

.worm2 img {
  width: 600px;
  height: auto;
}

.menu-dropdown {
  position: fixed;
  top: 90px;
  right: 20px;
  background-color: rgba(232, 244, 216, 0.95);
  border: 2px solid #8ba888;
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  z-index: 1110;
}

.menu-dropdown button {
  background: none;
  border: none;
  color: #3a5a40;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.2s;
}

.menu-dropdown button:hover {
  background-color: #dbeed0;
}

#menuIcon {
  pointer-events: auto !important;
  z-index: 1101 !important;
}

/* background image */
body {
    overflow-x: hidden;
    background-image: url('../img/Background.PNG');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    margin: 0;
    height: 100vh;
}

/* back button */
.Back_button {
    position: fixed;
    top: 36px;
    left: 20px;
    z-index: 1000;
    cursor: pointer;
    width: 50px;
    height: 50px;
    transition: all 0.3s ease;
}

.Back_button:hover {
    transform: scale(1.1);
}