* { margin: 0; padding: 0; border: 0; list-style: none; font-weight: normal; }
html, body {
  font-family: 'Roboto', 'Helvetica', sans-serif;
  
}

body {
	padding: 1.5em;
}

.movie-inner {
 	padding: 1em;
	display: flex;
	flex-direction: row;
}
.movie-inner > div + div {
	flex: 1;
}

.movie-sidebar {
	width: 150px;
	padding-right: 1.5em;
}
.movie-sidebar img {
	-moz-box-shadow: 0 0 4px #333538;
	-webkit-box-shadow: 0 0 4px #333538;
	box-shadow: 0 0 4px #333538;
	max-width:100%;
	height:auto;
	transition: 0.25s all;
	z-index: 1;
	position: relative;
}
.movie-sidebar img:hover {
	transform-origin: 8px 8px;
	transform: scale(1.5);
	-moz-box-shadow: 0 0 10px #636568;
	-webkit-box-shadow: 0 0 10px #636568;
	box-shadow: 0 0 10px #636568;
}

.movie-sidebar ul { margin: 1em 0; padding:0px; font-size:1em; }
.movie-sidebar li { margin-bottom: 3px; padding:0px;}
.movie-sidebar a { color:#df7606;}

.movie-box h3 { font-size: 20px; }
.movie-box h4 {
	font-size: 16px;
	color: #747474;
	font-style: oblique;
	font-weight: 600;
	margin-top: 6px;
	margin-bottom: 6px;
}

.movie-box p {
	padding-top: 0;
	font-size: 1.25em;
	line-height: 1.25em;
}


.movie-box p {
  overflow: hidden;
  position: relative; 
  max-height: 11.25em; 
  text-align: justify;
  margin-right: -1em;
  padding-right: 2em;
  
  transition: 0.25s max-height;
}
.movie-box:hover p {
	max-height: 80em;
}

/* create the ... */
.movie-box p:before {
  content: '...';
  position: absolute;
  right: 0.75em;
  bottom: 0;
}

.movie-box p:after {
  content: '';
  position: absolute;
  right: 0.75em;
  width: 1em;
  height: 1em;
  margin-top: 0.25em;
  background-color: white;
  transition: 0.25s background-color;
}

.movie-box:hover p:after {
	background-color: #F0F0F0;
}


.movie-content-meta {
	font-size: 1em;
	margin-top: 0.8em;
	display: table;
}
.movie-content-meta li {
	display: table-row;
}
.movie-content-meta li > strong,
.movie-content-meta li > strong + * {
	display: table-cell;
}

.movie-content-meta strong + ul > li:last-child:not(:first-child) > * {
	padding-bottom: 0.25em;
}


.movie-content-meta li {
	padding: 0 0 4px 0;
	line-height: 1.2em;
}
.movie-content-meta strong {
	font-weight: bold;
	display: inline-block;
	width: 6em;
}
.movie-box {
	border-radius: 8px;
	border: 1px solid #CCC;
	transition: 0.25s background-color;
}
.movie-box:hover
{
	background-color: #F0F0F0;
}

.movie-header {
	border-bottom: 1px solid #DDD;
	overflow: hidden;
	padding-left: 14px;
	transition: 0.25s background-color;
}

.movie-box.chosen > .movie-header {
	background-color: rgba(0,255,0,0.2);
}

.movie-header {
	white-space: nowrap;
}

.movie-header > h4 {
	cursor: pointer;
	line-height: 22px;
	padding: 0;
	margin: 0;
	display: inline-block;
	vertical-align: middle;
	
	white-space: nowrap;
	text-overflow: ellipsis;
	max-width: calc(100% - 2.4em);
	overflow: hidden;
}

.movie-header input[type="checkbox"] {
	width: 22px;
	height: 22px;
	padding: 0;
	margin: 6px 0.8em 6px 0;
	border: 1px solid #999;
	background-color: white;
	transition: 0.25s border-color;
    -webkit-appearance: none;
    -moz-appearance: none;
    -o-appearance:none;
    appearance: none;
	vertical-align: middle;
	cursor: pointer;
}
.movie-header input[type="checkbox"]::before {
	content: "✓";
	text-align: center;
	font-size: 21px;
	line-height: 21px;
	width: 100%;
	height: 100%;
	display: inline-block;
	font-weight: bold;
	opacity: 0;
}
.movie-header input[type="checkbox"]:not(:checked):hover::before,
.movie-header input[type="checkbox"]:not(:checked).hover::before {
	opacity: 0.25;
}
.movie-header input[type="checkbox"]:checked::before {
	opacity: 1;
}


.movie-box:hover h4 {
	color: black !important;
}
.movie-box:hover input {
	border-color: #666;
}

select {
	margin-right: 1em;
}

#movies {
	display: grid;
	grid-gap: 1em;
	margin-right: 4em;
}

#movies[data-cols="1"] {
	grid-template-columns: 1fr;
}
#movies[data-cols="2"] {
	grid-template-columns: 1fr 1fr;
}
#movies[data-cols="3"] {
	grid-template-columns: 1fr 1fr 1fr;
}



#sidebar {
	border-left: 1px solid #CCC;
	width: 4em;
	position: fixed;
	height: 100%;
	top: 0;
	right: 0;
}
#sidebar, #index {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}
#index {
	flex: 1;
}
#index > .group {
	flex: 1;
}

#sidebar > :first-child,
#sidebar > :last-child {
	padding-top: 1em;
	padding-bottom: 1em;
}
#sidebar > :first-child {
	border-bottom: 1px solid #CCC;
}
#sidebar > :last-child {
	border-top: 1px solid #CCC;
}

#sidebar *,
#sidebar * {
	color: inherit;
	font-weight: inherit;
}

#sidebar [data-link],
#sidebar [data-group] {
	cursor: pointer;
	text-align: center;
	color: #606060;
	font-weight: bold;
	
	display: flex;
	justify-content: center;
	align-items: center;	
}

#sidebar [data-link]:hover,
#sidebar [data-group]:hover {
	color: black;
	background-color: rgba(0,0,0,0.1);
}

#choices {
	width: calc(100% - 4em - 4px);
	box-sizing: border-box;
	height: 8em;
	overflow-y: scroll;
	margin-top: 1em;
	border: 1px solid #606060;
	padding: 0.25em 0.5em;
}

#choices-stats.empty {
	visibility: hidden;
}

@media print {
	body {
		padding: 0 !important;
	}
	
	#sidebar {
		display: none;
	}

	#movies {
		grid-template-columns: 1fr !important;
	}

	.movie-box {
		font-size: 0.75em !important;
		border: 0;
	}
	
	.movie-box p {
		max-height: none !important;
	}
	.movie-box p:before,
	.movie-box p:after {
		display: none !important;
	}
	
	#choices {
		display: none;
	}

}