-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbasicgamestile.css
More file actions
135 lines (126 loc) · 2.67 KB
/
Copy pathbasicgamestile.css
File metadata and controls
135 lines (126 loc) · 2.67 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
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
body {
font-family:'Courier New', Courier, monospace;
height: 100vh;
margin: 0;
padding: 0;
background-color: gray;
}
#container {
display: flex;
flex-direction: column;
align-items: center;
position: relative;
top: 0;
padding-left: 20px;
padding-right: 20px;
}
.back {
position: fixed;
top: 20px;
left: 20px;
text-decoration: none;
z-index: 1;
}
.back > h1 {
margin: 0;
color: blue;
}
.back > h1:hover {
cursor: pointer;
color: darkblue;
}
@media screen and (max-width: 800px) {
#container {
top: 50px;
}
}
/* TOASTER */
/* Add to styles.css or inside a <style> tag in index.html */
#toaster-container {
position: fixed;
top: 30px;
right: 30px;
z-index: 9999;
display: flex;
flex-direction: column;
gap: 10px;
}
.toaster {
min-width: 220px;
padding: 14px 24px;
border-radius: 6px;
color: #fff;
font-weight: bold;
box-shadow: 0 2px 8px rgba(0,0,0,0.15);
opacity: 0.95;
animation: fadeInOut 3s forwards;
}
.toaster.success { background: #2ecc40; }
.toaster.warning { background: #ffb700; color: #222; }
.toaster.error { background: #e74c3c; }
@keyframes fadeInOut {
0% { opacity: 0; transform: translateY(-20px);}
10% { opacity: 0.95; transform: translateY(0);}
90% { opacity: 0.95; }
100% { opacity: 0; transform: translateY(-20px);}
}
/* Suggestions box */
#suggestions {
margin-top: 20px;
margin-bottom: 20px;
padding: 15px;
border: 2px solid #ccc;
border-radius: 8px;
width: 80vw;
max-width: 600px;
background-color: #f9f9f9;
}
#suggestions h2 {
margin-top: 0;
color: #333;
}
#suggestions form {
display: flex;
gap: 10px;
}
#suggestions input[type="text"] {
flex: 1;
padding: 10px;
border: 1px solid #ccc;
border-radius: 5px;
font-size: 16px;
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}
#suggestions input[type="text"]:focus {
outline: none;
border-color: #007BFF;
box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}
#suggestions button {
padding: 10px 20px;
font-size: 16px;
background-color: #28a745;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
width: 100px;
height: 62px;
margin-top: 0;
}
#suggestions select {
padding: 10px;
font-size: 16px;
border: 1px solid #ccc;
border-radius: 5px;
background-color: white;
cursor: pointer;
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}
/* select dropdown*/
#suggestions select:focus {
outline: none;
border-color: #007BFF;
box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}