@font-face {
	font-family: 'waterfall';
	src: url('fonts/Waterfall/Waterfall-Regular.ttf') format('truetype');
	src: url('fonts/Waterfall/Waterfall-Regular.otf') format('opentype');
	font-weight: normal;
	font-style: normal;
}
@font-face {
	font-family: 'ubuntu-reg';
	src: url('fonts/Ubuntu/Ubuntu-Regular.ttf') format('truetype');
	src: url('fonts/Ubuntu/Ubuntu-Regular.otf') format('opentype');
	font-weight: normal;
	font-style: normal;
}
@font-face {
	font-family: 'ubuntu-med';
	src: url('fonts/Ubuntu/Ubuntu-Medium.ttf') format('truetype');
	src: url('fonts/Ubuntu/Ubuntu-Medium.otf') format('opentype');
	font-weight: normal;
	font-style: normal;
}
@font-face {
	font-family: 'ubuntu-lig';
	src: url('fonts/Ubuntu/Ubuntu-Light.ttf') format('truetype');
	src: url('fonts/Ubuntu/Ubuntu-Light.otf') format('opentype');
	font-weight: normal;
	font-style: normal;
}
@font-face {
	font-family: 'ubuntu-bol';
	src: url('fonts/Ubuntu/Ubuntu-Bold.ttf') format('truetype');
	src: url('fonts/Ubuntu/Ubuntu-Bold.otf') format('opentype');
	font-weight: normal;
	font-style: normal;
}
@keyframes grow {
	0% {
		width: 10px;
	}
	100% {
		width: 125px;
	}
}
:root {
	--white: #fff;
	--f-white: #fff;
	--primdark: #023047; /*darkblue*/
	--primdark2: #023047; /*darkblue*/
	--f-primdark: #023047; /*darkblue*/
	--f-primdark2: #023047;
	--primmid: #86c0da; /*midblue*/
	--primlight: #b4dff1; /*lightblue*/
	--f-primlight: #b4dff1; /*lightblue*/
	--darkhover: #196991; /*darkbluehover*/
	--accent: #ffb703; /*yellow*/
	--b-indicator1: #023047;
	--b-indicator2: #001b29;
	--b-bg: #86c0da;
}
/* theming elements */
.theme {
	--white: #fff;
	--f-white: #023047;
	--f-primdark: #fff;
	--f-primdark2: #023047; /*#1a1d20 siva*/
	--f-primlight: #b4dff1; /*#d2e0ee svijetloplava*/
	--primdark: #013d5c; /*#196991*/
	--primdark2: #001b29; /*darkblue*/
	--primmid: #013d5c; /*#39424a siva*/
	--primlight: #001b29; /*#4a545b siva*/
	--darkhover: #014c71; /*#2c3236 siva*/
	--accent: #ffb703;
	--b-indicator1: #196991;
	--b-indicator2: #014c71;
	--b-bg: #001b29;
}
body {
	margin: 0;
}
* {
	margin: 0;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}
/* theme and font size*/
.upperbar {
	height: 3rem;
	width: 100%;
	margin: 0 auto;
	padding: 0 15px 0 0;
	background-color: var(--primdark);
	display: flex;
	flex-direction: row;
	justify-content: flex-end;
	align-items: center;
	/*position: relative;*/
}
#toggle {
	position: relative;
	display: block;
	margin: 0;
	width: 60px;
	height: 30px;
	border-radius: 40px;
	background: var(--b-bg);
	transition: 0.5s;
	cursor: pointer;
	box-shadow: inset 0px 8px 60px rgba(0, 0, 0, 0.1),
		inset 0px 8px 8px rgba(0, 0, 0, 0.1), inset 0px -4px 4px rgba(0, 0, 0, 0.1);
}
#toggle.theme {
	background: var(--b-bg);
	box-shadow: inset 0px 2px 60px rgba(0, 0, 0, 0.1),
		inset 0px 2px 8px rgba(0, 0, 0, 0.1), inset 0px -4px 4px rgba(0, 0, 0, 0.05);
}
#toggle .indicator {
	position: absolute;
	top: 0;
	left: 0;
	width: 30px;
	height: 30px;
	background: linear-gradient(
		to bottom,
		var(--b-indicator1),
		var(--b-indicator2)
	);
	border-radius: 50%;
	transform: scale(0.9);
	box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.5),
		inset 0px 4px 4px rgba(255, 255, 255, 0.2),
		inset 0px -4px 4px rgba(255, 255, 255, 0.2);
	transition: 0.5s;
}
#toggle.theme .indicator {
	left: 30px;
	background: linear-gradient(
		to bottom,
		var(--b-indicator1),
		var(--b-indicator2)
	);
	box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.1),
		inset 0px 4px 4px rgba(255, 255, 255, 0.2),
		inset 0px -4px 4px rgba(255, 255, 255, 0.2);
}
@media (max-width: 991px) {
	.upperbar {
		width: 100%;
		padding: 0;
	}
}
div.font {
	width: 70px;
	margin-right: 10px;
	display: flex;
	flex-direction: row;
	justify-content: space-between;
}
.increaseFont,
.decreaseFont {
	display: flex;
	justify-content: center;
	align-items: center;
	font-family: ubuntu-lig, sans-serif;
	font-size: 1.1rem;
	font-weight: 600;
	height: 35px;
	width: 35px;
	padding: 5px;
	color: var(--white);
	background-color: rgba(0, 0, 0, 0);
	border: none;
	border-radius: 50px;
	cursor: pointer;
	transition: all 0.5s ease-in-out;
}
.increaseFont:hover,
.decreaseFont:hover {
	color: var(--accent);
}
@media (max-width: 991px) {
	.upperbar button {
		font-size: 0.8rem;
	}
	#toggle {
		width: 40px;
		height: 20px;
	}
	#toggle .indicator {
		position: absolute;
		top: 0;
		left: 0;
		width: 20px;
		height: 20px;
	}
	#toggle.theme .indicator {
		left: 20px;
	}
}
