/* Fonts */

@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.1/css/all.min.css');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@400;600&display=swap|Noto+Sans|Open+Sans:wght@300;400;700|Roboto:400&display=swap&subset=cyrillic');

/* Weather icon styles */

@import url('../css/weather-icons-wind.css');
@import url('../css/weather-icons.css');

/* Weather and To-Do List styles */

@import url('../css/todolist-style.css');
@import url('../css/weather-style.css');

/* Light theme */

:root {
	--roboto: 'Roboto', sans-serif;
	--noto-sans: 'Noto Sans', sans-serif;
	--open-sans: 'Open Sans', sans-serif;
	--roboto-slab: 'Roboto Slab', serif;
	--font-awesome: 'Font Awesome 5 Free';

	--global-font: var(--open-sans);

	--background: #fff;
	--foreground: #7a8c70;
	--header: #5C6657;
	/*--card-bg: #d0f0c0;*/
	--card-bg: #c1ecac;

	--weather-fg: #C5CAE9;
	--weather-bg: #5C6BC0;
	--weather-icon: #E8EAF6;
	--weather-temp: #C5CAE9;
	--weather-description: #9FA8DA;
	--weather-upd: #7986CB;
	--weather-upd-hover: #E8EAF6;

	--todo-bg: #f2e69d;
	--todo-fg: #807a53;
	--todo-hover: #4d4932;
	--todo-input: #b3aa74;
	--todo-done: #ccc085;

	--search: #a6bf99;

	--container-shadow-color: rgba(0, 0, 0, 0.35);
}

/* Dark theme */

[theme="dark"] {
	--background: #101112;
	--foreground: #858585;
	--header: #A8A8A8;
	--card-bg: #1c1d1f;

	--weather-fg: #BDBDBD;
	--weather-bg: var(--card-bg);
	--weather-icon: #E0E0E0;
	--weather-temp: var(--weather-fg);
	--weather-description: #9E9E9E;
	--weather-upd: #757575;
	--weather-upd-hover: #E0E0E0;
	--todo-bg: var(--card-bg);
	--todo-fg: #a6a6a6;
	--todo-hover: #737373;
	--todo-input: #737373;
	--todo-done: #474747;

	--search: #737373;

	--container-shadow-color: rgba(0, 0, 0, 0.45);
}

html {
	font-size: 18px;
	font-family: var(--global-font);
}

body {
	background: var(--background);
	transition: .5s;
	width: 100%;
	height: 100%;
	position: fixed;
	top: 0;
	left: 0;
	display: flex;
	align-items: center;
	align-content: center; 
	justify-content: center; 
	overflow: auto;
	flex-direction: row;
}

input[type="checkbox"] {display: none;}

.tilt {position: absolute;}

.container {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	background: var(--card-bg);
	min-width: 310px;
	min-height: 200px;
	border-radius: 8px;
	box-shadow: 0px 2px 25px var(--container-shadow-color);
	transition: width .5s, height .5s, background-color .7s, box-shadow .7s;

/* 	background: rgba( 255, 255, 255, 0.45 );
	box-shadow: 0 8px 32px 0 rgba( 31, 38, 135, 0.37 );
	backdrop-filter: blur( 2.5px );
	-webkit-backdrop-filter: blur( 2.5px );
	border-radius: 10px; */
}

#switch_weather:checked ~ .container {
	background: var(--weather-bg);
	transition: width .5s, height .5s, background-color .7s, box-shadow .7s;
	box-shadow: 0px 2px 20px rgba(0, 0, 0, 0.45);
}

#switch_todo:checked ~ .container {
	background: var(--todo-bg);
	transition: width .5s, height .5s, background-color .7s, box-shadow .7s;
	box-shadow: 0px 2px 20px var(--container-shadow-color);
}

.content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	margin: 25px 25px 0px 25px;
	opacity: 1;
	transition: 1s;
	z-index: 1;
}

.wrapper {
	display: grid;
	justify-content: center;
	align-content: center;
	grid-auto-flow: row;
	grid-template-areas: "a a a a";
	margin: 10px 5px;
}

a {
	display: flex;
	justify-content: center;
	text-decoration: none;
	outline: none;
	width: 30px;
	height: 30px;
	font-size: 30px;
	padding: 15px;
	margin: 5px;
	border-radius: 8px;
	transition: .2s;
	color: var(--foreground);
}

a:hover,
input[id="searchbox"]:hover,
input[id="searchbox"]:focus {
	color: var(--card-bg);
	background: var(--header);
	transform: translateY(-3px);
	transition: .2s;
	box-shadow: 0 3px 10px rgba(2, 2, 2, 0.45);
	outline: none;
}

.search {
	margin: 0px 0px 25px 0px;
	border: none;
	opacity: 1;
	transition: 1s;
	z-index: 1;
}

input[id="searchbox"] {
	font-family: var(--global-font);
	font-size: 18px;
	color: var(--header);
	text-align: center;
	background: transparent;
	border: none;

	padding: 5px;
	transition: .2s;
	border-radius: 8px;
}

input[id="searchbox"]::placeholder {
	color: var(--foreground);
	transition: .2s;
}

input[id="searchbox"]:focus::placeholder,
input[id="searchbox"]:hover::placeholder { 
	color: var(--card-bg);
	transition: .2s;
}

/* Theme checkbox */

.btn_theme {
	position: absolute;
	top: calc((45% - 30px));
	left: -34px;
	transform: rotate(-25deg);
}

.chb_theme + label::before,
.chb_theme + label:hover::before,
.chb_theme:checked + label::before,
.chb_theme:checked + label:hover::before {
	font-family: var(--font-awesome);
	font-weight: 900;
	font-size: 20px;
	content: "\f186";
	cursor: pointer;
	transition: .2s;
}

.chb_theme + label::before {color: #BDBDBD;}

.chb_theme + label:hover::before {color: #9E9E9E;}

.chb_theme:checked + label::before {color: #FFD740;}

.chb_theme:checked + label:hover::before {color: #bfa132;}
