/* serif  */
@font-face {
    font-family: 'crimson-roman-webfont';
    src: url('../assets/fonts/crimson-roman-webfont.woff2') format('woff2'),
         url('../assets/fonts/crimson-roman-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/* sans-serif */
@font-face {
    font-family: 'ubuntu-r-webfont';
    src: url('../assets/fonts/ubuntu-r-webfont.woff2') format('woff2'),
         url('../assets/fonts/ubuntu-r-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/* monospace */
@font-face {
    font-family: 'courier_prime_regr';
    src: url('../assets/fonts/courier_prime_code-webfont.woff2') format('woff2'),
         url('../assets/fonts/courier_prime_code-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

:root {
	--ficpage_lightmode: snow;
	--fictext_lightmode: #000814;
	--ficlink_lightmode: #3d2645;
	--ficlinkhov_lightmode: #832161;

	--ficpage_darkmode: #1c1b22;
	--fictext_darkmode: #b6b5ba;
	--ficlink_darkmode: #efb64a;
	--ficlinkhov_darkmode: #ffa133;
	
	--weirdshadow_receive_lightmode: #708090;
	--weirdshadow_transmit_lightmode: #483D8B;
	--weirdshadow_receive_darkmode: #2487e9;
	--weirdshadow_transmit_darkmode: #5b46d9;

	--phonebubble_self_lightmode: #defcab;
	--phoneborder_self_lightmode: #bfdf87;
	--phonebubble_other_lightmode: #f0f8ff;
	--phoneborder_other_lightmode: #add8e6;
	--phonetext_lightmode: black;
	--phonebubble_self_darkmode: #1B9E3A;
	--phoneborder_self_darkmode: #50C878;
	--phonebubble_other_darkmode: #3357FF;
	--phoneborder_other_darkmode: #3498DB;
	--phonetext_darkmode: snow;
	
	--freakyshadow_lightmode: #222222;
	--freakyshadow_darkmode: #ebebeb;
}

.ficsection {
	width: 100vw;
	position: relative;
	left: calc(-50vw + 50%);	
	
	display: flex;	
	justify-content: center;
	background-color: var(--ficpage_lightmode);
	
	}

.ficsection div {
	padding: 1em;
	
	background-color: var(--ficpage_lightmode); 
	font-family: 'crimson-roman-webfont', serif;
	font-size: 1em;
	color: var(--fictext_lightmode);
}

.ficsection p {
	text-indent: 1em;
	}
.ficsection a { 
	color: var(--ficlink_lightmode);
	}
.ficsection a:hover { 
	color: var(--ficlinkhov_lightmode);
	}

/* === Fic FX === */

/* Talk in Courier Prime typeface */
.tv_standard,
.tv_large,
.tv_imperator,
.tv_imperator_true,
.tv_titan,
.tv_human,
.tv_embryon,
.speaker_standard,
.speaker_large,
.speaker_imperator,
.speaker_titan,
.speaker_titan_true,
.camera_standard,
.camera_titan,
.mimic_tv	
	{
	font-family: 'courier_prime_regr', monospace; 
	}


/* TVs */
	
.tv_standard {
	font-size: 1.1em;
	}
	
.tv_large {
	font-size: 1.2em;
	font-variant: petite-caps;
	}
	
.tv_imperator {
	font-size: 1.05em;
	letter-spacing: .1em;
	}
.tv_imperator_true {
	font-size: 1.1em;
	letter-spacing: .1em;
	vertical-align: sub; 
	}

.tv_titan {
	font-size: 1.25em;
	}
	
.tv_human {
	font-size: 1.05em;
	letter-spacing: -.1em;
	}
	
.tv_embryon {
	font-size: 1em;
	letter-spacing: .15em;
	font-weight: bold;
	}

/* TV reverse speech */
.textrev {
	display: inline-block;
	-moz-transform: scale(-1, 1);
	-webkit-transform: scale(-1, 1);
	-o-transform: scale(-1, 1);
	-ms-transform: scale(-1, 1);
	transform: scale(-1, 1) skew(10deg, 0deg);
	
	margin: auto 1em;
	
	background:
	linear-gradient(315deg, #111111 1em, transparent 1em)  -2em 0,
	linear-gradient(315deg, #111111 1em, transparent 1em),
	linear-gradient(225deg, #111111 1em, transparent 1em),
	linear-gradient(225deg, #111111 1em, transparent 1em) -2em 0;
	background-size: 3em 3em;
	background-color: #323232;	
	
	color: white;
	border-width: 2px 0px;
	border-style: dashed;
	border-color: white;
	}

/* Soundkind */

.speaker_standard {
	font-size: smaller;
	font-weight: bold;
	vertical-align: super; 
	}
.speaker_large {
	font-weight: bold;
	vertical-align: sub; 
	}
.speaker_imperator {
	font-size: 1.05em;
	letter-spacing: .1em;
	font-weight: bold;
	vertical-align: super; 
	}
.speaker_titan_true {
	background: radial-gradient(circle, #b00b13 10%, black 15%, transparent 35%, transparent);		
	
	font-size: 3em;
	line-height: 0.9;
	padding-top: 0.5em;
	padding-bottom: 0.5em;
	color: #DD1B25;

	text-shadow:	2px 6px 2px #161616,
						-7px -4px 4px #161616,
						-2px 2px 6px #161616,
						-4px -2px 8px #161616,
						5px -3px 10px #161616;
	}
.speaker_titan {
	font-size: larger;
	font-weight: bold;
	}

/* Cams */

.camera_standard {
	font-size: 0.8em;
	letter-spacing: 0.1em;
}
.camera_titan {
	font-size: 0.9em;
	letter-spacing: 0.15em;
	}

.camsign {
	font-size: smaller;
	font-style: italic;
	}
.camsign::before { 
	content: "[["
	}
.camsign::after { 
	content: "]]"
	}

/* Organics */

.human {
	font-style: normal;
	}

.mimic_tv {
	font-size: 0.9em;
	letter-spacing: -0.05em;
	}

.skibidi_standard {
	font-size: 1.1em;
	font-weight: 600;
	color: white;
	background-color: lightslategray;
	border-top: 1px dashed black;
	border-bottom: 1px dashed black;
	text-shadow: 
	2px 2px 1px black, 
	2px -1px 1px black, 
	-1px 1px 1px black, 
	-1px -1px 1px black;
}

/* Skibidi nonsense*/ 
.tilt-l {
	display: inline-block;
	transform: rotate(-3deg);
	}
.tilt-r {
	display: inline-block;
	transform: rotate(3deg);
	}
.tilt-l2x {
	display: inline-block;
	transform: rotate(-5deg);
	}
.tilt-r2x {
	display: inline-block;
	transform: rotate(5deg);
	}

/* Hacks */

.invisible {
	 visibility: hidden;
	}
.small_caps {
	font-variant: small-caps;
	}
	
.inthemiddle { text-align: center; }

/* Gubbins */

.ohno {
	margin-top: 4em;
	font-size: 2em;
	text-shadow:
		0px -0.6em 2px var(--freakyshadow_lightmode),
		0px -1em 4px var(--freakyshadow_lightmode),
		0px -1.4em 6px var(--freakyshadow_lightmode),
		0px -1.6em 8px var(--freakyshadow_lightmode),
		0px -2em 10px var(--freakyshadow_lightmode);
}

.communicator {
	font-family: 'ubuntu-r-webfont', sans-serif;
	font-variant: small-caps;
	font-size: 1em;
	}

.mysterious_transmit, .mysterious_transmit_add {
	text-align: left;
	padding-left: 2em;
	}
.mysterious_transmit {
	font-family: 'ubuntu-r-webfont', sans-serif;
	font-size: 1em;
	text-shadow: 1px 1px 2px var(--weirdshadow_transmit_lightmode);
	}
.mysterious_transmit::before {
	content: "_ ";
	color: var(--weirdshadow_transmit_lightmode);
	}

.mysterious_receive, .mysterious_receive_add {
	text-align: right;
	padding-right: 2em;
	}
.mysterious_receive {
	font-family: 'ubuntu-r-webfont', sans-serif;
	font-size: 1em;
	text-shadow: 1px 1px 2px var(--weirdshadow_receive_lightmode);
	}
.mysterious_receive::after {
	content: " //";
	color: var(--weirdshadow_receive_lightmode);
	}

.techtransmit::before {
	content: "⚞";
	}
.techtransmit::after {
	content: "⚟";
	}
	
.music {
	font-style: italic;
	}	
.music::before { 
	content: "🎵 "
	}
.music::after { 
	content: " 🎵"
	}	


/* Intranet pages */

.intra_feed_cell {
	vertical-align: top;
	}
.intra_feed_comments {
	border-bottom: 1px dashed var(--fictext_lightmode); 
	}
.intra_feed_handle {
	text-align: right;
	padding-right: 1em;
	font-weight: bold; 
	}
.intra_feed_mention {
	background-color: var(--fictext_lightmode);
	font-weight: bold; 
	color: var(--ficpage_lightmode);
	}
.intra_bigborder { 
	text-indent: 0;	
	padding: 1em; 
	border: 2px solid var(--fictext_lightmode);
	}

/* Phone convo */

.text_other, .text_self {
	padding: 1em;
	border-width: 4px;
	border-style: outset;
	color: var(--phonetext_lightmode);
	}
.text_other, .text_other_add {
	margin-right: 4em;
	}
.text_other {
	background-color: var(--phonebubble_other_lightmode); 
	border-color: var(--phoneborder_other_lightmode);
	border-radius: 0.2em 1em 1em 1em;
	}
.text_self, .text_self_add {
	margin-left: 4em;
	}
.text_self {
	background-color: var(--phonebubble_self_lightmode); 
	border-color: var(--phoneborder_self_lightmode);
	border-radius: 1em 0.2em 1em 1em;
	}

/* Emergency broadcast on TV */
.smellytelly {
	margin-left: auto;	
	margin-right: auto;	
	max-width: 50%;
	padding: 2em;	
	background-color: #161616;
	color: #ebebeb;
	font-family: monospace;
	border: 4px double #323232;
}

/* Cadet cart screen */

.cadet_screen {
	background-color: #161616; /* fallback */
	background: 
		radial-gradient(ellipse at top, transparent, #080508),		
		repeating-linear-gradient(
   		0deg,
    		#323232,
    		#323232 20px,
    		#242424 26px,
    		#242424 40px
		);	
	
	margin-left: auto;	
	margin-right: auto;	
  	aspect-ratio: 4 / 3;	
	max-width: 10em;
	min-width: 6em;
	padding: 1.2em;
	
	color: #ebebeb;
	font-family: monospace;
	font-size: 0.7em;
	border-width: 6px;
	border-color: #ebebeb;
	border-style: double solid solid solid;
	border-radius: 2em;
}

/* borders for timeskips */
.skip_start, .skip_end {
	border-style: dashed;
	border-color: var(--fictext_lightmode);
	}

.skip_start { 
	border-width: 1px 0 0 0; /* T R B L*/
 	padding-top: 1em;
 	}
.skip_end { 
	border-width: 0 0 1px 0; /* T R B L*/
	padding-bottom: 1em;
	}

/* Bigger screens */

@media (min-width: 600px) {
	.ficsection div {
		max-width: 50rem;
		padding: 1.6rem;
		margin: 1rem; 
	
		font-size: 1.2rem;
		}
	}

@media (min-width: 800px) {
	.ficsection div {
		font-size: 1.4rem;
		}
	.speaker_titan_true {
		font-size: 4em;
		}
	.smellytelly {
		font-size: 0.7em;
		}
	}

/* Dark mode !*/

@media (prefers-color-scheme: dark) {
	.ficsection {
		background-color: var(--ficpage_darkmode);
		}	
	.ficsection div {
		background-color: var(--ficpage_darkmode); 
		color: var(--fictext_darkmode);
		}
	.ficsection a { 
		color: var(--ficlink_darkmode);
		}
	.ficsection a:hover { 
		color: var(--ficlinkhov_darkmode);
		}
	.mysterious_transmit {
		text-shadow: 1px 1px 2px var(--weirdshadow_transmit_darkmode);
		}
	.mysterious_transmit::before {
		color: var(--weirdshadow_transmit_darkmode);
		}
	.mysterious_receive {
		text-shadow: 1px 1px 2px var(--weirdshadow_receive_darkmode);
		}
	.mysterious_receive::after {
		color: var(--weirdshadow_receive_darkmode);
		}
	.text_other {
		background-color: var(--phonebubble_other_darkmode); 
		border-color: var(--phoneborder_other_darkmode);
		}
	.text_self {
		background-color: var(--phonebubble_self_darkmode); 
		border-color: var(--phoneborder_self_darkmode);
		}
	.text_other, .text_self {
		color: var(--phonetext_darkmode);
		}
	.skip_start, .skip_end {
		border-color: var(--fictext_darkmode);
		}
	.intra_feed_comments, .intra_bigborder {
		border-color: var(--fictext_darkmode); 
		}
	.intra_feed_mention {
		background-color: var(--fictext_darkmode);
		color: var(--ficpage_darkmode);
		}
	.ohno {
		text-shadow:
			0px -0.6em 2px var(--freakyshadow_darkmode),
			0px -1em 4px var(--freakyshadow_darkmode),
			0px -1.4em 6px var(--freakyshadow_darkmode),
			0px -1.6em 8px var(--freakyshadow_darkmode),
			0px -2em 10px var(--freakyshadow_darkmode);
		}

	}