-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoptionforanswer.css
More file actions
68 lines (67 loc) · 1.72 KB
/
Copy pathoptionforanswer.css
File metadata and controls
68 lines (67 loc) · 1.72 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
body {
margin: 0;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
/*background-color: whitesmoke;*/
background-image: url(./img2.jpg);
color: #333;
padding-top: 1%;
padding-left: 1%;
padding-right: 1%;
padding-bottom: 1%;
display: flex;
justify-content: center;
align-items: center;
height: 100vh; /* Full height of the viewport */
margin: 0;
padding: 0;
}
.container {
text-align: center;
background: #fff;
padding: 40px 20px;
box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
border-radius: 12px;
max-width: 400px; /* Maximum width for the container */
width: 90%; /* Responsive width */
box-sizing: border-box; /* Include padding in width calculation */
}
h1 {
font-size: 24px;
margin-bottom: 20px;
color: #4CAF50;
}
.btn-group {
margin-top: 20px;
display: flex; /* Flexbox for button alignment */
justify-content: center; /* Center buttons horizontally */
flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}
.btn {
display: inline-block;
padding: 15px 30px;
margin: 10px;
font-size: 18px;
text-decoration: none;
border: none;
background-color: #4CAF50;
color: white;
cursor: pointer;
border-radius: 8px;
transition: background-color 0.3s, transform 0.2s;
width: calc(50% - 20px); /* Two buttons side by side */
text-align: center; /* Center text in buttons */
}
.btn:hover {
background-color: #45a049;
transform: translateY(-2px);
}
.btn:active {
transform: translateY(1px);
}
/* Responsive design */
@media (max-width: 480px) {
.btn {
font-size: 16px;
width: calc(100% - 20px); /* Full width on small screens */
}
}