@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@600&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Architects+Daughter&display=swap");
*,
*::before,
*::after {
	box-sizing: border-box;
}
body.dark, body.dark *{
	--main-background: #2a2a2a;
	--light-bg: #424242;
	--main-color: lightgray;
	--bold-color: white;
	--highlight-color:darkviolet;
	--nav-bg: var(--main-background);
	--input-color:#3f3f3f;
	--homepage-select-bg:#0f0f0f;
}
body {
	font-family: "Open Sans", sans-serif;
	background-color: var(--main-background);
	color: var(--main-color);
	margin: 0;
	padding-bottom:100px;
}
header {
	text-align: center;
	background-color: var(--light-bg);
	padding: 20px;
}
header h1 {
	font-size: 72px;
	color: var(--bold-color);
	text-shadow: 1px 1px var(--bold-color), -1px 1px var(--bold-color), -1px -1px var(--bold-color),
		1px -1px var(--bold-color);
	letter-spacing: 3px;
	font-family: "Architects Daughter", cursive;
}
header h2 {
	font-size: 36px;
	font-family: "Architects Daughter", cursive;
}
header::after {
	content: "";
	display: inline-block;
	background-image: url("data:image/svg+xml, %3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 150' preserveAspectRatio='none' style='height: 100%25; width: 100%25;'%3E%3Cpath d='M0.00,92.27 C216.83,192.92 304.30,8.39 500.00,109.03 L500.00,0.00 L0.00,0.00 Z' style='stroke: none;fill: %23424242;'%3E%3C/path%3E%3C/svg%3E");
	height: 150px;
	width: 100%;
	position: absolute;
	left: 0px;
}
#container {
	width: 60%;
	margin: auto;
	font-size: 36px;
}
.check {
	display: flex;
	flex-direction: row;
	user-select: none;
	cursor: pointer;
		flex-wrap: wrap;
}
.check input {
	height: 40px;
	width: 40px;
	margin-right: 20px;
}
.check * {
	cursor: pointer;
}
#add, #addDatetime {
	width: calc(60vw - 120px);
	/*margin-left: 20%;*/
	height: 60px;
	margin-top: 20px;
	padding: 10px 20px;
	outline: 0;
	background-color: var(--input-color);
	border: 0;
	color: var(--bold-color);
	border-bottom: 4px solid darkgray;
	font-size: 24px;
	transition: 0.2s;
	margin-right: 20px;
}
#add:focus, #addDatetime:focus {
	border-bottom-color: var(--bold-color);
}
#letsgo {
	--color: var(--main-color);
	background: transparent;
	width: 100px;
	height: 60px;
	border: 3px solid var(--color);
	color: var(--color);
	padding: 5px 10px;
	font-size: 18px;
	border-radius: 8px;
	transition: 0.2s;
}
#letsgo:hover {
	--color: var(--bold-color);
cursor: pointer;
}
#letsgo:active {
	opacity: 0.8;
}
.close {
	color: lightcoral;
	display: inline-block;
}
.check_tools > *:hover {
	opacity: 0.8;
}
.check_tools > *:active {
	opacity: 0.5;
}
#savedata{
	--color: darkgray;
	margin-left:20%;
	width:60%;
	height:60px;
	margin-top:20px;
	font-size:24px;
	background:var(--light-bg);
	border:2px solid var(--color);
	border-radius:8px;
	color: var(--color);
}
#savedata:hover{
	background:#343434;
	--color: var(--main-color);
}
#savedata:active{
	--color: var(--bold-color);
	background:var(--main-background);
}
.duedata{
	font-size:18px;
	display:inline-block;
	width:100%;
	padding-left:60px;
}
footer{
	font-size:18px;
	line-height:30px;
	position:fixed;
	text-align: center;
	bottom:0px;
	width:100%;
	background:var(--main-background);
	padding:10px;
}
a{
	--h: 30px;
	color:var(--main-color) !important;
	border-bottom:3px solid var(--highlight-color);
	text-decoration:none;
	padding:2px 5px;
	transition: 0.2s;
	background:linear-gradient(45deg,var(--highlight-color), var(--highlight-color)) no-repeat 0px var(--h) ;
}
a:hover{
	background:linear-gradient(45deg,var(--highlight-color), var(--highlight-color)) no-repeat 0px 0px ;
}
.duedata::before{
	content:"Finish by";
}
#input{
	margin-left:20%;
}
#savingmsg{
	font-size:24px;
	margin:10px;
	display:inline-block;
	text-align:center;
	/*width:calc(60vw - 120px);*/
	color:white;
	filter: none !important;
}
.check_tools{
	margin-left:20px;
	display: none;
}
.check:hover .check_tools{
	display: block;
}
#nav{
	display: flex;
	flex-direction: row;
	padding-left:100px;
	column-gap: 20px;
	background: var(--nav-bg);
}
#nav .button{
	font-size: 24px;
	background:var(--nav-bg);
	color: white;
	border:0;
	transition: 0.2s;
	padding:0px 10px;
	cursor: pointer;
}
#nav .button:hover{
	filter:brightness(1.4);
}
.editbox{
	width: 300px !important;
	font-size: 24px;
	height: 50px !important;
	padding: 5px 20px;
	outline: none;
	overflow: auto;
	background:var(--light-bg);
	color: var(--main-color);
	font-weight: bold;
	border: 0;
}
#choosetodo__container{
	width: 75%;
	margin: auto;
	text-align: center;
	font-size: 24px;	
}
.choose_todo_todo{
    margin: auto;
    margin-top: 20px;
    background: var(--homepage-select-bg);
    text-align: left;
    padding: 20px 40px;
	padding-left: 0;
    cursor: pointer;
    width: 50vw;
    border-radius: 8px;
    white-space: nowrap;
    overflow: hidden;
}
.choose_todo_todo span.close{
	color:transparent;
}
.choose_todo_todo:hover, #choosetodo_input input:focus, #choosetodo_input button:hover{
	filter: brightness(1.5);
}
.choose_todo_todo:hover span.close{
	color:lightcoral;
}
.choose_todo_todo .close{
	font-size: 24px;
	width: 40px;
	text-align: center;
	display: inline-block;
}
#choosetodo_input input{
	margin: auto;
    margin-top: 20px;
    background: var(--homepage-select-bg);
    text-align: left;
    padding: 20px 20px;
	font-size: 24px;
	color: var(--main-color);
	border: 0;
	outline: 0;
    width: calc(50vw - 100px);
    border-radius: 8px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
	height:60px;
	transition: 0.2s ease;
}
#choosetodo_input button{
	margin-left:20px;
	width:80px;
	height:60px;
	background: var(--homepage-select-bg);
	border-radius:8px;
	color: var(--main-color);
	border: 0;
	font-size:18px;
	cursor:pointer;
	transition: 0.2s ease;
}
#choosetodo_input button:active{
	filter: brightness(2);
}


@media print{
	#nav, #input, footer, header::after, #color_scheme_toggle{
		display: none;
	}
	body{
		background: white;
		color: black;
	}
	header h1{
		color: black;
		margin: 0;
		display:inline-block;
		font-size: 36px;
		text-shadow: none;
	}
	#container{
		width: 100%;
		margin: 0;
		margin-top:0 !important;
		font-size: 24px;
	}
	header{
		background: none;
	}
	div.check_tools{
		display: none !important;
	}
	.check input{
		height: 25px;
    	width: 25px;
    	margin-right: 10px;
	}
	.duedata {
		font-size: 18px;
		display: inline-block;
		width: 100%;
		padding-left: 50px;
	}
	.check + .check{
		margin-top: 10px;
	}
}
#exportdata, #importdata, #copytododata{
	color: var(--main-color);
	background: var(--homepage-select-bg);
	font-size: 24px;
	border: 0;
	padding: 20px;
	margin: 20px;
	border-radius: 8px;
	cursor: pointer;
}
/* The Modal (background) */
.modal {
	position: fixed; /* Stay in place */
	z-index: 1; /* Sit on top */
	left: 0;
	top: 0;
	width: 100%; /* Full width */
	height: 100%; /* Full height */
	overflow: auto; /* Enable scroll if needed */
	background-color: rgb(0,0,0); /* Fallback color */
	background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content/Box */
.modal-content {
	background-color: #fefefe;
	margin: 15% auto; /* 15% from the top and centered */
	padding: 20px;
	border: 1px solid #888;
	width: 80%; /* Could be more or less, depending on screen size */
}

.button::after{
    content: attr(title);
	display:none;
	animation: opr 0.2s ease;
}

.button:hover::after{
    content: attr(title);
	display: block;
    font-size: 16px;
    background: #0f0f0f;
    padding: 10px;
    position: fixed;
    top: 60px;
    left: 0%;
	opacity: 1;
	animation: op ease 0.2s;
	width:fit-content;
	width:-moz-fit-content;
	border-radius:8px;
}
.button:hover{
	width:fit-content;
}
@keyframes op{
	from{opacity:0;top: 70px;}
	to{opacity:1;top: 60px;}
}
@keyframes opr{
	from{display:block;opacity:1;}
	to{opacity:0;}
}
#savingmsg::after{
	left:initial;
}
body.light *, body.light{
	--main-background: #d5e8ff;
    --light-bg: #d0d0d0;
    --main-color: #393939;
    --bold-color: black;
	--highlight-color: yellow;
	--nav-bg:#6b6b6b;
	--input-color:whitesmoke;
	--homepage-select-bg: whitesmoke;
}
body.light header::after{
	background: url("data:image/svg+xml, <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 150' preserveAspectRatio='none' style='height: 100%25; width: 100%25;'><path d='M0.00,92.27 C216.83,192.92 304.30,8.39 500.00,109.03 L500.00,0.00 L0.00,0.00 Z' style='stroke: none;fill: %23d0d0d0;'></path></svg>")
}
body.light :is(.choose_todo_todo:hover, #choosetodo_input input:focus, #choosetodo_input button:hover){
	filter: brightness(0.9);
}

#color_scheme_toggle{
	position:fixed;
	right: 0;
	top: 50%;
	font-size:48px;
	background:var(--homepage-select-bg);
	border: 0;
	cursor: pointer;
	transform:translateY(-50%);
	padding:10px;
	z-index:1;
}
.bigiframe{
	position: fixed;
	left:0;
	top:0;
	height:100vh;
	width:100vw;
}

.mserror{
  top:50%;
  left:50%;
  transform:translate(-50%, -50%);
  position:fixed;
  background-color:#d7e7f8;
  height:220px;
  width:400px;
  border-radius: 8px;
  box-shadow:0px 0px 16px black;
  padding:15px;
  cursor:move;
}
.errcontent{
  cursor:auto;
  background-color:white;
  height:170px;
  padding:10px;
  margin-top:10px;
  border-radius:8px;
  overflow:auto;
  display: flex;
  column-gap: 10px;
}
div.mserror>button{
  position: absolute;
  top:0px;
  right:10px;
  background:linear-gradient(180deg, #e7ada5 0%, #c5523f 50%, #c88174 100%);
  color:white;
  border:1px solid black;
  width:50px;
  font-weight: bolder;
  font-size:18px;
  border-radius:0px 0px 5px 5px;
}
div.mserror>button:hover{
  opacity:0.8;
}
.mserrortotheright{
  width:310px;
}
.erricon{
  /*background:linear-gradient(180deg, #e7ada5 0%, #c5523f 50%, #c88174 100%);*/
  background: linear-gradient(180deg, #7fb383 0%, #36a440 50%, #7fb383 100%);
  font-size:48px;
  width:56px;
  height:56px;
  border-radius:100px;
  border:none;
  color:#d3d2d2;
}
.errokay{
  position:absolute;
  background-image:linear-gradient(#f0f0f0, #c6d9e3);
  border: 2px solid;
  border-image-slice: 1;
  border-width: 2px;
  border-image-source:linear-gradient(#31cef6 0%, #3c7fb1 100%);
  width:80px;
  height:30px;
  margin-top:5px;
}
.errokay:hover{
  opacity: 0.8;
}
.errokay:active{
  opacity: 0.5;
}
#color_scheme_toggle, #importdata, #copytododata, #exportdata{
	transition: 0.2s ease;
}
:is(#importdata, #copytododata, #exportdata):hover{
	transform: scale(1.25);
}
#color_scheme_toggle:hover{
	font-size:72px;
}
#quote{
    right: 0;
    left: initial;
    top: 50px;
    margin: 0;
	padding: 20px;
	max-width: max(25%, 400px);
}
#quote > h1{
	margin: 0;
}
#choosetodo__todos:empty{
	display: flex;
	flex-direction: row;
	justify-content: center;
}
#choosetodo__todos:empty::before{
	content: "No todolists... yet!";
}