-
Notifications
You must be signed in to change notification settings - Fork 41
/
Copy pathmain.css
147 lines (136 loc) · 3.01 KB
/
main.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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');
:root {
--color1: #e0f8d0;
--color2: #88c070;
--color3: #346856;
--color4: #081820;
}
h1 {
margin: auto;
background-color: var(--color4);
height: 200px;
text-transform: lowercase;
color: var(--color2);
font-family: 'Press Start 2P', 'Courier New', Courier, monospace;
text-align: center;
font-size: 100px;
}
h2 {
margin: auto;
background-color: var(--color1);
color: var(--color4);
font-family: 'Press Start 2P', 'Courier New', Courier, monospace;
text-align: center;
font-size: 50px;
}
p {
margin: auto;
margin-left: 10%;
margin-right: 10%;
color: var(--color4);
font-family: 'Courier New', Courier, monospace;
text-align: center;
font-size: 18px;
}
body {
margin: auto;
background-color: var(--color2);
color: var(--color4);
font-family: 'Courier New', Courier, monospace;
text-align: center;
font-size: 25px;
}
a {
color: var(--color3);
text-decoration: none;
}
img {
width: 256px;
max-width: 20%;
height: auto;
image-rendering: pixelated;
display: inline-block;
margin: 10px;
}
.player {
background-color: var(--color4);
color: var(--color2);
}
.container {
margin: 1rem;
padding: 2rem 2rem;
text-align: center;
}
.game {
display: inline-block;
background-color: var(--color4);
padding: 1rem 1rem;
vertical-align: middle;
}
.thumbnail {
width: 1remb ;
height: auto;
display: inline-block;
padding: 1rem 1rem;
vertical-align: middle;
}
.thumbnail:hover {
width: 300px;
height: auto;
display: inline-block;
border: 1px solid var(--color4);
padding: 1rem 1rem;
vertical-align: middle;
}
button {
background-color: var(--color3); /* Green */
border-radius: 8px;
border: none;
color: var(--color1);
padding: 16px 16px;
font-family: 'Press Start 2P', 'Courier New', Courier, monospace;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
}
button:hover {
background-color: var(--color2);
}
/* Style the tab */
.tab {
overflow: hidden;
border: 1px solid var(--color4);
background-color: var(--color2);
}
/* Style the buttons that are used to open the tab content */
.tab button {
background-color: inherit;
float: left;
border: none;
outline: none;
cursor: pointer;
padding: 16px 16px;
transition: 0.3s;
}
/* Change background color of buttons on hover */
.tab button:hover {
background-color: var(--color3);
}
/* Create an active/current tablink class */
.tab button.active {
background-color: var(--color4);
}
/* Style the tab content */
.tabcontent {
display: none;
padding: 6px 12px;
border: 1px solid var(--color1);
border-top: none;
animation: fadeEffect 1s; /* Fading effect takes 1 second */
}
/* Go from zero to full opacity */
@keyframes fadeEffect {
from {opacity: 0;}
to {opacity: 1;}
}