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

/* Layout */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Theme colors */
body {
    background-color: white;
    color: #cc0000;
}

/* Typography */
body {
    font-family: 'Arial Black', Gadget, sans-serif;
    text-align: center;
}

/* Region selector */
.region-selector {
    position: absolute;
    top: 20px;
    right: 20px;
}

.region-selector select {
    font-family: inherit;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border: 3px solid #cc0000;
    border-radius: 5px;
    background-color: white;
    color: #cc0000;
    cursor: pointer;
    font-weight: bold;
}

.region-selector select:hover {
    background-color: #cc0000;
    color: white;
}

/* Question styling */
.question {
    font-size: clamp(1.5rem, 5vw, 3rem);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(204, 0, 0, 0.2);
}

/* Target word with replacement animation */
.target-word {
    position: relative;
    display: inline-block;
}

.original-word {
    display: inline;
    transition: opacity 0.3s ease;
}

.replacement-word-usa,
.replacement-word-de {
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    white-space: nowrap;
    opacity: 0;
    font-size: 0.7em;
    transition: opacity 0.5s ease;
}

/* USA region: strikethrough and replacement */
.region-usa .original-word {
    text-decoration: line-through;
    text-decoration-thickness: 4px;
}

.region-usa .replacement-word-usa {
    opacity: 1;
    animation: slideIn 0.5s ease forwards;
}

/* DE region: strikethrough and replacement */
.region-de .original-word {
    text-decoration: line-through;
    text-decoration-thickness: 4px;
}
.region-de .replacement-word-de {
    opacity: 1;
    animation: slideIn 0.5s ease forwards;
}
/* USA region: redact "Inter" like a government document */
.inter-text {
    position: relative;
    display: inline-block;
}

.region-usa .inter-text::after {
    content: '';
    position: absolute;
    top: 0;
    left: -2px;
    right: -2px;
    bottom: 0;
    background-color: black;
    animation: redact 0.3s ease forwards;
}

@keyframes redact {
    0% {
        transform: scaleX(0);
        transform-origin: left;
    }
    100% {
        transform: scaleX(1);
        transform-origin: left;
    }
}

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Answer styling */
.answer {
    font-size: clamp(5rem, 20vw, 15rem);
    font-weight: bold;
    text-transform: uppercase;
    text-shadow: 4px 4px 8px rgba(204, 0, 0, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

/* Pulse animation */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Infographic row */
.infographic-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: nowrap;
}

.infographic-row .panel {
    width: clamp(150px, 30vw, 300px);
    height: auto;
    border-radius: 8px;
}

.infographic-row .fist {
    font-size: clamp(3rem, 10vw, 8rem);
}

/* News Ticker */
.news-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #cc0000;
    color: white;
    overflow: hidden;
    padding: 0.75rem 0;
    border-top: 4px solid #990000;
}

.ticker-content {
    display: inline-flex;
    white-space: nowrap;
    animation: ticker-scroll 120s linear infinite;
}

.ticker-content:hover {
    animation-play-state: paused;
}

@keyframes ticker-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1rem;
    color: white;
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
    transition: opacity 0.2s ease;
}

.ticker-item:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.ticker-source {
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.75rem;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
}

.ticker-title {
    font-weight: normal;
}

.ticker-separator {
    color: rgba(255, 255, 255, 0.5);
    padding: 0 0.5rem;
}

.ticker-fallback {
    font-style: italic;
}
