-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
126 lines (112 loc) · 2.34 KB
/
style.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
116
117
118
119
120
121
122
123
124
125
126
/* Global reset */
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: 'Montserrat', sans-serif;
background-image: url('img/background.jpg'); /* Đường dẫn đến ảnh của bạn */
background-size: cover; /* Phủ đầy màn hình */
background-position: center; /* Căn giữa ảnh */
background-attachment: fixed; /* Ảnh cố định khi cuộn */
color: #333;
font-size: 16px;
line-height: 1.6;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
padding: 20px;
}
/* Box container */
.box {
width: 100%;
max-width: 800px; /* Giới hạn chiều rộng để tập trung nội dung */
background: #fff;
border-radius: 12px;
box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
padding: 40px;
display: flex;
flex-direction: column;
}
/* Box header */
.box .top {
text-align: center;
margin-bottom: 20px;
}
.box .top h3 {
font-size: 2em;
color: #0075b9;
font-weight: 700;
margin-bottom: 10px;
}
.box .top p {
font-size: 1em;
color: #555;
}
/* Section Headers */
.section-header {
margin: 20px 0;
}
.section-header h4 {
font-size: 1.3em;
font-weight: 600;
color: #333;
margin-bottom: 10px;
}
/* Form input fields */
.info {
display: grid; /* Sử dụng grid layout */
grid-template-columns: 1fr 1fr; /* Hai cột */
gap: 20px; /* Khoảng cách giữa các field */
margin-bottom: 20px;
}
.info label {
font-size: 1em;
color: #333;
margin-bottom: 5px;
font-weight: 600;
display: block;
}
.info input,
.info select {
width: 100%;
padding: 12px 15px;
border-radius: 8px;
background-color: #f7f7f7;
border: 1px solid #ccc;
font-size: 1em;
color: #333;
transition: all 0.3s ease;
}
.info input:focus,
.info select:focus {
border-color: #0075b9;
background-color: #eaf4ff;
box-shadow: 0 0 5px rgba(0, 117, 185, 0.3);
}
/* Một cột trên thiết bị nhỏ */
@media (max-width: 768px) {
.info {
grid-template-columns: 1fr; /* Chuyển sang 1 cột */
}
}
/* Submit Button */
.action {
text-align: right;
margin-top: 20px;
}
.action input[type="submit"] {
padding: 12px 30px;
border-radius: 8px;
background-color: #0075b9;
color: #fff;
font-weight: bold;
border: none;
cursor: pointer;
transition: background-color 0.3s ease;
}
.action input[type="submit"]:hover {
background-color: #005f8b;
}