-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
162 lines (146 loc) · 2.91 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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
/* Import Google font - Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');
*{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Poppins', sans-serif;
}
body {
display: flex;
padding: 0 10px;
align-items: center;
justify-content: center;
min-height: 100vh;
background: linear-gradient(to left top, #2be4fd, #bf313e);
color: #fff;
}
.container {
width: 460px;
border-radius: 10px;
background: #ffffff;
box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}
.container h2 {
font-size: 28px;
font-weight: 600;
padding: 20px 30px;
background: linear-gradient(to left top, #3d5f7f, #ef5c8c);
color: #ffffff;
border-radius: 10px 10px 0 0;
text-align: center;
}
.container .content{
margin: 25px 20px 35px;
}
.container:hover {
transform: scale(1.02);
box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
transition: all 0.3s ease;
}
.content .word {
user-select: none;
font-size: 36px;
font-weight: 600;
text-align: center;
letter-spacing: 18px;
margin-right: -18px;
word-break: break-word;
text-transform: uppercase;
color: #6a31a7;
}
.content .details {
margin: 25px 0 20px;
color: #444;
}
.details p {
font-size: 18px;
margin-bottom: 12px;
}
.details p b{
font-weight: 600;
}
.content input {
width: 100%;
height: 60px;
outline: none;
padding: 0 18px;
font-size: 18px;
border-radius: 8px;
border: 1px solid #ccc;
background: #f9f9f9;
}
.content input:focus {
box-shadow: 0px 4px 8px rgba(106, 17, 203, 0.15);
border-color: #6a11cb;
}
.content input::placeholder {
color: #aaa;
}
.content input:focus::placeholder{
color: #bfbfbf;
}
.content .buttons{
display: flex;
margin-top: 20px;
justify-content: space-between;
}
.buttons button {
border: none;
outline: none;
color: #fff;
cursor: pointer;
padding: 16px 0;
font-size: 18px;
border-radius: 8px;
width: calc(50% - 8px);
transition: all 0.3s ease;
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}
.buttons button:active {
transform: scale(0.95);
}
.buttons button:hover {
transform: scale(1.05);
box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
transition: all 0.3s ease;
}
.buttons .refresh-word {
background: #ff6f61;
}
.buttons .refresh-word:hover {
background: linear-gradient(to left top, #85312c, #e33f4f);
}
.buttons .check-word {
background: #2b85ab;
}
.buttons .check-word:hover {
background: linear-gradient(to right top, #2b85ab, #cf905e);
}
@media screen and (max-width: 470px) {
.container h2 {
font-size: 24px;
padding: 15px 20px;
}
.content .word {
font-size: 28px;
letter-spacing: 14px;
margin-right: -14px;
}
.container .content{
margin: 20px 20px 30px;
}
.details p {
font-size: 16px;
margin-bottom: 8px;
}
.content input {
height: 55px;
font-size: 16px;
}
.buttons button {
padding: 14px 0;
font-size: 16px;
width: calc(50% - 7px);
}
}