-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstylesheet.css
More file actions
89 lines (76 loc) · 1.79 KB
/
stylesheet.css
File metadata and controls
89 lines (76 loc) · 1.79 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
/* Content of stylesheet.css */
/* Basic reset to remove padding, margin, and set box-sizing */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body, html {
height: 100%;
font-family: 'Arial', sans-serif;
}
/* Style the background wrapper */
#background-wrapper {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: auto;
background: linear-gradient(to right, #74ebd5, #acb6e5);
}
/* Style the title */
h1 {
text-align: center;
margin-top:0.25em;
margin-bottom: 0.25em;
font-size: 2em;
color: #333;
}
/* Subtitle */
h2 {
text-align: center;
margin: 0 0 0 0;
font-size: 1.6em;
color: #333;
}
p {
margin: 10px 0;
max-width: 1000px;
text-align: center;
}
/* Center the game canvas */
#gameCanvas {
width: 100%;
max-width: 1000px; /* or the max width you want for your game */
min-height: 600px;
margin: 0;
border: 5px solid #333;
}
/* Styles for mobile devices */
@media only screen and (max-width: 768px) { /* Adjust the max-width as needed for your design */
#gameCanvas {
display: none; /* Hide the game canvas on smaller screens */
}
#instructions {
display: none;
}
#mobileMessage {
display: block; /* Show the mobile message */
text-align: center;
padding: 20px;
margin: 10px;
font-size: 18px; /* Adjust size as needed */
font-family: 'Courier New', Courier, monospace;
color: #333; /* Adjust color as needed */
border: 5px solid #333;
}
}
/* Styles for larger screens */
@media only screen and (min-width: 769px) {
#mobileMessage {
display: none; /* Hide the message on larger screens */
}
#instructions {
display: block;
}
}