-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
103 lines (87 loc) · 2.2 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
/* General Styles */
html, body {
height: 100%;
margin: 0;
font-family: Arial, sans-serif;
background-color: #000; /* Black background */
color: #fff; /* White text */
}
header {
background-color: rgba(0, 51, 102, 1); /* Dark blue */
color: white;
text-align: center;
padding: 2rem 0; /* Larger padding for the header */
}
nav ul {
list-style-type: none;
padding: 0;
}
nav ul li {
display: inline;
margin: 0 15px;
}
nav ul li a {
color: #00ccff; /* Light blue for links */
text-decoration: none;
font-weight: bold;
}
main {
padding: 2rem;
}
section {
margin-bottom: 2rem;
padding: 1rem;
border-radius: 10px;
background-color: rgba(255, 255, 255, 0.1); /* Light transparent background */
text-align: center; /* Center text in the section */
}
h2 {
color: #00ccff; /* Light blue for section titles */
}
footer {
background-color: rgba(0, 51, 102, 1); /* Dark blue */
color: white;
text-align: center;
padding: 1rem 0;
}
button {
padding: 10px 20px;
background-color: #005f99; /* Blue button */
color: white;
border: none;
cursor: pointer;
border-radius: 5px;
display: block;
margin: 1rem auto; /* Center the button */
}
button:hover {
background-color: #004080; /* Darker blue on hover */
}
/* Responsive Image */
.responsive-img {
max-width: 400px; /* Set a medium size */
width: 100%; /* Make it responsive */
height: auto; /* Maintain aspect ratio */
border-radius: 10px;
display: block; /* Center the image */
margin: 0 auto; /* Center the image */
}
/* Media Queries for Mobile */
@media (max-width: 600px) {
header {
padding: 1rem 0; /* Adjust header padding for mobile */
}
main {
padding: 1rem; /* Reduce main padding */
}
section {
padding: 0.5rem; /* Reduce section padding */
}
button {
width: 100%; /* Make button full width on mobile */
}
/* Adjust image size on mobile */
.responsive-img {
max-width: 100%; /* Allow full width on smaller screens */
}
}