/*

		Style for WebScript pages.
		Copyright (C) 2021, 2022  Maurice Lambert

		This program is free software: you can redistribute it and/or modify
		it under the terms of the GNU General Public License as published by
		the Free Software Foundation, either version 3 of the License, or
		(at your option) any later version.

		This program is distributed in the hope that it will be useful,
		but WITHOUT ANY WARRANTY; without even the implied warranty of
		MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
		GNU General Public License for more details.

		You should have received a copy of the GNU General Public License
		along with this program.  If not, see <https://www.gnu.org/licenses/>.

*/

/*
	* Colors:
			
		------------------------------
		-            DARK            -
		------------------------------

		#ffc26a: Orange clair;
		#f0a83f: Orange mi-clair;
		#dd8a12 rgb(221, 138, 18) : Orange;
		#b16b05: Orange mi-foncé;
		#895100: Orange foncé;

		#DDAD12: Jaune;
		#896900: Jaune foncé;
		#FFDC6A: Jaune clair;

		#222222: Gris foncé;
		#333333: Gris clair;

		#2AA177: Vert mi-clair;
		#F0783F: Rouge mi-clair;

		------------------------------
		-           LIGHT            -
		------------------------------

		#615CB9: Bleu clair;
		#433DA7: Bleu mi-clair;
		#27219a: Bleu;
		#100B60: Bleu mi-foncé;
		#0F0B60: Bleu foncé;

		#531895: violet;
		#3F0D78: violet mi-foncé;
		#DDAD13: orange;
		#B18906: orange mi-foncé;

		#DDDDDD: Gris clair;
		#CCCCCC: Gris foncé;

		#4AB18F: Vert mi-clair;
		#F07B3F: Rouge mi-clair;
*/

* {
	margin: 0;
	padding: 0;
}

body, html {
	margin: 0%;
	padding: 0%;
	width: 100%;
	height: 100%;
	/*overflow: hidden;*/
	font-family : Arial, Helvetica, "Liberation Sans", FreeSans, sans-serif;
	/*overflow-y:scroll;*/
	background-color: #222222;
}

header, footer {
	font-style: italic;
	padding: 2%;
}

header {
	/*position: fixed;*/
}

pre {
	tab-size: 4;
	background-color: black;
	color: white;
	font-family: "Courier", "Lucida Console", "Consolas", "sans-serif";
	font-size: 100%;
}

a {
	color: #895100;
}

button {
	padding: 1%;
	width: 100%;
	background-color: #222222;
	color: #dd8a12;
	transition: 0.5s;
	font-size: 100%;
	border: 2px solid #f0a83f;
	border-radius: 10px;
}

.notification {
	width: 17%;
	display: inline-block;
	color: #DDAD12;
	text-align: center;
	border: 1px solid #333333;
	border-radius: 4px;
}

.notification_user {
	font-style: italic;
	color: #FFDC6A;
	font-weight: 400;
}

.notification_close {
	padding: 1%;
	width: auto;
	font-size: 10px;
	border: 1px solid #333333;
	float: right;
	border-radius: 4px;
}

.notification_close:hover {
	background-color: #333333;
}

.border {
	color: #ffc26a;
}

.description {
	font-style: italic;
	font-size: 80%;
}

.inline {
	display: inline-block;
}

.center {
	text-align: center;
}

.header_border {
	width:  20%;
}

.header_center {
	margin-right: 20%;
	margin-left: 20%;
}

.header_container {
	display: inline-block;
	width: 20%;
}

.search_result {
	background-color: #2F2F2F;
	border: 1px solid #181818;
	padding: 1%;
	transition: 0.5s;
}

.search_result_description {
	color: #b16b05;
}

.webscripts_menu_button {
	margin: 0%;
	padding: 0%;
	width: 49.5%;
	color: #FFDC6A;
	border-radius: 0px;
	text-align: center;
	border: 0px solid #333333;
	background-color: #222222;
	transition: 0.2s;
	display: inline-block;
}

.webscripts_menu_values {
	margin: 0%;
	padding: 0%;
	width: 49.5%;
	display: none;
}

div.category {
	background-color: rgba(34, 34, 34, 0.7);
	border-radius: 5px;
	margin: 3px;
	padding: 3px;
	/*width: auto;*/
}

div.category.light {
	background-color: rgba(204, 204, 204, 0.7);
	border-radius: 3px;
	margin: 2px;
}

.search_result_description.light {
	color: #100B60;
}

.border.light, button.light {
	color: #0F0B60;
}

.webscripts_menu_button.light {
	background-color: #DDDDDD;
	border: 0px solid #CCCCCC;
	color: #3F0D78;
}

.search_result:hover {
	background-color: #222222;
}

.search_result.light {
	background-color: rgb(221, 221, 221);
	color: #100B60;
	border-color: #615CB9;
}

.search_result.light:hover {
	background-color: #CCCCCC;
}

.list.footer {
	font-size: 80%;
	margin-bottom: 1%;
}

.webscripts_menu_button:hover {
	background-color: #333333;
	color: #896900;
	border: 1px solid #896900;
}

.webscripts_menu_button.light:hover {
	background-color: #CCCCCC;
	color: #B18906;
	border: 1px solid #B18906;
}

html.light, body.light, button.light, input.light, select.light {
	background-color: #CCCCCC;
}

input.light:hover, select.light:hover, button.light:hover {
	background-color: #DDDDDD;
}

a.light {
	color: #615CB9;
}

button.light {
	border-color: #0F0B60;
}

#webscripts_history {
	float: right;
}

#webscripts_menu_options {
	margin: 0%;
	width: 100%;
	padding: 0%;
}

#webscripts_menu {
	padding: 0%;
	border-radius: 10px;
	background-color: #222222;
	border: 1px solid #333333;
}

#webscripts_menu.light {
	background-color: #DDDDDD;
	border: 1px solid #CCCCCC;
}

#webscripts_menu_button_left {
	border-radius: 10px 0px 0px 10px;
}

#webscripts_menu_button_right {
	border-radius: 0px 10px 10px 0px;
}

#webscripts_content {
	background-color: #333333;
	color: #dd8a12;
	padding: 2%;
	width: 87%;
	display: inline-block;
	border: 1px solid #b16b05;
	border-radius: 10px;
	margin: 4%;
}

#webscripts_title {
	font-size: 120%;
}

#webscripts_description {
	font-size: 80%;
}

#webscripts_header_image_position {
	display: inline-block;
	margin-left: 58%;
}

#webscripts_search_bar_size {
	/* background-image: radial-gradient(#222222 10%, transparent 3%); */
	display: inline-block;
	padding-top: 2%;
	padding-bottom: 2%;
	padding-left: 10%;
	padding-right: 10%;
	position: fixed;
	width: 38%;
}

#webscripts_search_bar {
	padding: 2%;
	width: 100%;
	background-color: #333;
	color: rgb(255, 194, 106);
	border: 1px solid #895100;
	border-radius: 3px;
}

#webscripts_search_bar.light {
	background-color: rgb(221, 221, 221);
	color: #100B60;
	border-color: #615CB9;
}

#search_result {
	display: none;
}

#prevent_no_javascript {
	background-color: red;
	padding: 2%;
	margin: 3%;
	font-weight: bold;
	font-size: 120%;
}

#webscripts_header_canvas_image {
	animation: rotate 5s 2;
}

#webscripts_content.light {
	background-color: #DDDDDD;
}

#bar.light {
	background-color: #615CB9;
	color: #0F0B60;
}

/*
#webscripts_search_bar_size.light {
	background-image: radial-gradient(#CCCCCC 10%, transparent);
}
*/

#webscripts_content.light, input.light, td.light {
	color: #100B60;
	border-color: #100B60;
}

::-moz-selection { /* Code for Firefox */
	color: #333333;
	background: #f0a83f;
}

::selection {
	color: #333333;
	background: #f0a83f;
}

.toast {
  visibility: hidden;
  margin: auto;
  background-color: #666;
  color: #fff;
  text-align: center;
  border-radius: 5px;
  padding: 16px;
  position: fixed;
  left: 47%;
  bottom: 7%;
}

.toast.show {
  visibility: visible;
  -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
  animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@-webkit-keyframes fadein {
  from {bottom: 0; opacity: 0;}
  to {bottom: 7%; opacity: 1;}
}

@keyframes fadein {
  from {bottom: 0; opacity: 0;}
  to {bottom: 7%; opacity: 1;}
}

@-webkit-keyframes fadeout {
  from {bottom: 30px; opacity: 1;}
  to {bottom: 0; opacity: 0;}
}

@keyframes fadeout {
  from {bottom: 30px; opacity: 1;}
  to {bottom: 0; opacity: 0;}
}

@media (prefers-color-scheme: dark) {
	html.default_theme, body.default_theme, button.default_theme, input.default_theme, select.default_theme {
		background-color: #222222;
	}

	input.default_theme:hover, select.default_theme:hover, button.default_theme:hover {
		background-color: #333333;
	}

	a.default_theme {
		color: #895100;
	}

	#webscripts_content.default_theme {
		background-color: #333333;
	}

	.border.default_theme {
		color: #ffc26a;
	}

	button.default_theme, input.default_theme, select.default_theme {
		color: #dd8a12;
		border-color: #f0a83f;
	}

	#webscripts_content.default_theme,  td.default_theme {
		color: #dd8a12;
		border-color: #b16b05;
	}

	#bar.default_theme {
		background-color: #895100;
		color: #ffc26a;
	}

	td.default_theme {
		border-color: #dd8a12;
	}
}

@media (prefers-color-scheme: light) {
	html.default_theme, body.default_theme, button.default_theme, input.default_theme, select.default_theme {
		background-color: #CCCCCC;
	}

	input.default_theme:hover, select.default_theme:hover, button.default_theme:hover {
		background-color: #DDDDDD;
	}

	a.default_theme {
		color: #615CB9;
	}

	#webscripts_content.default_theme {
		background-color: #DDDDDD;
	}

	.border.default_theme, button.default_theme {
		color: #0F0B60;
	}

	#bar.default_theme {
		background-color: #615CB9;
		color: #0F0B60;
	}

	button.default_theme {
		border-color: #0F0B60;
	}

	#webscripts_content.default_theme, input.default_theme, td.default_theme {
		color: #100B60;
		border-color: #100B60;
	}
}

@keyframes rotate {
	0% {
		transform: rotate(0deg)
	}
	20% {
		transform: rotate(72deg)
	}
	40% {
		transform: rotate(144deg)
	}
	60% {
		transform: rotate(288deg)
	}
	80% {
		transform: rotate(360deg)
	}
}