2025-11-21 17:09:16 +00:00

155 lines
3.0 KiB
CSS

/*
Orange Catcher - Custom Stylesheet
*/
:root {
--primary-orange: #FFA500;
--secondary-deep-blue: #0A192F;
--accent-yellow: #FFD700;
--text-light: #E6F1FF;
--background-dark-start: #0A192F;
--background-dark-end: #1C2D4A;
--font-headings: 'Poppins', sans-serif;
--font-body: 'Lato', sans-serif;
}
html {
scroll-behavior: smooth;
}
body {
background-color: var(--background-dark-start);
color: var(--text-light);
font-family: var(--font-body);
}
/* Hero Section */
.hero-section {
position: relative;
height: 80vh;
min-height: 500px;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
background: radial-gradient(circle, var(--background-dark-end), var(--background-dark-start));
overflow: hidden;
padding: 0 15px;
}
.hero-section .content-wrapper {
z-index: 2;
}
.game-title {
font-family: var(--font-headings);
font-size: 4.5rem;
font-weight: 700;
color: white;
text-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.game-subtitle {
font-size: 1.5rem;
color: var(--text-light);
opacity: 0.9;
}
.btn-play {
background-color: var(--primary-orange);
color: var(--secondary-deep-blue);
font-family: var(--font-headings);
font-weight: 700;
font-size: 1.2rem;
padding: 12px 40px;
border-radius: 50px;
border: none;
margin-top: 20px;
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-play:hover {
transform: translateY(-3px);
box-shadow: 0 10px 20px rgba(255, 165, 0, 0.2);
color: var(--secondary-deep-blue);
}
/* Decorative Shapes */
.hero-section .shape-1, .hero-section .shape-2 {
position: absolute;
border-radius: 50%;
background: var(--primary-orange);
opacity: 0.1;
z-index: 1;
}
.hero-section .shape-1 {
width: 200px;
height: 200px;
top: 10%;
left: 15%;
}
.hero-section .shape-2 {
width: 100px;
height: 100px;
bottom: 15%;
right: 20%;
}
/* Game Container */
.game-container {
padding-top: 4rem;
padding-bottom: 4rem;
}
.canvas-wrapper {
background-color: #000;
border: 4px solid var(--primary-orange);
border-radius: 10px;
box-shadow: 0 0 30px rgba(255, 165, 0, 0.3);
overflow: hidden;
/* The canvas itself is 800x600 */
width: 800px;
height: 600px;
margin: 0 auto; /* Center the canvas */
}
#gameCanvas {
display: block;
}
.instructions {
background-color: var(--background-dark-end);
padding: 2rem;
border-radius: 10px;
color: var(--text-light);
max-width: 800px; /* Match canvas width */
margin: 2rem auto; /* Center and add space */
}
.instructions-title {
font-family: var(--font-headings);
color: var(--primary-orange);
margin-bottom: 1rem;
}
/* Responsive */
@media (max-width: 768px) {
.game-title {
font-size: 3rem;
}
.game-subtitle {
font-size: 1.2rem;
}
.canvas-wrapper {
width: 100%;
height: auto;
}
#gameCanvas {
width: 100%;
height: auto;
}
}