/*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html,
button,
input,
select,
textarea {
    color: #222;
}

html {
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between images, videos, audio and canvas and the bottom of
 * their containers: h5bp.com/i/440
 */

audio,
canvas,
img,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browse Happy prompt
   ========================================================================== */

.browsehappy {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */
body {
	font-family: "Courier New", monospace;
	color: #808080;
	background: #fff;
}
input, 
textarea {
	font-family: "Courier New", monospace;
}
a:link, 
a:visited, 
a:hover, 
a:focus, 
a:active {
	color: #808080;
	text-decoration: underline;
}
a:hover, 
a:focus, 
a:active {
	color: #333;
}
#wrapper {
	padding: 10px;
}
#app {
	margin: 0 auto;
	width: 790px;
}
#app-header {
	margin: 0 0 60px;
	width: 100%;
	height: 135px;
	overflow: visible;
	position: relative;
	top: 0;
	left: 0;
	z-index: 1;
	
	background: #afafaf url(../img/header.png) no-repeat 0 0;
	/*
	background: #afafaf;
	background: -moz-linear-gradient(left, #afafaf 0%, #eeeeee 100%);
	background: -webkit-gradient(linear, left top, right top, color-stop(0%,#afafaf), color-stop(100%,#eeeeee));
	background: -webkit-linear-gradient(left, #afafaf 0%,#eeeeee 100%);
	background: -o-linear-gradient(left, #afafaf 0%,#eeeeee 100%);
	background: -ms-linear-gradient(left, #afafaf 0%,#eeeeee 100%);
	background: linear-gradient(to right, #afafaf 0%,#eeeeee 100%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#afafaf', endColorstr='#eeeeee',GradientType=1 );
	*/
}
#home #app-header {
	margin-bottom: 0;
	height: 1120px;
	background: #fff url(../img/home-1.jpg) no-repeat 0 0;
}
#app-title {
	margin: 0;
	padding: 0 100px 41px 0;
	height: 56px;
	position: absolute;
	top: 40px;
	left: 30px;
	z-index: 1;
	background: transparent url(../img/title-bg.png) no-repeat 100% 100%;
}
#home #app-title {
	top: 30px;
	height: auto;
	background: transparent none;
}
#app-description {
	width: 465px;
	position: absolute;
	top: 30px;
	left: 315px;
	z-index: 1;
	text-align: center;
	font-size: 18px;
	line-height: 21px;
	color: #4D4D4D;
	text-transform: uppercase;
}
#app-description p {
	margin: 0 0 10px;
}
#app-description p + {
	margin: 0;
}
#app-description a:link, 
#app-description a:visited, 
#app-description a:hover, 
#app-description a:focus, 
#app-description a:active {
	color: #4D4D4D;
	text-decoration: underline;
}
#app-description a:hover, 
#app-description a:focus, 
#app-description a:active {
	color: #111;
}
#nav {
	float: right;
}
#home #nav {
	float: none;
	position: absolute;
	bottom: 70px;
	left: 0;
	z-index: 1;
}
.trigger {
	display: none;
}
#nav ul {
	margin: 0;
	padding: 0;
	overflow: visible;
	list-style: none;
	font-size: 16px;
	line-height: 16px;
}
#home #nav ul {
	width: 284px;
	font-size: 24px;
	line-height: 21px;
	font-weight: bold;
}
#home #nav ul span {
	display: block;
	font-size: 16px;
	font-weight: normal;
	text-transform: none;
}
#nav li {
	margin: 0;
	padding: 0;
	width: 128px;
	float: left;
	text-align: center;
	text-transform: uppercase;
}
#home #nav li {
	margin: 0 0 10px;
	float: none;
	width: auto;
	height: 50px;
	background: rgba(255,255,255, 0.75);
	overflow: visible;
	position: relative;
	top: 0;
	left: 0;
	z-index: 1;
	text-transform: lowercase;
}
#nav a:link, 
#nav a:visited, 
#nav a:hover, 
#nav a:focus, 
#nav a:active {
	padding: 60px 10px 0;
	display: block;
	height: 75px;
	color: #4D4D4D;
	text-decoration: none;
}
#nav a:hover, 
#nav a:focus, 
#nav a:active {
	color: #4D4D4D;
	background: rgba(255,255,255, 0.75);
}
#nav .current a:link, 
#nav .current a:visited, 
#nav .current a:hover, 
#nav .current a:focus, 
#nav .current a:active {
	color: #4D4D4D;
	background: rgba(255,255,255, 0.75) url(../img/clip.png) no-repeat 50% 0;
}
#home #nav a:link, 
#home #nav a:visited, 
#home #nav a:hover, 
#home #nav a:focus, 
#home #nav a:active {
	padding: 20px 70px 0;
	display: block;
	height: 36px;
	color: #4D4D4D;
	background: transparent url(../img/clip.png) no-repeat 20px 0;
	text-decoration: none;
	position: absolute;
	top: -6px;
	left: 0;
	z-index: 1;
}
#home #nav #mylog-link a:link, 
#home #nav #mylog-link a:visited, 
#home #nav #mylog-link a:hover, 
#home #nav #mylog-link a:focus, 
#home #nav #mylog-link a:active {
	padding: 12px 70px 0;
}
#nav .star {
	display: block;
	margin: 0 auto;
}
#home-dec-1 {
	position: absolute;
	bottom: 0;
	right: 5px;
	z-index: 2;
}
#app-footer {
	padding: 10px 0;
	width: 100%;
	overflow: hidden;
	font-family: Arial, sans-serif;
	font-size: 11px;
	line-height: 11px;
	color: #666;
}
#copyright {
	float: left;
	font-size: 11px;
}
#app-footer nav {
	float: right;
}
#app-footer ul {
	margin: 0;
	padding: 0;
	overflow: visible;
	list-style: none;	
}
#app-footer li {
	margin: 0 0 0 10px;
	padding: 0 0 0 10px;
	border-left: 1px solid #666;
	float: left;
}
#app-footer li:first-child {
	border-left: 0;
}
#app-footer a:link, 
#app-footer a:visited, 
#app-footer a:hover, 
#app-footer a:focus, 
#app-footer a:active {
	color: #666;
	text-decoration: none;
}
#app-footer a:hover, 
#app-footer a:focus, 
#app-footer a:active {
	color: #333;
}

#content {
	margin: 0 0 50px;
	width: 100%;
	overflow: visible;
}
.generic {
	margin: 0 auto;
	width: 600px;
	text-align: center;
	font-size: 16px;
	line-height: 21px;
}
.prizes {
	margin: 0 auto;
	width: 100%;
	text-align: center;
	font-size: 16px;
	line-height: 21px;
}

.generic .title, 
.prizes .title, 
.logs .title, 
.log-view .title, 
.mylogs .title {
	margin: 0;
	padding: 0;
	font-size: 36px;
	line-height: 30px;
	font-weight: normal;
	color: #FF6697;
	text-transform: uppercase;
	text-align: center;
}

.prizes .column {
	margin: 0 0 20px 10px;
	width: 365px;
	float: left;
}
.prizes .column + .column {
	margin: 0 10px 20px 0;
	float: right;
}
.prizes .column + .column + .column {
	margin: 0 auto 10px;
	clear: both;
	width: 524px;
	float: none;
}
.caption {
	padding: 10px;
	background: #EEE;
	font-size: 13px;
	line-height: 15px;
	text-align: left;
}
.caption p {
	margin: 0 0 10px;
}
.caption p + p {
	margin: 0;
}

.tabs {
	margin: 0 0 30px;
	border-bottom: 2px solid #C8C8C8;
	width: 100%;
	overflow: hidden;
}
.tabs ul {
	margin: 0;
	padding: 0;
	width: 100%;
	overflow: hidden;
	list-style: none;
}
.tabs li {
	margin: 0 0 0 5px;
	padding: 0;
	float: left;
}
.tabs li:first-child {
	margin-left: 0;
}
.tabs a:link, 
.tabs a:visited, 
.tabs a:hover, 
.tabs a:focus, 
.tabs a:active {
	display: block;
	padding: 5px 20px;
	border: 1px solid #C8C8C8;
	border-bottom: 0;
	color: #FF6697;
	background: #EBEFF1;
	text-transform: lowercase;
	font-size: 24px;
	line-height: 30px;
	text-align: center;
	text-decoration: none;
	
	-webkit-border-radius: 5px 5px 0 0;
	border-radius: 5px 5px 0 0;
}
.tabs a:hover, 
.tabs a:focus, 
.tabs a:active {
	background: #FAEFF1;
}
.tabs .current a:link, 
.tabs .current a:visited, 
.tabs .current a:hover, 
.tabs .current a:focus, 
.tabs .current a:active {
	background: #FAEFF1;
}
/* Logs */
.logs .title, 
.logs .title {
	margin-bottom: 20px;
}
.log {
	width: 252px;
	height: 143px;
	margin: 0 0 30px 20px;
	padding: 0 0 0 133px;
	border-bottom: 1px solid #C8C8C8;
	float: left;
	position: relative;
	top: 0;
	left: 0;
	z-index: 1;
	overflow: visible;
}
.log:nth-of-type(2n+1) {
	margin-left: 0;
}
.author {
	margin: 0 0 10px;
	padding: 0 0 0 80px;
	height: 101px;
	position: relative;
	top: 17px;
	left: 0;
	z-index: 1;
	overflow: visible;
}
.author-img {
	padding: 4px;
	border: 1px solid #C8C8C8;
	width: 61px;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
	
	-webkit-border-radius: 2px 2px 2px 2px;
	border-radius: 2px 2px 2px 2px;
}
.author-img img {
	max-width: 100%;
	height: auto;
}
.author-name {
	margin: 0;
	position: absolute;
	bottom: 30px;
	left: 80px;
	z-index: 1;
	font-size: 16px;
	line-height: 18px;
	text-align: left;
	font-style: italic;
}

.log h1 {
	margin: 0 0 5px;
	padding: 0;
	position: absolute;
	bottom: 0;
	left: 133px;
	z-index: 1;
	font-size: 16px;
	line-height: 18px;
	font-weight: normal;
	text-align: left;
}
.log h1 a:link, 
.log h1 a:visited, 
.log h1 a:hover, 
.log h1 a:focus, 
.log h1 a:active {
	color: #808080;
	text-decoration: none;
}
.log h1 a:hover, 
.log h1 a:focus, 
.log h1 a:active {
	color: #333;
}
.log-thumb {
	width: 133px;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
	overflow: visible;
}
.pagination ul {
	margin: 0 auto;
	padding: 0;
	width: auto;
	list-style: none;
	text-align: center;
}
.pagination li {
	margin: 0;
	padding: 0 2px;
	display: inline-block;
}

.logs h2 {
	margin: 0;
	padding: 4px 0 0;
	color: #FF6697;
	font-size: 30px;
	line-height: 24px;
	font-weight: normal;
	text-transform: uppercase;
}
#viewer {
	padding: 45px 30px 0 0;
	width: 800px;
	height: 576px;
	background: transparent url(../img/viewer.png) no-repeat 0 0;
}
#viewer .image {
	margin-bottom: 20px;
}
.tools {
	text-align: center;
}
.tools a:link, 
.tools a:visited, 
.tools a:hover, 
.tools a:focus, 
.tools a:active {
	display: inline-block;
	padding: 5px 20px;
	border: 1px solid #C8C8C8;
	color: #FF6697;
	background: #EBEFF1;
	text-transform: uppercase;
	font-size: 24px;
	line-height: 30px;
	text-align: center;
	text-decoration: none;
	
	-webkit-border-radius: 24px 24px 24px 24px;
	border-radius: 24px 24px 24px 24px;
}
.tools a:hover, 
.tools a:focus, 
.tools a:active {
	background: #FAEFF1;
}

.buttons a:link, 
.buttons a:visited, 
.buttons a:hover, 
.buttons a:focus, 
.buttons a:active {
	display: inline-block;
	padding: 5px 20px;
	border: 1px solid #C8C8C8;
	color: #FF6697;
	background: #EBEFF1;
	text-transform: uppercase;
	font-size: 24px;
	line-height: 30px;
	text-align: center;
	text-decoration: none;
	
	-webkit-border-radius: 24px 24px 24px 24px;
	border-radius: 24px 24px 24px 24px;
}
.buttons a:hover, 
.buttons a:focus, 
.buttons a:active {
	background: #FAEFF1;
}

.log .actions {
	text-align: center;
}
.log .actions {
	margin: 0;
	padding: 0;
	list-style: none;
}
.log .actions li {
	margin: 0 0 5px;
	padding: 0;
}
.actions a:link, 
.actions a:visited, 
.actions a:hover, 
.actions a:focus, 
.actions a:active {
	display: inline-block;
	padding: 5px 10px;
	border: 1px solid #C8C8C8;
	color: #FF6697;
	background: #EBEFF1;
	text-transform: uppercase;
	font-size: 12px;
	line-height: 16px;
	font-weight: bold;
	text-align: center;
	text-decoration: none;
	
	-webkit-border-radius: 16px 16px 16px 16px;
	border-radius: 16px 16px 16px 16px;
}
.actions a:hover, 
.actions a:focus, 
.actions a:active {
	background: #FAEFF1;
}

.mylogs {
	margin: 0 0 30px;
	overflow: hidden;
}
.mylogs .log h1 {
	position: static;
}

label {
	cursor: pointer;
}
.section-title {
	margin: 0 0 20px;
	padding: 0;
	border-bottom: 1px solid #C8C8C8;
	text-transform: uppercase;
	font-size: 21px;
	line-height: 21px;
	font-weight: normal;
	text-align: center;
}
.section-title span {
	margin: 0 auto;
	padding: 0 5px;
	display: inline-block;
	background: #fff;
	position: relative;
	top: 1px;
	left: 0;
	z-index: 1;
}
.views {
	margin: 0 auto 30px;
	padding: 0;
	width: auto;
	text-align: center;
}
.views li {
	margin: 0;
	padding: 0;
	display: inline-block;
}
.views label {
	display: block;
}
.cover-img {
	text-align: center;
}
.buttons {
	margin: 0;
	padding: 40px 0 0;
	text-align: center;
}
.full-width {
	width: 778px;
}
input[type="text"], 
textarea {
	padding: 5px;
	border: 1px solid #C8C8C8;
}
textarea {
	height: 200px;
}
.buttons input {
	display: inline-block;
	padding: 5px 20px;
	border: 1px solid #C8C8C8;
	color: #FF6697;
	background: #EBEFF1;
	text-transform: uppercase;
	font-size: 24px;
	line-height: 30px;
	text-align: center;
	text-decoration: none;
	
	-webkit-border-radius: 24px 24px 24px 24px;
	border-radius: 24px 24px 24px 24px;
}
fieldset p {
	margin: 0 0 30px;
}
.teamlist {
	margin: 0;
	padding: 0;
	list-style: none;
}
.teamlist li {
	margin: 0 0 5px;
	padding: 0;
}
.publish-status {
	text-align: center;
}

.pagelist {
	margin: 0;
	padding: 0;
	width: 100%;
	overflow: hidden;
	list-style: none;
}
.pagelist li {
	margin: 0 0 20px 20px;
	padding: 0;
	width: 180px;
	float: left;
}
.pagelist li:nth-of-type(4n+1) {
	margin-left: 0;
}
.pagelist .actions {
	text-align: center;
}
.pagelist .page-item {
	margin: 0 0 10px;
	padding: 5px;
	height: 320px;
	background: #C8C8C8;
}
.pagelist .title {
	margin: 0 0 5px;
	font-size: 12px;
	line-height: 12px;
	font-weight: normal;
	text-align: left;
}
.pagelist p {
	margin: 0 0 5px;
	font-size: 12px;
	line-height: 12px;
}
.pagelist .image {
	margin: 0 0 5px;
}
.pagelist .tpl-2 .image {
	margin: 0 0 30px 5px;
	width: 80px;
}
.pagelist .tpl-2 .clearfix + .image {
	margin: 0 5px 0 0;
}
.page-item {
	width: 100%;
	overflow: hidden;
}
.page-item .image {
	border: 5px solid #fff;
}
.image img {
	max-width: 100%;
	height: auto;
}
.tpl-2 .image {
	float: right;
}
.tpl-2 .clearfix + .image {
	float: left;
}

.view-2 {
	width: 385px;
	float: left;
}
.view-2 + .view-2 {
	margin-left: 20px;
}
.view-2 .full-width {
	width: 373px;
}

.notes {
	text-align: center;
}

.prize-title {
	font-size: 21px;
	line-height: 24px;
	font-weight: normal;
}
.prizes h3 {
	font-size: 24px;
	line-height: 26px;
	font-weight: normal;
}
.prizes h3 b {
	font-weight: bold;
	text-transform: uppercase;
	display: block;
}
.sep {
	padding-top: 40px;
	background: transparent url(../img/separator.png) no-repeat 50% 0;
}


#cover {
	width: 100%;
	height: 576px;
	position: relative;
	top: 0;
	left: 0;
	z-index: 1;
}
.cover-1 {
	background: transparent url(../img/cover-1.png) no-repeat 0 0;
}
.cover-2 {
	background: transparent url(../img/cover-2.png) no-repeat 0 0;
}
.cover-3 {
	background: transparent url(../img/cover-3.png) no-repeat 0 0;
}
.cover-4 {
	background: transparent url(../img/cover-4.png) no-repeat 0 0;
}
#cover .coverImg {
	position: absolute;
	top: 327px;
	left: 242px;
	z-index: 1;
}
#cover .clip {
	position: absolute;
	bottom: 30px;
	left: 50%;
	z-index: 2;
}
.author .edit_btn:link, 
.author .edit_btn:visited, 
.author .edit_btn:hover, 
.author .edit_btn:focus, 
.author .edit_btn:active {
	display: inline-block;
	padding: 5px 10px;
	border: 1px solid #C8C8C8;
	color: #FF6697;
	background: #EBEFF1;
	text-transform: uppercase;
	font-size: 12px;
	font-style: normal;
	line-height: 16px;
	font-weight: bold;
	text-align: center;
	text-decoration: none;
	
	-webkit-border-radius: 16px 16px 16px 16px;
	border-radius: 16px 16px 16px 16px;
}
.friendslogs {
	margin: 0;
	padding: 0;
	width: 100%;
	overflow: hidden;
	list-style: none;
}
.friendslogs li {
	margin: 0 0 20px;
	padding: 0;
	width: 50%;
	float: left;
}
.myfriends {
	margin: 50px 0 10px;
	border-bottom: 2px solid #C8C8C8;
	width: 100%;
	overflow: hidden;
}
.myfriends span {
	display: inline-block;
	width: auto;
	padding: 5px 20px;
	border: 1px solid #C8C8C8;
	border-bottom: 0;
	color: #FF6697;
	background: #EBEFF1;
	background: #FAEFF1;
	text-transform: uppercase;
	font-size: 24px;
	font-weight: normal;
	line-height: 30px;
	text-align: left;
	text-decoration: none;
	
	-webkit-border-radius: 5px 5px 0 0;
	border-radius: 5px 5px 0 0;
}


/* Basic sample */

.flipbook-viewport{
	overflow:hidden;
	width:100%;
	height:100%;
}

.flipbook-viewport .container{
	position:absolute;
	top:50%;
	left:50%;
	margin:auto;
}

.flipbook-viewport .flipbook{
	width:922px;
	height:600px;
	left:-461px;
	top:-300px;
	
	width: 720px;
	height: 530px;
	top: -125px;
	left: -360px;
}

.flipbook-viewport .page{
	width:461px;
	height:600px;
	background-color:white;
	background-repeat:no-repeat;
	background-size:100% 100%;
}

.flipbook .page{
	-webkit-box-shadow:0 0 20px rgba(0,0,0,0.2);
	-moz-box-shadow:0 0 20px rgba(0,0,0,0.2);
	-ms-box-shadow:0 0 20px rgba(0,0,0,0.2);
	-o-box-shadow:0 0 20px rgba(0,0,0,0.2);
	box-shadow:0 0 20px rgba(0,0,0,0.2);
}

.flipbook-viewport .page img{
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	margin:0;
}

.flipbook-viewport .shadow{
	-webkit-transition: -webkit-box-shadow 0.5s;
	-moz-transition: -moz-box-shadow 0.5s;
	-o-transition: -webkit-box-shadow 0.5s;
	-ms-transition: -ms-box-shadow 0.5s;

	-webkit-box-shadow:0 0 20px #ccc;
	-moz-box-shadow:0 0 20px #ccc;
	-o-box-shadow:0 0 20px #ccc;
	-ms-box-shadow:0 0 20px #ccc;
	box-shadow:0 0 20px #ccc;
}


/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screenreaders, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links for images, or javascript/internal links
     */

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
