-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathcards-age.css
115 lines (99 loc) · 2.42 KB
/
cards-age.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
body {
background: url("bg.png") no-repeat center center fixed;
background-size: cover;
font-family: Arial, Helvetica, sans-serif;
text-align: center;
color: white;
margin: 0;
overflow-x: hidden; /* Prevent horizontal scroll caused by any overflow */
}
#board {
display: flex;
flex-wrap: wrap;
justify-content: space-around; /* Ensures cards fill space evenly */
width: 100%; /* Full width without exceeding viewport */
max-width: 600px; /* Maximum size to limit expansion */
margin: 20px auto;
padding: 10px;
background-color: whitesmoke;
border: 10px solid lightgrey;
border-radius: 8px;
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
gap: 10px;
}
.card {
flex: 1 1 22%; /* Adjusted to fit 4 per row with gap */
max-width: 22%; /* Limits card width to 22% */
aspect-ratio: 4/5; /* Ensures square cards */
/* margin: 2px; */
}
@media (max-width: 768px) {
#board {
max-width: 95vw; /* Slightly narrower on smaller screens */
}
}
/* Modal Styles */
.modal {
display: none; /* Hidden by default */
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent background */
align-items: center;
justify-content: center;
z-index: 1000;
}
.modal-content {
background-color: rgb(64, 8, 8);
padding: 20px;
text-align: center;
border-radius: 8px;
max-width: 300px;
width: 80%;
}
.modal-content h2 {
margin: 0;
font-size: 24px;
}
.modal-content p {
font-size: 18px;
}
.modal-buttons {
margin-top: 20px;
}
.modal-buttons button {
padding: 10px 20px;
font-size: 16px;
margin: 2px 10px;
cursor: pointer;
border: none;
border-radius: 4px;
transition: background-color 0.3s;
}
.modal-buttons button:hover {
background-color: #2d1010;
}
.modal-buttons button:nth-child(1) {
background-color: black;
color: white;
}
.modal-buttons a {
background-color: red;
color: white;
}
.modal-buttons a {
padding: 10px 20px;
font-size: 16px;
margin: 2px 10px;
cursor: pointer;
border: none;
border-radius: 4px;
background: #000;
transition: background-color 0.3s;
text-decoration: none;
}
.modal-buttons a:hover {
background-color: #2d1010;
}