body {
	margin: 1%;
	background-color: rgb(170, 187, 204, 0.05);
	color: rgb(52, 58, 64);
	overflow: hidden;
	transition: background-color 0.3s, color 0.3s;
}

/* Fix for safari */
html.safari, body.safari {
	position: fixed;
	height: 100%; 
	overflow: hidden; 
	width: 100%; 

	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
}

/* Fix for safari */
canvas {
    touch-action: none;
}


#outer_container {
	background-color: #ffffff;
	box-shadow: 0px 0px 10px 2px rgba(0, 0, 0, 0.2);
	border-radius: 4px;
	max-width: 1280px;
	position: relative;
	transition: background-color 0.3s;
}
	
/* ----------------------------------------- Header ----------------------------------------- */
#header {
	padding: .75rem .75rem .7rem .75rem;
	border-radius: 4px 4px 0 0;
	background-color: #f0f0f0;
}
#controls {
	flex-shrink: 0;
}
#controls button {
	border: 0;
}
#controls button i {
	color: rgb(52, 58, 64);
	transition: color 0.3s;
}
#controls button:focus-visible {
	box-shadow: 0 0 0 0.15rem rgba(0, 0, 0, 0.1);
	background: rgba(0, 0, 0, 0.2);			
}

#reset.disabled {
	opacity: 0.25;
	cursor:default;
}

/* ------------------------------------------ Main ------------------------------------------ */
#main {
	max-width: 1280px;
	padding: 0 0.5rem 0.5rem 0.5rem;
	background-color: #f0f0f0;
}
#inner_container {
	overflow: hidden;
	background: #f0f0f0;
}
#canvas_wrapper {
	padding: 1px;
	position: relative;
}
#defaultCanvas0 {
	position: absolute;
	left: 0px;
	top: 0px;
	border-top: 1px solid #dee2e6;
	border-right: 1px solid #dee2e6;
	border-bottom: 1px solid #dee2e6;
	cursor: crosshair;
}

#outer_map_wrapper {
	background: #e5e5e5;
	position: relative;
	overflow: hidden;
	width: 100%;
	height: auto;
}

#map_wrapper {
	position: relative;
	width: 92%;
	height: auto;
	border: 1px solid #44aa44;
}


#main_map, #grid, #map_text, #countries, #capitals {
	position: absolute;
	left: 0px;
	top: 0px;
}

#scale {
	position: absolute;
	left: 10px;
	bottom: 10px;
}

#base_info, #climate_info {
	position: absolute;
	right: 0px;
	bottom: 0px;
}

#select_box {
	border-radius: 8px;
}
#select_lang {
	cursor: pointer;
}
.checkboxes:checked {
	border: 1px solid #3388aa;
	background-color: #3388aa;
}
.bg-petrol {
	border: 1px solid #3388aa;
	background-color: #3388aa;
}
.bg-petrol:hover,
.bg-petrol:active,
.bg-petrol:focus {
	border: 1px solid #0066ee;
	background-color: #0066ee;
}
.btn-primary {
	background-color: #3388aa;
}
.color_samples .btn-primary {
	background-color: #0066ee;
}
#buttons_wrapper_top, 
#buttons_wrapper_bottom {
	width: 100%;
	height: auto !important;
}
#buttons_wrapper_bottom button,
.bg_fill button {
	padding: 3px 6px;
	margin: 3px;
}
@media screen and (max-width: 690px) {
	#buttons_wrapper_bottom button,
	.bg_fill button {
		padding: 3px;
		margin: 2px 1px 2px 0px;
	}
}
@media (max-width: 576px) {
    .justify-content-xs-center {
        justify-content: center !important;
    }
}
#controls_wrapper {
	/*overflow-y: auto;*/
	height: inherit;
	display: flex;
	flex-wrap: wrap;
	align-content: space-between;
}
#controls_wrapper #color_samples_fill,
.row.fill {
	padding-bottom: 5px;
	border-bottom: 1px solid rgb(222, 226, 230);
}
.row.stroke {
	padding-top: 5px;
	border-top: 1px solid rgb(222, 226, 230);
}
#controls_wrapper .standard_buttons button {
	padding: 2px 4px;
	margin: 1px 1px;
}
#controls_wrapper .standard_buttons button.selected {
	background-color: green;
}

#controls_wrapper button.selected {
	border: 3px solid rgb(252, 191, 39);
}
.color_samples button {
	padding: 8px;
	margin: 2px 1px;
	box-shadow: 0px 0px 1px 0px #999;
}
.color_samples button:focus {
	padding: 8px;
	box-shadow: 0px 0px 1px 4px #98c1fe;
}
input[type="color"] {
	height: 34px;
	padding: 0px;
}
#stroke_weight button {
	padding: 1px 3px;
	width: 42px;
	height: 34px;
	margin: 2px 1px;
	border-color: rgb(222, 226, 230);
}
#stroke_weight button.active {
	background-color: #eee;
}
#stroke_weight button span {
	display: block;
	background-color: #777;
	margin: 0 auto;
}
#text_input_wrapper {
	display: none;
	position: absolute;
	z-index: 500;
	opacity: 0.85;
}
#text_input_wrapper button {
	padding: 3px;
}
.btn-move-down:active {
	transform: translateY(1px);
	transition: 0.3s;
}
.text-just {
	text-align: justify;
}

.modal-footer .btn {
	border: 0;
}

/* ---------------------------------------- Fieldset ---------------------------------------- */
fieldset.fieldset-original {
	min-width: min-content;
    padding: .35em .75em .625em .25em;
    margin: 2px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
fieldset.fieldset-original legend {
	float: none;
	width: fit-content;
	margin-bottom: 0;
	padding: 0 5px;
}

/* --------------------------------------- Scroll Bars -------------------------------------- */
::-webkit-scrollbar {
	width: 10px;
	height: 10px;
}
::-webkit-scrollbar-track {
	-webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.1);
	background-color: #f5f5f5;
	border-radius: 10px;
}
::-webkit-scrollbar-thumb {
	border-radius: 10px;
	-webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.1);
	background-color: rgb(109, 117, 125, 0.6);
}
::-webkit-scrollbar-thumb:hover {
	background-color: rgb(109, 117, 125, 0.8);
}
::-webkit-scrollbar-thumb:active {
	background-color: rgb(109, 117, 125);
}

/* --------------------------------------- N O T E S ---------------------------------------- */
:root {
	--bs-tertiary-bg: rgb(187, 206, 226);
	--bs-tertiary-bg-rgb: 248, 249, 250;
	--custom-tertiary-bg: rgb(187, 206, 226);
}

.form-range::-webkit-slider-runnable-track {
	height: 0.28rem;
	background-color: var(--custom-tertiary-bg);
}
.form-range::-moz-range-track {
	height: 0.28rem;
	background-color: var(--custom-tertiary-bg);
}
.form-range::-moz-range-thumb {
	width: 0.7rem;
	height: 0.7rem;
	background-color: #759baa;
}
.form-range::-webkit-slider-thumb {
	width: 0.7rem;
	height: 0.7rem;
	margin-top: -0.19rem;
	background-color: #759baa;
}
.modal{
	z-index: 10000;
}
#background_canvas {
	opacity: 1;
}
.btn.popover {
	color: #777;
	background-color: #fff;
	border: 0;
	border-radius: 50%;
	top: 5px;
	left: 5px;
	padding: 0;
	position: absolute;
	z-index: 600;
	opacity: .5;
	font-size: 1px;
    line-height: 1px;
}
.btn-success.popover {
	color: #fff;
	background-color: #198754;
	border-color: #198754;
	opacity: 1;
}
.btn.popover:hover{
	opacity: .85;
}
.popover .popover-body {
    overflow: auto;
}
.popover.bs-popover-auto {
	--bs-popover-border-color: #198754;
	--bs-popover-header-bg: #198754;
	--bs-popover-arrow-border: #198754;
	--bs-popover-header-color: #fff;
	--bs-popover-bg: #f0f0f0;
	z-index: 500;
	visibility: hidden;
}
.btn.zoom .bi-arrows-fullscreen {
	font-size: 0.75rem !important;
}
.btn.zoom {
	color: #777;
	background-color: #fff;
	border-radius: 50%;
    border: 2px solid #777;
    width: 1.7em;
    height: 1.7em;
	top: 5px;
	right: 5px;
	padding: 0;
	position: absolute;
	z-index: 600;
	opacity: .5;
}
.btn-warning.zoom {
	color: #000;
    background-color: #ffc107;
    border-color: #d19f0b;
	opacity: 1;
}
.btn.zoom:hover {
	opacity: .85;
}

/* ---------------------------------------- Dark Mode --------------------------------------- */
body.dark-mode {
	background-color: #2c2c2c;
	color: #e0e0e0;
}
body.dark-mode #outer_container,
body.dark-mode #header,
body.dark-mode #main {
	background-color: #3a3a3a;
}
body.dark-mode #controls button i {
	color: #e0e0e0;
}
body.dark-mode ::-webkit-scrollbar-thumb {
	background-color: #5a5a5a;
}
body.dark-mode .form-control,
body.dark-mode select {
    background-color: #3a3a3a;
    color: #e0e0e0;
	border-color: #495057;
}
body.dark-mode .input-group-text {
    background-color: #303030;
    color: #e0e0e0;
	border-color: #495057;
}
body.dark-mode .form-control::placeholder {
    color: #e0e0e0;
    opacity: 1;
}
body.dark-mode .form-control::-ms-input-placeholder {
    color: #e0e0e0;
}
body.dark-mode .popover.bs-popover-auto {
    --bs-popover-header-color: #e0e0e0;
    --bs-popover-bg: #303030;
}
body.dark-mode .popover .popover-body {
	color: #e0e0e0;
}
/* ------------------------------------- Dark Mode Links ------------------------------------ */
body.dark-mode a {
	color: #6ea8fe !important;
}
body.dark-mode a:hover {
	color: #8bb9fe !important;
}
/* -------------------------------- Dark Mode Bootstrap Colors ------------------------------ */
body.dark-mode .text-primary {
	color: #6ea8fe !important;
}
body.dark-mode .text-secondary {
	color: #a7acb1 !important;
}
body.dark-mode .text-success {
	color: #75b798 !important;
}
body.dark-mode .text-info {
	color: #6edff6 !important;
}
body.dark-mode .text-warning {
	color: #ffda6a !important;
}
body.dark-mode .text-danger {
	color: #ea9097 !important;
}
body.dark-mode .text-light {
	color: #f8f9fa !important;
}
body.dark-mode .text-dark {
	color: #dee2e6 !important;
}
body.dark-mode .bg-primary {
	background-color: #031633 !important;
}
body.dark-mode .bg-secondary {
	background-color: #161719 !important;
}
body.dark-mode .bg-success {
	background-color: #051b11 !important;
}
body.dark-mode .bg-info {
	background-color: #032830 !important;
}
body.dark-mode .bg-warning {
	background-color: #332701 !important;
}
body.dark-mode .bg-danger {
	background-color: #2c0b0e !important;
}
body.dark-mode .bg-light {
	background-color: #343a40 !important;
}
body.dark-mode .bg-dark {
	background-color: #1a1d20 !important;
}
body.dark-mode .border-primary {
	border-color: #084298 !important;
}
body.dark-mode .border-secondary {
	border-color: #41464b !important;
}
body.dark-mode .border-success {
	border-color: #0f5132 !important;
}
body.dark-mode .border-info {
	border-color: #087990 !important;
}
body.dark-mode .border-warning {
	border-color: #997404 !important;
}
body.dark-mode .border-danger {
	border-color: #842029 !important;
}
body.dark-mode .border-light {
	border-color: #495057 !important;
}
body.dark-mode .border-dark {
	border-color: #343a40 !important;
}
body.dark-mode .btn-light {
	background-color: #303030;
    color: #e0e0e0;
	border-color: #495057 !important;
}
body.dark-mode .btn-light:hover {
	background-color: #424649;
    color: #e0e0e0;
	border-color: #373b3e;
}
body.dark-mode .btn-light.active {
	background-color: #4d5154;
    color: #e0e0e0;
	border-color: #373b3e;
}
body.dark-mode .accordion-item {
	border-color: #495057 !important;
}
body.dark-mode .accordion-button {
	background-color: #303030;
    color: #e0e0e0;
	border-color: #495057 !important;
}
body.dark-mode .accordion-button:after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23e0e0e0'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    /* --bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236ea8fe'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") */
}
body.dark-mode .accordion-button:hover {
    background-color: #3f3f3f;
}
body.dark-mode .accordion-body {
    background-color: #353535;
	color: #e0e0e0;
}
/* ------------------------------------ Dark Mode Modals ------------------------------------ */
body.dark-mode .modal-content {
	background-color: #3a3a3a; 
	color: #e0e0e0;
	border: none;
	transition: background-color 0.3s, color 0.3s;
}
body.dark-mode .modal-header {
	background-color: #2c2c2c; 
	border-bottom: 1px solid #555555;
	transition: background-color 0.3s, border-bottom 0.3s;
}
body.dark-mode .modal-header .modal-title {
	color: #ffffff;
	transition: color 0.3s;
}
body.dark-mode .modal-body {
	background-color: #3a3a3a;
	color: #e0e0e0;
	transition: background-color 0.3s, color 0.3s;
}
body.dark-mode .modal-footer {
	background-color: #2c2c2c; 
	border-top: 1px solid #555555;
	transition: background-color 0.3s, border-top 0.3s;
}
body.dark-mode .modal-footer .btn-secondary {
	background-color: #555555; 
	color: #ffffff; 
	transition: background-color 0.3s, color 0.3s;
}
body.dark-mode .modal-footer .btn-secondary:hover {
	background-color: #666666; 
}
body.dark-mode .btn-close {
	filter: invert(1); 
	transition: filter 0.3s;
}
body.dark-mode .modal-body a {
	color: #9ecfff; 
	transition: color 0.3s;
}
body.dark-mode .modal-body a:hover {
	color: #70a1ff;
}
.modal-content,
.modal-header,
.modal-body,
.modal-footer {
	transition: background-color 0.3s, color 0.3s;
}
/* ---------------------------------- Dark Mode Scroll Bars --------------------------------- */
body.dark-mode ::-webkit-scrollbar-track {
	background-color: #535353;
}
body.dark-mode ::-webkit-scrollbar-thumb {
	background-color: rgb(199, 199, 199, 0.6);
}
body.dark-mode ::-webkit-scrollbar-thumb:hover {
	background-color: rgb(199, 199, 199, 0.8);
}
body.dark-mode ::-webkit-scrollbar-thumb:active {
	background-color: rgb(199, 199, 199);
}

/* Addition css here */
