@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;600&display=swap');

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
}

#welcome-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    color: white;
    text-align: center;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

#welcome-container h1 {
    font-size: 3em;
    font-weight: 600;
    animation: fadeInDown 1s;
}

#welcome-container p {
    font-size: 1.2em;
    font-weight: 300;
    animation: fadeInUp 1s;
    max-width: 500px;
}

#start-game {
    margin-top: 20px;
    padding: 15px 30px;
    font-size: 1.2em;
    cursor: pointer;
    border: 2px solid white;
    background-color: transparent;
    color: white;
    border-radius: 50px;
    transition: background-color 0.3s, color 0.3s;
    animation: pulse 2s infinite;
}

#start-game:hover {
    background-color: white;
    color: #23a6d5;
}

#game-container {
    width: 100%;
    height: 100%;
    position: relative;
}

#tree, #stage-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#ui-container {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
    color: white;
}

#voice-button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    background-color: #4CAF50;
    color: white;
    border-radius: 5px;
}

#top-right-ui {
    position: absolute;
    top: 20px;
    right: 20px;
}

#mute-button {
    background: rgba(0,0,0,0.5);
    border: none;
    color: white;
    font-size: 24px;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
}

#transcript {
    margin-top: 10px;
    font-style: italic;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
