html, body {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    background-color: #f5f5f5;
    height: 100vh; /* Full viewport height */
    width: 100vw; /* Full viewport width */
    overflow: hidden; /* Prevent scrolling */

    background-image: url('./bg.webp'); /* Path to your local image */
    background-size: cover; /* Ensures the image covers the entire screen */
    background-position: center; /* Centers the image */
    background-repeat: no-repeat; /* Prevents tiling */

}

button {
    padding: 8px 16px;
    font-size: 1rem;
    margin-left: 8px;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    background-color: #2196f3;
    color: #fff;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #1869b0;
}

.container {
    display: flex;
    flex-direction: row; /* Align elements horizontally */
    justify-content: space-between;
    align-items: flex-start;
    max-width: 85%; /*600px*/
    margin: 40px auto;
    padding: 20px;
    text-align: center;
    background-color: #ffffff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    height: 600px; /*Full viewport height minus 80px */
}

/* Style the left section (text, input, and button) */
.left-section {
    flex: 1; /* Take up equal space */
    margin-right: 20px; /* Space between sections */
    display: flex;
    flex-direction: column;
    justify-content: auto; /* Center items vertically */
    /*align-items: center; /* Center items horizontally */
}

.left-section h1 {
    font-size: 4rem;
    margin-top: 120px;
    margin-bottom: 1rem;
    font-family: 'Lucida Handwriting', Cursive;
}

.left-section p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-family: 'Times New Roman', Serif;
}

.input-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

.input-container {
    display: flex;
    align-items: center;
    position: relative;
    width: 300px;
    margin: 0 auto;
}

#userInput {
    width: 100%;
    padding: 6px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    flex-grow: 1;
}

#dropdown-arrow {
    padding: 0 8px;
    cursor: pointer;
    color: #2196f3;
    font-size: 1.2rem;
    user-select: none;
}

.dropdown-arrow:hover {
    background-color: #2255d4;
}

#dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 80%;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 100;
    padding: 10px 0;
}

.dropdown-item {
    width: 80%;
    padding: 10px 15px;
    font-size: 0.9rem;
    text-align: left;
    color: white;
    background-color: rgb(124, 146, 243);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dropdown-item:hover {
    background-color: #5b4bf0;
}

#askBtn {
    margin-top: 10px;
    padding: 10px 20px;
    font-size: 1rem;
    color: #fff;
    background-color: #2196f3;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#askBtn:hover {
    background-color: #4433db;
}

#chosenOption {
    margin-top: 20px;
    font-weight: bold;
    font-size: 1.2em;
}

.right-section {
    flex: 1; /* Takes up half the width */
    display: none;
    justify-content: center;
    align-items: center;
}

#cloud-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 200%;
    height: 200%;
    margin: 0 auto;
    border: none; /*1px solid #ddd;*/
    background-color: transparent;
    position: relative;
}

#progress-container {
    width: 60%;
    background-color: #f3f3f3;
    border-radius: 8px;
    margin: 10px 0;
    height: 20px;
    overflow: hidden;
}

#progress-bar {
    height: 100%;
    width: 0%;
    background-color: #2196f3;
    transition: width 0.2s ease-in-out;
}

.suggestion-text {
    margin-top: 15px;
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #c0161c;
    text-align: center;
}

#stopBtn {
    display: block;
    margin: 10px auto;
    padding: 10px 20px;
    font-size: 1rem;
    color: #fff;
    background-color: #f44336;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#stopBtn:hover {
    background-color: #d32f2f;
}

.floating-option {
    position: absolute;
    font-size: 1.0rem; /* Larger text */
    /* font-weight: bold; */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Add a shadow for better visibility */
    padding: 4px 8px;
    opacity: 1;
    animation: floatEffect 1.5s ease-out forwards; /* Smooth animation */
    pointer-events: none; /* Prevent interaction */
  }
  
  /* Enhanced floating animation */
  @keyframes floatEffect {
    0% {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
    50% {
      opacity: 0.8;
      transform: translateY(-30px) scale(1.2); /* Expand slightly and move up */
    }
    100% {
      opacity: 0;
      transform: translateY(-80px) scale(0.9); /* Move further up and shrink */
    }
  }

.static-label {
    display: none;
    margin-top: 10px; /* Adjust the vertical space */
    position: relative; 
    top: 5px; /* Shift it downward */
    font-weight: bold;
}

#dynamicChoice {
    color: #2196f3; /* Make the cycling text visually distinct */
    font-weight: normal;
}

/* Firework container */
.firework-container {
    position: absolute;
    transform: translate(-50%, -50%);
    pointer-events: none; 
    z-index: 1000;
  }
  
  .firework-particle {
    position: absolute;
    width: 18px; 
    height: 18px;
    background-color: #fc430f;
    border-radius: 50%;
    animation: firework-circle-animation 3s ease-out forwards;
    transform: translate(-50%, -50%);
  }
  
  @keyframes firework-circle-animation {
    0% {
      transform: translate(-50%, -50%) translate(0) scale(1);
      opacity: 1;
    }
    100% {
      transform: translate(-50%, -50%) translate(calc(var(--distance) * cos(var(--angle))), calc(var(--distance) * sin(var(--angle)))) scale(0.8);
      opacity: 0;
    }
  }
  