1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
|
.options {
display: grid;
grid-template-columns: 1fr 1fr;
grid-template-rows: 1fr 1fr;
gap: 15px;
margin: 20px auto;
width: 100%;
max-width: 500px;
aspect-ratio: 2/1;
}
.option-button {
padding: 20px;
font-size: 2rem;
font-weight: 600;
border: none;
border-radius: 8px;
background: rgba(30, 40, 50, 0.7);
color: #fff;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
border: 1px solid rgba(255, 255, 255, 0.1);
backdrop-filter: blur(5px);
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
}
.option-button:hover {
transform: translateY(-3px);
background: rgba(40, 50, 60, 0.8);
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}
.option-button:active {
transform: translateY(1px);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.option-button.correct {
background: #27ae60;
color: white;
animation: pulse 1s;
}
.option-button.incorrect {
background: #e74c3c;
color: white;
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: rgba(255, 255, 255, 0.7);
font-family: monospace;
letter-spacing: 2px;
}
@keyframes shake {
0%, 100% {
transform: translateX(0);
}
10%, 30%, 50%, 70%, 90% {
transform: translateX(-5px);
}
20%, 40%, 60%, 80% {
transform: translateX(5px);
}
}
@keyframes pulse {
0% {
box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.7);
}
70% {
box-shadow: 0 0 0 10px rgba(39, 174, 96, 0);
}
100% {
box-shadow: 0 0 0 0 rgba(39, 174, 96, 0);
}
}
@keyframes spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
/* Start game button for embed mode */
.start-game-container {
display: flex;
justify-content: center;
align-items: center;
min-height: 200px;
padding: 20px;
}
.start-game-button {
background-color: #4a6fa5;
color: white;
border: none;
border-radius: 8px;
padding: 15px 30px;
font-size: 18px;
font-weight: bold;
cursor: pointer;
transition: background-color 0.3s, transform 0.2s;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.start-game-button:hover {
background-color: #3a5a8c;
transform: translateY(-2px);
box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}
.start-game-button:active {
transform: translateY(1px);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
|