File size: 2,507 Bytes
f63d934
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
.header {
	font-family: var(--font-2);
	position: sticky;
	top: 0;
	background-color: var(--medium-grey);
	box-shadow: 0 var(--small) var(--small) var(--light-grey);
	padding: var(--medium);
	z-index: 2;
}

.header__wrapper {
	max-width: 40em;
	width: 100%;
	padding: var(--medium) var(--medium) 0 var(--medium);
	margin: 0 auto;
}

.header__title {
	background-color: var(--dark-grey);
	text-align: center;
	font-size: 2.5rem;
	padding: 1rem;
	border-radius: var(--large);
	margin-bottom: 0.3em;
	box-shadow: 0 0 var(--small) var(--lighter-grey);
	line-height: 0.9;
}

.header__buttons {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--medium);
}

.header__info {
	display: flex;
	font-size: 0.9rem;
	margin-top: 1em;
	align-items: center;
	justify-content: space-between;
	min-height: 32px;
}

.header__switch-container {
	display: flex;
	align-items: center;
}

.header__switch-label {
	margin: 0;
	color: var(--lighter-grey);
}

.header__switch-label--selected {
	color: white;
}

.header__checkbox {
	height: 0;
	width: 0;
	visibility: hidden;
}

.header__switch {
	cursor: pointer;
	width: 36px;
	height: 20px;
	margin-right: 6px;
	background: var(--light-grey);
	border-radius: 100px;
	position: relative;
}

.header__switch:after {
	content: '';
	position: absolute;
	top: 2px;
	left: 2px;
	width: 16px;
	height: 16px;
	background: white;
	border-radius: 90px;
	transition: background-color 0.2s;
}

.header__checkbox:checked + .header__switch {
	background: var(--lighter-grey);
}

.header__checkbox:checked + .header__switch:after {
	left: calc(100% - 2px);
	transform: translateX(-100%);
}

.header__switch:active:after {
	width: 18px;
	height: 18px;
	top: 1px;
}

.header__time {
	visibility: hidden;
}

.header__time--visible {
	visibility: visible;
}

@media (min-width: 640px) {
	.header__title {
		font-size: 3rem;
	}

	.header__dropdown--mobile-only {
		display: none;
	}
}


@media (max-width: 640px) {
	.header {
		padding: var(--small);
	}

	.header__wrapper {
		padding: var(--small) var(--small) 0 var(--small);
	}

	.header__title {
		font-size: 1.75rem;
		padding: 0.6rem;
	}

	.header__info {
		margin-top: 0.3em;
	}

	.header__buttons {
		display: none;
	}
}

.header__dropdown {
	background-color: var(--lighter-grey);
	padding: 0.3em;
	border-radius: 16px;
	font-family: var(--font-1);
	outline: none;
}

.header__dropdown-container {
	display: flex;
	align-items: center;
	font-family: var(--font-2);
}

.header__dropdown-label {
	margin: 0 0.3em 0 0;
}