/* ---------------------------------------------
------------- CSS for GhibliGuessr -------------
--------------------------------------------- */


/* ------------------------- Fonts ------------------------- */

@font-face {
	font-family: avantgarde;
	src: url(itc-avant-garde-gothic-lt-medium.ttf);
}
@font-face {
	font-family: mutsugo;
	src: url(mutsugo.otf);
}
@font-face {
	font-family: umeboshi;
	src: url(umeboshi_.ttf);
}
.avant {
	font-family: avantgarde;
}
.mutsugo {
	font-family: mutsugo;
}


/* --------------------- General styles --------------------- */

body {
	background: black;
	color: white;
	font-family: 'Nunito', 'Arial', sans-serif;
	text-align: center;
}
h1 {
	font-size: 5em;
}
h2 {
	font-size: 3em;
}
p {
	font-size: 1.4em;
}
p.small {
	font-size: 1em;
}
button {
	font-size: 5em;
	font-family: 'Arial Rounded MT Bold', 'Arial', sans-serif;
}
label {
	font-size: 2em;
	cursor: pointer;
	margin: 5px;

}
ul.small {
	margin: 0;
	margin-top: 1em;
	margin-right: 0.5em;
}
ul.small li {
	text-align: left; 
	font-size: .5em;
}

div#userpanel, div#cc {
	font-size: 2em;
}
div#userpanel a, div#cc a, div#partners-list a {
	text-decoration: none;
	color: white;
}
	

/* --------------------- Startup screen --------------------- */

div#lang {
	position: fixed;
	font-size: 2rem;
	top: 0;
	right: 0;
}
div#partners {
	cursor: pointer;
}
div#partners i {
	transition: 0.5s ease-in-out;
}
div#partners i.rot180 {
	transform: rotate(180deg);
}
div#partners-list {
	display: inline-block;
	height: 0;
	overflow: hidden;
	transition: height 0.5s ease-in-out;
}
div#partners-list table, div#partners-list td {
	padding: 0.1em;
	font-size: 2rem;
	border: none;
	vertical-align: middle;
}
div#partners-list.show {
	height: 5rem;
	border: solid white 1px;
	box-shadow: 0 0 10px white;
}
label.line input {
	position: static;
}
div#titles, div#directors, div#difficulty {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}
label.tile {
	position: relative;
	height: 200px;
	width: 200px;
	text-align: center;
	line-height: 200px;
	border: solid transparent 5px;
}
label.tile.selected {
	background-color: green;
}
label.tile.selected img{
	opacity: 0.3;
	z-index: 0;
}
label.tile img {
	position: absolute;
	display: block;
	z-index: -1;
}
label.tile:hover span.fulltitle {
	display: inline-block;
}
label.tile:hover img {
	filter: blur(6px);
	-webkit-filter: blur(6px);
}
label.tile input {
	position: absolute;
	left: 0;
	top: 0;
}
label.tile span.fulltitle {
	display: none;
	vertical-align: middle;
	line-height: normal;
	text-shadow: 0px 0px 5px black;
}
label.tile span.counts, label.tile span.dircounts {
	position: absolute;
	line-height: normal;
	text-shadow: 0px 0px 5px black;
	right: 0;
	bottom: 0;
}
label.new {
	position: relative;
	overflow: hidden;
}
label.new::after {
	padding: 0.3em 3em;
	content: "NEW!";
	position: absolute;
	top: 20px;
	left: -90px;
	transform: rotate(-45deg);
	-webkit-transform: rotate(-45deg);
	background-color: green;
	box-shadow: 0 0 10px black;
}
div#difficulty label {
	width: 375px;
	border: solid transparent 3px;
}
div#difficulty label.selected {
	z-index: 99;
	border: solid white 3px;
	-webkit-animation-name: whitePulse;
	-webkit-animation-duration: 2s;
	-webkit-animation-iteration-count: infinite;
}
@-webkit-keyframes whitePulse {
  from { -webkit-box-shadow: 0 0 0px white; }
  50% { -webkit-box-shadow: 0 0 50px white; }
  to { -webkit-box-shadow: 0 0 0px white; }
}
img.stillgif {
	position: absolute;
}
img.stillgif:hover {
	opacity: 0;
}
select#limit {
	margin-bottom: 2em;
	transform: scale(2);
}

/* --------------------- Game screen --------------------- */

img#filmframe {
	max-width: 1000px;
}
div#buttonbox {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	margin: 10px 2%;
}
div.imgbutton, div.helpbutton {
	margin: 10px;
	height: 150px;
	border-radius: 50px;
	overflow: hidden;
	cursor: pointer;
}
div.helpbutton {
	border-radius: 50px; /* 75px; for old buttons*/
}
div#resultbox {
	font-size: 3em;
}
div#continuebox {
	margin: 1em 0;
}
div.correct {
	border: solid green 5px;
	-webkit-animation-name: greenPulse;
	-webkit-animation-duration: 1s;
	-webkit-animation-iteration-count: infinite;
}
@-webkit-keyframes greenPulse {
  from { transform: scale(1); -webkit-box-shadow: 0 0 0px green; }
  50% { transform: scale(1.2); -webkit-box-shadow: 0 0 50px green; }
  to { transform: scale(1); -webkit-box-shadow: 0 0 0px green; }
}
div.incorrect {
	border: solid red 5px;
	-webkit-box-shadow: 0 0 50px red;
}
div#score {
	font-size: 2em;
}

/* --------------------- Profile page/Leaderboards --------------------- */

.switchtxt {
  display: inline-block;
  height: 34px;
  font-size: 34px;
  margin: 5px;
  line-height:34px;
  top: -4px;
}

/* The switch - the box around the slider */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #2196F3;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

div.tableholder {
	display: inline-block;
	margin: 10px;
	vertical-align: top;
}
table {
	font-size: 2em;
	display: inline-block;
}
table, th, td {
	border: 1px solid white;
	white-space: nowrap;
}
th, td {
	padding: .2em;
}
table#usertable td:nth-child(1) {
	text-align: left;
}
table td:nth-child(2), table td:nth-child(3) {
	width: 20px;
}
.percbar {
	text-align: center;
	text-shadow: 0 0 2px black;
	display: block;
	position: relative;
	width: 100%;
}
.percfill {
	position: absolute;
	height: 100%;
	left: 0;
	z-index: -1;
}
table.ranktable {
	text-shadow: 0 0 4px #000000;
}
table.ranktable tr:nth-child(2) {
	background-color: #d4af37;
}

table.ranktable tr:nth-child(3) {
	background-color: #aaa9ad;
}

table.ranktable tr:nth-child(4) {
	background-color: #CD7F32;
}
table.ranktable a {
	color: white;
	text-decoration: none;
} 

/* --------------------- Friends/affiliates --------------------- */

div.friendbox {
	display: inline-block;
	vertical-align: top;
	width: 400px;
	padding: 1rem;
	/*border: solid white 3px; */
	border-radius: 25px;
	box-shadow: 0 0 20px white;
	margin: 2rem; 
}

button.joinbutton {
	font-family: Nunito;
	font-size: 2rem;
}


