-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
120 lines (101 loc) · 1.8 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
body {
font-family: Arial, sans-serif;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
background-color: #f4f4f4;
}
.container {
text-align: center;
background-color: #fff;
padding: 20px;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
max-width: 90%;
}
button {
padding: 10px 20px;
font-size: 16px;
cursor: pointer;
background-color: #4CAF50;
color: white;
border: none;
border-radius: 5px;
margin-top: 20px;
}
button:hover {
background-color: #45a049;
}
#result {
font-size: 24px;
margin-top: 20px;
}
.coin {
width: 100px;
height: 100px;
position: relative;
perspective: 1000px;
margin: 20px auto;
}
#side {
width: 100%;
height: 100%;
position: absolute;
backface-visibility: hidden;
display: flex;
justify-content: center;
align-items: center;
font-size: 24px;
border-radius: 50%;
background-color: gold;
color: black;
border: 2px solid #333;
}
#coin {
transition: transform 2s; }
.flip {
transform: rotateY(1800deg);
}
/* Media Queries for Responsive Design */
/* For tablets */
@media (max-width: 768px) {
.container {
padding: 15px;
}
.coin {
width: 80px;
height: 80px;
}
#side {
font-size: 20px;
}
button {
font-size: 14px;
padding: 8px 16px;
}
#result {
font-size: 20px;
}
}
/* For mobile devices */
@media (max-width: 480px) {
.container {
padding: 10px;
}
.coin {
width: 60px;
height: 60px;
}
#side {
font-size: 16px;
}
button {
font-size: 12px;
padding: 6px 12px;
}
#result {
font-size: 18px;
}
}