/*
* Copyright (c) Sebastian Kucharczyk <kuchen@kekse.biz>
* https://kekse.biz/ https://github.com/kekse1/v4/
*/

/*
 * [2025-04-08] hab' gerade einige config's in die anderen *.css verteilt!1
 		*bisher* war das hier die globale anlaufstelle fuer *alle*!
 */

:root
{
	--copyright: url('COPYRIGHT.txt');
	--license: url('LICENSE.txt');
	--favicon: url('favicon.png');
	--index: 'main';
	--home: 'home';
	--title: '<kekse.biz>';
}

:root
{
	--context-menu: auto; /* .. a design issue..!? */
	--dragging: none;
}

:root
{
	--cursor: url('res/cursor.png');
	--cursor-click: url('res/cursor.click.png');
	--cursor-help: url('res/cursor.help.png');
}

:root
{
	--title: 'kekse.biz';
	--title-animation: auto;
	--title-animation-timeout: 160;
	--title-animation-timeout-repolarize: 3840;
	--title-animation-timeout-repolarize-reverse: 640;
}

:root
{
	--keyboard: none;
}

/* wichtig fuer seiten-navigation!!1 */
:root
{
	--scroll-mouse-button: 0; /* one or multiple integer (in one string!); */
	--scroll-touch: 1.80; /* 1.8; scaling factor! */
	--scroll-mouse: 1.32;/* 1.32; only on mobile, or also w/ regular mouse!? */
	--scroll-touch-friction: 0.96; /* 0.98 eher wie "eis", 0.90 eher "schwerer teppich"... */
	--scroll-mouse-friction: 0.96; /* EHER GANZ WEG (null)!??!???? */
	--scroll-click-threshold: 32; /* geringere bewegungs-differenz loest regulaere (click-)events aus.. */
	--scroll-restricted: none; /* only vertical!? eher ned, wg. groszer tabellen z.b... see ~zines. */
	--scroll-touch-spotlight: 2.34;
	--scroll-mouse-spotlight: 2.10;
}

:root
{
	--abort-method: 'stop';/*try out! also possible: 'cancel', 'stop', 'finish', ...*/
	--method: add;
	--font-size: 14px;
	--font-size-mobile: 12px;
	--animate: auto;/* global disable here; .. also possible in the elements itself. */
	--easing: ease-in-out;/*ease-in-out;*//* linear; then set --speed = ~1.5; w/ ease-in-out better ~1.0; ... */
	--scale: none;/* a boolean or a number of minimum scaled duration */
	--speed: 1.32;
	--global-default: 2.71828;
	--global: 2.71828;
	--scroll-behavior: smooth; /* [ `smooth`, `instant` ] (TODO!!11); ... */
	--line-duration: 25;
	--line-count: 50;
	--line-delay: 0;
	--duration: 1000;
	--duration-show: 1080;
	--duration-hide: 800;
	--duration-blink: 900;
	--duration-toggle: 1100;
	--delay: 0;
	--delay-each: 60;
	--delay-each-hide: 40;
	--delay-start: 0;
	--force-animation: none;
	--resize-timeout: 160;
	--dead-timeout: 30000;
	--center-x: none;
	--center-y: none;
	--duration-center: 480;
	--position: move; /* arrange|move */
	--duration-pulse: 600;
	--pulse-colorization: complement;/*[contrast,complement]*/
	--toggle: none;
	--toggle-axes: xy;
}

:root
{
	/* temporary increase of z-index (while moving (only)) */
	--movable-z-index: auto;
	--movable-z-index-value: 16777215;
	/* maybe it should be here? but not (yet?) used right now.. */
	--z-index-max: 16777215;
}

/* TODO: bitte mehr variablen.. groesze des kegels, etc..! */
:root
{
	/* (0.1) = 10% annaeherung pro frame.. kann deaktiviert werden aber (nachlauf..)! */
	--spotlight-lerp-effect: none;/*0.16;*/
}

*[href]
{
	--duration-blink: 3200;
}

#MAIN
{
	/*--toggle-axes: 'xz', 'yz', 'xy';*/
	--toggle-axes: x, y;
}

button
{
	--toggle-axes: x, y;
	--duration-toggle: 1600 !important;/*900*/
	--toggle: 'half'; /* [ `half`, `full` ]; */
}

:root
{
	--console-log-color: '';
	--console-info-color: rgb(50, 90, 20);
	--console-warn-color: rgb(110, 70, 20);
	--console-error-color: rgb(130, 30, 30);
	--console-debug-color: rgb(30, 90, 150);
	
	--console-log: '';
	--console-info: '';
	--console-warn: 'font-weight: bold;';
	--console-error: 'font-weight: bold;';
	--console-debug: '';
}

#BUTTON
{
	--duration-toggle: 2400;
}

#MAIN
{
	--duration-toggle: 2100;
}

#MAIN
{
	--top-space: 56px;
	--top-space-text: 4;
	--bottom-space: 176px;
	--bottom-space-text: 8;
}

#MAIN
{
	--line-duration: 30;
	--line-delay: 700;
}

:root
{
	--sidebars: none;
}

:root
{
	--wallpaper-speed: 1.25;
	--wallpaper-background: rgba(255, 190, 0, 0.8) 0%, rgba(170, 190, 210, 0.8) 20%, rgba(140, 160, 180, 0.8) 50%, rgba(110, 130, 150, 0.8) 75%, rgba(80, 100, 120, 0.8) 100%;
	--vibration-speed: 3;
	--vibration-interval: 0.12;
	--vibration-opacity: 0.16;
	--vibration-dots: 16;
}

#MAIN
{
	--wallpaper: auto;
	--wallpaper-mobile: auto; /* does NOT override '--wallpaper'! */
	--wallpaper-speed: 1;
	--wallpaper-background: rgba(200, 220, 240, 0.64) 0%, rgba(170, 190, 210, 0.64) 25%, rgba(140, 160, 180, 0.64) 50%, rgba(110, 130, 150, 0.64) 75%, rgba(80, 100, 120, 0.64) 100%;
}

:root
{
	--github-sort: updated desc;
	--github-index: 'README.md';
	--github: url('https://github.com/');
	--github-blob: url('https://github.com/%{user}/%{repo}/blob/git/%{path}');
	--github-raw: url('https://raw.githubusercontent.com/%{user}/%{repo}/master/%{path}');
	--github-repo: url('https://github.com/%{user}/%{repo}');
	--github-api-user: url('https://api.github.com/users/%{user}');
	--github-api-repo: url('https://api.github.com/users/%{user}/repos?per_page=100');/* is the maximum. pagination not yet implemented here (&page=*); .. :-/ ...*/
	--github-api-markdown: url('https://api.github.com/markdown');
	--github-hostname-api: 'api.github.com';
	--github-hostname-raw: 'raw.githubusercontent.com';
	--github-ignore-forks: auto;
	--github-original-link: auto; /* my `markdown.js` ain't flawless... :-/ */
}

:root
{
	--fade-limit: 256;
}

:root
{
	--unit-base: 1024;
}

:root
{
	--lottie-player: url('https://unpkg.com/@lottiefiles/lottie-player@latest/dist/lottie-player.js');
}

#MAIN
{
	/*--threshold: 420px;*/
	--threshold-toc: 1.4;
	--max-file-size: 1048576;
}

#MENU
{
	--dead-timeout: 0; /* (0) to disable handling dead links.. */
}

#MENU, #TOC, #MAIN
{
	--method: set;
	--speed: 0.7;
	/*--duration-each: 400;*/
	--delay-init: 1011;
	--duration-each: 1000;
	--easing: linear;
	/*--delay-each: 36;
	--delay-start: 600;*/
	--delay-each: 260;
}

#MENU, #TOC
{
	--delay-start: 1100;
}

#MAIN
{
	--delay-each: 90;
	--delay-start: 1200;
}

#MAIN
{
	--duration-blink: 1800;/*900*/
	--duration-each: 300;
}

#MENU, #TOC
{
	--duration-blink: 3600;
}

#MAIN
{
	--duration-data: 1400;
}

#STATE
{
	/*--duration: 1400;
	--delay-each: 1400;*/
	--scroll-timeout: 60;
	--scroll-scale: 2.0;
}

#countState
{
	--url: url('php/count.php');
	--refresh: 10000;
	--duration: 520;
	--duration-blink: 800;
	--scale: none;
}

#updateState
{
	--url: url('status/update.now');
	--refresh: 30000;
	--duration: 520;
	--duration-blink: 800;
}

#versionUpdateState
{
	--url: url('status/version.now');
	--refresh: 60000;
	--duration: 520;
	--duration-blink: 800;
}

#INFO
{
	--duration: 1400;
	--easing: linear;
}

:root
{
	--date: best;/*default|text|..*/

	--date-now: '%h:%m:%s.%S';
	--date-time: '%h:%m:%s';
	--date-date: '%Y-%M-%D';
	--date-default: '%Y-%M-%D (%h:%m:%s)';
	--date-best: '%Y-%M-%D (%h:%m:%s.%S)';
	--date-console: '%Y-%M-%D %h:%m:%s.%S';
	--date-full: '%W, %Y-%M-%D (%h:%m:%s)';
	--date-text: '%w, %D. %n %Y (%h:%m:%s)';
	--date-text-full: '%W, %D. %N %Y (%h:%m:%s.%S)';
	--date-year: '%d, %w';
	--date-year-full: '%d, %W';
	--date-ms: '%X';
	--date-unix: '%x';
	--date-gmt: '%G';
	--date-utc: '%U';
}

#news
{
	--max-age: 2419200000; /* in milliseconds; here: one month (1000*60*60*24*7*4); */
}

#MAIN
{
	--duration-load: 1200;
}

