-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathblackjack.css
More file actions
113 lines (102 loc) · 2.63 KB
/
Copy pathblackjack.css
File metadata and controls
113 lines (102 loc) · 2.63 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
body {
font-family: Arial, Helvetica, sans-serif;
text-align: center;
background-image: url('istockphoto-172872767-612x612.jpg');
background-size:cover;
background-repeat: no-repeat;
margin: 0;
padding: 0;
}
#dealer-cards img,
#your-cards img {
height: 175px;
width: 125px;
margin: 5px;
border-radius: 5px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}
/* Button styles */
button {
font-family: Arial, Helvetica, sans-serif;
font-size: 16px;
padding: 10px 20px;
margin: 10px;
border: none;
border-radius: 5px;
cursor: pointer;
}
/* Hit button */
#hit {
background-color: #4caf50; /* Green background */
color: white;
}
/* Stay button */
#stay {
background-color: #2196f3; /* Blue background */
color: white;
}
/* Quit button */
#quitButton {
background-color: #f44336; /* Red background */
color: white;
}
/* Hover effect for buttons */
button:hover {
opacity: 0.8; /* Slightly reduce opacity on hover */
}
h2{
color: white; /* Change text color to white */
font-size: 24px;
font-weight: bold;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
button {
font-family: Arial, Helvetica, sans-serif;
font-size: 20px; /* Larger font size */
padding: 15px 30px; /* Increased padding */
margin: 10px;
border: none;
border-radius: 5px;
cursor: pointer;
background-color: #4caf50; /* Green background by default */
color: white;
transition: background-color 0.3s, color 0.3s; /* Smooth transition for color change */
}
/* Hover effect for buttons */
button:hover {
background-color: #45a049; /* Darker green background on hover */
}
/* Animated button effect */
button:active {
transform: translateY(2px); /* Move button down slightly on click */
}
/* Restart button styles */
.restart-button {
background-color: #f44336; /* Red background */
color: white;
padding: 15px 30px; /* Increased padding */
margin: 10px;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 20px; /* Larger font size */
transition: background-color 0.3s, color 0.3s; /* Smooth transition for color change */
}
/* Hover effect for restart button */
.restart-button:hover {
background-color: #d32f2f; /* Darker red background on hover */
}
/* Media queries for responsiveness */
@media only screen and (max-width: 600px) {
/* Adjust card size for smaller screens */
#dealer-cards img,
#your-cards img {
height: 100px;
width: 70px;
}
/* Adjust button size for smaller screens */
button {
font-size: 16px;
padding: 10px 20px;
}
}