<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Hello World - A Galactic Duel</title>
<style>
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
background: radial-gradient(ellipse at center, #0a0e27 0%, #000000 100%);
font-family: 'Segoe UI', Arial, sans-serif;
overflow: hidden;
position: relative;
}
.stars {
position: absolute;
inset: 0;
background-image:
radial-gradient(1px 1px at 20px 30px, white, transparent),
radial-gradient(1px 1px at 60px 120px, white, transparent),
radial-gradient(1px 1px at 130px 60px, white, transparent),
radial-gradient(1.5px 1.5px at 180px 200px, white, transparent),
radial-gradient(1px 1px at 250px 90px, white, transparent),
radial-gradient(1px 1px at 320px 150px, white, transparent),
radial-gradient(1.5px 1.5px at 400px 40px, white, transparent),
radial-gradient(1px 1px at 470px 220px, white, transparent),
radial-gradient(1px 1px at 540px 100px, white, transparent),
radial-gradient(1px 1px at 600px 180px, white, transparent);
background-repeat: repeat;
background-size: 650px 250px;
opacity: 0.6;
}
.card {
position: relative;
z-index: 2;
background: rgba(10, 10, 20, 0.85);
border: 1px solid rgba(0, 200, 255, 0.3);
border-radius: 16px;
padding: 3rem 3.5rem;
text-align: center;
box-shadow: 0 0 60px rgba(0, 180, 255, 0.2), 0 20px 60px rgba(0,0,0,0.5);
max-width: 500px;
}
.sabers {
font-size: 3rem;
margin-bottom: 1.5rem;
display: flex;
justify-content: center;
gap: 0.5rem;
}
.saber-blue {
display: inline-block;
animation: clash-left 1.4s ease-in-out infinite;
text-shadow: 0 0 20px #3fa9ff, 0 0 40px #3fa9ff;
}
.saber-red {
display: inline-block;
animation: clash-right 1.4s ease-in-out infinite;
text-shadow: 0 0 20px #ff3b3b, 0 0 40px #ff3b3b;
}
@keyframes clash-left {
0%, 100% { transform: rotate(-20deg) translateX(0); }
50% { transform: rotate(10deg) translateX(8px); }
}
@keyframes clash-right {
0%, 100% { transform: rotate(20deg) translateX(0); }
50% { transform: rotate(-10deg) translateX(-8px); }
}
h1 {
font-size: 2.3rem;
color: #f0f0f0;
margin-bottom: 0.5rem;
letter-spacing: 1px;
text-shadow: 0 0 15px rgba(0, 180, 255, 0.5);
}
h1 span {
color: #ffe81f;
text-shadow: 0 0 15px rgba(255, 232, 31, 0.6);
}
p.subtitle {
color: #9fb3c8;
font-size: 1rem;
margin-bottom: 2rem;
font-style: italic;
}
.healthbars {
display: flex;
justify-content: space-between;
gap: 1.5rem;
margin-bottom: 1.5rem;
}
.fighter {
flex: 1;
text-align: left;
}
.fighter.right {
text-align: right;
}
.fighter-name {
font-size: 0.8rem;
color: #cfd8e3;
text-transform: uppercase;
letter-spacing: 1px;
margin-bottom: 6px;
}
.bar-track {
background: rgba(255,255,255,0.1);
border-radius: 6px;
height: 10px;
overflow: hidden;
border: 1px solid rgba(255,255,255,0.15);
}
.bar-fill {
height: 100%;
border-radius: 6px;
transition: width 0.3s ease;
}
.bar-fill.blue {
background: linear-gradient(90deg, #3fa9ff, #7fd4ff);
}
.bar-fill.red {
background: linear-gradient(90deg, #ff3b3b, #ff8080);
}
.clash-btn {
background: transparent;
color: #ffe81f;
border: 1px solid #ffe81f;
padding: 0.9rem 2rem;
border-radius: 4px;
font-size: 1rem;
font-weight: 600;
letter-spacing: 1px;
cursor: pointer;
transition: all 0.2s ease;
text-transform: uppercase;
}
.clash-btn:hover {
background: rgba(255, 232, 31, 0.1);
box-shadow: 0 0 20px rgba(255, 232, 31, 0.4);
}
.clash-btn:active {
transform: scale(0.97);
}
.status {
margin-top: 1.2rem;
color: #9fb3c8;
font-weight: 500;
min-height: 1.4rem;
font-size: 0.95rem;
}
.status.winner {
color: #ffe81f;
font-weight: bold;
}
</style>
</head>
<body>
<div class="stars"></div>
<div class="card">
<div class="sabers">
<span class="saber-blue">⚔️</span>
<span class="saber-red">✨</span>
</div>
<h1>Hello, <span>World</span></h1>
<p class="subtitle">"In a galaxy not so far away, a duel begins..."</p>
<div class="healthbars">
<div class="fighter">
<div class="fighter-name">Hello</div>
<div class="bar-track"><div class="bar-fill blue" id="bar1" style="width:100%"></div></div>
</div>
<div class="fighter right">
<div class="fighter-name">World</div>
<div class="bar-track"><div class="bar-fill red" id="bar2" style="width:100%"></div></div>
</div>
</div>
<button class="clash-btn" onclick="clash()">Clash sabers</button>
<p class="status" id="status">The Force is with you.</p>
</div>
<script>
let hp1 = 100;
let hp2 = 100;
let over = false;
function clash() {
if (over) return;
const strike = Math.random() > 0.5 ? 1 : 2;
const damage = Math.floor(Math.random() * 15) + 10;
const status = document.getElementById('status');
if (strike === 1) {
hp2 = Math.max(0, hp2 - damage);
document.getElementById('bar2').style.width = hp2 + '%';
status.textContent = 'Hello strikes! World takes ' + damage + ' damage.';
} else {
hp1 = Math.max(0, hp1 - damage);
document.getElementById('bar1').style.width = hp1 + '%';
status.textContent = 'World strikes! Hello takes ' + damage + ' damage.';
}
if (hp1 <= 0 || hp2 <= 0) {
over = true;
const winner = hp1 <= 0 ? 'World' : 'Hello';
status.textContent = winner + ' wins the duel! The Force has spoken.';
status.classList.add('winner');
}
}
</script>
</body>
</html>
Nothing. This page is entirely self-contained and contacts no other website when it runs.
Published on Globefin under the MIT License. You may copy, change, and reuse this page, including commercially — just keep the notice below with it.
Copyright © 2026 Parker Mckinley. Licensed under the MIT License. Published on Globefin.
Provided as is, without warranty. Any external libraries it loads keep their own licences. Terms →
Scripts run, but the demo has its own throwaway origin. It can't read your session or cookies, can't reach the page around it, and can't navigate your tab. Don't enter real passwords or personal data into any demo.