* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

html, body {
	height: 100%;
}

body {
	margin: 0;
	width: 100%;
	height: 100%;
	font-family: sf-text, Helvetica, Arial, sans-serif;
	font-size: 18px;
	line-height: 22px;	
	-webkit-font-smoothing: subpixel-antialiased;
	-webkit-text-size-adjust: 100%;
}

p {
	margin-bottom: 1em;
}

img, video {
	width: 100%;
	padding: 1em;
  	filter: grayscale(100%);
}

canvas {
    /* border: 5px solid red; */
}

a:link,
a:visited {
    color: #00F;
    text-decoration: none;
}

a:hover {
    color: #000;
}

a:active {
	color:#FFF;
}

header {
	position: relative;
	padding: 1em;
}

header.homepage {
	z-index: 10;
}

ul {
	list-style-type: none;
	padding-left: 1em;
	margin: 0px;
}

ul:first-child {
	padding-left: 0px;
}

blockquote {
    font-family: sf-mono, monaco, courier, monospace;
    font-size: 15px;
    margin-block-start: 22px;
    margin-block-end: 22px;
}

/* ids */

#menu {
	padding-bottom: 1em;
}

#main {
}

#badge-container {
	position: fixed;
	right: 0px;
	width: 100%;
    padding: 10px;
}

#badge {
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

#badge-container.lower-right {
	bottom: 0px;
	width: initial;
}

#breadcrumbs {
	padding: 1em;
	padding-bottom: 0px;
}

#content {
    padding: 1em;
}

#columns {
    columns: 400px 6;
    column-gap: 44px;
    padding: 1em;
}

/* use margin instead of <br> */
#columns div {
    margin-bottom: 22px;
}

#columns .break {
    break-after: column;
    margin-bottom: 0px;
}

#notes {
    border-top: 1px solid #000;
    margin-top: 33px;
    padding-top: 10px;
    padding-bottom: 33vw;
}

#notes div {
    margin-bottom: 0px;
}

#notes a::before {
    padding-right: 10px;
    content: "";
    display:inline-block;
    height:20px;
    width:20px;
    background-size: 20px 20px;
    background-repeat: no-repeat;
}

#notes a[href$=".pdf"]::before {
    background-image: url('/media/svg/pdf-1-k.svg');
}

#notes a:not([href$=".pdf"])::before {
    background-image: url('/media/svg/arrow-up-right-1-k.svg');
}

#fullscreen {
	/* width: auto; */
	height: auto;
}

#fullscreen:-webkit-full-screen,
#f:-webkit-full-screen,
:-webkit-full-screen {
    position: fixed;
    top: 0px;
    left: 0px;
    margin: 0px;
    width: 100%;
    height: 100%;
    object-fit: contain;
    box-sizing: border-box;
    background-color: #000;
    filter: initial;
}

#fullscreen:-ms-fullscreen,
:-ms-fullscreen {
	width: auto;
	height: auto;
	margin: auto;
  	filter: initial;
}

#fullwindow {
    display: none;
    position: fixed;
    top: 0px;
    left: 0px;
    margin: 0px;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    background-color: #000;
    z-index: +1;
}

/* classes */

.mono {
    font-family: sf-mono, monaco, courier, monospace;
    font-size: 15px;
}

.large {
    /* vw = viewport width % */
    /* height based on width */
	height: 80vh;
}

.small {
    /* vw = viewport width % */
    /* height based on width */
	width: 33vw;
	height: 33vw;
}

.half {
    display: inline-block;
    width: 49%;
}

.centre {
	position: relative;
    top: 50%;
	left: 50%;
	-webkit-transform: translate(-50%, -50%);
	-ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

.v-centre {
	position: relative;
	top: 50%;
	-webkit-transform: translateY(-50%);
	-ms-transform: translateY(-50%);
	transform: translateY(-50%);
}

.h-centre {
	position: relative;
	left: 50%;
	-webkit-transform: translateX(-50%);
	-ms-transform: translateX(-50%);
	transform: translateX(-50%);
}

.hidden {
    display: none;
}

.visible {
    display: block;
}

.fullwindow {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
	padding: initial;
    object-fit: contain;
    filter: initial;
    z-index: +1;
}

.make blockquote {
    margin-block-start: 15px;
    margin-block-end: 15px;
    margin-inline-start: 24px;
    margin-inline-end: 0px;
    font-size: 10px;
    line-height: 15px;
    text-indent: initial;
}
    
.make #columns {
    columns: 2;
    column-gap: 100px;
    width: 750px;
}

.make #about {
    margin-inline-start: 0;
    margin-inline-end: 0;
    border-top: inherit;
    padding-bottom: 0;
    break-after: page;
}

.make #about blockquote {
    margin-inline-start: 0;
    margin-inline-end: 0;
    margin-top: 0px;
}

.make #about #print-or-download {
    display: none;
}

.make #notes {
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #000;
    font-size: 10px;
    line-height: 15px;
    break-inside: avoid;
}

.make #notes a::before {
    content: none;
}

.make #body {
	font-family: sf-text, Helvetica, Arial, sans-serif; 
    font-size: 12px;
    line-height: 15px;
    text-indent: 24px;
}

.make #body div {
    margin-bottom: 0px;
}

.make #body img {
    display: inline-block;
    margin-left: -24px;
}

.make #body div:first-of-type {
    text-indent: 0;
}

.make .skip-column {
    break-after: page;
}

.pdf #columns {
    columns: 100px 6;
}

.pdf #notes {
    padding-bottom: 22px;
}

/* vertical iPad / horizontal iPhone */
@media screen and (max-width: 768px) {
    #columns .break {
        break-after: initial;
        margin-bottom: -22px;
    }
}

/* vertical iPhone */
@media screen and (max-width: 500px) {
    #columns .break {
        break-after: initial;
        margin-bottom: -22px;
    }
}

/* print (printing only works well in firefox) */
@media print { 
    #content.make,
    .make #columns {
        padding: 0px;
    }
}
