summaryrefslogtreecommitdiff
path: root/src/static/main.css
blob: 2c9da291f8da3cdb989484ee4fe336824165537c (plain)
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
162
163
164
html, body {
	margin: 0;
	height: 100%;
	overflow:hidden;
	font-family: "RobotoMono-Regular", monospace;
}

/*
 * Dynamic sizes
 * https://stackoverflow.com/questions/90178/make-a-div-fill-the-height-of-the-remaining-screen-space#answer-24979148
*/

.box {
  display: flex;
  flex-flow: column;
	height: 100%;
	overflow:hidden;
}

.box .row {
  border: 1px dotted grey;
}

.box .row.header {
  flex: 0 1 auto;
  /* The above is shorthand for:
  flex-grow: 0,
  flex-shrink: 1,
  flex-basis: auto
  */
}

.box .row.content {
  flex: 1 1 auto;
}

/* */

.box {
	margin: 0.5em;
	text-align: center;
	/* Center image in image container */
	display: flex;
	justify-content: center;
	align-items: center;

}

#main-image, #image-container, #map {
	border-radius: 0.4em;
}

#main-image {
	position: relative;
	max-height: 55vh;
	max-width: 100%;
	height: auto; /* Prevent image stretching */
	/* Zoom script */
	cursor: zoom-in;
}

#image-container {
	overflow: clip;
	width: 100%;
	border: none;
	min-height: 40vh; /* Allow space for zooming ultrawide photos on vertical phone layout */
	/* zoom script */
	display: flex;
	align-items: center;
	justify-content: center;
}

#title {
	margin-top: 0;
	margin-bottom: 0.25em;
}

#title > a {
	text-decoration: none; /* no underline */
	color: white;
}

#map {
	width: 100%;
	margin-top: 0.5em;
	margin-bottom: 1.25em;
}

/* Image zoom animation */
@keyframes image-zoom-animation {
	0% {
		scale: 800%;
	}
	100% {
		scale: 100%;
	}
}

.image-zoom-animation {
	/*animation: image-zoom-animation 10s ease-out;*/
}

/* Background image */
#background-image {
	background-image: url("/static/pics/mine/Lithaunsplads - Saxogade.webp");
	position: absolute;
	background-position: center;
	filter: blur(2vh); /* vh because it's zoom agnostic */ 
	background-size: cover;
	/* Make it slightly bigger, so there's no white at the edges */
	height: 110%;
	width: 110%;
	left: -5%;
	top: -5%;
	z-index: -10;
}

/* Overlay */
#overlay{
	text-align: center;
	position: absolute;
	bottom: 1em;
	color: white;
	z-index: 500;
	pointer-events: none;
	/* center */
  left: 0; 
  right: 0; 
  margin-inline: auto; 
  width: fit-content;
	/* Display next to each other */
	display: flex;
	gap: 1em;
}

#overlay-distance > * {
	margin: 0;
}

#overlay-distance {
	background: #0008;
	pointer-events: none;
	user-select: none;
	border-radius: 0.5em;
	padding: 0.5em;
	height: 100%;
}

.bottom-button {
	padding: 0.5em;
	background: #1589c1;
	border: none;
	font-size: 1.3em;
	align-items: center;          /* Center items */
	/* border-color: #d0d0d0; */
	color: white;
	border-radius: 0.5em;
	pointer-events: all;
}

.subtle-light {
	color: #ddd;
	font-size: 0.6em;
}