/* 
Title: New Tab CSS
Version: 2023-01-02
Updated: Pointer for AdSense cards

Layout:
* 100% cover with sticky footer
* top (logo and search), middiv (shortcuts), bottom div (taglines / cards)
* These are responsive, adjust height automatically and scroll
* Account, Maindivs: Logo, Search, Taglines
* Shortcuts
* Modal, buttons
* Cards
*/


/* Basic Page Layout */

	/* 'covers' page 100% size, but divs allow it responsive to grow down if needed */
	body, html {
		
		padding: 0;
		margin: 0;
		font-family: sans-serif;
	}

	/* Full screen BG image - not used yet */
	.bg {
		/* The image used */
		background-image: url("newtabbg.jpg");

		/* Full height */
		height: 100%;

		/* Center and scale the image nicely */
		background-position: center;
		background-repeat: no-repeat;
		background-size: cover;
	}

/* Top, middle, and bottom divs: Top div for logo, cause name tagline, search, Mid for Shortcuts, Bottom for cards */

#thefinalfrontier {
	position: relative;
	top: 15%;
	height: 15%;
}

		#topdiv {
		position: relative;
		top: 15%;
		left: 0%;
		width: 100%;
		height: 25%;
		background-color: #fff;
		min-height: 250px;

		}

		#middiv {
			display: block;
			
			top: 15%;
			left: 0%;
			width: 100%;
			height: auto;
			background-color: #fff;
		}

		#bottomdiv {
		
		top: 15%;
		left: 0%;
		width: 100%;
		height: auto;
		min-height: 100px;
		background-color: #fff;
		}

	/* Footer - centered, FIXED to bottom, san-serif, no styling */
	#footer {
		position: fixed;
		bottom: 0px;
		height: 25px;
		line-height: 25px;
		width: 100%;
		background-color: #eee;
		padding: 5px;
		font-family: sans-serif;
				display: flex;
			justify-content: center;
	}

		#footer a:link { text-decoration: none; }
		#footer a:visited { text-decoration: none; }
		#footer a:hover { text-decoration: none; }
		#footer a:active { text-decoration: none; }

	/* Centering divs (logo, search, taglines) and relative position / spacing */
	.maindiv {
		position: relative;
		width: 80%;
		top: 17%;
		left:  10%;
		display: flex;
		justify-content: center;
	}

	.maindiv form {

	}

/* Elements - Account upper right, Search Bar, Taglines, Shortcuts */

	/* Upper right 'account' */
	#account {
		position: fixed;
		top: 0;
		right: 0;
		height: 60px;
		padding-right: 25px;
		padding-top: 25px;
		vertical-align: middle;
		display: inline-flex;
		z-index: 1336;
	}

		#account a:link { text-decoration: none; }
		#account a:visited { text-decoration: none; }
		#account a:hover { text-decoration: none; }
		#account a:active { text-decoration: none; }

#acctbtn {
	background-color:#f9f9fb;
	border-radius:35px;
	display:inline-block;
	cursor:pointer;
	color:#000;
	font-size: 15;
	text-decoration:none;
				-webkit-box-shadow: 2px 2px 3px 2px rgba(0,0,0,0.15);
			-moz-box-shadow: 2px 2px 3px 2px rgba(0,0,0,0.15);
			box-shadow: 2px 2px 3px 2px rgba(0,0,0,0.15);

	line-height: 24px;
	margin: auto;
	padding: 5px;
}
#acctbtn:hover {
		-webkit-box-shadow: 2px 2px 3px 2px rgba(0,0,0,0.20);
				-moz-box-shadow: 2px 2px 3px 2px rgba(0,0,0,0.20);
				box-shadow: 2px 2px 3px 2px rgba(0,0,0,0.20);

				cursor: pointer;
}
#acctbtn:active {
	position:relative;
	top:1px;
}

#acctbtnlabel {
	vertical-align: middle;
}

#acctbtnlogo {
  vertical-align: middle;	
}

#logoandsearch {
	position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1335;
}
#stickynavintersection {
	height: 1px;
	z-index: 0;
}
.nav-container-sticky {
	background-color: #fff;
				-webkit-box-shadow: 2px 2px 3px 2px rgba(0,0,0,0.15);
			-moz-box-shadow: 2px 2px 3px 2px rgba(0,0,0,0.15);
			box-shadow: 2px 2px 3px 2px rgba(0,0,0,0.15);

}


	/* Input bar */
	input {
	  border: 0px transparent;
	  border-radius: 25px;
	  font-size: 1rem;
	  margin: 0.25rem;
	  min-width: 125px;
	  padding: 1rem;
	  background-color: #f9f9fb;
	  outline: 0px transparent;
	  width: 100%;
			-webkit-box-shadow: 2px 2px 3px 2px rgba(0,0,0,0.15);
			-moz-box-shadow: 2px 2px 3px 2px rgba(0,0,0,0.15);
			box-shadow: 2px 2px 3px 2px rgba(0,0,0,0.15);
	}

	::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: #444;
  opacity: 1; /* Firefox */
}

	input::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: #444;
  opacity: 1; /* Firefox */
}

::-ms-input-placeholder { /* Microsoft Edge */
  color: #444;
}

		/* Required to prevent outline showing on focus */
		input:focus {
		  border: 0px transparent;
		  border-radius: 25px;
		  font-size: 1rem;
		  margin: 0.25rem;
		  min-width: 125px;
		  padding: 1rem;
		  background-color: #f9f9fb;
		  outline: 0px transparent;
		  	-webkit-box-shadow: 2px 2px 3px 2px rgba(0,0,0,0.20);
				-moz-box-shadow: 2px 2px 3px 2px rgba(0,0,0,0.20);
				box-shadow: 2px 2px 3px 2px rgba(0,0,0,0.20);

		}

	.taglines {
		text-align: center;
		position: relative;
		width: 80%;
		top: 15%;
		left:  10%;

	}

	/* Shortcut container and shortcut items */

		#shortcutcontainer {
			position: relative;
			text-align: center;
			justify-content: center;
			margin: auto;
			max-width: 950px;
		}

		.shortcut {
			display: inline-block;
			margin: 15px 25px 0px 25px;
			height: 65px;
			width: 65px;
			-webkit-box-shadow: 2px 2px 3px 2px rgba(0,0,0,0.15);
			-moz-box-shadow: 2px 2px 3px 2px rgba(0,0,0,0.15);
			box-shadow: 2px 2px 3px 2px rgba(0,0,0,0.15);
		  border-radius: 3px;
		  background-color: #f9f9fb;
		  line-height: 40px;
		  position: relative;
		}

			/* On mouseover, darker shadow */
			.shortcut:hover {
		  	-webkit-box-shadow: 2px 2px 3px 2px rgba(0,0,0,0.20);
				-moz-box-shadow: 2px 2px 3px 2px rgba(0,0,0,0.20);
				box-shadow: 2px 2px 3px 2px rgba(0,0,0,0.20);

				cursor: pointer;
			}

			.shortcut:active {
				transform: translateY(2px);
			}

		.shortcutimage {
		    width: 48px;
		    height: 48px;
		    top: 50%;
		    transform: translateY(-50%);
		    position: relative;
		}

		.shortcutoptions {
			z-index: 100;
			cursor: help;
			position: absolute;
			height: 24px;
			width: 24px;
			right: 0px;
		}

		.shortcutoptions:hover .threedots {
			display: block;
		}

		.threedots {
			z-index: 100;
			cursor: help;
			position: absolute;
			display: none;
			right: 5px;
		}

		.caption {
			padding:  5px 0px 0px 0px;
			font-size: 0.8em;
			overflow: hidden;
			text-overflow: ellipsis;
			-webkit-line-clamp: 1;
			-webkit-box-orient: vertical;
			white-space: nowrap;
			width: 120px;
			max-width: 120px;
		}

		.sponsortag {
			/*font-style: italic;*/
			color: #999;
			font-size: 0.7em;
		}

		.captioncontainer {
			display: inline-block;
			vertical-align: top;
			width: 120px;
		}

	/* Modal - Add / Edit Shortcut, buttons. Hidden until dynamically set display value */
	#addshortcutmodal {
		position: absolute;
		width: 60%;
		height: 50%;
		min-height: 400px;
		left: 20%;
		top: 25%;
		background-color: #eee;
		z-index: 1337;
		border-radius: 15px;
		display: none;
		-webkit-box-shadow: 3px 3px 15px 0px rgba(0,0,0,0.85);
		-moz-box-shadow: 3px 3px 15px 0px rgba(0,0,0,0.85);
		box-shadow: 3px 3px 15px 0px rgba(0,0,0,0.85);
		padding: 25px;
		animation: popup 0.3s ease 0s normal none;
	}

	@keyframes popup {
	   0% { transform: scale(0.0); }
	  80% { transform: scale(1.1); }
	 100% { transform: scale(1.0); }
	}

	/* Darker BG - also required div for outside clicks */
	#shortcutmodalbg {
		display: none;
		height: 100%;
		width:  100%;
		position: absolute;
		top: 0; left: 0;
		padding: 0;
		margin: 0;
		background-color: rgba(0,0,0,0.35);
		z-index: 1336;
	}

	/* Generic class, used in modal */
	.center {
		text-align: center;
		justify-content: center;
		justify-items: center;
	}

	/* Modal Fields div for overflow handling */
	#fields {
		height: 250px;
		min-height: 250px;
	}

	/* Checkbox for alt image - manual alignment */
	#altimagecheckbox {
		position: relative;
		box-shadow: none;


	}

	/* Alt Image - hidden by default */
	#optionalimageurl {
		display: none;
	}

	/* Modal Buttons */

		#buttoncontainer {
			position: absolute;
			bottom: 5%;
			left: 5%;
			width: 90%;
			justify-content: center;
			display: flex;
		}

		.modalbutton {
			border-radius: 15px;
			width: 150px;
			height: 50px;
			justify-content: center;
			font-size: 16px;
			line-height: 50px;
			position: relative;
			bottom: 5%;
			display: inline-block;
			float: left;
			margin: 10px;
		}

			.modalbutton:hover {
				transform: scale(1.1);
			}

			.modalbutton:active {
				transform: translateY(2px);
			}

			#cancel {
				background-color: #bbb;
				color: #242424;
			}

					#cancel:hover {
						cursor: pointer;
					}

			#delete {
				background-color: #d41212;
				color: #fff;
				display: none;
			}

					#delete:hover {
						cursor: pointer;
					}

			#ok {
				background-color: #25f;
				color: #fff;	
			}

					#ok:hover {
						cursor: pointer;
					}

			#update {
				background-color: #25f;
				color: #fff;	
				display: none;
			}

					#update:hover {
						cursor: pointer;
					}

	/* Cards */

	#cardcontainer {
		position: relative;
		text-align: center;
		justify-content: center;
		margin: auto;
		max-width: 100%;
		padding: 20px;
		vertical-align: top;

	}

	.card {
		width:  300px;
		height: 300px;
		background-color: #f9f9fb;
		margin: 20px;
		border-radius: 5px;
		display: inline-block;
		overflow: hidden;
		-webkit-box-shadow: 2px 2px 3px 2px rgba(0,0,0,0.15);
		-moz-box-shadow: 2px 2px 3px 2px rgba(0,0,0,0.15);
		box-shadow: 2px 2px 3px 2px rgba(0,0,0,0.15);
	}

		.card a:link { text-decoration: none; color:#000; }
		.card a:visited { text-decoration: none; color:#000; }
		.card a:hover { text-decoration: none; color:#000; }
		.card a:active { text-decoration: none; color:#000; }

		.card:hover {
					  	-webkit-box-shadow: 2px 2px 3px 2px rgba(0,0,0,0.20);
				-moz-box-shadow: 2px 2px 3px 2px rgba(0,0,0,0.20);
				box-shadow: 2px 2px 3px 2px rgba(0,0,0,0.20);

				cursor: pointer;
		}

	.card-no-pointer {
		width:  300px;
		height: 300px;
		background-color: #f9f9fb;
		margin: 20px;
		border-radius: 5px;
		display: inline-block;
		overflow: hidden;
		-webkit-box-shadow: 2px 2px 3px 2px rgba(0,0,0,0.15);
		-moz-box-shadow: 2px 2px 3px 2px rgba(0,0,0,0.15);
		box-shadow: 2px 2px 3px 2px rgba(0,0,0,0.15);
	}

		.card-no-pointer a:link { text-decoration: none; color:#000; }
		.card-no-pointer a:visited { text-decoration: none; color:#000; }
		.card-no-pointer a:hover { text-decoration: none; color:#000; }
		.card-no-pointer a:active { text-decoration: none; color:#000; }

		.card-no-pointer:hover {
				-webkit-box-shadow: 2px 2px 3px 2px rgba(0,0,0,0.20);
				-moz-box-shadow: 2px 2px 3px 2px rgba(0,0,0,0.20);
				box-shadow: 2px 2px 3px 2px rgba(0,0,0,0.20);


		}

	.cardtext  {
		text-decoration: none !important;
		color: #777 !important;
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 5;
		overflow: hidden;
		text-align: left;
		height: auto;
		padding-top:10px;
		font-size:0.8em;
	}

	.card img {
		/* width: 100%; no smooshing */
		height: 100%;
		border-radius: 5px;
		max-width:100%;
		max-height:100%;
	}

	.cardimage {
		width: 290px;
		height: 150px;

	}

	.cardfullimage {
		width: 290px;
		height: 280px;
	}

	.cardattribution {
		color:#999;
		font-size:0.7em;
		text-align: left;
		padding-left: 5px;
	}

	.cardcontent {
		color:#999;
		font-size:1em;
		margin: 5px;
		height:275px;
	}

	.cardfulltext {
		text-decoration: none !important;
		color: #000 !important;
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 12;
		overflow: hidden;
		text-align: left;
		height: auto;
		font-size:0.9em;

	}

	.sponsorname {
		text-align: left;
		font-size:0.8em;
		padding-top: 5px;
	}

	.headline {
		color: #000;
		text-align: left;
		font-weight: bold;
		padding-top: 5px;
	}

@media screen and (max-width: 800px) {
	#acctbtnlabel {
	display:none;
}


@media screen and (max-width: 868px) {
  #footer {
    font-size: 0.8em;
  }

  .card {
	  width:150px;
	  height:150px;
  }

    .cardfullimage {
  	width: 140px;
  	height: 130px;
  }

  .cardimage {
  	width: 140px;
  	height: 70px;
  }

  .cardcontent {
	  font-size:0.7em;
}

	.cardtext {
		-webkit-line-clamp:5;
		color:#777 !important;
		font-size:0.9em;
	}

	.cardfulltext {
		-webkit-line-clamp:10;
	}

@media screen and (max-width: 600px) {
  #footer {
    font-size: 0.6em;
  }

  #acctbtn img {
  height:28px;
  width:28px;
  }

  .card {
  	width: 100px;
  	height: 100px;
  	font-size: 0.6em;
  }

  .maindiv {
  	font-size:  0.8em;
  }

  .card {
	  margin:10px;
  }

  .cardtext {
	  -webkit-line-clamp: 4;
	  padding-top:5px;
  }

  .cardfullimage {
  	width: 90px;
  	height: 85px;
  }

  .cardimage {
  	width: 90px;
  	height: 45px;
  }

  .shortcut {
  	width: 32px;
  	height: 32px;
  	margin: 0;
  }

  .captioncontainer {
  	width: 60px;
  	font-size: 0.7em;
  }

  .caption {
  	width: 60px;
  }

  .shortcutimage {
  	height: 24px;
  	width: 24px;
  }

}
