-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
119 lines (103 loc) · 2.43 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
*{
font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
}
body{
margin: 0;
padding: 0;
background: black;
display: flex;
justify-content: center; /* Center horizontally */
align-items: center; /* Center vertically */
min-height: 100vh; /* Ensure the body takes the full height of the viewport */
}
#canvas{
width: 100%;
max-width: calc(100vh * (16 / 9)); /* Ensure the canvas maintains aspect ratio and doesn't exceed viewport height */
aspect-ratio: 16 / 9;
background: rgb(255, 255, 255);
position: relative;
}
/* Game Window */
#Title{
position: absolute;
margin-left: 50%;
z-index: 1000;
transform: translate(-50%, -50%);
color: rgb(0, 135, 0);
font-size: 8vw;
margin-top: 10%;
}
#Underline{
position: absolute;
margin-left: 50%;
background: rgb(0, 135, 0);
width: 50vh;
height: 1vh;
transform: translate(-50%, -50%);
font-size: 1.5vw;
margin-top: 12%;
}
/* Prompt Window */
#prompt *{
font-size: 2vw;
}
#prompt{
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
display: flex;
justify-content: center;
align-items: center;
backdrop-filter: blur(5px);
z-index: 1000
}
#promptWindow{
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
color: rgb(0, 0, 0);
font-size: 24px;
font-weight: bold;
background: white;
padding: 5vw;
}
#promptText{
margin-bottom: 20px;
}
#promptButtons{
display: flex;
justify-content: center;
gap: 10px;
}
#promptButton, button{
background-color: #4CAF50; /* Green */
border: none;
color: white;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
border: black 0.1vw solid;
border-radius: 10px;
transition-duration: 0.4s;
box-shadow: 0 5px #666;
transform: translateY(1px);
}
#promptButton:hover, button:hover {
background-color: #45a049;
box-shadow: 0 4px #666;
transform: translateY(2px);
}
#promptButton:active, button:active {
background-color: #3e8e41;
box-shadow: 0 1px #666;
transform: translateY(5px);
}