Gemini 4 Argon
by Googlereasoning defaultClean
Running live in a sandboxed frame. Click inside it before using the keyboard.
How it went
- Total time
- 1 min 47 s
- Cost
- $0.081
- Output tokens
- 8,030
- Spent thinking
- 0 tokens
- Speed
- 76.6 tok/s
- Console errors
- 0
- First token after
- 2.6 s
- First visible text after
- 2.6 s
- Prompt tokens
- 548
- Code size
- 21.0 KB
- Finish reason
- stop
- Served by
- Model id
google/gemini-4-argon- Reasoning sent
model default- Max output
- 943,718 tokens
- Generated
- Nov 12, 2026
What it was asked
The prompt
Create a set of four animated weather cards (sunny, rainy, snowy, stormy), made with HTML and CSS only. Requirements: - Absolutely no JavaScript: the file must not contain any <script> tag or inline event handler. - No images, no SVG, no icon fonts: every weather icon is built from HTML elements and pseudo-elements styled with CSS. - Each card shows an animated icon (rotating sun rays, falling rain drops, drifting snowflakes, flashing lightning), a city name, a temperature and a short description. - Each card has its own background gradient matching the weather. - The cards are displayed in a responsive grid (4 per row on desktop, stacked on mobile) and lift up on hover. - Smooth infinite animations using @keyframes, and respect prefers-reduced-motion.
System prompt, sent with every prompt
You are generating a self-contained web demo. It will be rendered automatically in a sandboxed iframe and compared side by side with the output of other AI models given the exact same task. Output rules: - Reply with exactly ONE fenced code block containing the complete file: ```html (or ```svg when the task asks for an SVG). No text before or after the code block. - Everything must be inline: CSS in <style>, JavaScript in <script>. No external files, images, fonts or network requests, except the CDN URLs explicitly allowed by the task. - Do not use localStorage, sessionStorage, cookies, IndexedDB, alert(), confirm(), prompt() or window.open(): they are blocked in the sandbox and will throw. - The page must look right in a 1280×800 viewport and adapt gracefully down to 375px wide. No horizontal scrollbar. - Something meaningful must be visible on first paint: a screenshot is taken automatically about 3 seconds after load, without any interaction. - Everything that makes the demo interesting must be visible within the first seconds: nothing hidden behind a high score, a later level or a long play session. - Games must start in a self-playing demo mode (a simple AI plays) behind a "Click or press a key to start" message, so the game can be judged in action without playing. - The iframe only receives keyboard events after the user clicks it: if the demo uses the keyboard, display a clear "Click or press a key to start" message. - The code must run with zero errors in the console of the latest Chrome.
Code run-1.html · 802 lines
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Pure CSS Animated Weather Cards</title>
<style>
*, *::before, *::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
min-height: 100vh;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
background: radial-gradient(circle at 50% 0%, #1e293b 0%, #0f172a 75%);
color: #f8fafc;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 2.5rem 1.5rem;
overflow-x: hidden;
}
header {
text-align: center;
margin-bottom: 2.5rem;
}
header h1 {
font-size: clamp(1.75rem, 3vw, 2.5rem);
font-weight: 800;
letter-spacing: -0.03em;
background: linear-gradient(135deg, #ffffff 0%, #94a3b8 100%);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
margin-bottom: 0.4rem;
}
header p {
font-size: 0.95rem;
color: #94a3b8;
font-weight: 500;
}
.weather-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 1.5rem;
width: 100%;
max-width: 1200px;
}
@media (max-width: 1080px) {
.weather-grid {
grid-template-columns: repeat(2, 1fr);
max-width: 680px;
}
}
@media (max-width: 580px) {
.weather-grid {
grid-template-columns: 1fr;
max-width: 360px;
}
}
/* ==================== CARD BASE ==================== */
.weather-card {
position: relative;
border-radius: 26px;
padding: 1.75rem 1.5rem 1.6rem;
display: flex;
flex-direction: column;
justify-content: space-between;
min-height: 430px;
overflow: hidden;
box-shadow:
0 20px 40px -15px rgba(0, 0, 0, 0.5),
inset 0 1px 1px rgba(255, 255, 255, 0.35);
transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
cursor: pointer;
user-select: none;
isolation: isolate;
}
.weather-card:hover {
transform: translateY(-12px);
box-shadow:
0 32px 60px -12px rgba(0, 0, 0, 0.65),
inset 0 1px 2px rgba(255, 255, 255, 0.55);
}
/* Card specific gradients */
.card-sunny {
background: linear-gradient(160deg, #38bdf8 0%, #f59e0b 55%, #ea580c 100%);
}
.card-rainy {
background: linear-gradient(160deg, #1e3a8a 0%, #3b82f6 55%, #1d4ed8 100%);
}
.card-snowy {
background: linear-gradient(160deg, #475569 0%, #64748b 45%, #94a3b8 100%);
}
.card-stormy {
background: linear-gradient(160deg, #0f172a 0%, #311042 52%, #1e1b4b 100%);
}
/* Ambient top shine */
.weather-card::before {
content: "";
position: absolute;
top: -50%;
left: -50%;
width: 200%;
height: 200%;
background: radial-gradient(circle at 50% 25%, rgba(255, 255, 255, 0.16), transparent 60%);
pointer-events: none;
z-index: 0;
}
/* Card Header */
.card-top {
position: relative;
z-index: 2;
display: flex;
justify-content: space-between;
align-items: flex-start;
}
.city-name {
font-size: 1.4rem;
font-weight: 700;
letter-spacing: -0.02em;
text-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.region-tag {
font-size: 0.72rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.08em;
padding: 0.3rem 0.65rem;
border-radius: 999px;
background: rgba(255, 255, 255, 0.2);
backdrop-filter: blur(6px);
box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.3);
}
/* ==================== ICON STAGE ==================== */
.icon-stage {
position: relative;
z-index: 2;
height: 185px;
width: 100%;
display: flex;
align-items: center;
justify-content: center;
margin: 0.5rem 0;
}
/* ==================== 1. SUNNY ICON ==================== */
.sun-assembly {
position: relative;
width: 150px;
height: 150px;
display: flex;
align-items: center;
justify-content: center;
}
.sun-rays {
position: absolute;
width: 136px;
height: 136px;
animation: rotate-rays 18s linear infinite;
}
.sun-ray {
position: absolute;
top: 0;
left: 50%;
width: 8px;
height: 136px;
margin-left: -4px;
border-radius: 999px;
background: linear-gradient(
to bottom,
#fef08a 0%,
#facc15 16%,
transparent 16%,
transparent 84%,
#facc15 84%,
#fef08a 100%
);
box-shadow: 0 0 12px rgba(254, 240, 138, 0.6);
}
.sun-ray:nth-child(2) { transform: rotate(30deg); }
.sun-ray:nth-child(3) { transform: rotate(60deg); }
.sun-ray:nth-child(4) { transform: rotate(90deg); }
.sun-ray:nth-child(5) { transform: rotate(120deg); }
.sun-ray:nth-child(6) { transform: rotate(150deg); }
.sun-core {
position: relative;
width: 76px;
height: 76px;
border-radius: 50%;
background: radial-gradient(circle at 35% 35%, #fffbeb 0%, #fde047 45%, #f59e0b 100%);
box-shadow:
0 0 30px rgba(253, 224, 71, 0.9),
0 0 60px rgba(245, 158, 11, 0.6),
inset -4px -4px 10px rgba(217, 119, 6, 0.5);
animation: pulse-sun 4s ease-in-out infinite;
}
.sun-cloud {
position: absolute;
bottom: 20px;
right: 12px;
width: 68px;
height: 24px;
background: rgba(255, 255, 255, 0.92);
border-radius: 999px;
box-shadow: 0 8px 18px rgba(180, 83, 9, 0.28);
animation: float-cloud 5s ease-in-out infinite;
}
.sun-cloud::before {
content: "";
position: absolute;
width: 30px;
height: 30px;
background: rgba(255, 255, 255, 0.96);
border-radius: 50%;
top: -15px;
left: 10px;
}
.sun-cloud::after {
content: "";
position: absolute;
width: 22px;
height: 22px;
background: rgba(255, 255, 255, 0.92);
border-radius: 50%;
top: -10px;
right: 11px;
}
/* ==================== SHARED CLOUD SHAPE ==================== */
.weather-cloud {
position: relative;
width: 118px;
height: 42px;
border-radius: 999px;
background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
box-shadow:
0 12px 24px rgba(15, 23, 42, 0.35),
inset 0 2px 3px rgba(255, 255, 255, 0.9);
z-index: 3;
animation: float-cloud 4.5s ease-in-out infinite;
}
.weather-cloud::before {
content: "";
position: absolute;
width: 56px;
height: 56px;
border-radius: 50%;
background: linear-gradient(180deg, #ffffff 0%, #e2e8f0 100%);
top: -28px;
left: 16px;
box-shadow: inset 0 2px 3px rgba(255, 255, 255, 0.9);
}
.weather-cloud::after {
content: "";
position: absolute;
width: 42px;
height: 42px;
border-radius: 50%;
background: linear-gradient(180deg, #f8fafc 0%, #cbd5e1 100%);
top: -18px;
right: 16px;
}
.weather-cloud-back {
position: absolute;
top: 32px;
right: 34px;
width: 86px;
height: 30px;
border-radius: 999px;
background: rgba(148, 163, 184, 0.55);
z-index: 1;
animation: float-cloud-alt 5.5s ease-in-out infinite;
}
.weather-cloud-back::before {
content: "";
position: absolute;
width: 40px;
height: 40px;
border-radius: 50%;
background: rgba(148, 163, 184, 0.55);
top: -19px;
left: 14px;
}
/* ==================== 2. RAINY ICON ==================== */
.rain-assembly {
position: relative;
width: 160px;
height: 160px;
display: flex;
flex-direction: column;
align-items: center;
padding-top: 36px;
}
.rain-zone {
position: absolute;
top: 72px;
width: 105px;
height: 85px;
z-index: 2;
overflow: hidden;
}
.raindrop {
position: absolute;
top: -20px;
width: 3px;
height: 18px;
border-radius: 999px;
background: linear-gradient(to bottom, rgba(186, 230, 253, 0), #7dd3fc 70%, #e0f2fe 100%);
transform: rotate(16deg);
animation: rain-fall 1.05s linear infinite;
}
.raindrop:nth-child(1) { left: 14px; animation-delay: 0s; animation-duration: 0.95s; }
.raindrop:nth-child(2) { left: 31px; animation-delay: 0.35s; animation-duration: 1.1s; }
.raindrop:nth-child(3) { left: 49px; animation-delay: 0.15s; animation-duration: 0.9s; }
.raindrop:nth-child(4) { left: 66px; animation-delay: 0.55s; animation-duration: 1.05s; }
.raindrop:nth-child(5) { left: 83px; animation-delay: 0.25s; animation-duration: 1.0s; }
.raindrop:nth-child(6) { left: 22px; animation-delay: 0.7s; animation-duration: 0.92s; }
.raindrop:nth-child(7) { left: 58px; animation-delay: 0.8s; animation-duration: 1.08s; }
/* ==================== 3. SNOWY ICON ==================== */
.snow-assembly {
position: relative;
width: 160px;
height: 160px;
display: flex;
flex-direction: column;
align-items: center;
padding-top: 36px;
}
.snow-zone {
position: absolute;
top: 72px;
width: 112px;
height: 88px;
z-index: 2;
overflow: hidden;
}
.snowflake {
position: absolute;
top: -16px;
width: 10px;
height: 10px;
animation: snow-drift 3.2s linear infinite;
}
/* CSS 6-point crystal made from 3 intersecting bars */
.snowflake span,
.snowflake::before,
.snowflake::after {
content: "";
position: absolute;
top: 50%;
left: 0;
width: 100%;
height: 2px;
margin-top: -1px;
background: #ffffff;
border-radius: 2px;
box-shadow: 0 0 6px rgba(255, 255, 255, 0.9);
}
.snowflake::before { transform: rotate(60deg); }
.snowflake::after { transform: rotate(120deg); }
.snowflake:nth-child(1) { left: 12px; animation-delay: 0s; animation-duration: 3.1s; }
.snowflake:nth-child(2) { left: 32px; animation-delay: 1.1s; animation-duration: 2.8s; transform: scale(0.8); }
.snowflake:nth-child(3) { left: 52px; animation-delay: 0.4s; animation-duration: 3.4s; }
.snowflake:nth-child(4) { left: 72px; animation-delay: 1.7s; animation-duration: 2.9s; transform: scale(0.85); }
.snowflake:nth-child(5) { left: 90px; animation-delay: 0.8s; animation-duration: 3.3s; }
.snowflake:nth-child(6) { left: 42px; animation-delay: 2.2s; animation-duration: 3.0s; transform: scale(0.75); }
/* ==================== 4. STORMY ICON ==================== */
.storm-assembly {
position: relative;
width: 160px;
height: 160px;
display: flex;
flex-direction: column;
align-items: center;
padding-top: 36px;
}
.storm-cloud {
background: linear-gradient(180deg, #64748b 0%, #334155 60%, #1e293b 100%);
box-shadow:
0 14px 26px rgba(0, 0, 0, 0.55),
inset 0 2px 2px rgba(255, 255, 255, 0.25);
animation: float-cloud 4s ease-in-out infinite, cloud-thunder 3.2s infinite;
}
.storm-cloud::before {
background: linear-gradient(180deg, #64748b 0%, #334155 100%);
box-shadow: inset 0 2px 2px rgba(255, 255, 255, 0.25);
}
.storm-cloud::after {
background: linear-gradient(180deg, #475569 0%, #1e293b 100%);
}
/* Pure CSS Lightning Bolt using skewed geometric segments */
.lightning-bolt {
position: absolute;
top: 66px;
left: 50%;
width: 30px;
height: 76px;
transform: translateX(-50%);
z-index: 2;
filter: drop-shadow(0 0 12px #facc15) drop-shadow(0 0 24px #f59e0b);
animation: bolt-flash 3.2s infinite;
}
.lightning-bolt::before {
content: "";
position: absolute;
top: 0;
left: 8px;
width: 13px;
height: 36px;
background: linear-gradient(180deg, #fef08a 0%, #facc15 100%);
transform: skewX(-28deg);
border-radius: 2px;
}
.lightning-bolt::after {
content: "";
position: absolute;
top: 26px;
left: 11px;
width: 0;
height: 0;
border-top: 40px solid #fde047;
border-right: 17px solid transparent;
transform: skewX(-24deg);
}
.storm-rain .raindrop {
opacity: 0.65;
}
/* ==================== CARD FOOTER / DETAILS ==================== */
.card-bottom {
position: relative;
z-index: 2;
}
.temperature-row {
display: flex;
align-items: baseline;
justify-content: space-between;
margin-bottom: 0.35rem;
}
.temp-value {
font-size: 3.4rem;
font-weight: 800;
letter-spacing: -0.04em;
line-height: 1;
text-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.temp-range {
font-size: 0.85rem;
font-weight: 600;
color: rgba(255, 255, 255, 0.85);
background: rgba(0, 0, 0, 0.16);
padding: 0.25rem 0.6rem;
border-radius: 8px;
}
.weather-desc {
font-size: 1rem;
font-weight: 600;
color: rgba(255, 255, 255, 0.95);
margin-bottom: 1rem;
}
.weather-meta {
display: flex;
justify-content: space-between;
padding-top: 0.85rem;
border-top: 1px solid rgba(255, 255, 255, 0.22);
font-size: 0.78rem;
font-weight: 600;
color: rgba(255, 255, 255, 0.85);
}
.meta-item span {
opacity: 0.75;
font-weight: 500;
margin-right: 0.25rem;
}
/* ==================== KEYFRAMES ==================== */
@keyframes rotate-rays {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
@keyframes pulse-sun {
0%, 100% { transform: scale(1); }
50% { transform: scale(1.07); }
}
@keyframes float-cloud {
0%, 100% { transform: translateY(0px); }
50% { transform: translateY(-7px); }
}
@keyframes float-cloud-alt {
0%, 100% { transform: translate(0px, 0px); }
50% { transform: translate(-6px, -4px); }
}
@keyframes rain-fall {
0% {
transform: translateY(0) translateX(0) rotate(16deg);
opacity: 0;
}
20% {
opacity: 1;
}
85% {
opacity: 1;
}
100% {
transform: translateY(88px) translateX(-22px) rotate(16deg);
opacity: 0;
}
}
@keyframes snow-drift {
0% {
transform: translateY(0) translateX(0) rotate(0deg);
opacity: 0;
}
15% {
opacity: 1;
}
50% {
transform: translateY(44px) translateX(11px) rotate(180deg);
}
85% {
opacity: 1;
}
100% {
transform: translateY(88px) translateX(-9px) rotate(360deg);
opacity: 0;
}
}
@keyframes bolt-flash {
0%, 18%, 24%, 30%, 68%, 100% {
opacity: 0;
transform: translateX(-50%) scale(0.92);
}
20%, 22%, 26%, 28% {
opacity: 1;
transform: translateX(-50%) scale(1.04);
}
70%, 73% {
opacity: 0.9;
transform: translateX(-50%) scale(1);
}
}
@keyframes cloud-thunder {
0%, 18%, 30%, 68%, 75%, 100% {
filter: brightness(1);
}
20%, 26%, 71% {
filter: brightness(1.45);
}
}
/* ==================== ACCESSIBILITY: REDUCED MOTION ==================== */
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
}
.weather-card:hover {
transform: none;
}
/* Keep static weather elements visible when animations are disabled */
.raindrop {
top: 22px;
opacity: 0.85;
}
.raindrop:nth-child(even) {
top: 46px;
}
.snowflake {
top: 24px;
opacity: 0.95;
}
.snowflake:nth-child(even) {
top: 50px;
}
.lightning-bolt {
opacity: 1;
}
}
</style>
</head>
<body>
<header>
<h1>Live Weather Conditions</h1>
<p>Pure HTML & CSS Animated Forecast Cards</p>
</header>
<main class="weather-grid">
<!-- 1. SUNNY CARD -->
<article class="weather-card card-sunny">
<div class="card-top">
<h2 class="city-name">Santorini</h2>
<span class="region-tag">Greece</span>
</div>
<div class="icon-stage" aria-hidden="true">
<div class="sun-assembly">
<div class="sun-rays">
<div class="sun-ray"></div>
<div class="sun-ray"></div>
<div class="sun-ray"></div>
<div class="sun-ray"></div>
<div class="sun-ray"></div>
<div class="sun-ray"></div>
</div>
<div class="sun-core"></div>
<div class="sun-cloud"></div>
</div>
</div>
<div class="card-bottom">
<div class="temperature-row">
<div class="temp-value">29°</div>
<div class="temp-range">H: 31° L: 22°</div>
</div>
<p class="weather-desc">Sunny & Clear Skies</p>
<div class="weather-meta">
<div class="meta-item"><span>UV Index</span>9 Very High</div>
<div class="meta-item"><span>Wind</span>11 km/h</div>
</div>
</div>
</article>
<!-- 2. RAINY CARD -->
<article class="weather-card card-rainy">
<div class="card-top">
<h2 class="city-name">Seattle</h2>
<span class="region-tag">USA</span>
</div>
<div class="icon-stage" aria-hidden="true">
<div class="rain-assembly">
<div class="weather-cloud-back"></div>
<div class="weather-cloud"></div>
<div class="rain-zone">
<div class="raindrop"></div>
<div class="raindrop"></div>
<div class="raindrop"></div>
<div class="raindrop"></div>
<div class="raindrop"></div>
<div class="raindrop"></div>
<div class="raindrop"></div>
</div>
</div>
</div>
<div class="card-bottom">
<div class="temperature-row">
<div class="temp-value">13°</div>
<div class="temp-range">H: 15° L: 9°</div>
</div>
<p class="weather-desc">Steady Showers</p>
<div class="weather-meta">
<div class="meta-item"><span>Humidity</span>88%</div>
<div class="meta-item"><span>Rain</span>8.4 mm</div>
</div>
</div>
</article>
<!-- 3. SNOWY CARD -->
<article class="weather-card card-snowy">
<div class="card-top">
<h2 class="city-name">Reykjavik</h2>
<span class="region-tag">Iceland</span>
</div>
<div class="icon-stage" aria-hidden="true">
<div class="snow-assembly">
<div class="weather-cloud-back"></div>
<div class="weather-cloud"></div>
<div class="snow-zone">
<div class="snowflake"><span></span></div>
<div class="snowflake"><span></span></div>
<div class="snowflake"><span></span></div>
<div class="snowflake"><span></span></div>
<div class="snowflake"><span></span></div>
<div class="snowflake"><span></span></div>
</div>
</div>
</div>
<div class="card-bottom">
<div class="temperature-row">
<div class="temp-value">-4°</div>
<div class="temp-range">H: -1° L: -8°</div>
</div>
<p class="weather-desc">Drifting Powder Snow</p>
<div class="weather-meta">
<div class="meta-item"><span>Snowfall</span>14 cm</div>
<div class="meta-item"><span>Vis</span>3.2 km</div>
</div>
</div>
</article>
<!-- 4. STORMY CARD -->
<article class="weather-card card-stormy">
<div class="card-top">
<h2 class="city-name">Singapore</h2>
<span class="region-tag">Asia</span>
</div>
<div class="icon-stage" aria-hidden="true">
<div class="storm-assembly">
<div class="weather-cloud-back"></div>
<div class="weather-cloud storm-cloud"></div>
<div class="lightning-bolt"></div>
<div class="rain-zone storm-rain">
<div class="raindrop"></div>
<div class="raindrop"></div>
<div class="raindrop"></div>
<div class="raindrop"></div>
<div class="raindrop"></div>
</div>
</div>
</div>
<div class="card-bottom">
<div class="temperature-row">
<div class="temp-value">25°</div>
<div class="temp-range">H: 28° L: 24°</div>
</div>
<p class="weather-desc">Tropical Thunderstorm</p>
<div class="weather-meta">
<div class="meta-item"><span>Gusts</span>46 km/h</div>
<div class="meta-item"><span>Pressure</span>998 hPa</div>
</div>
</div>
</article>
</main>
</body>
</html>