* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body 
{
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: white;
    padding: 0.5rem;
    box-sizing: border-box;
}

body 
{
    background: linear-gradient(135deg, #fde1cc 0%, #ccb7ac 100%);
    padding: 0.5rem;
    overflow-x: hidden;
}

.container 
{
    max-width: 1000px;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1rem;
    gap: 1rem;
}

h1 
{
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    font-style: italic;
    opacity: 0;
    animation: fadeInTitle 1s ease-out 0.5s forwards;
    flex-shrink: 0;
    z-index: 1;
    text-wrap: nowrap;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.svg-container 
{
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid #c7aca333;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: auto;
    height: min(calc(100vw - 2rem), calc(100vh - 12rem));
    aspect-ratio: 1;
}

.svg-container svg
{
	height: 100%;
    width: auto;
    max-width: 100%;
    max-height: 100%;
    aspect-ratio: 1 / 1;    
}

#dynamic-svg 
{
	height: 100%;
    width: auto;
    max-width: 100%;
    max-height: 100%;
    aspect-ratio: 1 / 1;  
}

.title-section 
{
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    font-weight: bold;
    margin-bottom: 0.5rem;
    opacity: 0;
    color: black;
    animation: fadeInSubtitle 1s ease-out 1s forwards;
    flex-shrink: 0;
    text-wrap: nowrap;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shape-animated 
{
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
    transform-origin: center;
}

.shape-visible 
{
    opacity: 1;
    transform: scale(1);
}

.controls 
{
    opacity: 0;
    flex-shrink: 0;
    transition: opacity 0.5s ease-out;
    margin-bottom: 0.5rem;
}

.controls.show 
{
    opacity: 1;
}

.btn 
{
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: black;
    padding: 12px 24px;
    margin: 0 10px;
    border-radius: 25px;
    cursor: pointer;
    font-style: italic;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn:hover 
{
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.timing-info 
{
    display: none;
}

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

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

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

@keyframes fadeInInfo 
{
    to { opacity: 1; }
}

