html {
    height: 100%;
}

body {  
  margin: 0;
  padding: 0;
  text-align: center;
  color: white;
  font-family: 'Lato', sans-serif;
  text-shadow: 1px 1px 1px rgba(0,0,0,0.004);
  text-rendering: optimizeLegibility !important;
  -webkit-font-smoothing: antialiased !important;
  width: 100%;
  height: 100%;
  background: #202028 url('media/bg.jpg') no-repeat top center;
  display: flex;
  flex-direction: column;
}

.content {
  flex: 1 0 auto;
}

a:link {
    color: white;
    text-decoration: none;
}

a:visited {
    color: white;
    text-decoration: none;
}

a:hover {
    color: #a6afcb;
    text-decoration: none;
}

a:active {
    color: #2c303c;
    text-decoration: none;
}

#topbar {
  height: auto;
  line-height: 40px;
  background: rgba(69,75,94,1);
  font-size: 16px;
  width: 100vw;
}

#footer {
	height: 100px;
	bottom: 0;
}

#bottombar {
  width: 100%;
  height: auto;
  background: rgba(69,75,94,1);
  margin-top: 40px;
}

#bottombar p {
  font-size: 11px;
  color: #a6afcb;
  line-height: 11px;
  padding-top: 8px;
}

#bottombar a:link {
    color: white;
    text-decoration: none;
}

#finji {
  margin: auto;
  width: 99%;
  background: transparent;
}

#buffer {
	margin: 0;
	margin-left: 20px;
	margin-right: 20px;
	padding: 0;
	color: #a6afcb;
}

#logo {
  margin: auto;
  margin-top: 4vh;
  margin-bottom: 4vh;
  padding: 0;
  width: 100%;
  height: 130px;
  background: transparent url("media/title.png") no-repeat center top;
}

#description {
  margin: auto;
  margin-top: 6vh;
  margin-bottom: 0;
  padding: 0;
  padding-bottom: 2vh;
  width: 960px;
  font-size: 18px;
  line-height: 28px;
  text-align: center;
  background: transparent;
}

#prompt {
  margin: auto;
  margin-top: 2vh;
  margin-bottom: 0;
  padding: 0;
  width: 960px;
  font-size: 18px;
  line-height: 28px;
  background: transparent;
}

#buy {
  margin: 0;
  margin-top: 2vh;
  padding: 0;
  width: 240px;
  height: 48px;
  line-height: 48px;
  background: #454b5e;
  font-size: 24px;
  display: inline-block;
}

#buy_spacer {
  margin: 0;
  padding: 0;
  width: 12px;
  height: 50px;
  display: inline-block;
  background: transparent;
}

#demo-container {
	margin: auto;
	width: 960px;
}

.html5-demo {
	width:960px; 
	height:320px;
	border:none;
	margin:0 auto;
	display:block
}

.min-size { 
	display: none; 
}

.low-size { 
	display: none; 
}
    
.full-size { 
	display: inline; 
}

@media screen and (max-width:1260px), @media screen and (orientation:portrait) {
	.min-size { 
		display: none; 
	}
	
	.low-size { 
		display: inline; 
	}
    
	.full-size { 
		display: none; 
	}
	
	#finji {
		height: 0;
	}
	
	#footer {
		height: 60px;
		bottom: 0;
	}

	#bottombar {
		width: 100%;
		height: auto;
		background: rgba(69,75,94,1);
		margin-top: 60px;
	}

	#bottombar p {
		padding: auto 100px;
		font-size: 11px;
		color: #a6afcb;
		line-height: 11px;
	}
}

@media screen and (max-width:960px) {
	.min-size { 
		display: inline; 
	}
	
	.low-size { 
		display: none; 
	}
    
	.full-size { 
		display: none; 
	}
	
	#demo-container {
		width: 100vw;
	}

	.html5-demo {
		width: 100vw;
		height: calc(100vw / 3) !important;
	}
	
	#description {
	  width: 90vw;
	}

	#prompt {
	  width: 90vw;
	}
	
	#footer {
		height: 120px;
		bottom: 0;
	}

	#bottombar {
		width: 100%;
		height: auto;
		background: rgba(69,75,94,1);
		margin-top: 110px;
	}

	#bottombar p {
		font-size: 0.8em;
		color: #a6afcb;
		line-height: 0.8em;
	}
	
	#buy_spacer {
	  display: none;
	}
	
	#topbar {
	  height: auto;
	  line-height: 40px;
	  font-size: 1em;
	  width: 100vw;
	}
	
	#buffer {
		margin: 0;
		margin-left: 8px;
		margin-right: 8px;
		padding: 0;
		color: #a6afcb;
	}
	
	#logo {
		margin: auto;
		margin-top: 4vh;
		margin-bottom: 4vh;
		padding: 0;
		background-size: cover;
		width: 90vw;
		height: 130px;
		resize: both;
		background: transparent url("media/title.png") no-repeat center top;
	}
}