I'd be happy to help you create a flashy shop GUI! I'll provide you with HTML, CSS, and JavaScript code for an animated shop interface with vibrant colors and smooth transitions.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Cosmic Shop</title>
<style>
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&display=swap');
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Orbitron', monospace;
background: linear-gradient(45deg, #1a0033, #330066, #4d0099, #6600cc);
background-size: 400% 400%;
animation: gradientShift 8s ease infinite;
min-height: 100vh;
overflow-x: hidden;
}
@keyframes gradientShift {
0% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
100% { background-position: 0% 50%; }
}
.stars {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: 1;
}
.star {
position: absolute;
background: white;
border-radius: 50%;
animation: twinkle 2s infinite alternate;
}
@keyframes twinkle {
0% { opacity: 0.3; transform: scale(1); }
100% { opacity: 1; transform: scale(1.2); }
}
.container {
position: relative;
z-index: 2;
max-width: 1400px;
margin: 0 auto;
padding: 20px;
}
.header {
text-align: center;
margin-bottom: 40px;
animation: slideDown 1s ease-out;
}
@keyframes slideDown {
from { transform: translateY(-100px); opacity: 0; }
to { transform: translateY(0); opacity: 1; }
}
.shop-title {
font-size: 4rem;
font-weight: 900;
background: linear-gradient(45deg, #ff00ff, #00ffff, #ffff00, #ff00ff);
background-size: 300% 300%;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
animation: rainbowText 3s ease-in-out infinite;
text-shadow: 0 0 30px rgba(255, 0, 255, 0.5);
margin-bottom: 10px;
}
@keyframes rainbowText {
0%, 100% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
}
.currency-display {
display: inline-flex;
align-items: center;
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(10px);
border: 2px solid #00ffff;
border-radius: 25px;
padding: 15px 30px;
font-size: 1.5rem;
color: #00ffff;
box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
animation: pulse 2s infinite;
}
@keyframes pulse {
0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(0, 255, 255, 0.3); }
50% { transform: scale(1.05); box-shadow: 0 0 30px rgba(0, 255, 255, 0.6); }
}
.shop-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 30px;
margin-top: 40px;
}
.shop-item {
background: rgba(255, 255, 255, 0.05);
backdrop-filter: blur(15px);
border: 2px solid transparent;
border-radius: 20px;
padding: 25px;
text-align: center;
transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
position: relative;
overflow: hidden;
animation: fadeInUp 0.8s ease-out forwards;
opacity: 0;
transform: translateY(50px);
}
.shop-item:nth-child(1) { animation-delay: 0.1s; }
.shop-item:nth-child(2) { animation-delay: 0.2s; }
.shop-item:nth-child(3) { animation-delay: 0.3s; }
.shop-item:nth-child(4) { animation-delay: 0.4s; }
.shop-item:nth-child(5) { animation-delay: 0.5s; }
.shop-item:nth-child(6) { animation-delay: 0.6s; }
@keyframes fadeInUp {
to {
opacity: 1;
transform: translateY(0);
}
}
.shop-item::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(45deg, #ff00ff, #00ffff, #ffff00, #ff6600);
background-size: 300% 300%;
border-radius: 20px;
z-index: -1;
opacity: 0;
transition: opacity 0.3s ease;
animation: borderGlow 4s ease-in-out infinite;
}
@keyframes borderGlow {
0%, 100% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
}
.shop-item:hover::before {
opacity: 1;
}
.shop-item:hover {
transform: translateY(-10px) scale(1.02);
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}
.item-icon {
font-size: 4rem;
margin-bottom: 15px;
display: block;
animation: float 3s ease-in-out infinite;
}
@keyframes float {
0%, 100% { transform: translateY(0px); }
50% { transform: translateY(-10px); }
}
.item-name {
font-size: 1.5rem;
font-weight: 700;
color: #ffffff;
margin-bottom: 10px;
text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}
.item-description {
color: #cccccc;
margin-bottom: 20px;
line-height: 1.4;
}
.item-price {
font-size: 1.3rem;
font-weight: 700;
color: #00ff00;
margin-bottom: 20px;
text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}
.buy-button {
background: linear-gradient(45deg, #ff6600, #ff0066);
border: none;
border-radius: 15px;
color: white;
font-family: 'Orbitron', monospace;
font-size: 1.1rem;
font-weight: 700;
padding: 15px 30px;
cursor: pointer;
transition: all 0.3s ease;
position: relative;
overflow: hidden;
text-transform: uppercase;
letter-spacing: 1px;
}
.buy-button::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
transition: left 0.5s ease;
}
.buy-button:hover::before {
left: 100%;
}
.buy-button:hover {
transform: scale(1.05);
box-shadow: 0 10px 25px rgba(255, 102, 0, 0.4);
}
.buy-button:active {
transform: scale(0.98);
}
.notification {
position: fixed;
top: 20px;
right: 20px;
background: linear-gradient(45deg, #00ff00, #00cc00);
color: white;
padding: 15px 25px;
border-radius: 10px;
font-weight: 700;
transform: translateX(400px);
transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
z-index: 1000;
box-shadow: 0 10px 25px rgba(0, 255, 0, 0.3);
}
.notification.show {
transform: translateX(0);
}
@media (max-width: 768px) {
.shop-title {
font-size: 2.5rem;
}
.shop-grid {
grid-template-columns: 1fr;
gap: 20px;
}
.currency-display {
font-size: 1.2rem;
padding: 10px 20px;
}
}
</style>
</head>
<body>
<div class="stars"></div>
<div class="container">
<div class="header">
<h1 class="shop-title">COSMIC SHOP</h1>
<div class="currency-display">
💎 <span id="currency">1000</span> Gems
</div>
</div>
<div class="shop-grid">
<div class="shop-item">
<span class="item-icon">⚔️</span>
<h3 class="item-name">Plasma Sword</h3>
<p class="item-description">A legendary weapon that cuts through dimensions with ease</p>
<div class="item-price">💎 150 Gems</div>
<button class="buy-button" onclick="buyItem('Plasma Sword', 150)">Purchase</button>
</div>
<div class="shop-item">
<span class="item-icon">🛡️</span>
<h3 class="item-name">Quantum Shield</h3>
<p class="item-description">Deflects attacks from parallel universes</p>
<div class="item-price">💎 200 Gems</div>
<button class="buy-button" onclick="buyItem('Quantum Shield', 200)">Purchase</button>
</div>
<div class="shop-item">
<span class="item-icon">🚀</span>
<h3 class="item-name">Warp Drive</h3>
<p class="item-description">Travel faster than light across galaxies</p>
<div class="item-price">💎 500 Gems</div>
<button class="buy-button" onclick="buyItem('Warp Drive', 500)">Purchase</button>
</div>
<div class="shop-item">
<span class="item-icon">💊</span>
<h3 class="item-name">Nano Healers</h3>
<p class="item-description">Microscopic robots that repair cellular damage</p>
<div class="item-price">💎 75 Gems</div>
<button class="buy-button" onclick="buyItem('Nano Healers', 75)">Purchase</button>
</div>
<div class="shop-item">
<span class="item-icon">🔮</span>
<h3 class="item-name">Crystal of Power</h3>
<p class="item-description">Amplifies magical abilities by 1000%</p>
<div class="item-price">💎 300 Gems</div>
<button class="buy-button" onclick="buyItem('Crystal of Power', 300)">Purchase</button>
</div>
<div class="shop-item">
<span class="item-icon">👑</span>
<h3 class="item-name">Crown of Eternity</h3>
<p class="item-description">Grants immortality and infinite wisdom</p>
<div class="item-price">💎 999 Gems</div>
<button class="buy-button" onclick="buyItem('Crown of Eternity', 999)">Purchase</button>
</div>
</div>
</div>
<div class="notification" id="notification"></div>
<script>
// Create animated stars
function createStars() {
const starsContainer = document.querySelector('.stars');
const numStars = 100;
for (let i = 0; i < numStars; i++) {
const star = document.createElement('div');
star.className = 'star';
star.style.left = Math.random() * 100 + '%';
star.style.top = Math.random() * 100 + '%';
star.style.width = Math.random() * 3 + 1 + 'px';
star.style.height = star.style.width;
star.style.animationDelay = Math.random() * 2 + 's';
starsContainer.appendChild(star);
}
}
// Currency system
let currency = 1000;
function updateCurrency() {
document.getElementById('currency').textContent = currency;
}
function showNotification(message, isSuccess = true) {
const notification = document.getElementById('notification');
notification.textContent = message;
notification.style.background = isSuccess
? 'linear-gradient(45deg, #00ff00, #00cc00)'
: 'linear-gradient(45deg, #ff0000, #cc0000)';
notification.classList.add('show');
setTimeout(() => {
notification.classList.remove('show');
}, 3000);
}
function buyItem(itemName, price) {
if (currency >= price) {
currency -= price;
updateCurrency();
showNotification(`Successfully purchased ${itemName}!`, true);
// Add purchase animation
event.target.style.transform = 'scale(0.9)';
setTimeout(() => {
event.target.style.transform = '';
}, 150);
} else {
showNotification('Not enough gems!', false);
// Add error animation
event.target.style.animation = 'shake 0.5s ease-in-out';
setTimeout(() => {
event.target.style.animation = '';
}, 500);
}
}
// Add shake animation for insufficient funds
const style = document.createElement('style');
style.textContent = `
@keyframes shake {