﻿/* Default */

* {
	box-sizing: border-box;
}

header, nav, article, section, aside, footer {
	display: block;
}
 
html, body {
	background-color: #E2E2E2;
	margin: 0;
	padding: 0;
	font-family: Verdana, Arial;
	font-size: 12px;
	color: #2f2f2f;
	height: 100%;
	line-height: 20px;
}

noscript div {
	font-weight: bold;
	color: red;
	margin: 10px;
	text-align: center;
}

a {
	color: #555;
	text-decoration: none;
}

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

img {
	border: 0;
}

svg {
	vertical-align: middle;
}

input[type="text"], input[type="password"] {
	width: 100%;
}

input[type="number"] {
	width: 100px;
}

input, select {
	font-size: 12px;
}

textarea:disabled, input:disabled, select:disabled {
	background: #DEDEDE url('../images/icons/locked.png') right center no-repeat;
	color: gray;
	cursor: auto;
}

input[readonly] {
	background: #DEDEDE url('../images/icons/locked.png') no-repeat right center;
}

input[type="text"], input[type="password"], input[type="checkbox"], input[type="number"] {
	border: 1px solid #CCC;
	border-radius: 3px;
	padding: 4px;
}

select {
	color: #555;
	border: 1px solid #CCC;
	border-radius: 3px;
	-webkit-appearance: none;
	-moz-appearance: none;
	-ms-appearance: none;
	-o-appearance: none;
	appearance: none;
	padding: 6px 26px 6px 6px;
	outline: 0;
	cursor: pointer;
	background-color: #f9f9f9;
	background: url('../images/icons/down.png') right 4px center no-repeat, linear-gradient(to bottom, #FEFEFE, #F2F2F2); /* Standard, IE10 */
	background: url('../images/icons/down.png') right 4px center no-repeat, -moz-linear-gradient(top, #FEFEFE, #F2F2F2); /* FF 3.6+ */
	background: url('../images/icons/down.png') right 4px center no-repeat, -webkit-gradient(linear, 0 0, 0 100%, from(#FEFEFE), to(#F2F2F2)); /* Safari 4+, Chrome 2+ */
	background: url('../images/icons/down.png') right 4px center no-repeat, -webkit-linear-gradient(top, #FEFEFE, #F2F2F2); /* Safari 5.1+, Chrome 10+ */
	background: url('../images/icons/down.png') right 4px center no-repeat, -o-linear-gradient(top, #FEFEFE, #F2F2F2); /* Opera 11.10 */
	background-size: 20px, auto;
}

select::-ms-expand { /* IE 11 */
	display: none;
}

select#language {
	background-color: transparent;
	background: url(../images/icons/earth.png) right 4px center no-repeat;
	background-size: 20px, auto;
	padding: 4px 26px 4px 6px;
	border-color: transparent;
	color: #B8B8B8;
	margin: 11px 4px;
}

select#language option {
	background: #323A45;
}

select#language:hover {
	border-color: #666;
}

input[type="text"]:hover, input[type="password"]:hover, input[type="checkbox"]:hover, input[type="number"]:hover, select:hover {
	border: 1px solid #CCC;
	box-shadow: 0 0 1px rgba(0, 0, 0, .4);
	color: #333;
}

input[type="submit"], input[type="button"] {
	background-color: #607D8B;
	border: 1px solid #607D8B;
	color: #EAECF0;
	border-radius: 3px;
	cursor: pointer;
	min-width: 60px;
	text-align: center;
	padding: 5px 4px;
	transition: background-color 0.20s ease, border-color 0.20s ease, color 0.20s ease;
}

::-moz-focus-inner {
	padding: 0;
	border: 0;
}

input[type="submit"]:hover, input[type="button"]:hover {
	background-color: #506974;
	border-color: #506974;
	color: #FFF;
}

textarea {
	font-family: Verdana, Arial;
	font-size: 11px;
	border: 1px solid #dedede;
	border-radius: 2px;
	padding: 2px;
	width: 100%;
	min-height: 100px;
	resize: vertical;
}

textarea#cast {
	min-height: 200px;
}

textarea:hover {
	border: 1px solid #C6C6C6;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
	color: #333;
}

form {
	padding: 0;
	margin: 0;
}

h1 {
	color: #000;
	font-size: 26px;
}

h2 {
	margin: 0 0 .5em 0;
	color: #000;
	font-size: 32px;
	font-weight: normal;
}

h3 {
	color: #000;
	font-size: 18px;
	font-weight: normal;
	margin: .4em 0 .6em;
}

h4 {
	font-size: 14px;
	margin: .5em 0;
}

label {
	cursor: pointer;
}

.hide {
	display: none;
}

/* toastr */

#toast-container > div {
	opacity: .9;
}

/* jQuery validation */
 
input.error, textarea.error {
	border: 1px solid #CE0071;
}

label.error {
	color: #CE0071;
	margin-left: 2px;
	cursor: auto;
}

label.error:empty {
	display: none !important;
}

label.error svg path {
	fill: #CE0071;
}

.error {
	color: #CE0071;
}

/* Site */

#container {
	position: relative;
	height: auto;
	min-height: 100%;
}

#wrapper {
	padding: 0 0 70px;
}

header #title {
	font-family: Arial, Verdana;
	color: #B7B7B7;
	font-weight: bold;
	padding: 13px 13px 13px 25px;
	margin: 0 10px;
	font-size: 15px;
	vertical-align: middle;
	float: left;
	background: url('../images/logo.png') no-repeat left center;
}

header #menu li:hover:not(.selected) {
	background: #5F5F5F;
}

header nav {
	z-index: 2;
	top: 0;
	width: 100%;
	clear: both;
	position: fixed;
	background: #323A45;
	width: 100%;
	float: left;
}

header nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

header nav li {
	float: left;
	text-align: center;
}

header nav li span {
	vertical-align: middle;
}

header nav a {
	color: #B8B8B8;
	font-size: 13px;
	padding: 11px 15px;
	display: block;
}

header nav svg path {
	fill: #B8B8B8;
}

header nav a:hover {
	color: #FFF;
}

header nav a:hover svg path {
	fill: #FFF;
}

header nav li.selected a {
	color: #FFF;
	text-decoration: none;
}

header nav li.selected {
	background: #607D8B;
}

header nav li.selected svg path {
	fill: #FFF;
}

section {
	width: 100%;
	clear: both;
	color: #666;
	margin-bottom: 10px;
	position: relative;
	top: 0;
	padding-top: 46px;
}

section #menu {
	background-color: #F2F2F2;
	border-bottom: 1px solid #CCC;
	line-height: normal;
	display: inline-block;
	width: 100%;
	padding: 2px 0;
}

section #menu ul, #movie .icons {
	list-style: none;
	margin: 0;
	padding: 0;
}

section #menu li, #movie .icons li {
	float: left;
	margin: 14px 10px;
}

section #menu .buttons, #movie .icons {
	line-height: 0;
}

section #menu .buttons span {
	vertical-align: middle;
}

#movie .icons {
	background: #F2F2F2;
	border-radius: 30px;
	margin: 8px 0;
	padding: 2px 0;
	border: 1px solid #CCC;
	display: inline-block;
}

#movie .icons li {
	margin: 4px 10px;
}

section #menu .buttons li a, #movie .icons li a {
	outline: 0;
}

section #menu .buttons li a:hover, #movie .icons li a:hover {
	color: #3C74B3;
}

section #menu .buttons a svg path, #movie .icons a svg path {
	fill: #555;
}

section #menu .buttons a:hover svg path, #movie .icons a:hover svg path {
	fill: #3C74B3;
}

section #menu .buttons a.selected svg path {
	fill: #607D8B;
}

section .content {
	width: 100%;
	max-width: 1100px;
	clear: both;
	margin: auto;
	padding: 20px;
}

#footer {
	width: 100%;
	position: absolute;
	bottom: 0px;
	text-align: center;
	font-size: 90%;
	color: #b8b8b8;
	background: #323A45;
	padding: 10px 0;
}

#footer a {
	color: #999;
	text-decoration: none;
}

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

#statistics {
	display: inline-block;
	vertical-align: middle;
}

/* Search + languages */
 
header nav #search {
	display: inline-block;
	float: right;
	padding: 11px 6px;
}

header nav #search input {
	height: 24px;
	padding-left: 5px;
	padding-right: 20px;
	background-color: #282E37;
	border: 1px solid #666;
	color: #b8b8b8;
	width: 250px;
}

#search #inputContainer {
	position: relative;
}

#search #searchbtn {
	position: absolute;
	top: 2px;
	right: 2px;
	margin: 0;
	padding: 0;
}

.searchtext {
	font-size: 18px;
	margin: 0 0 .5em 0;
	color: #555;
}

#languages {
	float: right;
	display: inline-block;
}

#languages li {
	float: left;
}

/* Sort */
 
section #menu .sort {
	float: right;
}

section #menu .sort li {
	margin: 5px 10px;
	display: inline-block;
}

section #menu .sort label {
	display: block;
	font-size: 10px;
	font-weight: bold;
	margin-bottom: 2px;
}

section #menu .view {
    float: right;
    margin: 21px 5px 0;
}

/* Results */

#results {
	clear: both;
	text-align: center;
	margin-top: 10px;
	display: none;
}

/* List view */

#results .list {
	margin: 2px auto;
	width: 100%;
	max-width: 640px;
	text-align: left;
}

#results .list .item {
	position: relative;
	padding: 1px;
	margin: 6px 2px;
	background: #EEE;
	clear: both;
	height: 60px;
	box-shadow: 0px 0px 5px #a9a9a9;
}

#results .list .item .thumb {
	float: left;
	margin-right: 10px;
}

#results .list .item .thumb img {
	width: 39px;
	height: 58px;
}

#results .list .item .titles {
	background: #FEFEFE;
	padding-bottom: 8px;
}

#results .list .item .title {
	font-weight: bold;
}

#results .list .item .aka {
	font-size: 11px;
	line-height: 1em;
	color: #808080;
	font-style: italic;
}

#results .list .item .title, #results .list .item .aka, #results .list .item .titleinfo {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

#results .list .item:hover {
	box-shadow: 0px 0px 5px #3C74B3;
	opacity: .8;
}

#results .list .notes, #results .list .seen, #results .list .favorite, #results .list .series {
	float: right;
	padding: 2px;
}

/* Cover view */

#results .movie_box {
	width: 160px;
	margin: 6px 3px;
	background-color: #f2f2f2;
	position: relative;
	display: inline-block;
	vertical-align: top;
	cursor: pointer;
	overflow: hidden;
	box-shadow: 0px 0px 5px #a9a9a9;
	height: 318px;
	border-radius: 5px;
}

#results .movie_box.coveronly {
	height: 258px;
}

#results .icons {
	position: absolute;
	top: 24px;
	width: 100%;
	z-index: 1;
	padding: 2px;
}

#results .icons svg {
	width: 16px;
	height: 16px;
}

#results .icons svg path {
	fill: #000;
}

#results .icons div {
	float: right;
	clear: right;
	box-shadow: 0px 0px 3px #000;
	border: 1px solid #808080;
	border-radius: 20px;
	background: #FFF;
	margin: 1px;
	padding: 2px;
}

#results .icons a:hover div {
    background: #CCC;
}

#results .movie_box .format, #movie .format {
	text-align: center;
	border-bottom: 1px solid #CCC;
}

#results .movie_box:hover {
	box-shadow: 0px 0px 5px #3C74B3;
	opacity: .8;
}

#results .movie_box:hover .title {
	color: #3C74B3;
}

#results .movie_cover {
	line-height: 0;
	overflow: hidden;
	background: #FFF url('../images/loading.gif') no-repeat center center;
	border-bottom: 2px solid #CCC;
}

#results .movie_cover .format, #movie .format {
	height: 24px;
	background: #323A45 url('../images/icons/unknown.png') no-repeat center center;
}

#results .movie_cover .format img, #movie .format img {
	max-height: 24px;
}

#results .movie_cover.bd .format, #movie .format.bd	{
	background: #0095D5;
}

#results .movie_cover.dvd .format, #movie .format.dvd {
	background: #000;
}

#results .movie_cover.bd.dvd .format, #movie .format.bd.dvd {
	background: #0095D5;
	background: -webkit-linear-gradient(left, #0095D5 , #000);
	background: -o-linear-gradient(right, #0095D5, #000);
	background: -moz-linear-gradient(right, #0095D5, #000);
	background: linear-gradient(to right, #0095D5, #000);
}

#results .movie_cover > img {
	margin: auto;
	width: 100%;
	overflow: hidden;
	height: 235px;
	vertical-align: bottom;
}

#results .movie_cover .nocover, #movie .photo .nocover {
	width: 100%;
	height: 235px;
	overflow: hidden;
	background: #333 url('../images/nocover.png') no-repeat center center;
	vertical-align: bottom;
}

#results .movie_box .title {
	padding: 2px 0;
	text-align: center;
	line-height: 3em;
	background: #FEFEFE;
}

#results .title span {
	display: inline-block;
	vertical-align: middle;
	line-height: 1.5em;
	max-height: 3em;
	width: 156px;
}

#results .movie_box .titleinfo {
	padding: 0;
	text-align: center;
	line-height: 1.4em;
	background: #EEE;
}

#results .movie_box .titleinfo span, #results .list .titleinfo span {
	vertical-align: bottom;
}

#results .movie_box .titlehover {
    visibility: hidden;
    height: 0;
    width: 0;
    opacity: 0;
    transition: visibility 0s, opacity 0.3s linear;
	position: absolute;
	bottom: 0;
}

#results .movie_box:hover .titlehover {
    visibility: visible;
    height: auto;
    width: 100%;
    opacity: 1;
}

#results .pager {
	clear: both;
	padding-top: 10px;
	text-align: center;
	line-height: 30px;
}

#results .pager a, #results .pager .current {
	border-radius: 3px;
	border: 1px solid #CCC;
	background-color: #FFF;
	text-align: center;
	padding-top: 4px;
	padding-bottom: 4px;
	padding-left: 7px;
	padding-right: 7px;
}

#results .pager .current {
	background-color: #0169ac;
	color: #FFF;
	font-weight: bold;
}

#backToTop {
	width: 50px;
	height: 50px;
	border-radius: 30px;
	position: fixed;
	right: 20px;
	bottom: 20px;
	display: none;
	outline: 0;
	z-index: 10;
	background: #607D8B url('../images/icons/up.png') no-repeat center center;
	opacity: .5;
	vertical-align: middle;
	text-align: center;
}

#backToTop:hover {
	opacity: 1;
	-webkit-transition: opacity .3s 0s, visibility 0s 0s;
	-moz-transition: opacity .3s 0s, visibility 0s 0s;
	transition: opacity .3s 0s, visibility 0s 0s;
}

/* Login page */

#login {
	max-width: 350px;
	margin: 100px auto 100px;
	padding: 20px 40px;
	border: 1px solid #CCC;
	background: #F2F2F2;
	border-radius: 5px;
}

#login input:not([type='checkbox']) {
	display: block;
}

#login input {
	vertical-align: middle;
}

#login div {
	margin: 6px 0;
}

#login #submit {
	margin-top: 14px;
}

/* IMDb search for movies */

#imdbsearchform {
	margin-bottom: 20px;
}

#imdbsearch {
	max-width: 400px;
}

#imdbresults .result {
	margin: 0;
	padding: 4px;
}

#imdbresults .result:nth-child(even) {
	background: #E2E2E2;
}

#imdbresults .result:nth-child(odd) {
	background: #FFF;
}

#imdbresults .result a.imdbtitle {
	font-weight: bold;
}

#imdbresults .result svg, #imdbresults .result span {
	vertical-align: middle;
}

#imdbresults .result .known {
	text-decoration: line-through;
	color: #CCC;
}

#imdbresults .result .known a {
	color: #CCC;
}

#imdbresults .result .known svg path {
	fill: #CCC;
}

/* Users */

#users .user {
	padding: 4px;
	margin: 5px;
	border: 1px solid #CCC;
}

#users .user a:hover {
	color: #555;
}

#users .user:hover {
	border-color: #999;
	background: #F9F9F9;
}

#users .remove {
	float: right;
	margin: 8px;
}

#users .remove:hover svg path {
	fill: #CE0071;
}

/* Movie information */

#movie {
	clear: both;
}

#movie h2 {
	margin: .2em 0;
	line-height: 1.10em;
}

#movie h3 {
	margin: .7em 0 .7em 0;
}

#movie .header {
	font-weight: bold;
}

#movie .photocontainer, #addmovie .photocontainer {
	float: left;
	width: 182px;
	text-align: center;
}

#movie .photo, #addmovie .photo {
	line-height: 0;
	box-shadow: 0px 0px 5px #000;
	position: relative;
}

#movie .mpaa-image {
	position: absolute;
	bottom: 4px;
	right: 4px;
	overflow: hidden;
	line-height: 0;
}

#movie .mpaa-image img {
	max-height: 32px;
	max-width: 70px;
}

#movie .photo img, #addmovie .photo img {
	max-width: 182px;
}

#movie .maininfo, #addmovie .maininfo.cover {
	margin-left: 200px;
}

#movie .aka {
	color: gray;
	font-size: 14px;
}

#movie .movieinfo {
	margin: 8px 0;
	font-family: "Open Sans", Verdana, Arial, sans-serif;
	font-size: 24px;
	line-height: 1.3em;
}

#movie .movieinfo .imdblogo {
    width: 55px;
    height: 27px;
	margin: -4px 2px 0 0;
}

#movie .genre {
	margin: 5px 0 10px;
	line-height: 30px;
}

#movie .genre a {
	margin: 0 3px 3px 0;
	padding: 5px;
	color: #FFF;
	text-shadow: 0 1px 0 rgba(0, 51, 83, 0.3);
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	border-radius: 3px;
	background: #607D8B;
	box-shadow: 1px 1px 2px #888888;
}

#movie .genre a:hover {
	color: #FFF;
	background-color: #999;
	background-image: none;
}

.gray {
	color: #CCC;
}

.box {
	background: #FFF;
	padding: 10px;
	margin-bottom: 10px;
	max-width: 900px;
	border-bottom: 0 none;
	box-shadow: 0 1px 5px rgba(0, 0, 0, 0.46);
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	border-radius: 3px;
}

#movie .cast {
	-webkit-columns: 300px 2;
	-moz-columns: 300px 2;
	columns: 300px 2;
}

#movie .cast ul {
	margin: 0px;
	padding: 0px;
	list-style-type: none;
}

#movie .footer {
	margin-top: 10px;
	font-style: italic;
	font-size: 11px;
}

#movie a {
	color: #3C74B3;
}

#movie a:hover {
	color: #555;
}

#movie a.imdbicon, #imdbresults a.imdbicon {
	color: #E8E8E8;
	font-size: smaller;
    background: #607d8b;
    padding: 1px 2px;
	border-radius: 4px;
}

#movie a.imdbicon:hover, #imdbresults a.imdbicon:hover {
	background-color: #999;
}

/* Add/edit movie */

#addmovie .swaptitles {
	position: absolute;
	right: 2px;
	top: 2px;
}

.box label:not(.inline):not(.error) {
	width: 150px;
	text-align: right;
	padding-right: 10px;
	vertical-align: top;
}

.row {
	display: table;
	width: 100%;
	padding: 2px;
}

.row > label:not(.inline):not(.error), .row > input {
	display: table-cell;
}

.row select {
	padding: 4px 26px 4px 6px;
}

/* Message */
 
.message {
	position: fixed;
	top: 0px;
	left: 0px;
	right: 0px;
	bottom: 0px;
	background-color: black;
	opacity: 0.8;
	color: #FFF;
	z-index: 99;
}

.message .text {
	margin: 0 auto;
	margin-top: 300px;
	text-align: center;
	max-width: 500px;
}

/* Automatic update */
 
.autoupdate {
	position: fixed;
	top: 0px;
	left: 0px;
	right: 0px;
	bottom: 0px;
	background-color: black;
	opacity: 0.8;
	color: #FFF;
	z-index: 99;
}

.autoupdate .text {
	margin: 0 auto;
	margin-top: 300px;
	text-align: center;
	width: 300px;
}

.autoupdate .text a {
	color: #FFF;
}

.autoupdate .text a:hover {
	color: #555;
}

ul#menubutton {
	display: none;
}

/* Loader (spinner) */

.loader-overlay {
	background: rgba(0,0,0,.5);
	width: 100%;
	height: 100%;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 999;
	display: none;
}

.loader {
	position: absolute;
	left: 50%;
	top: 50%;
	height: 70px;
	width: 70px;
	margin: -35px 0 0 -35px;
	-webkit-animation: rotation .6s infinite linear;
	-moz-animation: rotation .6s infinite linear;
	-o-animation: rotation .6s infinite linear;
	animation: rotation .6s infinite linear;
	border-left: 10px solid #CCC;
	border-right: 10px solid #CCC;
	border-bottom: 10px solid #CCC;
	border-top: 10px solid #3C74B3;
	border-radius: 100%;
	z-index: 1000;
}

@-webkit-keyframes rotation {
  from {
    -webkit-transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(359deg);
  }
}

@-moz-keyframes rotation {
  from {
    -moz-transform: rotate(0deg);
  }
  to {
    -moz-transform: rotate(359deg);
  }
}

@-o-keyframes rotation {
  from {
    -o-transform: rotate(0deg);
  }
  to {
    -o-transform: rotate(359deg);
  }
}

@keyframes rotation {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(359deg);
  }
}

/* Mobile */

@media (max-width: 700px) {
	header #title {
		float: none;
	}
	header #menu li {
		display: block;
		width: 50%;
	}
	#search {
		float: none;
		width: 100%;
	}
	#search li {
		display: block;
		width: 100%;
	}
	#search input {
		width: 100%;
	}
	input[type="text"], input[type="password"], input[type="search"] {
		max-width: none;
		width: 100% !important;
	}
	section #menu {
		padding: 4px 0;
	}
	section #menu .sort {
		float: none;
		clear: both;
	}
	section #menu .sort li {
		width: 50%;
		float: left;
		margin: 0;
		padding: 2px;
	}
	section #menu .sort select {
		width: 100%;
	}
	section #menu .view {
		margin: 14px 10px;
	}
}

@media screen and (max-width: 640px) {
	#movie .photocontainer, #addmovie .photocontainer {
		width: 150px;
		float: none;
		margin: 0 auto 10px;
		clear: both;
	}
	#movie .photo img, #addmovie .photo img {
		max-width: 150px;
	}
	#movie .maininfo, #addmovie .maininfo.cover {
		margin-left: 0;
	}
	#addmovie .phototitle {
		padding-top: 10px;
	}
	.box label:not(.inline):not(.error) {
		width: auto;
		display: block;
		text-align: left;
	}
	 section #menu .buttons .icons {
		float: left;
	}
}

@media only screen and (max-width: 480px) {
	section .content {
		margin: 0;
		padding: 10px 5px;
	}
	
	nav ul#menu {
		display: none;
		height: auto;
	}
	nav #menubutton {
		display: inline-block;
		float: right;
	}
	.buttons span {
		display: none;
	}
	header #menu li {
		width: 100%;
	}
	#login {
		margin-top: 20px;
		margin-bottom: 20px;
	}
	.desktop_only {
		display: none;
	}
}

@media (max-width: 360px) {
	section #menu .sort {
		padding: 0 4px;
	}
	section #menu .sort li {
		width: 100%;
		margin: 0;
	}
}