-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
122 lines (111 loc) · 2.85 KB
/
style.css
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
/* General body styling */
body {
color: #ff69b4;
font-family: 'Comic Sans MS', sans-serif;
text-align: center;
background: linear-gradient(to bottom right, #fff9f9, #ffe6f1);
background-attachment: fixed;
padding: 0 15px;
}
/* Container styling */
#container {
background: #ffffff;
border: 3px solid #ffc0cb;
border-radius: 20px;
padding: 30px;
max-width: 700px;
margin: 40px auto;
box-shadow: 0 6px 12px rgba(255, 192, 203, 0.4);
animation: float 3s ease-in-out infinite;
background-image: url('https://i.pinimg.com/originals/16/e6/7b/16e67b9d69db84f28d9df66d9af80821.png');
background-size: 100px;
background-position: top right;
background-repeat: no-repeat;
}
/* Header styling */
h1 {
color: #ff69b4;
font-size: 34px;
text-decoration: dotted underline;
margin-bottom: 25px;
font-family: 'Pacifico', cursive;
text-shadow: 2px 2px #ffc0cb;
}
/* Button styling */
button#recordBtn {
background-color: #ffb6c1;
color: #ffffff;
border: 2px solid #ff69b4;
padding: 12px 24px;
font-size: 18px;
border-radius: 12px;
cursor: pointer;
transition: background 0.3s, transform 0.3s;
font-family: 'Comic Sans MS', sans-serif;
box-shadow: 3px 3px 8px rgba(255, 105, 180, 0.3);
}
button#recordBtn:hover {
background-color: #ff69b4;
transform: scale(1.05);
}
/* Recognized and Translated Text Styling */
#recognizedText, #translatedText {
color: #ff69b4;
font-weight: bold;
font-size: 20px;
text-shadow: 1px 1px #ffc0cb;
}
/* Paragraph and label styling */
p, label {
color: #ff69b4;
font-size: 18px;
margin: 12px 0;
font-family: 'Comic Sans MS', sans-serif;
}
/* Dropdown styling */
select {
color: #ff69b4;
background-color: #ffe6f1;
border: 1px solid #ff69b4;
padding: 6px;
border-radius: 8px;
margin: 5px;
font-family: 'Comic Sans MS', sans-serif;
transition: transform 0.3s;
}
select:hover {
transform: scale(1.05);
}
/* Additional custom animations */
button#recordBtn:hover,
select:hover,
#recognizedText:hover,
#translatedText:hover {
animation: shake 0.5s;
animation-iteration-count: infinite;
}
#listeningText {
color: #ff69b4;
font-size: 24px;
font-weight: bold;
margin-top: 20px;
animation: pulse 1s infinite;
}
/* Animación de parpadeo */
@keyframes pulse {
0% { opacity: 0.6; }
50% { opacity: 1; }
100% { opacity: 0.6; }
}
/* Shake animation */
@keyframes shake {
0%, 100% { transform: translate(2px, 2px) rotate(0deg); }
25% { transform: translate(-2px, 2px) rotate(0deg); }
50% { transform: translate(-2px, -2px) rotate(0deg); }
75% { transform: translate(2px, -2px) rotate(0deg); }
}
/* Float animation for the container */
@keyframes float {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-8px); }
}