-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
95 lines (83 loc) · 1.91 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
body {
background-image: url(https://assets.codepen.io/12465361/DeathStar.png?format=auto);
background-size: cover; /* Ensure the background image covers the entire screen */
color: blue;
margin: 0;
padding: 0;
font-family: sans-serif;
}
h1 {
font-family: cursive;
font-size: 2.5rem; /* Reduced font size for better readability on smaller screens */
font-weight: 900;
text-shadow:
1px 1px 0 red,
-1px 1px 0 red,
1px -1px 0 red,
-1px -1px 0 red;
text-align: center;
margin: 10px;
}
button {
background-color: red;
color: blue;
padding: 10px 15px;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 1.2rem; /* Slightly smaller font size for better fit */
font-family: cursive;
text-shadow:
1px 1px 0 white,
-1px 1px 0 white,
1px -1px 0 white,
-1px -1px 0 white;
margin: 10px 0;
}
button:hover {
background-color: blue;
transition: background-color 1s;
}
#planets, #planetClimateList {
font-size: 1.5rem; /* Reduced font size for better readability */
color: blue;
font-family: cursive;
text-shadow:
1px 1px 0 red,
-1px 1px 0 red,
1px -1px 0 red,
-1px -1px 0 red;
text-align: center;
margin: 10px;
}
#starWarsContainer, #starWarsDataContainer {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
margin: 0;
padding: 20px;
box-sizing: border-box; /* Ensure padding is included in the element's total width and height */
}
h2 {
margin-top: 0;
margin-bottom: 20px;
font-size: 2rem; /* Adjusted for better readability */
text-align: center;
}
/* Media Queries for smaller screens */
@media (max-width: 768px) {
h1 {
font-size: 2rem;
}
button {
font-size: 1rem;
padding: 8px 12px;
}
#planets, #planetClimateList {
font-size: 1.2rem;
}
h2 {
font-size: 1.5rem;
}
}