:root {
    --bg-color: rgba(34, 34, 34, 0)fff;
    --text-color: #fff;
    --border-color: #000;
    --font-family: 'Oswald", sans-serif';
    --title-font-size: 3rem;
    --subtitle-font-size: 1.5rem;
    --fade-duration: 0.5s;
    --flag-wave-duration: 5s;
    --flag-wave-ease: cubic-bezier(0.42, 0, 0.58, 1);
}


.container {
    text-align: center;
    color: var(--text-color);
}

.title {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
    font-size: var(--title-font-size);
    margin: 0;
    font-family: 'Oswald', sans-serif;
}

.subtitle {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
    font-size: var(--subtitle-font-size);
    margin-top: 10px;
    font-style: italic;
    font-weight: normal;
}

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

@keyframes flagWave {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-2px);
    }
}

.title span, .subtitle span {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp var(--fade-duration) forwards;
    color: var(--text-color);
    text-shadow: 1px 1px 2px var(--border-color), -1px -1px 2px var(--border-color);
}

.title span.idle, .subtitle span.idle {
    animation: flagWave var(--flag-wave-duration) var(--flag-wave-ease) infinite;
}

.title::after, .subtitle::after {
    content: "";
    display: inline-block;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--bg-color);
    animation: reveal 2s forwards;
}

@keyframes reveal {
    from {
        width: 100%;
    }
    to {
        width: 0;
    }
}
