-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
81 lines (71 loc) · 1.97 KB
/
styles.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
body {
font-family: 'Roboto Mono', monospace; /* Futuristic font */
margin: 0;
padding: 0;
background: url('vending_m.png') center/cover no-repeat fixed; /* Replace with actual image URL */
color: #e0e0e0; /* Light gray text for contrast */
}
p {
background-color: #1a1a1a; /* Darker background for paragraphs */
color: #e0e0e0; /* Maintain light gray text for readability */
padding: 10px;
border-radius: 5px;
}
header {
background-color: #222831; /* Dark futuristic shade */
color: #00adb5; /* Neon teal */
padding: 20px;
text-align: center;
}
header h1 {
font-size: 2rem;
margin: 0;
}
main {
display: flex;
justify-content: center;
align-items: center;
min-height: 80vh; /* Centers the grid vertically */
padding: 20px;
}
.machine-grid {
display: grid;
grid-template-columns: repeat(4, minmax(20px, 1fr)); /* Increased minimum width */
grid-auto-rows: 1fr; /* Ensures square buttons */
grid-gap: 25px; /* Slightly larger gap between buttons */
max-width: 90vw; /* Responsive max width */
width: 100%;
place-items: center;
}
.machine-slot {
background-color: #393e46; /* Dark gray */
color: #ff2e63; /* Neon pink */
display: flex;
justify-content: center;
align-items: center;
font-size: 1.8rem; /* Larger font size */
padding: 20px;
text-decoration: none;
border-radius: 5px;
transition: transform 0.3s, background-color 0.3s;
aspect-ratio: 1 / 1; /* Ensures square buttons */
}
.machine-slot:hover {
transform: scale(1.1);
background-color: #00adb5; /* Neon teal hover */
}
footer {
background-color: #222831;
color: #00adb5;
padding: 20px;
text-align: center;
position: fixed;
bottom: 0;
width: 100%;
}
/* Media query for small screens */
@media only screen and (max-width: 600px) {
.machine-grid {
grid-template-columns: repeat(2, minmax(50px, 1fr)); /* Larger buttons on small screens too */
}
}