/* general */

html {
	overflow-y: scroll;
	scroll-behavior: smooth;
}

body {
	border-top: 14px solid #666;
	font: .9em/1.6em 'Space Grotesk', 'Helvetica Neue', Helvetica, 'Trebuchet MS', Verdana, Arial, sans-serif;
	color: #333;
	margin: 0 auto;
	animation: fadeInAnimation ease 1s;
	animation-iteration-count: 1;
	animation-fill-mode: forwards;
}

main {
	padding: 8% 12%;
	max-width: 1500px;
}

@font-face {
	font-family: 'Space Grotesk';
	src: url('fonts/SpaceGrotesk-Regular.woff2') format('woff2');
}

@font-face {
	font-family: 'PicNic';
	src: url('fonts/PicNic.woff2') format('woff2');
}

@keyframes fadeInAnimation {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

::selection {
	background: #94b4a4;
	color: #fff;
}

img,
video {
	float: left;
	width: 100%;
	height: 100%;
}

.block img {
	display: block;
	padding-bottom: 4%;
}

a:not(.name) {
	color: inherit;
	text-decoration: underline #777 wavy;
	display: inline-block;
}

a:not(.name):hover {
  animation: tilt-n-move-shaking 0.35s infinite;
	color: #94b4a4;
}

@keyframes tilt-n-move-shaking {
  0% { transform: translate(0, 0) rotate(0deg); }
  22% { transform: translate(0, 0) rotate(3deg); }
  20% { transform: translate(0, 0) rotate(0deg); }
  72% { transform: translate(0, 0) rotate(-3deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

.name {
	color: inherit;
	text-decoration: none;
}

.nodeco a,
.nodeco a:hover {
	margin: 0 .25em;
	text-decoration: none;
}

/* structure */

header {
	transition: all .25s ease-in-out;
	opacity: .6;
}

header:hover {
	opacity: 1;
}

nav {
	display: inline-block;
	padding-left: 3em;
	font-size: .75em;
	letter-spacing: .025em;
	text-transform: uppercase;
}

iframe {
	border: none;
}

/* headings */

h1 {
	text-transform: lowercase;
	display: inline-block;
	font: 1.3em 'PicNic';
	line-height: 1em;
}

.middle {
	transform: translate(0);
}

.text::before, .text::after {
	content: attr(data-text);
	position: absolute;
	z-index: -1;
}

.text::before {
	color: #ccc;
	animation: glitch-effect 3s infinite;
}

.text::after {
	color: #94b4a4;
	animation: glitch-effect 2s infinite;
}

@keyframes glitch-effect {
	0% {
		left: -2px;
		top: -2px;
	}
	25% {
		left: 2px;
		top: 0px;
	}
	50% {
		left: -1px;
		top: 2px;
	}
	75% {
		left: 1px;
		top: -1px;
	}
	100% {
		left: 0px;
		top: -1.5px;
	}
}

h2 {
	font: 1.1em 'PicNic';
}

h2:before,
h3:before {
	content: '~ ';
}

h2:after,
h3:after {
	content: ' ~';
}

h3 {
	font: 1.05em 'PicNic';
	margin-top: 0;
}

.detail:before {
	content: '(';
}

.detail:after {
	content: ')';
}

/* typographical tweaks */

hr {
	border: .5px solid #eee;
}

p,
ul,
li,
blockquote {
	line-height: 1.5em;
}

pre {
	font: 1em/1.55em 'Space Grotesk', 'Helvetica Neue', Helvetica, 'Trebuchet MS', Verdana, Arial, sans-serif;
	white-space: pre-wrap;
	overflow-wrap: break-word;
}

pre:not(:last-child) {
	margin-bottom: 4em;
}

ul {
	list-style-type: '·  ';
	margin: 0;
}

ul,
ol {
	padding: 4% 0;
}

li {
	padding: 2% 0;
}

blockquote {
	margin: 0;
}

p:first-child {
	margin-top: 0;
}

.hide {
	display: none;
}

.funky {
	font-family: 'PicNic';
	font-size: 1.1em;
}

.chitchat {
	font-size: 2.5em;
	line-height: 1em;
	padding: 1.5em 0 .5em 0;
}

.lefted {
	text-align: left;
}

.righted {
	text-align: right;
}

.centered {
	display: block;
	text-align: center;
	margin: 0 auto;
}

.justify {
	white-space: normal;
	overflow-wrap: break-word;
	text-align: justify;
	text-justify: inter-word;
}

.lineheighted {
	line-height: 1.5em;
}

.small {
	font-size: .85em;
}

.small li {
	margin: 0;
	padding: 0;
}

.mid {
	opacity: .5;
}

.transparent {
	opacity: .7;
	transition: all .1s ease-in-out;
}

.transparent:hover {
	opacity: 1;
}

.strike {
	text-decoration: line-through;
	color: #ccc;
}

.detail {
	color: #888;
	display: inline-block;
}

.email {
	unicode-bidi: bidi-override;
	direction: rtl;
}

.email:before {
	content: 'moc.liamnotorp@';
}

.grillerevues img {
	width: 10%;
	height: 10%;
	padding: 0 .5% 0 .5%;
}

.circularthoughts {
	width: 60%;
	height: 60%;
	padding: 0 15%;
}

.home {
	top: 0;
	left: 0;
	padding: 2em 0 0 2em;
}

.home a {
	font-size: 1.5em;
	border-bottom: 0;
}

.home a:hover {
	font-style: normal;
}

.contact {
	list-style-type: none;
}

.contact span.funky:after {
	content: ' ::: ';
	font: .9em 'Space Grotesk';
}

/* roller */

.roller {
	height: 4em;
	line-height: .8em;
	position: relative;
	overflow: hidden;
}

.rolltext {
	position: absolute;
	top: 0;
	animation: slide 8s infinite;
}

@keyframes slide {
	0%{top:0;}
	25%{top: -3.5em;}
	50%{top: -7.75em;}
	72.5%{top: -13em;}
}

/* flexbox */

.row {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	gap: 10%;
}

.row > * {
	flex: 1;
}

.padded-top {
	padding-top: 5%;
}

.padded-bottom {
	padding-bottom: 5%;
}

.bordered {
	border-bottom: 1px dotted #ccc;
}

/* media queries */

@media(max-width: 700px) {
  .row {
    flex-direction: column;
	}
	.row > * {
		padding: 3% 0;
	}
	.hidden-sm {
		display: none;
	}
}

@media(min-width: 700px) {
  .alone {
	width: 66%
	}
}
