:root {
  --vh: 1vh;
}


@font-face {
    font-family: 'bodoni06bold';
    src: url('fonts/bodoni-06-bold-webfont.eot');
    src: url('fonts/bodoni-06-bold-webfont.eot?#iefix') format('embedded-opentype'),
         url('fonts/bodoni-06-bold-webfont.woff2') format('woff2'),
         url('fonts/bodoni-06-bold-webfont.woff') format('woff'),
         url('fonts/bodoni-06-bold-webfont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'bodoni06italic';
    src: url('fonts/bodoni-06-book-italic-webfont.eot');
    src: url('fonts/bodoni-06-book-italic-webfont.eot?#iefix') format('embedded-opentype'),
         url('fonts/bodoni-06-book-italic-webfont.woff2') format('woff2'),
         url('fonts/bodoni-06-book-italic-webfont.woff') format('woff'),
         url('fonts/bodoni-06-book-italic-webfont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'bodoni06';
    src: url('fonts/bodoni-06-book-webfont.eot');
    src: url('fonts/bodoni-06-book-webfont.eot?#iefix') format('embedded-opentype'),
         url('fonts/bodoni-06-book-webfont.woff2') format('woff2'),
         url('fonts/bodoni-06-book-webfont.woff') format('woff'),
         url('fonts/bodoni-06-book-webfont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
/*
@font-face {
    font-family: 'Jost';
    src: url('fonts/Jost-Italic.ttf');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Jost';
    src: url('fonts/Jost-BoldItalic.ttf');
    font-weight: bold;
    font-style: italic;
    font-display: swap;
}
*/
html{
	font-size:62.5%;
	-webkit-text-size-adjust:100%;
	-ms-text-size-adjust:100%;
	font-size-adjust:100%;
}

body {
	color: #333;
	margin: 0;
	padding: 0;
}

.site-wrapper {
	overflow: auto;
	position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
}

#drawing-section {
	position: relative;
	z-index: 1;
	background: #e8efef;
	overflow: scroll;
	height: 78vh; /* Fallback for browsers that do not support Custom Properties */
 	height: calc(var(--vh, 1vh) * 90);
	cursor: grab;
}

#drawing-section:active {
	cursor: grabbing;
}

#drawing-section::-webkit-scrollbar {
  display: none;
}

p {
	font-family: "Jost", sans-serif;
	font-weight: 400;
	font-size: 1.5rem;
	padding: 0;
	margin-block-start: 0;
    margin-block-end: 0.5em;
}

h1 {
	font-family: "Jost", sans-serif;
	font-weight: 700;
	font-style: italic;
	font-size: 1.65rem;
	text-transform: uppercase;
}

.image-caption {
	font-family: "Jost", sans-serif;
	font-weight: 400;
	font-size: 1.5rem;
	line-height: 1.9rem;
	font-style: italic;
	margin-bottom: 0;
}

.label {
	position: fixed;
	z-index: 3;
	top: 1rem;
	left: 1rem;
}

.headline {
	padding: 0 20px;
}

.body-text {
	font-family: "bodoni06";
	font-size: 1.5rem;
	line-height: 2.3rem;
	margin-block-end: 0.7em;
}

.body-text-strong {
	font-family: "bodoni06bold";
}

.body-text-italic {
	font-family: "bodoni06italic";
}

.body-text-ul {
	padding-left: 1.5rem;
}

.body-text-href {
	color: #333;
}

.body-text-href:hover {
	text-decoration: none;
}


.canvas-container {
	position: fixed;
	width: 100%;
	z-index: 2;
	height: auto;
}

#drawing-canvas:focus {
	outline: 0;
}

	
#preload-drawing {
	width: 100%;
	height: 100%;
}

#info-box {
	position: absolute;
	z-index: 15;
	padding: 1rem;
	border: 2px solid #333;
	background: #fff;
	left: 20px;
	right: 20px;
	top: 65vw;
	margin-bottom: 10px;
	transition: all .5s linear;
}

#info-box.collapsed {
	top: 100vw;
}

.info-text {
	font-style: italic;
}

#info-box-close-btn {
	position: absolute;
	width: 40px;
	height: 30px;
	padding-top: 10px;
	right: 5px;
	top: -2px;
	font-size: 2rem;
	background-image: url("data:image/svg+xml,%3Csvg width='23' height='13' viewBox='0 0 23 13' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.5 1.5L11.5 11.5L21.5 1.5' stroke='%23333333' stroke-width='2'/%3E%3C/svg%3E%0A");
	background-repeat: no-repeat;
	background-position: center center;
	background-size: 23px 13px;
	transform: rotateZ(0);
	transition: all .2s linear;
}

#info-box-close-btn:hover {
	background-size: 27px 17px;
}

.collapsed #info-box-close-btn {
	transform: rotateZ(-180deg);
}
		
.info-text-button {
	color: #333;
	text-decoration: none;
	transition: color 0.2s;
}

.info-text-headline {
	text-decoration: underline;
}

.info-text-button:hover .info-text-headline {
	text-decoration: none;
}

.text-section {
	position: relative;
	z-index: 10;
	background: #fff;
	margin: 0 auto;
	padding-bottom: 4rem;
}

.image-section {
	display: flex;
	align-items: flex-end;
	margin: 2rem 0;
}

.image-container {
	border: 2px solid #333;
	padding: 10px;
	width: 35%;
	background-color: #e8efef;
	height: 160px;
}

.image-oil {
	background: url("images/mirakelolja.svg?r=2754");
	background-color: #e8efef;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center center;
	width: 100%;
	height: 100%;
}

.image-caption-container {
	width: 50%;
	max-width: 50%;
	margin-left: 1.5rem;
}


.column, .columns {
	padding: 0 10px;
}

.ellipsis {
	z-index: 15;
	text-align: center;
	height: 10vh;
}

.ellipsis p {
	font-size: 6rem;
	line-height: 3rem;
}

#error-message {
	position: fixed;
	z-index: 150;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	background:#fff;
	text-align: center;
	padding-top: 40vh;
	font-size: 2rem;
	display: none;
	}

@media only screen and (min-width: 500px) {

	.headline {
		max-width: none;
		text-align: center;
	}

	.columns {
		display: flex;
		flex-flow: row wrap;
		justify-content: center;
	}
	
	.column {
		min-width: 250px;
		max-width: 300px;
	}
	
	.canvas-container {
		max-height: 90vh;
		max-width: 90vh;
	}
	
	#info-box-close-btn {
		text-align: center;
		display:block;
	}
	
	.collapsed #info-box-close-btn {
		right: -1px;
		top: 0;
	}
	
	#info-box {
		position: absolute;
		width: 300px;
		max-height: 380px; 
		right: 20px;
		bottom: 20px;
		top: auto;
		left: auto;
		overflow: hidden;
		border-radius: 0;
	}
	
	.info-box-container {
		width: 300px;
	}
	
	#info-box.collapsed {
		max-height: 40px;
		width: 40px;
		border-radius: 25px;
		border: 0 solid #333;
		padding: 0;
		top: auto;
	}
	
	#info-box p {
		opacity: 1;
		transition: all .5s linear;
	}
	
	.collapsed p {
		opacity: 0;
		margin-left: 60px;
	}
	
	
	.label {
		position: fixed;
	}
	
	.column, .columns {
		padding: 0 15px;
	}
}


@media only screen and (min-width: 900px) {

	.columns {
		flex-direction: column;
	}
	
	.column {
		max-width: 400px;
	}


	#drawing-section {
		position: fixed;
		overflow: hidden;
		width: 60%;
		height: auto;
		right: 0;
		top: 0;
		bottom: 0;
		border-bottom: 0;
	}
	
	.drawing-column {
		max-width: 100vh;
	}
	
	.drawing-container {
		position: relative;
		width: 100%;
		padding-top: 100%;
	}
	
	.canvas-container {
		position: absolute;
		top: 0;
		left: 0;
		bottom: 0;
		right: 0;
		max-height: 100vh;
		max-width: 100vh;
	}

	#info-box {
		position: fixed;
		right: 50px;
		bottom: 50px;
	}
	
	.label {
		position: absolute;
	}
	
	.text-section {
		width: 40%;
		padding: 0 0 4rem 0;
		margin: 0;
	}
	
	.headline, .column {
		margin-left: auto;
		margin-right: auto;
		padding-left: 45px;
		padding-right: 45px;
	}
	
	.headline {
		max-width: 400px;
		margin-top: 6rem;
		padding-left: 60px;
		padding-right: 60px;
		text-align: left;
	}
	
	.ellipsis {
		display: none;
	}
	
}