/* 
Theme Name: Internet The Musical
Description:
Author: rein
Author URI: rein.computer
Version: 1.0.1
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
*/

* {
	box-sizing: border-box;
	image-rendering: pixelated;
}


body {
	margin: 0;
	box-sizing: border-box;
	font-family: 'arial pixelated';
	min-height: 100vh;
	font-size: 12px;
	cursor: url('./img/cursor.png') 0 0, pointer;

	overflow-y: hidden;
	display: grid;
	grid-template-rows: 50px auto;

	/* cursors */
	--cursor-default: url('./img/cursor.png') 20 0, default;
	--cursor-pointer: url('./img/cursor-pointer.png') 20 0, pointer;
	--cursor-drag: url('./img/cursor-drag.png') 20 0, pointer;

	/* colors */
	--bright-pink: hsl(304deg 100% 50% / 63%);
	--transparent-pink: hsl(304deg 100% 57% / 50%);
	--blue: hsl(220deg 100% 50%);
}



/* -------------------------------------------------------------------------- */
/*                                    Fonts                                   */
/* -------------------------------------------------------------------------- */
@font-face {
	font-family: 'arial pixelated';
	src: url('./fonts/PIXEARG_.TTF');
}

@font-face {
	font-family: 'arial pixelated';
	font-weight: bold;
	src: url('./fonts/PIXEAB__.TTF');
}



a {
	cursor: var(--cursor-pointer) !important;
}



/* -------------------------------------------------------------------------- */
/*                                    Home                                    */
/* -------------------------------------------------------------------------- */
video {
	width: 100vw;
	height: 100vh;
	object-fit: cover;
	z-index: -1;
	position: fixed;
}



/* -------------------------------------------------------------------------- */
/*                                   Phones                                   */
/* -------------------------------------------------------------------------- */
@media(max-width: 768px) {
	body {
/* 		grid-template-rows: 100px auto; */
	}

	nav .breadcrumb {
		
	}

	nav {
/* 		flex-direction: column;
		align-items: flex-start !important;
		height: 107px; */
	}

	nav #time {
		display: none;
	}

	nav #social-links {
		display: none;
	}

	nav .contributions {
		display: none;
	}
}



/* -------------------------------------------------------------------------- */
/*                             Top bar navigation                             */
/* -------------------------------------------------------------------------- */
nav {
	background: #c8fcff;
	/* background: #a9fdff; */
	box-shadow: 0 0 20px 0px hsl(304deg 100% 50% / 63%);
	display: flex;
	height: 50px;
	width: 100%;
	position: fixed;
	z-index: 1;
	align-items: center;
	border-bottom: 2px solid hsl(304deg 100% 57% / 50%);
	color: #000;
}

nav .breadcrumb {
	display: flex;
	align-items: center;
	height: 100%;
}

nav #home {
	font-weight: bold;
}

nav #home, nav #chapter, nav #map summary {
	padding: 0 16px;
	height: 100%;
	display: flex;
	align-items: center;
}

nav .sep {
	margin: 0;
}

nav #controls {
	margin-left: auto;
	display: flex;
	height: 100%;
	align-items: center
}

nav #social-links a {
	width: 50px;
}


nav #home:hover,
nav .sep:hover,
nav #music #play:hover,
nav #music details summary:hover,
nav #chapter:hover,
nav #map summary:hover,
#social-links a:hover,
nav .contributions summary:hover    {
	background: hsl(304deg 100% 57% / 50%);
}

#map summary:hover img,
#social-links a img:hover,
nav .contributions summary:hover img.icon {
	filter: invert();
}


details#map,
#time,
#social-links,
nav details.contributions {
	border-left: 1px solid rgba(180, 0, 168, 0.579);
	height: 100%;
}


/* Paddings */
nav #time,
nav details#map summary,
nav #music details summary,
nav details.contributions summary {
	padding-left: 20px;
	padding-right: 20px;
}



/* -------------------------------------------------------------------------- */
/*                                    Music                                   */
/* -------------------------------------------------------------------------- */
#music {
	display: flex;
	align-items: center;
	height: 100%;
}

#music #play {
	padding-top: 7px;
	padding-bottom: 7px;

	height: 38px;
	position: relative;
	left: 10px;
	cursor: var(--cursor-pointer);
}

#music #play.grab-attention {
	/* animation: grab-attention infinite alternate 1s; */
}

@keyframes grab-attention {
	from {
		transform: scale(1);
	}
	to {
		transform: scale(1.2);
	}
}

#music summary {
	cursor: var(--cursor-pointer);
}

#music details {
	position: relative;
}

#music details summary {
	display: flex;
	height: 100%;
	align-items: center;
}

#music .content {
	position: absolute;
	top: 97px;
	left: 112px;
	padding-top: 38px;
	width: 342px;
	/* z-index: -1; */
	mix-blend-mode: darken;
	/* 	background: #c8fcff; */
	background: #ffdae5;
	min-height: 200px;
	box-shadow: 0 7px 20px 0px hsl(304deg 100% 50% / 24%);
}

#music .song {
	padding: 20px;
	border-bottom: 1px solid var(--transparent-pink);
}

#music .song:hover {
	background: var(--transparent-pink);
	cursor: var(--cursor-pointer);
}


/* -------------------------------------------------------------------------- */
/*                                Social links                                */
/* -------------------------------------------------------------------------- */
#social-links {
	display: flex;
	height: 100%;
	width: min-content;
}


#social-links a:hover img {
	transform: translateY(-1px);
}

#social-links img {
	height: 100%;
}



/* -------------------------------------------------------------------------- */
/*                                     Map                                    */
/* -------------------------------------------------------------------------- */
details#map summary, details.contributions summary {
	padding-top: 0;
	height: 100%;
	padding-bottom: 0;
	display: flex;
	align-items: center;
	cursor: var(--cursor-pointer) !important;
}

#map summary:hover, .contributions summary:hover {
	color: white;
}

details#map[open] summary, details.contributions[open] summary {
	background-color: #ffe3018c;
}


#map a.current rect {
	animation: blink-current .5s infinite alternate;
	stroke: #ff2dfe;
	stroke-width: 14px !important;
}

@keyframes blink-current {
	from {
		opacity: 0;
	}
	
	to {
		opacity: 1;
	}
}


details#map .content {
	position: absolute;
	/* top: 50px; */
	left: 0px;
	width: 100%;
	box-shadow: 0 10px 20px 0px hsl(304deg 100% 50% / 24%);
}

details#map svg#itm-map {
	width: 100%;
	height: min-content;
	aspect-ratio: 16 /  5;
}

details#map svg#mobile-map {
	width: 100%;
	height: min-content;
	aspect-ratio: 2 / 3;
}


@media (min-aspect-ratio: 2/3) {
   #mobile-map {
	   display: none;
   }
}

@media (max-aspect-ratio: 2/3) {
   #itm-map {
	   display: none;
   }
}

/* SVG  */
#itm-map rect, #mobile-map rect {
	fill: transparent !important;
	opacity: .4;
}

#itm-map rect:hover, #mobile-map rect:hover {
	opacity: 1;
}



/* -------------------------------------------------------------------------- */
/*                                    Time                                    */
/* -------------------------------------------------------------------------- */
#time {
	height: 100%;
	display: flex;
	align-items: center;
}


/* -------------------------------------------------------------------------- */
/*                                    Scene                                   */
/* -------------------------------------------------------------------------- */
.scene {
	position: fixed;
}

.single-scene .scene, .page .scene {
	--mask: linear-gradient(black 50%, transparent);
	-webkit-mask-image: var(--mask);
	mask-image: var(--mask);
}

figure {
	cursor: var(--cursor-pointer);
}

figure img {
	/* box-shadow: 0 5px 10px 0px hsl(249deg 100% 50% / 28%); */
}

figcaption {
	background: var(--blue);
	color: white;
	position: relative;
	width: max-content;
	padding: 2px;
	top: 10px;
	margin: auto;
}



/* -------------------------------------------------------------------------- */
/*                                   Window                                   */
/* -------------------------------------------------------------------------- */
.window {
	width: 500px;
	background: white;
	box-shadow: 0 5px 20px 0px hsl(304deg 100% 50% / 40%);
	position: fixed;
	cursor: var(--cursor-drag) !important;
}

.window header {
	background: var(--blue);
	padding: 5px;
	display: flex;
	justify-content: space-between;
	vertical-align: middle;
	color: white;
	font-weight: bold;
	align-items: center;
}
.window button {
	background: none;
	border: 2px solid white;
	background: white;
	font-family: inherit;
	color: var(--blue);
	font-weight: bold;
	cursor: var(--cursor-pointer);
}

.window .content {
	width: 100%;
}

.window img {
	width: 100%;
	margin: auto;

}

figure {
	cursor: var(--cursor-pointer) !important;
}

img {}

figure#enter-portal img {
}




/* -------------------------------------------------------------------------- */
/*                                    Scene script                            */
/* -------------------------------------------------------------------------- */
.script {
	height: 100vh;
	font-family: 'Helvetica Neue' !important;
	overflow: scroll;
	line-height: 1.5;
	color: white;
	font-size: 20px;
}

.script .container {
	max-width: 1000px;
	margin: auto;
	padding: 200px 25px;
}

.script .intro {
	margin-top: 150px;
	margin-bottom: 28vh;
	display: flex;
	flex-direction: column;
	/* z-index: -1; */
	position: relative;
}

.script h1 {
	text-align: center;
	color: #ff52de;
	font-size: calc(2vw + 25px);
	filter: drop-shadow(0px 5px 14px #4444dd);
}

.script .section-name {
	font-size: 150%;
	FONT-WEIGHT: BOLD;
	margin-bottom: 10px;
}



/* -------------------------------------------------------------------------- */
/*                                    Mascot                                  */
/* -------------------------------------------------------------------------- */
.alien {
	width: 520px;
	height: 500px;
	transform: scale(0.6);
	position: absolute;
	bottom: 0;
	left: calc(50% - 200px);
	display: flex;
	background-image: url(./img/eyes/blobject.png);
	background-size: cover;
	background-position: center;
	display: none;
}

.eyes {
	display: flex;
	position: absolute;
	right: 83px;
	top: 122px;
	grid-gap: 4px;
}

.alien .eye {
	width: 37px;
	height: 40px;
	border-radius: 50%;
	transition: 0.1s;
	/* position: absolute; */
	left: calc(50% - 100px);
	top: calc(50% - 150px);
	overflow: hidden;
	background-size: cover !important;
}

.alien .eye:first-child {
	background: url(./img/eyes/eye1.png)
}

.alien .eye:nth-child(2) {
	background: url(./img/eyes/eye2.png)
}

.alien .eye .pupil {
	width: 25px;
	height: 25px;
	/* border-radius: 50%; */
	position: relative;
	transform: translate(50%, 50%);
	background-size: cover !important;
}

.alien .eye .pupil::after {
	content: "";
	width: 15px;
	height: 15px;
	background: #fff;
	top: 25px;
	right: 25px;
}


.alien .pupil:first-child {
	background: url(./img/eyes/pupil1.png)
}

.alien .pupil:nth-child(2) {
	background: url(./img/eyes/pupil2.png)
}



@keyframes hover-ominously {
	from {
		transform: translateY(0px);
	}

	to {
		transform: translateY(30px);
	}
}

img#question {
	width: 150px;
	height: 150px;
	position: absolute;
	top: 59px;
	left: 102px
}

img#play {
	width: 160px;
	height: 160px;
	position: absolute;
	top: 150px;
}


img#question:hover, img#play:hover {
	transform: scale(1.1);
	filter: brightness(1.1);
	cursor: var(--cursor-pointer);
}

img#play {
	width: 160px;
	height: 160px;
	position: absolute;
	top: 150px;
}


img#playlist-slideout {
	display: flex;
	width: 66%;
	object-fit: contain;
	position: absolute;
	right: 62px;
	bottom: 126px;
}

img#playlist-slideout:hover {
	filter: brightness(1.5);
	cursor: var(--cursor-pointer);
}

.downloads {
	/* border: 1px solid var(--bright-pink); */
	min-height: 100px;
	margin-bottom: 100px;
	box-shadow: 0px 0px 0px 10px hsl(304deg 100% 50% / 30%);
	background: hsl(304deg 100% 50% / 34%);
}

.download-materials {
	display: none;
}

div#container {
	width: 100vw;
}

.script div.text {
	/* font-size: 14px; */
	/* margin-bottom: 75px; */
	max-width: 500px;
	font-style: italic;
	line-height: 1.5;
}

.intro a.button {
	background: hsl(304deg 100% 50% / 46%);
	padding: 10px 14px;
	font-weight: bold;
	color: white;
	margin: auto;
	margin-top: 20px;
	text-decoration: none;
}

.intro a.button:hover {
	background: hsl(304deg 100% 50% / 80%);
}


.scene {
	display: flex;
	height: 100vh;
	align-items: center;
	justify-content: space-around;
	width: 100vw;
}

body:not(.home) .scene {
	z-index: -1;
}

.avatar img {
	width: 81px;
	border: 1px solid;
	border-radius: 50%;
	image-rendering: pixelated;
	filter: drop-shadow(0px 1px 3px #4444dd);
}

.script section {
	margin-bottom: 75px;
}

section span.type {
	background: var(--bright-pink);
	font-size: 90%;
	padding: 5px;
}


svg.carousel__icon {
	fill: white;
	cursor: var(--cursor-pointer);
}

.script .playlist audio {
	width: 100%;
	margin-bottom: 10px;
	margin-top: 10px;
}

.text .section-name, .dialogue .section-name {
	display: none;
}


a.next-post {
	text-align: center;
	text-decoration: none;
	margin-top: 160px;
	display: flex;
	flex-direction: column;
	font-family: 'arial pixelated';
	color: var(--fg, white);
	font-size: initial;
}

.characters {
	display: flex;
	justify-content: center;
}

.characters a.avatar {
	margin: 0 9px;
}

p {
	margin: 20px 0;
}


/*
|--------------------------------------------------------------------------
| Contributions
|--------------------------------------------------------------------------
*/
.nothing-here-yet {
	opacity: .8;
}

.add-contribution {
	cursor: var(--cursor-pointer) !important;	
}

img.add-contribution {
	filter: drop-shadow(0 0 30px 0px hsl(304deg 100% 50% / 63%));
	width: 150px;
}

.add-contribution-highlight {
  width: 318px;
  position: absolute;
  top: -160px;
  left: -113px;
  pointer-events: none;
}

.contributions-button-highlight {
  width: 300px;
  position: absolute;
  left: -171px;
  top: 30px;
  pointer-events: none;
}

.contributions summary {
	position: relative;
}

.add-contribution .buttons {
	display: flex;
	width: 100%;
	grid-gap: 15px;
}

.add-contribution button {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-evenly;
	font-family: 'arial pixelated';
	cursor: var(--cursor-pointer);
}

#open-paint img {
	height: 45px;
	padding: 5px;
}

button#open-paint {
	background: #c9fbff;
}

button#submit, dialog button {
	background: var(--bright-pink);
	color: white;
}


dialog.paint input, dialog.paint textarea {
	width: 100%;
	padding: 10px;
	font-family: 'arial pixelated';
	margin-bottom: 10px;
}

details.add-contribution {
	margin-top: auto;
}

.add-contribution summary {
	padding: 10px 0;
	font-size: 16px;
	font-family: 'arial pixelated';
}

.contributions h2 {
	font-family: 'arial pixelated';
	font-size: 20px;
}


dialog.paint {
	z-index: 1;
	width: 100%;
	height: 100%;
	background: hsl(304deg 26% 7% / 79%);
	align-items: center;
	/* justify-content: center; */
	/* padding: 100px 20px; */
	overflow: scroll;
}

dialog[open] {
	display: flex;
	flex-direction: column;
	overflow: scroll;
}


dialog .header {
	display: flex;
	width: 100%;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 15px;
}

dialog h1 {
	color: white;
	font-weight: normal;
	text-align: start !important;
}



dialog.paint iframe {
	width: 100%;
	aspect-ratio: 1.5 / 1;
}

 dialog button {
	padding: 10px 20px;
	font-family: 'arial pixelated';
	cursor: var(--cursor-pointer);
}

img#paint-image {
	width: 100%;
}

.contribution.highlighted {
	animation: highlight-contribution .5s infinite alternate;
}

@keyframes highlight-contribution {
	from {
		filter: drop-shadow(2px 4px 6px var(--bright-pink));
	}
	
	to {
		filter: drop-shadow(2px 4px 20px var(--bright-pink));
	}
}

.contribution img {
	width: 100%;
}

.next-post span {
	background: var(--bright-pink);
	padding: 5px 10px;
}

a.next-post:hover {
	filter: drop-shadow(2px 4px 6px var(--bright-pink));
}

.contribution .name {
	font-family: 'arial pixelated';
	font-size: 13px;
	margin-bottom: 3px;
}





.wp-block-embed iframe {
	width: 100%;
	height: unset;
	aspect-ratio: 16 / 9;
}



@media(max-width: 768px) {
	a[href="/about"] {
		position: relative;
		top: 150px;
	}

	a[href="/scene/enter-the-musical"] {
		position: relative;
		top: -150px  !important;
	}
}

.add-contribution button {
	width: max-content;
	font-family: 'arial pixelated';
	background: linear-gradient(45deg, #ff59ee, #9ef8ff);
	padding: 10px 21px;
	border: 1px solid #a811a5;
	box-shadow: 0 0 30px 0px hsl(304deg 100% 50% / 63%);
	color: #2d002c;
}


.add-contribution {
	position: fixed;
	bottom: 32px;
	text-align: center;
	right: 25px;
	color: hsl(304deg 100% 73%);
}

.add-contribution .text {
	margin-bottom: 10px;
}

dialog .container {
	width: 100%;
	max-width: 800px;
	padding: 50px 20px;
}

.name-and-email {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-gap: 20px;
}

dialog.paint textarea {
	margin-top: 9px;
}



details summary::-webkit-details-marker {
  display:none;
}


.contributions .overlay {
	width: 100vw;
	/* height: 100vh; */
	position: absolute;
	left: 0;
	top: 50px;
	display: grid;
	grid-template-columns: repeat(4,1fr);
	background: #0e0e27c7;
	grid-gap: 20px;
	padding: 20px;
	overflow: scroll;
	color: white;
	min-height: 100px;
}

details.contributions {
	/* position: relative; */
}

.contribution a {
	margin-bottom: 10px;
	display: flex;
}

.contribution {
	height: min-content;
}