-
Notifications
You must be signed in to change notification settings - Fork 0
/
othelloView.css
229 lines (216 loc) · 4.52 KB
/
othelloView.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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
/*settings*/
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');
*{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Poppins',sans-serif;
}
body{
height: 100vh;
display: flex;
background-image: image("download.png");
padding: 10px;
background: linear-gradient(112.1deg, rgb(32, 38, 57) 11.4%, rgb(63, 76, 119) 70.2%);
}
.container{
max-width: 700px;
width: 100%;
background-color: #fff;
padding: 25px 30px;
border-radius: 5px;
box-shadow: 0 5px 10px rgba(0,0,0,0.15);
position: absolute;
left: 50%;
align-self: center;
}
.container .title{
font-size: 25px;
font-weight: 500;
position: relative;
}
.container .title::before{
content: "";
position: absolute;
left: 0;
bottom: 0;
height: 3px;
width: 30px;
border-radius: 5px;
background: linear-gradient(112.1deg, rgb(32, 38, 57) 11.4%, rgb(63, 76, 119) 70.2%);
}
.content form .user-details{
display: flex;
flex-direction: column;
margin: 20px 0 12px 0;
}
form .user-details .input-box{
margin-bottom: 15px;
width: calc(100% / 2 - 20px);
}
form .input-box span.details{
display: block;
font-weight: 500;
margin-bottom: 5px;
}
.user-details .input-box input{
height: 45px;
width: 100%;
outline: none;
font-size: 16px;
border-radius: 5px;
padding-left: 15px;
border: 1px solid #ccc;
border-bottom-width: 2px;
transition: all 0.3s ease;
}
.user-details .input-box input:focus,
.user-details .input-box input:valid{
border-color:rgb(63, 76, 119);
}
form .mode-details .mode-title{
font-size: 20px;
font-weight: 500;
}
form .category{
display: flex;
width: 80%;
margin: 14px 0 ;
justify-content: space-between;
}
form .category label{
display: flex;
align-items: center;
cursor: pointer;
}
form .category label .dot{
height: 18px;
width: 18px;
border-radius: 50%;
margin-right: 10px;
background: #d9d9d9;
border: 5px solid transparent;
transition: all 0.3s ease;
}
#dot-1:checked ~ .category label .one,
#dot-2:checked ~ .category label .two,
#dot-3:checked ~ .category label .three{
background: rgb(63, 76, 119);
border-color: #d9d9d9;
}
form input[type="radio"]{
display: none;
}
form .button{
height: 45px;
width: 48%;
margin: 35px 0
}
form .buttons {
display: flex;
flex-direction: row;
justify-content: space-between;
}
form .button input{
height: 100%;
width: 100%;
border-radius: 5px;
border: none;
color: #fff;
font-size: 22px;
font-weight: 500;
letter-spacing: 1px;
cursor: pointer;
transition: all 0.3s ease;
background: linear-gradient(112.1deg, rgb(32, 38, 57) 11.4%, rgb(63, 76, 119) 70.2%); }
form .button input:hover{
/* transform: scale(0.99); */
background: linear-gradient(-112.1deg, rgb(32, 38, 57) 11.4%, rgb(63, 76, 119) 70.2%); }
@media(max-width: 584px){
.container{
max-width: 100%;
}
form .user-details .input-box{
margin-bottom: 15px;
width: 100%;
}
form .category{
width: 100%;
}
.content form .user-details{
max-height: 300px;
overflow-y: scroll;
}
.user-details::-webkit-scrollbar{
width: 5px;
}
}
@media(max-width: 459px){
.container .content .category{
flex-direction: column;
}
}
/* game */
#blackBackground {
position: absolute;
left: 0;
top: 0;
background-color: black;
height: 546;
width: 546;
}
#score {
position: absolute;
left: 0;
top: 550;
width: 550;
font-size: 50;
color: white;
text-align: center;
}
/* Pop-up Massage */
.popup-message {
position: fixed;
top: -66px; /* Initial position above the viewport */
left: 50%;
height: 66px;
width: 450px;
transform: translateX(-50%);
padding: 20px;
background-color: #f1f1f1;
border-radius: 28px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
opacity: 0;
visibility: hidden;
transition: top 0.7s ease-in-out, opacity 0.7s ease-in-out, visibility 0.7s ease-in-out;
z-index: 9999;
}
.popup-message.show {
top: 110px; /* Final position when shown */
opacity: 70%;
visibility: visible;
height: 66px;
width: 450px;
}
.popup-message.hide {
top: -66px; /* Position above the viewport when hidden */
opacity: 0;
visibility: hidden;
}
.popup-message .message {
text-align: center;
font-size: 18px;
font-weight: normal;
color: #000;
margin-bottom: 20px;
}
.Overlay {
position: absolute;
left: 0;
top: 0;
background-color: black;
height: 546;
width: 546;
opacity: 0%;
cursor: pointer;
}