body {
    margin: 0;
    background: black;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}


video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.message {
    position: absolute;
    top: 8%;
    width: 100%;
    text-align:center;
    color: #e8dcff;
    font-family: Georgia, 'Times New Roman', Times, serif
}

.message h1 {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 5px;
    opacity: 0.7;
}

#intro {
    position: fixed;
    inset: 0;
    background: black;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    transition: opacity 3s ease-in-out;
}

#intro.fade-out {
    opacity: 0;
    pointer-events:none;
}

#startButton {
    background: transparent;
    border: 2px solid #e8dcff;
    color: #e8dfff;
    padding: 10px 20px;
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 28px;
    letter-spacing: 2px;
    cursor: pointer;
    transition: text-shadow 0.3s ease-in-out;
}

#startButton:hover {
    background: #e8dcff;
    color: black;
    text-shadow: 0 0 15px #b68cff;
}

#petalLayer {
    position: fixed;
    top: 50%;
    left: 50%;
    width: min(100vw, 56.25vh);
    height: min(100vh, 177.7778vw);
    transform: translate(-50%, -50%);
    z-index: 5;
    pointer-events: none;
}

.petal {
    position: absolute;
    width: 15%;
    height: 10%;
    background: transparent;
    border-radius: 50%;
    border: none;
    pointer-events: auto;
    cursor: pointer;
    transform: translate(-50%, -50%);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    appearance: none;
}

#petal1 {
    top: 38%;
    left: 50%;
}

#videoTimer {
    position: fixed;
    top: 10px;
    right: 10px;
    color: white;
    background: black;
    padding:8px;
    font-family: monospace;
    font-size: 18px;
    z-index: 9;
    pointer-events: none;
    display: none;
}

#petalMessage {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    text-align: center;
    color: #e8dcff;
    font-family: Georgia, 'Times New Roman', Times, serif;
    z-index: 8;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease-in-out;
}

#petalMessage.visible {
    opacity: 1;
    pointer-events: auto;
}

.petal.highlighted::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background:radial-gradient(
        rgba(71, 40, 190, 0.5),
        transparent 95%
    );
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    mask-image: radial-gradient(
    ellipse closest-side at center,
    black 0%,
    rgba(0, 0, 0, 0.5) 30%,
    transparent 70%
    );
    animation: petalGlow 4s ease-in-out infinite;
}
@keyframes petalGlow {
    0%, 100% {
        opacity: 0.2;
    }
    50% {
        opacity: 0.8;
    }
}


