@import 'https://fonts.googleapis.com/css?family=Ubuntu';

html 
{
	background: lightgrey;
}

body 
{
	background: white;
	margin: 0 auto;
	padding: 0;
	font-family: 'Ubuntu', sans-serif;
	overflow-x: hidden;
}

body::-webkit-scrollbar
{ 
	width: 1em;
}
 
body::-webkit-scrollbar-track 
{ 
	-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
}
 
body::-webkit-scrollbar-thumb 
{ 
	background-color: darkgrey;
	outline: 1px solid slategrey;
}

h1 /* Title */
{
	text-align: center;
}

table
{
	border-spacing: 0px;
	border-collapse: collapse;
}

#front_table
{
	padding: 10px;
}

#front_td
{
	padding: 4px;
}

button
{
	background-color: lightgrey;
	color: black;
	font-size: 16px;
	border-radius: 4px;
	text-align: center;
	text-decoration: none;
	display: inline-block;
	padding: 15px 32px;
	-webkit-transition-duration: 0.4s;
	transition-duration: 0.4s;
	margin-top: 4px;
	margin-bottom: 4px;
}

button:hover
{
	background-color: #176093;
	color: white;
}

.thumb
{
	-webkit-transition-duration: 0.25s;
	transition-duration: 0.25s;
	height: 150px;
	width: auto;
	margin: 8px;
	display: inline;
}

.thumb:hover
{
	box-shadow: 10px 10px 7px darkgrey;
	
	/* scaleX, skewX, skewY, scaleY, translateX, translateY */
	-ms-transform: matrix(1.03, 0, 0, 1.03, -2, -2); /* IE 9 */
	-webkit-transform: matrix(1.03, 0, 0, 1.03, -2, -2); /* Safari */
	transform: matrix(1.03, 0, 0, 1.03, -2, -2);
}

img.map, map area
{
    outline: none;
}

section {
	width: 100%;
	height: 272px;
	display: -webkit-flex;
	display: flex;
	-webkit-flex-wrap: wrap;
	flex-wrap: wrap;
	-webkit-align-content: center;
	align-content: center;
}

ul {
	position: -webkit-sticky;
	position: sticky;
	top: 0;
	list-style-type: none;
	margin: 0;
	padding: 0;
	overflow: hidden;
	background-color: #333;
	z-index:1000;
}

li {
	float: left;
}

li a {
	display: block;
	color: white;
	text-align: center;
	padding: 14px 16px;
	text-decoration: none;
}

/* Change the link color to #111 (black) on hover */
li a:hover {
	background-color: #111;
	color: #2aa;
}

li a:hover:not(.active) {
	background-color: #111;
}

.active {
	background-color: #2aa;
}

h2 {
	color: #222;
	text-align: center;
}

.container {
  position: relative;
  width: 256px;
  height: 256px;
  padding: 0px;
  float: left;
  margin: 8px;
}

.image {
  width: 256px;
  height: 256px;
  padding: 0;
  margin: 0;
}

.overlay {
  position: absolute;
  bottom: 0;
  background-color: #2aa;
  overflow: hidden;
  width: 256px;
  height: 0;
  transition: .5s ease;
  opacity: 0.88;
  margin: 0;
  padding: 0;
}

.container:hover .overlay {
  height: 100%;
}

.text {
  text-align: center;
  vertical-align: middle;
  color: white;
  font-size: 20px;
  position: absolute;
  overflow: hidden;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  word-wrap: break-word;
  margin-left: auto;
  margin-right: auto;
}

p {
	width: 33%;
	text-align: center;
	vertical-align: middle;
	word-wrap: break-word;
	margin-left: auto;
	margin-right: auto;
}