summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuval Adam <_@yuv.al>2025-03-04 22:57:03 +0100
committerYuval Adam <_@yuv.al>2025-03-04 22:57:03 +0100
commit7594c37f28cdaf58a718d2e981000cb2a3a3e7e5 (patch)
treeb237cd8a15433c981279bec2150482de11799d73
parent812a1f0c307f23922e939107018191c39b770e24 (diff)
Split styles and redesign
-rw-r--r--chart/index.html146
-rw-r--r--chart/styles.css280
-rw-r--r--index.html386
-rw-r--r--styles.css816
4 files changed, 1113 insertions, 515 deletions
diff --git a/chart/index.html b/chart/index.html
index e85d2b5..3059b2f 100644
--- a/chart/index.html
+++ b/chart/index.html
@@ -18,144 +18,14 @@
<meta name="theme-color" content="#2c3e50">
<script src="https://cdn.usefathom.com/script.js" data-site="NEBPAKSA" defer></script>
<script src="https://cwjs.mastercw.com/cw.min.js"></script>
-
- <style>
- body {
- font-family: 'Fredoka One', 'Baloo', 'Arial Rounded MT Bold', sans-serif;
- margin: 0;
- padding: 0;
- background: linear-gradient(135deg, #2c3e50 0%, #1a2530 100%);
- color: white;
- min-height: 100vh;
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- font-size: 20px;
- }
-
- .container {
- max-width: 800px;
- margin: 0 auto;
- padding: 20px;
- text-align: center;
- }
-
- h1 {
- font-size: 48px;
- margin-bottom: 20px;
- color: #f39c12;
- text-shadow: 3px 3px 0px rgba(0, 0, 0, 0.3),
- 0 0 15px rgba(243, 156, 18, 0.5);
- }
-
- h2 {
- font-size: 32px;
- margin: 30px 0 15px;
- color: #3498db;
- text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.2),
- 0 0 10px rgba(52, 152, 219, 0.4);
- }
-
- .chart-section {
- background-color: rgba(255, 255, 255, 0.1);
- border-radius: 15px;
- padding: 20px;
- margin-bottom: 30px;
- box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
- }
-
- .morse-grid {
- display: grid;
- grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
- gap: 15px;
- margin: 0 auto;
- }
-
- .morse-item {
- background-color: rgba(52, 152, 219, 0.2);
- border-radius: 10px;
- padding: 15px 10px;
- display: flex;
- flex-direction: column;
- align-items: center;
- box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
- transition: transform 0.2s, box-shadow 0.2s;
- cursor: pointer;
- }
-
- .morse-item:hover {
- transform: translateY(-3px);
- box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
- background-color: rgba(52, 152, 219, 0.3);
- }
-
- .morse-item.playing {
- background-color: rgba(243, 156, 18, 0.3);
- box-shadow: 0 0 15px rgba(243, 156, 18, 0.5);
- }
-
- .character {
- font-size: 28px;
- font-weight: bold;
- margin-bottom: 8px;
- }
-
- .morse {
- font-family: monospace;
- font-size: 18px;
- letter-spacing: 2px;
- }
-
- .back-link {
- margin-top: 30px;
- font-size: 18px;
- }
-
- .back-link a {
- color: #3498db;
- text-decoration: none;
- transition: color 0.3s;
- }
-
- .back-link a:hover {
- color: #f39c12;
- text-decoration: underline;
- }
-
- .title-link {
- color: inherit;
- text-decoration: none;
- transition: color 0.3s;
- }
-
- .title-link:hover {
- color: #3498db;
- text-shadow: 0 0 10px rgba(52, 152, 219, 0.7);
- }
-
- .footer {
- margin-top: 30px;
- padding: 15px;
- text-align: center;
- font-family: Arial, sans-serif;
- font-size: 14px;
- color: rgba(255, 255, 255, 0.7);
- width: 100%;
- }
-
- .footer a {
- color: #3498db;
- text-decoration: none;
- font-weight: bold;
- transition: color 0.3s;
- }
-
- .footer a:hover {
- color: #4aa3df;
- text-decoration: underline;
- }
- </style>
+
+ <!-- Google Fonts -->
+ <link rel="preconnect" href="https://fonts.googleapis.com">
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
+ <link href="https://fonts.googleapis.com/css2?family=Fredoka:wght@400;600&family=Poppins:wght@400;600;700&display=swap" rel="stylesheet">
+
+ <!-- Main Stylesheet -->
+ <link rel="stylesheet" href="styles.css">
</head>
<body>
diff --git a/chart/styles.css b/chart/styles.css
new file mode 100644
index 0000000..4f6de23
--- /dev/null
+++ b/chart/styles.css
@@ -0,0 +1,280 @@
+/* Morse Hero Chart Styles */
+:root {
+ --primary-color: #3498db;
+ --primary-dark: #2980b9;
+ --secondary-color: #f39c12;
+ --secondary-dark: #e67e22;
+ --accent-color: #e74c3c;
+ --accent-dark: #c0392b;
+ --success-color: #2ecc71;
+ --success-dark: #27ae60;
+ --bg-dark: #2c3e50;
+ --bg-darker: #1a2530;
+ --bg-light: #34495e;
+ --text-light: #ecf0f1;
+ --text-dim: rgba(255, 255, 255, 0.7);
+ --border-radius-sm: 12px;
+ --border-radius-md: 20px;
+ --border-radius-lg: 30px;
+ --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
+ --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.15);
+ --shadow-lg: 0 15px 30px rgba(0, 0, 0, 0.2);
+ --transition-fast: 0.2s ease;
+ --transition-normal: 0.3s ease;
+}
+
+* {
+ box-sizing: border-box;
+ margin: 0;
+ padding: 0;
+}
+
+body {
+ font-family: 'Poppins', 'Fredoka', sans-serif;
+ margin: 0;
+ padding: 0;
+ background: radial-gradient(ellipse at top, var(--bg-dark) 0%, var(--bg-darker) 100%);
+ color: var(--text-light);
+ min-height: 100vh;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ font-size: 18px;
+ line-height: 1.6;
+}
+
+.container {
+ max-width: 900px;
+ margin: 0 auto;
+ padding: 30px 20px;
+ text-align: center;
+ width: 100%;
+}
+
+h1 {
+ font-size: 48px;
+ margin-bottom: 20px;
+ color: var(--secondary-color);
+ text-shadow: 3px 3px 0px rgba(0, 0, 0, 0.3),
+ 0 0 15px rgba(243, 156, 18, 0.5);
+ font-family: 'Fredoka', sans-serif;
+ font-weight: 600;
+ position: relative;
+ display: inline-block;
+}
+
+h1::after {
+ content: "";
+ position: absolute;
+ bottom: -10px;
+ left: 50%;
+ transform: translateX(-50%);
+ width: 60px;
+ height: 4px;
+ background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
+ border-radius: 2px;
+}
+
+h2 {
+ font-size: 32px;
+ margin: 30px 0 15px;
+ color: var(--primary-color);
+ text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.2),
+ 0 0 10px rgba(52, 152, 219, 0.4);
+ font-family: 'Fredoka', sans-serif;
+ font-weight: 600;
+}
+
+.chart-section {
+ background: linear-gradient(145deg, var(--bg-light) 0%, #2d3e50 100%);
+ border-radius: var(--border-radius-md);
+ padding: 30px 25px;
+ margin-bottom: 40px;
+ box-shadow: var(--shadow-lg);
+ position: relative;
+ overflow: hidden;
+}
+
+.chart-section::before {
+ content: "";
+ position: absolute;
+ top: 0;
+ left: 0;
+ right: 0;
+ height: 5px;
+ background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
+ z-index: 1;
+}
+
+.morse-grid {
+ display: grid;
+ grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
+ gap: 20px;
+ margin: 0 auto;
+}
+
+.morse-item {
+ background: linear-gradient(145deg, rgba(52, 152, 219, 0.1) 0%, rgba(52, 152, 219, 0.2) 100%);
+ border-radius: var(--border-radius-sm);
+ padding: 20px 15px;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ box-shadow: var(--shadow-sm);
+ transition: all var(--transition-normal);
+ cursor: pointer;
+ border: 1px solid rgba(52, 152, 219, 0.2);
+}
+
+.morse-item:hover {
+ transform: translateY(-5px);
+ box-shadow: var(--shadow-md);
+ background: linear-gradient(145deg, rgba(52, 152, 219, 0.2) 0%, rgba(52, 152, 219, 0.3) 100%);
+ border-color: rgba(52, 152, 219, 0.3);
+}
+
+.morse-item.playing {
+ background: linear-gradient(145deg, rgba(243, 156, 18, 0.2) 0%, rgba(243, 156, 18, 0.3) 100%);
+ box-shadow: 0 0 20px rgba(243, 156, 18, 0.4);
+ border-color: rgba(243, 156, 18, 0.4);
+}
+
+.character {
+ font-size: 32px;
+ font-weight: bold;
+ margin-bottom: 10px;
+ text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
+}
+
+.morse {
+ font-family: monospace;
+ font-size: 18px;
+ letter-spacing: 2px;
+ color: var(--text-dim);
+}
+
+.back-link {
+ margin-top: 40px;
+ font-size: 18px;
+}
+
+.back-link a {
+ color: var(--primary-color);
+ text-decoration: none;
+ transition: all var(--transition-normal);
+ padding: 10px 20px;
+ background-color: rgba(255, 255, 255, 0.05);
+ border-radius: var(--border-radius-sm);
+ display: inline-block;
+}
+
+.back-link a:hover {
+ color: var(--secondary-color);
+ background-color: rgba(255, 255, 255, 0.1);
+ transform: translateY(-3px);
+ box-shadow: var(--shadow-sm);
+}
+
+.title-link {
+ color: inherit;
+ text-decoration: none;
+ transition: all var(--transition-normal);
+ position: relative;
+ display: inline-block;
+}
+
+.title-link:hover {
+ color: var(--secondary-color);
+ text-shadow: 0 0 15px rgba(243, 156, 18, 0.6);
+}
+
+.footer {
+ margin-top: 40px;
+ padding: 20px;
+ text-align: center;
+ font-size: 16px;
+ color: var(--text-dim);
+ width: 100%;
+ border-top: 1px solid rgba(255, 255, 255, 0.1);
+}
+
+.footer a {
+ color: var(--primary-color);
+ text-decoration: none;
+ font-weight: bold;
+ transition: color var(--transition-normal);
+ position: relative;
+}
+
+.footer a::after {
+ content: '';
+ position: absolute;
+ width: 100%;
+ transform: scaleX(0);
+ height: 2px;
+ bottom: -2px;
+ left: 0;
+ background-color: var(--primary-color);
+ transform-origin: bottom right;
+ transition: transform 0.3s ease-out;
+}
+
+.footer a:hover {
+ color: var(--secondary-color);
+}
+
+.footer a:hover::after {
+ transform: scaleX(1);
+ transform-origin: bottom left;
+}
+
+@media (max-width: 768px) {
+ .container {
+ padding: 20px 15px;
+ }
+
+ h1 {
+ font-size: 40px;
+ }
+
+ h2 {
+ font-size: 28px;
+ }
+
+ .morse-grid {
+ grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
+ gap: 15px;
+ }
+
+ .morse-item {
+ padding: 15px 10px;
+ }
+
+ .character {
+ font-size: 28px;
+ }
+}
+
+@media (max-width: 480px) {
+ h1 {
+ font-size: 32px;
+ }
+
+ h2 {
+ font-size: 24px;
+ }
+
+ .morse-grid {
+ grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
+ gap: 10px;
+ }
+
+ .character {
+ font-size: 24px;
+ }
+
+ .morse {
+ font-size: 16px;
+ }
+}
diff --git a/index.html b/index.html
index 805c537..5126ac5 100644
--- a/index.html
+++ b/index.html
@@ -19,384 +19,15 @@
<link rel="manifest" href="/site.webmanifest">
<meta name="theme-color" content="#2c3e50">
- <style>
- body {
- font-family: 'Fredoka One', 'Baloo', 'Arial Rounded MT Bold', sans-serif;
- margin: 0;
- padding: 0;
- background: linear-gradient(135deg, #2c3e50 0%, #1a2530 100%);
- color: white;
- min-height: 100vh;
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- font-size: 20px;
- }
-
- .container {
- max-width: 800px;
- margin: 0 auto;
- padding: 20px;
- text-align: center;
- }
-
- h1 {
- color: #f39c12;
- text-shadow:
- 0 0 10px rgba(243, 156, 18, 0.7),
- 3px 3px 0px #e74c3c;
- font-size: 4em;
- margin-bottom: 30px;
- margin-top: 1rem;
- letter-spacing: 2px;
- }
-
- .game-container {
- background-color: #34495e;
- border-radius: 25px;
- padding: 35px;
- margin-bottom: 30px;
- box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3),
- 0 0 20px rgba(243, 156, 18, 0.3);
- border: 5px solid #3498db;
- }
-
- .options {
- display: grid;
- grid-template-columns: 1fr 1fr;
- gap: 25px;
- margin-top: 35px;
- }
-
- button {
- cursor: pointer;
- font-family: 'Fredoka One', 'Baloo', 'Arial Rounded MT Bold', sans-serif;
- transition: all 0.3s ease;
- font-weight: bold;
- letter-spacing: 1px;
- text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.3);
- }
-
- .start-button {
- background-color: #e74c3c;
- color: white;
- border: none;
- border-radius: 50px;
- padding: 25px 50px;
- font-size: 32px;
- margin: 30px 0;
- box-shadow: 0 8px 0 #c0392b,
- 0 0 20px rgba(231, 76, 60, 0.4);
- text-transform: uppercase;
- }
+ <!-- Google Fonts -->
+ <link rel="preconnect" href="https://fonts.googleapis.com">
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
+ <link
+ href="https://fonts.googleapis.com/css2?family=Fredoka:wght@400;600&family=Poppins:wght@400;600;700&display=swap"
+ rel="stylesheet">
- .start-button:hover {
- background-color: #f45c4c;
- transform: translateY(-5px);
- box-shadow: 0 13px 0 #c0392b,
- 0 0 30px rgba(231, 76, 60, 0.6);
- }
-
- .start-button:active {
- transform: translateY(3px);
- box-shadow: 0 5px 0 #c0392b;
- }
-
- .option-button {
- background-color: #3498db;
- color: white;
- border: none;
- border-radius: 20px;
- font-size: 36px;
- padding: 25px 15px;
- box-shadow: 0 8px 0 #2980b9,
- 0 0 15px rgba(52, 152, 219, 0.5);
- min-height: 120px;
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- position: relative;
- }
-
- .option-button:hover {
- background-color: #4aa3df;
- transform: translateY(-5px);
- box-shadow: 0 13px 0 #2980b9,
- 0 0 25px rgba(52, 152, 219, 0.7);
- }
-
- .option-button:active {
- transform: translateY(3px);
- box-shadow: 0 5px 0 #2980b9;
- }
-
- .option-button.correct {
- background-color: #2ecc71;
- box-shadow: 0 8px 0 #27ae60,
- 0 0 30px rgba(46, 204, 113, 0.8);
- animation: pulse-green 0.5s infinite alternate;
- }
-
- .option-button.incorrect {
- background-color: #e74c3c;
- box-shadow: 0 8px 0 #c0392b,
- 0 0 30px rgba(231, 76, 60, 0.8);
- animation: shake 0.5s;
- }
-
- .char-display {
- font-size: 36px;
- font-weight: bold;
- }
-
- .morse-hint {
- display: block;
- font-size: 18px;
- margin-top: 10px;
- color: rgba(255, 255, 255, 0.8);
- font-family: monospace;
- letter-spacing: 2px;
- }
-
- .key-label {
- position: absolute;
- top: 5px;
- right: 10px;
- font-size: 14px;
- color: rgba(255, 255, 255, 0.7);
- font-family: monospace;
- }
-
- .key-pressed {
- transform: translateY(3px) !important;
- box-shadow: 0 5px 0 #2980b9 !important;
- transition: transform 0.05s, box-shadow 0.05s;
- }
-
- @keyframes pulse-green {
- from {
- box-shadow: 0 8px 0 #27ae60, 0 0 20px rgba(46, 204, 113, 0.8);
- }
-
- to {
- box-shadow: 0 8px 0 #27ae60, 0 0 40px rgba(46, 204, 113, 1);
- }
- }
-
- @keyframes shake {
-
- 0%,
- 100% {
- transform: translateX(0);
- }
-
- 20%,
- 60% {
- transform: translateX(-10px);
- }
-
- 40%,
- 80% {
- transform: translateX(10px);
- }
- }
-
- .score-container {
- margin-bottom: 20px;
- width: 100%;
- }
-
- .score-widget {
- background-color: rgba(255, 255, 255, 0.1);
- border-radius: 10px;
- padding: 15px;
- box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
- display: flex;
- flex-direction: row;
- align-items: center;
- justify-content: space-between;
- }
-
- .score-info {
- display: flex;
- flex-direction: column;
- align-items: flex-start;
- margin-right: 15px;
- min-width: 100px;
- }
-
- .score-label {
- font-size: 18px;
- margin-bottom: 5px;
- color: rgba(255, 255, 255, 0.8);
- }
-
- .score-value {
- font-size: 24px;
- font-weight: bold;
- }
-
- .score-tracker {
- display: flex;
- flex-wrap: wrap;
- justify-content: center;
- gap: 5px;
- max-width: 100%;
- margin-top: 5px;
- }
-
- .score-dot {
- width: 12px;
- height: 12px;
- border-radius: 50%;
- margin: 2px;
- transition: all 0.3s ease;
- }
-
- .score-dot.correct {
- background-color: #2ecc71;
- box-shadow: 0 0 5px rgba(46, 204, 113, 0.7);
- }
-
- .score-dot.incorrect {
- background-color: #e74c3c;
- box-shadow: 0 0 5px rgba(231, 76, 60, 0.7);
- }
-
- .feedback {
- height: 40px;
- margin-top: 30px;
- font-weight: bold;
- font-size: 28px;
- color: #f39c12;
- text-shadow: 0 0 10px rgba(243, 156, 18, 0.5);
- }
-
- .footer {
- margin-top: 30px;
- text-align: center;
- font-family: Arial, sans-serif;
- font-size: 14px;
- color: rgba(255, 255, 255, 0.7);
- width: 100%;
- }
-
- .footer a {
- color: #3498db;
- text-decoration: none;
- font-weight: bold;
- transition: color 0.3s;
- }
-
- .footer a:hover {
- color: #4aa3df;
- text-decoration: underline;
- }
-
- .title-link {
- color: inherit;
- text-decoration: none;
- transition: text-shadow 0.3s ease;
- }
-
- .title-link:hover {
- text-shadow:
- 0 0 15px rgba(243, 156, 18, 0.8),
- 4px 4px 0px #e74c3c;
- }
-
- .score {
- font-size: 32px;
- font-weight: bold;
- color: #f39c12;
- margin-bottom: 30px;
- text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.3),
- 0 0 10px rgba(243, 156, 18, 0.3);
- }
-
- #gameArea {
- display: none;
- }
-
- #startScreen {
- margin: 50px 0;
- background-color: #34495e;
- padding: 40px;
- border-radius: 25px;
- box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3),
- 0 0 20px rgba(231, 76, 60, 0.3);
- border: 5px dashed #e74c3c;
- }
-
- #startScreen p {
- font-size: 26px;
- margin-bottom: 40px;
- color: #fff;
- line-height: 1.5;
- text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
- }
-
- select {
- padding: 15px 25px;
- font-size: 24px;
- border-radius: 15px;
- border: 3px solid #3498db;
- background-color: #2c3e50;
- color: #fff;
- font-family: 'Fredoka One', 'Baloo', 'Arial Rounded MT Bold', sans-serif;
- cursor: pointer;
- box-shadow: 0 0 15px rgba(52, 152, 219, 0.3);
- }
-
- .settings {
- background-color: #34495e;
- padding: 25px;
- border-radius: 20px;
- margin-top: 30px;
- font-size: 24px;
- border: 3px solid #3498db;
- box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2),
- 0 0 15px rgba(52, 152, 219, 0.3);
- }
-
- .settings label {
- font-size: 24px;
- margin-right: 15px;
- color: #3498db;
- font-weight: bold;
- text-shadow: 0 0 10px rgba(52, 152, 219, 0.3);
- }
-
- .hint-setting {
- display: inline-block;
- margin-left: 30px;
- }
-
- .hint-setting input[type="checkbox"] {
- width: 24px;
- height: 24px;
- vertical-align: middle;
- cursor: pointer;
- }
-
- .chart-link {
- margin-top: 20px;
- font-size: 18px;
- }
-
- .chart-link a {
- color: #3498db;
- text-decoration: none;
- transition: color 0.3s;
- }
-
- .chart-link a:hover {
- color: #f39c12;
- text-decoration: underline;
- }
- </style>
+ <!-- Main Stylesheet -->
+ <link rel="stylesheet" href="styles.css">
</head>
<body>
@@ -487,6 +118,7 @@
// Hide start screen and show game area
startScreen.style.display = 'none';
gameArea.style.display = 'block';
+ document.body.classList.add('game-active');
// Initialize the game
init();
diff --git a/styles.css b/styles.css
new file mode 100644
index 0000000..d2891d5
--- /dev/null
+++ b/styles.css
@@ -0,0 +1,816 @@
+/* Morse Hero Main Styles */
+:root {
+ --primary-color: #3498db;
+ --primary-dark: #2980b9;
+ --secondary-color: #f39c12;
+ --secondary-dark: #e67e22;
+ --accent-color: #e74c3c;
+ --accent-dark: #c0392b;
+ --success-color: #2ecc71;
+ --success-dark: #27ae60;
+ --bg-dark: #2c3e50;
+ --bg-darker: #1a2530;
+ --bg-light: #34495e;
+ --text-light: #ecf0f1;
+ --text-dim: rgba(255, 255, 255, 0.7);
+ --border-radius-sm: 12px;
+ --border-radius-md: 20px;
+ --border-radius-lg: 30px;
+ --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
+ --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.15);
+ --shadow-lg: 0 15px 30px rgba(0, 0, 0, 0.2);
+ --transition-fast: 0.2s ease;
+ --transition-normal: 0.3s ease;
+}
+
+* {
+ box-sizing: border-box;
+ margin: 0;
+ padding: 0;
+}
+
+body {
+ font-family: 'Poppins', 'Fredoka', sans-serif;
+ margin: 0;
+ padding: 0;
+ background: radial-gradient(ellipse at top, var(--bg-dark) 0%, var(--bg-darker) 100%);
+ color: var(--text-light);
+ min-height: 100vh;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ font-size: 18px;
+ line-height: 1.6;
+}
+
+.container {
+ max-width: 900px;
+ margin: 0 auto;
+ padding: 30px 20px;
+ text-align: center;
+ width: 100%;
+}
+
+h1 {
+ color: var(--secondary-color);
+ text-shadow:
+ 0 0 15px rgba(243, 156, 18, 0.4),
+ 3px 3px 0px rgba(231, 76, 60, 0.6);
+ font-size: 4.5em;
+ margin-bottom: 20px;
+ margin-top: 0.5rem;
+ letter-spacing: 2px;
+ font-weight: 700;
+ font-family: 'Fredoka', sans-serif;
+ position: relative;
+ display: inline-block;
+}
+
+h1::after {
+ content: "";
+ position: absolute;
+ bottom: -10px;
+ left: 50%;
+ transform: translateX(-50%);
+ width: 80px;
+ height: 4px;
+ background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
+ border-radius: 2px;
+}
+
+.game-container {
+ background: linear-gradient(145deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
+ border-radius: var(--border-radius-lg);
+ padding: 40px;
+ box-shadow: var(--shadow-lg);
+ border: none;
+ position: relative;
+ overflow: hidden;
+}
+
+.game-container::before {
+ content: "";
+ position: absolute;
+ top: 0;
+ left: 0;
+ right: 0;
+ height: 5px;
+ background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
+ z-index: 1;
+}
+
+.options {
+ display: grid;
+ grid-template-columns: 1fr 1fr;
+ gap: 30px;
+ margin-top: 40px;
+}
+
+button {
+ cursor: pointer;
+ font-family: 'Poppins', 'Fredoka', sans-serif;
+ transition: all var(--transition-normal);
+ font-weight: 600;
+ letter-spacing: 1px;
+ text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.2);
+ border: none;
+ outline: none;
+ position: relative;
+ overflow: hidden;
+}
+
+button::after {
+ content: "";
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: 100%;
+ background: linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
+ opacity: 0;
+ transition: opacity var(--transition-fast);
+}
+
+button:hover::after {
+ opacity: 1;
+}
+
+.start-button {
+ background: linear-gradient(145deg, var(--accent-color) 0%, #c0392b 100%);
+ color: white;
+ border: none;
+ padding: 20px 50px;
+ font-size: 32px;
+ font-weight: 700;
+ border-radius: var(--border-radius-lg);
+ cursor: pointer;
+ transition: all var(--transition-normal);
+ box-shadow: var(--shadow-md);
+ text-transform: uppercase;
+ letter-spacing: 1px;
+ margin-bottom: 30px;
+ width: 100%;
+ max-width: 300px;
+ position: relative;
+ z-index: 1;
+}
+
+.start-button:hover {
+ transform: translateY(-5px);
+ box-shadow: var(--shadow-lg);
+ background: linear-gradient(145deg, #e74c3c 0%, var(--accent-color) 100%);
+}
+
+.start-button:active {
+ transform: translateY(-2px);
+ box-shadow: var(--shadow-sm);
+}
+
+.option-button {
+ background: linear-gradient(145deg, var(--primary-color), var(--primary-dark));
+ color: white;
+ border-radius: var(--border-radius-md);
+ font-size: 36px;
+ padding: 25px 15px;
+ box-shadow: 0 8px 0 var(--primary-dark),
+ var(--shadow-md);
+ min-height: 130px;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ position: relative;
+ z-index: 1;
+}
+
+.option-button:hover {
+ transform: translateY(-5px);
+ box-shadow: 0 13px 0 var(--primary-dark),
+ var(--shadow-lg);
+}
+
+.option-button:active {
+ transform: translateY(3px);
+ box-shadow: 0 5px 0 var(--primary-dark),
+ var(--shadow-sm);
+}
+
+.option-button.correct {
+ background: linear-gradient(145deg, var(--success-color), var(--success-dark));
+ box-shadow: 0 8px 0 var(--success-dark),
+ 0 0 30px rgba(46, 204, 113, 0.5);
+ animation: pulse-green 0.8s infinite alternate;
+}
+
+.option-button.incorrect {
+ background: linear-gradient(145deg, var(--accent-color), var(--accent-dark));
+ box-shadow: 0 8px 0 var(--accent-dark),
+ 0 0 30px rgba(231, 76, 60, 0.5);
+ animation: shake 0.5s;
+}
+
+.char-display {
+ font-size: 38px;
+ font-weight: bold;
+ text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
+}
+
+.morse-hint {
+ display: block;
+ font-size: 18px;
+ margin-top: 10px;
+ color: var(--text-dim);
+ font-family: monospace;
+ letter-spacing: 2px;
+}
+
+.key-label {
+ position: absolute;
+ top: 8px;
+ right: 12px;
+ font-size: 14px;
+ color: var(--text-dim);
+ font-family: monospace;
+ background-color: rgba(0, 0, 0, 0.2);
+ padding: 2px 8px;
+ border-radius: 10px;
+}
+
+.key-pressed {
+ transform: translateY(3px) !important;
+ box-shadow: 0 5px 0 var(--primary-dark) !important;
+ transition: transform 0.05s, box-shadow 0.05s;
+}
+
+@keyframes pulse-green {
+ from {
+ box-shadow: 0 8px 0 var(--success-dark), 0 0 20px rgba(46, 204, 113, 0.5);
+ }
+
+ to {
+ box-shadow: 0 8px 0 var(--success-dark), 0 0 40px rgba(46, 204, 113, 0.8);
+ }
+}
+
+@keyframes shake {
+
+ 0%,
+ 100% {
+ transform: translateX(0);
+ }
+
+ 20%,
+ 60% {
+ transform: translateX(-10px);
+ }
+
+ 40%,
+ 80% {
+ transform: translateX(10px);
+ }
+}
+
+.progress-container {
+ background-color: rgba(255, 255, 255, 0.1);
+ border-radius: 20px;
+ height: 10px;
+ width: 100%;
+ margin: 20px 0;
+ overflow: hidden;
+ position: relative;
+}
+
+.progress-bar {
+ background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
+ height: 100%;
+ border-radius: 20px;
+ transition: width 0.5s ease;
+}
+
+.score-display {
+ font-size: 24px;
+ font-weight: bold;
+ margin: 15px 0;
+ color: var(--secondary-color);
+}
+
+.controls {
+ display: flex;
+ justify-content: center;
+ gap: 20px;
+ margin-top: 30px;
+}
+
+.control-button {
+ background: linear-gradient(145deg, var(--bg-light), #2d3e50);
+ color: var(--text-light);
+ border-radius: var(--border-radius-sm);
+ padding: 12px 25px;
+ font-size: 16px;
+ box-shadow: var(--shadow-sm);
+ transition: all var(--transition-normal);
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ gap: 8px;
+}
+
+.control-button:hover {
+ transform: translateY(-3px);
+ box-shadow: var(--shadow-md);
+ background: linear-gradient(145deg, #3a5269, var(--bg-light));
+}
+
+.control-button:active {
+ transform: translateY(1px);
+ box-shadow: var(--shadow-sm);
+}
+
+.play-again-button {
+ background: linear-gradient(145deg, var(--secondary-color), var(--secondary-dark));
+ color: white;
+ border-radius: var(--border-radius-md);
+ padding: 15px 30px;
+ font-size: 20px;
+ margin-top: 20px;
+ box-shadow: 0 6px 0 var(--secondary-dark),
+ var(--shadow-md);
+}
+
+.play-again-button:hover {
+ transform: translateY(-5px);
+ box-shadow: 0 11px 0 var(--secondary-dark),
+ var(--shadow-lg);
+}
+
+.play-again-button:active {
+ transform: translateY(3px);
+ box-shadow: 0 3px 0 var(--secondary-dark),
+ var(--shadow-sm);
+}
+
+.title-link {
+ color: inherit;
+ text-decoration: none;
+ transition: all var(--transition-normal);
+ position: relative;
+ display: inline-block;
+}
+
+.title-link:hover {
+ color: var(--secondary-color);
+ text-shadow: 0 0 15px rgba(243, 156, 18, 0.6);
+}
+
+.footer {
+ margin-top: 40px;
+ padding: 20px;
+ text-align: center;
+ font-size: 16px;
+ color: var(--text-dim);
+ width: 100%;
+ border-top: 1px solid rgba(255, 255, 255, 0.1);
+}
+
+.footer a {
+ color: var(--primary-color);
+ text-decoration: none;
+ font-weight: bold;
+ transition: color var(--transition-normal);
+ position: relative;
+}
+
+.footer a::after {
+ content: '';
+ position: absolute;
+ width: 100%;
+ transform: scaleX(0);
+ height: 2px;
+ bottom: -2px;
+ left: 0;
+ background-color: var(--primary-color);
+ transform-origin: bottom right;
+ transition: transform 0.3s ease-out;
+}
+
+.footer a:hover {
+ color: var(--secondary-color);
+}
+
+.footer a:hover::after {
+ transform: scaleX(1);
+ transform-origin: bottom left;
+}
+
+.instructions {
+ background-color: rgba(255, 255, 255, 0.05);
+ border-radius: var(--border-radius-md);
+ padding: 25px;
+ margin-bottom: 30px;
+ text-align: left;
+ box-shadow: var(--shadow-sm);
+ border-left: 4px solid var(--primary-color);
+}
+
+.instructions h2 {
+ color: var(--secondary-color);
+ margin-bottom: 15px;
+ font-size: 24px;
+}
+
+.instructions p {
+ margin-bottom: 10px;
+ font-size: 16px;
+ line-height: 1.6;
+}
+
+.instructions ul {
+ margin-left: 20px;
+ margin-bottom: 10px;
+}
+
+.instructions li {
+ margin-bottom: 5px;
+}
+
+.chart-link {
+ margin-top: 25px;
+ font-size: 18px;
+ display: inline-block;
+}
+
+.chart-link a {
+ color: var(--primary-color);
+ text-decoration: none;
+ transition: all var(--transition-normal);
+ position: relative;
+}
+
+.chart-link a::after {
+ content: '';
+ position: absolute;
+ width: 100%;
+ transform: scaleX(0);
+ height: 2px;
+ bottom: -2px;
+ left: 0;
+ background-color: var(--primary-color);
+ transform-origin: bottom right;
+ transition: transform 0.3s ease-out;
+}
+
+.chart-link a:hover {
+ color: var(--secondary-color);
+}
+
+.chart-link a:hover::after {
+ transform: scaleX(1);
+ transform-origin: bottom left;
+ background-color: var(--secondary-color);
+}
+
+#startScreen {
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ text-align: center;
+ background: linear-gradient(145deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
+ border-radius: var(--border-radius-lg);
+ padding: 40px 30px;
+ margin: 40px 0;
+ position: relative;
+ border: 2px dashed rgba(52, 152, 219, 0.3);
+ box-shadow: var(--shadow-md);
+}
+
+#startScreen::before {
+ content: '';
+ position: absolute;
+ left: 50%;
+ top: -2px;
+ transform: translateX(-50%);
+ width: 80%;
+ height: 4px;
+ background: linear-gradient(90deg, rgba(52, 152, 219, 0) 0%, rgba(52, 152, 219, 0.8) 50%, rgba(52, 152, 219, 0) 100%);
+ border-radius: 2px;
+}
+
+#startScreen p {
+ font-size: 28px;
+ font-weight: 600;
+ color: var(--text-light);
+ margin-bottom: 40px;
+ text-shadow: var(--text-shadow);
+}
+
+#startScreen .chart-link {
+ margin-top: 0;
+ width: 100%;
+ max-width: 300px;
+}
+
+#startScreen .chart-link a {
+ display: block;
+ width: 100%;
+ padding: 12px 25px;
+ background: linear-gradient(145deg, rgba(52, 152, 219, 0.2) 0%, rgba(52, 152, 219, 0.3) 100%);
+ border-radius: var(--border-radius-md);
+ color: var(--text-light);
+ font-size: 18px;
+ font-weight: 600;
+ text-decoration: none;
+ transition: all var(--transition-normal);
+ border: 1px solid rgba(52, 152, 219, 0.3);
+ box-shadow: var(--shadow-sm);
+ box-sizing: border-box;
+}
+
+#startScreen .chart-link a:hover {
+ background: linear-gradient(145deg, rgba(52, 152, 219, 0.3) 0%, rgba(52, 152, 219, 0.4) 100%);
+ transform: translateY(-3px);
+ box-shadow: var(--shadow-md);
+ color: var(--primary-color);
+ border-color: rgba(52, 152, 219, 0.5);
+}
+
+.score-container {
+ margin-bottom: 20px;
+ width: 100%;
+}
+
+.score-widget {
+ background-color: rgba(255, 255, 255, 0.1);
+ border-radius: var(--border-radius-md);
+ padding: 15px;
+ box-shadow: var(--shadow-sm);
+ display: flex;
+ flex-direction: row;
+ align-items: center;
+ justify-content: space-between;
+}
+
+.score-info {
+ display: flex;
+ flex-direction: column;
+ align-items: flex-start;
+ margin-right: 15px;
+ min-width: 100px;
+}
+
+.score-label {
+ font-size: 18px;
+ margin-bottom: 5px;
+ color: var(--text-dim);
+}
+
+.score-value {
+ font-size: 24px;
+ font-weight: bold;
+ color: var(--secondary-color);
+}
+
+.score-tracker {
+ display: flex;
+ flex-wrap: wrap;
+ justify-content: center;
+ gap: 5px;
+ max-width: 100%;
+ margin-top: 5px;
+}
+
+.score-dot {
+ width: 12px;
+ height: 12px;
+ border-radius: 50%;
+ margin: 2px;
+ transition: all 0.3s ease;
+}
+
+.score-dot.correct {
+ background-color: var(--success-color);
+ box-shadow: 0 0 5px rgba(46, 204, 113, 0.7);
+}
+
+.score-dot.incorrect {
+ background-color: var(--accent-color);
+ box-shadow: 0 0 5px rgba(231, 76, 60, 0.7);
+}
+
+.feedback {
+ height: 40px;
+ margin-top: 30px;
+ font-weight: bold;
+ font-size: 28px;
+ color: var(--secondary-color);
+ text-shadow: 0 0 10px rgba(243, 156, 18, 0.5);
+}
+
+.score {
+ font-size: 32px;
+ font-weight: bold;
+ color: var(--secondary-color);
+ margin-bottom: 30px;
+ text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.3),
+ 0 0 10px rgba(243, 156, 18, 0.3);
+}
+
+/* Settings */
+.settings {
+ background: linear-gradient(145deg, rgba(52, 73, 94, 0.7) 0%, rgba(44, 62, 80, 0.7) 100%);
+ padding: 25px;
+ border-radius: var(--border-radius-md);
+ margin-top: 30px;
+ font-size: 20px;
+ border: none;
+ box-shadow: var(--shadow-md);
+}
+
+.settings label {
+ font-size: 20px;
+ margin-right: 15px;
+ color: var(--primary-color);
+ font-weight: 600;
+}
+
+.settings select {
+ padding: 12px 20px;
+ font-size: 18px;
+ border-radius: var(--border-radius-sm);
+ border: 2px solid var(--primary-dark);
+ background-color: rgba(44, 62, 80, 0.7);
+ color: var(--text-light);
+ font-family: 'Poppins', sans-serif;
+ cursor: pointer;
+ box-shadow: var(--shadow-sm);
+ transition: all var(--transition-normal);
+}
+
+.settings select:hover {
+ border-color: var(--primary-color);
+ box-shadow: 0 0 10px rgba(52, 152, 219, 0.3);
+}
+
+.settings select:focus {
+ outline: none;
+ border-color: var(--secondary-color);
+ box-shadow: 0 0 15px rgba(243, 156, 18, 0.3);
+}
+
+.hint-setting {
+ display: inline-block;
+ margin-left: 30px;
+}
+
+.hint-setting input[type="checkbox"] {
+ width: 20px;
+ height: 20px;
+ vertical-align: middle;
+ cursor: pointer;
+ margin-right: 8px;
+}
+
+.chart-link a {
+ color: var(--primary-color);
+ text-decoration: none;
+ transition: all var(--transition-normal);
+}
+
+.chart-link a:hover {
+ color: var(--secondary-color);
+ text-decoration: underline;
+}
+
+@media (max-width: 768px) {
+ .container {
+ padding: 20px 15px;
+ }
+
+ h1 {
+ font-size: 3.5em;
+ }
+
+ .game-container {
+ padding: 30px 20px;
+ }
+
+ .options {
+ gap: 15px;
+ }
+
+ .option-button {
+ font-size: 28px;
+ padding: 20px 10px;
+ min-height: 110px;
+ }
+
+ .start-button {
+ font-size: 26px;
+ padding: 18px 30px;
+ max-width: 250px;
+ }
+
+ #startScreen {
+ padding: 30px 20px;
+ margin: 30px 0;
+ }
+
+ #startScreen p {
+ font-size: 24px;
+ margin-bottom: 30px;
+ }
+
+ #startScreen .chart-link {
+ max-width: 250px;
+ }
+
+ #startScreen .chart-link a {
+ padding: 10px 20px;
+ font-size: 16px;
+ }
+
+ .settings {
+ padding: 20px 15px;
+ }
+
+ .settings label {
+ font-size: 18px;
+ }
+
+ .settings select {
+ padding: 10px 15px;
+ font-size: 16px;
+ }
+
+ .hint-setting {
+ margin-left: 15px;
+ }
+}
+
+@media (max-width: 480px) {
+ h1 {
+ font-size: 2.8em;
+ }
+
+ .options {
+ grid-template-columns: 1fr;
+ }
+
+ .option-button {
+ font-size: 24px;
+ min-height: 90px;
+ }
+
+ .start-button {
+ font-size: 22px;
+ padding: 15px 25px;
+ max-width: 220px;
+ margin-bottom: 20px;
+ }
+
+ #startScreen {
+ padding: 25px 15px;
+ margin: 20px 0;
+ }
+
+ #startScreen p {
+ font-size: 20px;
+ margin-bottom: 25px;
+ }
+
+ #startScreen .chart-link {
+ max-width: 220px;
+ }
+
+ #startScreen .chart-link a {
+ padding: 8px 16px;
+ font-size: 15px;
+ }
+
+ .settings {
+ display: flex;
+ flex-direction: column;
+ align-items: flex-start;
+ gap: 15px;
+ }
+
+ .hint-setting {
+ margin-left: 0;
+ margin-top: 10px;
+ }
+}
+
+/* Game Area */
+#gameArea {
+ display: none;
+}
+
+/* When game is active, JavaScript will override this */
+body.game-active #gameArea {
+ display: block;
+}
+
+body.game-active #startScreen {
+ display: none;
+} \ No newline at end of file