-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
104 lines (104 loc) · 2.4 KB
/
style.css
File metadata and controls
104 lines (104 loc) · 2.4 KB
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
body {
font-family: 'Noto Sans KR', sans-serif;
background: #f5f5f5;
margin: 0;
padding: 0;
}
.center {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
}
#board-container {
position: relative;
width: 600px;
height: 600px;
margin: 40px auto;
}
#dice-area {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
z-index: 2;
}
#dice {
cursor: pointer;
margin-bottom: 10px;
}
input[type="text"] {
margin: 10px;
padding: 8px;
font-size: 16px;
}
button {
margin: 10px;
padding: 10px 30px;
font-size: 18px;
cursor: pointer;
}
#spot-info {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: rgba(255,255,255,0.95);
border: 2px solid #333;
border-radius: 20px;
padding: 40px 60px;
font-size: 2rem;
font-weight: bold;
color: #222;
z-index: 10;
text-align: center;
white-space: pre-line;
box-shadow: 0 4px 24px rgba(0,0,0,0.15);
min-width: 200px;
max-width: 90%;
min-height: 80px;
max-height: 80%;
overflow: auto;
cursor: pointer;
}
#spot-info:hover {
background: rgba(240,240,240,0.99);
}
@keyframes spin-dice {
0% { transform: rotate(0deg);}
100% { transform: rotate(1440deg);} /* 4바퀴 */
}
#dice.spinning {
animation: spin-dice 1s cubic-bezier(.36,1.7,.43,.87);
}
.dice {
position: relative;
margin: 0 auto 0;
transform-style: preserve-3d;
transform: rotateX(0deg) rotateY(0deg);
transition: transform 1s cubic-bezier(.36,1.7,.43,.87);
cursor: pointer;
width: 80px; height: 80px;
}
.face {
position: absolute;
width: 80px; height: 80px;
background: #fff;
border: 3px solid #333;
border-radius: 16px;
font-size: 2.5rem;
font-weight: bold;
color: #222;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.front { transform: rotateY(0deg) translateZ(40px);}
.back { transform: rotateY(180deg) translateZ(40px);}
.right { transform: rotateY(90deg) translateZ(40px);}
.left { transform: rotateY(-90deg) translateZ(40px);}
.top { transform: rotateX(90deg) translateZ(40px);}
.bottom { transform: rotateX(-90deg) translateZ(40px);}