/*
 * HTML5 Boilerplate
 *
 * 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;
}

body {
    font: 13px/21px Verdana, Geneva, Arial, Helvetica, sans-serif;
    color: #333333;
    /* text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.4);*/
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection declarations 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 and the bottom of their containers: h5bp.com/i/440
 */

img {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

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

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

textarea {
    resize: vertical;
}

/* ==========================================================================
   Chrome Frame prompt
   ========================================================================== */

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

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

html {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    background-image: url(../img/bg.jpg);
    height: 100%;
}

h1 {
    font-size: 17px;
    line-height: 24px;
    color: black;
}

h2 {
    font-size: 14px;
    line-height: 22px;
    color: white;
    font-weight: normal;
    text-transform: uppercase;
    margin: 15px 0;
}
/*
div.background {
    position: absolute;
    overflow: hidden;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

div.background img {
    display: block;
}

div.background.wide img {
    width: 100%;
}

div.background.high img {
    height: 100%;
}
*/

div#container1 {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 750px;
}

div#container2 {
    position: relative;
    width: 100%;
    border-top: 1px solid rgba(188, 188, 188, 0.6);
    /* background-image: url(../img/containerbg.png); */
	background-color: #E5E5E5;
    margin-bottom: -10px;
    padding-bottom: 10px;
    overflow: hidden;
}

div.main {
    position: absolute;
    display: block;
    width: 960px;
    height: 700px;
    margin: -350px -480px;
    top: 50%;
    left: 50%;
}

div.info {
    position: relative;
    display: block;
    width: 900px;
    padding: 5px 15px 30px 15px;
    margin: 10px -460px;
    left: 50%;
}

div.text {
    width: 550px;
    display: inline-block;
    vertical-align: top;
    margin-right: 15px;
}

div.account {
    width: 290px;
    display: inline-block;
    vertical-align: top;
    /* background-image: url(../img/accountbg.png); */
	background-color: #554E52;
    margin-top: -15px;
    padding: 15px 15px 12px 15px;
    min-height: 200px;
    border: 1px solid #49341f;
    border-top: 0px;
    border-bottom-right-radius: 8px;
    border-bottom-left-radius: 8px;
}

div.account h1,
div.account p,
div.account a {color: white;}

div.account img {
    margin: 10px -1px;
}

div.main > a {
    position: absolute;
    display: block;
    width: 119px;
    height: 111px;
    opacity: 0.7;
    left: 784px;
    top: 194px;
    background-image: url(../img/button.png);
    -moz-transition: all 0.2s linear;
    -webkit-transition: all 0.2s linear;
    -o-transition: all 0.2s linear;
    transition: all 0.2s linear;
}

div.main > a:hover {
    opacity: 1;
}

div.amount {
    position: absolute;
    display: block;
    width: 700px;
    top: 604px;
    left: 213px;
    color: #18203c;
    font: 14px/20px "Comic Sans MS", Arial, Helvetica, sans-serif;
    text-shadow: none;
}

div.stars {
    position: absolute;
    width: 701px;
    height: 401px;
    background-color: rgba(255, 255, 0, 0);
    top: 123px;
    left: 150px;
    overflow: hidden;
}

div.lights {
    position: absolute;
    display: block;
    width: 201px;
    height: 301px;
    top: 180px;
    left: 525px;
}

div.stars > div, div.lights > div {
    position: absolute;
    width: 31px;
    height: 31px;
    top: -100px;
}

div.grid {
    background-image: url(../img/grid.png);
}

div.grid > div {
    background-color: rgba(255, 255, 0, 0.1);
}

div.progress {
    position: absolute;
    display: block;
    width: 0px;
    height: 40px;
    top: 581px;
    left: 320px;
    background-image: url('../img/progress.png');
}

iframe {
    border: 6px solid rgba(255, 255, 255, 0.8) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

div#star0 { top: 160px; left: 300px; background-image: url('../img/star1.png'); }
div#star1 { top: 10px; left: 10px; background-image: url('../img/star1.png'); }
div#star2 { top: 270px; left: 650px; background-image: url('../img/star3.png'); }
div#star3 { top: 190px; left: 20px; background-image: url('../img/star2.png'); }
div#star4 { top: 50px; left: 540px; background-image: url('../img/star2.png'); }
div#star5 { top: 230px; left: 230px; background-image: url('../img/star1.png'); }
div#star6 { top: 295px; left: 300px; background-image: url('../img/star1.png'); }
div#star7 { top: 40px; left: 200px; background-image: url('../img/star4.png'); }
div#star8 { top: 270px; left: 330px; background-image: url('../img/star2.png'); }
div#star9 { top: 70px; left: 410px; background-image: url('../img/star1.png'); }
div#star10 { top: 280px; left: 50px; background-image: url('../img/star2.png'); }
div#star11 { top: 200px; left: 670px; background-image: url('../img/star2.png'); }
div#star12 { top: 180px; left: 150px; background-image: url('../img/star1.png'); }
div#star13 { top: 140px; left: 400px; background-image: url('../img/star2.png'); }
div#star14 { top: 150px; left: 290px; background-image: url('../img/star1.png'); }
div#star15 { top: 50px; left: 350px; background-image: url('../img/star4.png'); }
div#star16 { top: 120px; left: 30px; background-image: url('../img/star2.png'); }
div#star17 { top: 80px; left: 560px; background-image: url('../img/star1.png'); }
div#star18 { top: 270px; left: 100px; background-image: url('../img/star1.png');}
div#star19 { top: 160px; left: 300px; background-image: url('../img/star2.png'); }
div#star20 { top: 70px; left: 550px; background-image: url('../img/star1.png');}
div#star21 { top: 190px; left: 150px; background-image: url('../img/star1.png');}
div#star22 { top: 250px; left: 630px; background-image: url('../img/star2.png');}
div#star23 { top: 30px; left: 50px; background-image: url('../img/star2.png');}
div#star24 { top: 190px; left: 310px; background-image: url('../img/star1.png');}
div#star25 { top: 280px; left: 640px; background-image: url('../img/star1.png');}
div#star26 { top: 200px; left: 40px; background-image: url('../img/star3.png');}
div#star27 { top: 60px; left: 540px; background-image: url('../img/star1.png');}
div#star28 { top: 50px; left: 300px; background-image: url('../img/star2.png');}
div#star29 { top: 250px; left: 50px; background-image: url('../img/star1.png');}
div#star30 { top: 150px; left: 520px; background-image: url('../img/star2.png');}
div#star31 { top: 270px; left: 200px; background-image: url('../img/star1.png');}
div#star32 { top: 280px; left: 640px; background-image: url('../img/star2.png');}
div#star33 { top: 20px; left: 30px; background-image: url('../img/star3.png');}
div#star34 { top: 150px; left: 300px; background-image: url('../img/star7.png');}
div#star35 { top: 20px; left: 610px; background-image: url('../img/star2.png');}
div#star36 { top: 150px; left: 250px; background-image: url('../img/star8.png');}
div#star37 { top: 230px; left: 570px; background-image: url('../img/star1.png');}
div#star38 { top: 50px; left: 20px; background-image: url('../img/star1.png');}
div#star39 { top: 90px; left: 280px; background-image: url('../img/star1.png');}
div#star40 { top: 120px; left: 200px; background-image: url('../img/star2.png');}
div#star41 { top: 110px; left: 510px; background-image: url('../img/star1.png');}
div#star42 { top: 130px; left: 180px; background-image: url('../img/star3.png');}
div#star43 { top: 160px; left: 570px; background-image: url('../img/star2.png');}
div#star44 { top: 80px; left: 90px; background-image: url('../img/star5.png');}
div#star45 { top: 20px; left: 400px; background-image: url('../img/star1.png');}
div#star46 { top: 270px; left: 10px; background-image: url('../img/star1.png');}
div#star47 { top: 0px; left: 510px; background-image: url('../img/star2.png');}
div#star48 { top: 0px; left: 100px; background-image: url('../img/star3.png');}
div#star49 { top: 100px; left: 320px; background-image: url('../img/star2.png');}
div#star50 { top: 300px; left: 60px; background-image: url('../img/star6.png');}
div#star51 { top: 210px; left: 630px; background-image: url('../img/star1.png');}
div#star52 { top: 150px; left: 40px; background-image: url('../img/star1.png');}
div#star53 { top: 130px; left: 340px; background-image: url('../img/star3.png');}
div#star54 { top: 250px; left: 550px; background-image: url('../img/star2.png');}
div#star55 { top: 160px; left: 110px; background-image: url('../img/star2.png');}
div#star56 { top: 250px; left: 260px; background-image: url('../img/star5.png');}
div#star57 { top: 0px; left: 310px; background-image: url('../img/star2.png');}
div#star58 { top: 220px; left: 90px; background-image: url('../img/star1.png');}
div#star59 { top: 70px; left: 360px; background-image: url('../img/star1.png');}
div#star60 { top: 210px; left: 120px; background-image: url('../img/star2.png');}
div#star61 { top: 230px; left: 140px; background-image: url('../img/star3.png');}
div#star62 { top: 10px; left: 540px; background-image: url('../img/star1.png');}
div#star63 { top: 70px; left: 20px; background-image: url('../img/star4.png');}
div#star64 { top: 190px; left: 340px; background-image: url('../img/star2.png');}
div#star65 { top: 220px; left: 30px; background-image: url('../img/star1.png');}
div#star66 { top: 60px; left: 590px; background-image: url('../img/star3.png');}
div#star67 { top: 170px; left: 280px; background-image: url('../img/star1.png');}
div#star68 { top: 10px; left: 160px; background-image: url('../img/star2.png');}
div#star69 { top: 200px; left: 550px; background-image: url('../img/star1.png');}
div#star70 { top: 50px; left: 210px; background-image: url('../img/star1.png');}
div#star71 { top: 270px; left: 250px; background-image: url('../img/star2.png');}
div#star72 { top: 40px; left: 290px; background-image: url('../img/star8.png');}
div#star73 { top: 110px; left: 580px; background-image: url('../img/star4.png');}
div#star74 { top: 230px; left: 120px; background-image: url('../img/star2.png');}
div#star75 { top: 220px; left: 670px; background-image: url('../img/star1.png');}
div#star76 { top: 20px; left: 170px; background-image: url('../img/star3.png');}
div#star77 { top: 250px; left: 150px; background-image: url('../img/star5.png');}
div#star78 { top: 180px; left: 610px; background-image: url('../img/star2.png');}
div#star79 { top: 260px; left: 120px; background-image: url('../img/star1.png');}
div#star80 { top: 210px; left: 390px; background-image: url('../img/star4.png');}
div#star81 { top: 150px; left: 200px; background-image: url('../img/star1.png');}
div#star82 { top: 40px; left: 500px; background-image: url('../img/star1.png');}
div#star83 { top: 210px; left: 190px; background-image: url('../img/star2.png');}
div#star84 { top: 100px; left: 400px; background-image: url('../img/star2.png');}
div#star85 { top: 170px; left: 70px; background-image: url('../img/star2.png');}
div#star86 { top: 10px; left: 230px; background-image: url('../img/star1.png');}
div#star87 { top: 210px; left: 0px; background-image: url('../img/star4.png');}
div#star88 { top: 100px; left: 250px; background-image: url('../img/star3.png');}
div#star89 { top: 90px; left: 550px; background-image: url('../img/star1.png');}
div#star90 { top: 40px; left: 240px; background-image: url('../img/star2.png');}
div#star91 { top: 200px; left: 100px; background-image: url('../img/star4.png');}
div#star92 { top: 50px; left: 250px; background-image: url('../img/star3.png');}
div#star93 { top: 220px; left: 320px; background-image: url('../img/star1.png');}
div#star94 { top: 0px; left: 200px; background-image: url('../img/star2.png');}
div#star95 { top: 140px; left: 0px; background-image: url('../img/star2.png');}
div#star96 { top: 180px; left: 120px; background-image: url('../img/star6.png');}
div#star97 { top: 10px; left: 350px; background-image: url('../img/star1.png');}
div#star98 { top: 70px; left: 510px; background-image: url('../img/star2.png');}
div#star99 { top: 190px; left: 240px; background-image: url('../img/star5.png');}

div#light0 { top: 100px; left: 70px; background-image: url('../img/light1.png'); }
div#light1 { top: 190px; left: 110px; background-image: url('../img/light6.png'); }
div#light2 { top: 40px; left: 80px; background-image: url('../img/light3.png'); }
div#light3 { top: 191px; left: 40px; background-image: url('../img/light7.png'); }
div#light4 { top: 120px; left: 112px; background-image: url('../img/light12.png'); }
div#light5 { top: 245px; left: 40px; background-image: url('../img/light1.png'); }
div#light6 { top: 215px; left: 160px; background-image: url('../img/light2.png'); }
div#light7 { top: 63px; left: 50px; background-image: url('../img/light8.png'); }
div#light8 { top: 140px; left: 70px; background-image: url('../img/light4.png'); }
div#light9 { top: 207px; left: 85px; background-image: url('../img/light3.png'); }
div#light10 { top: 210px; left: 50px; background-image: url('../img/light1.png'); }
div#light11 { top: 120px; left: 35px; background-image: url('../img/light2.png'); }
div#light12 { top: 80px; left: 80px; background-image: url('../img/light5.png'); }
div#light13 { top: 150px; left: 140px; background-image: url('../img/light5.png'); }
div#light14 { top: 160px; left: 55px; background-image: url('../img/light10.png'); }
div#light15 { top: 85px; left: 125px; background-image: url('../img/light11.png'); }
div#light16 { top: 193px; left: 20px; background-image: url('../img/light8.png'); }
div#light17 { top: 175px; left: 90px; background-image: url('../img/light1.png'); }
div#light18 { top: 241px; left: 105px; background-image: url('../img/light4.png'); }
div#light19 { top: 115px; left: 80px; background-image: url('../img/light5.png'); }
div#light20 { top: 235px; left: 125px; background-image: url('../img/light12.png'); }
div#light21 { top: 245px; left: 65px; background-image: url('../img/light3.png'); }
div#light22 { top: 65px; left: 90px; background-image: url('../img/light4.png'); }
div#light23 { top: 225px; left: 70px; background-image: url('../img/light5.png'); }
div#light24 { top: 130px; left: 90px; background-image: url('../img/light1.png'); }
div#light25 { top: 235px; left: 25px; background-image: url('../img/light12.png'); }
div#light26 { top: 240px; left: 0px; background-image: url('../img/light2.png'); }
div#light27 { top: 178px; left: 127px; background-image: url('../img/light1.png'); }
div#light28 { top: 160px; left: 80px; background-image: url('../img/light11.png'); }
div#light29 { top: 20px; left: 83px; background-image: url('../img/light1.png'); }
div#light30 { top: 103px; left: 50px; background-image: url('../img/light12.png'); }
div#light31 { top: 130px; left: 125px; background-image: url('../img/light10.png'); }
div#light32 { top: 230px; left: 100px; background-image: url('../img/light10.png'); }
div#light33 { top: 215px; left: 125px; background-image: url('../img/light1.png'); }
div#light34 { top: 150px; left: 100px; background-image: url('../img/light3.png'); }
div#light35 { top: 135px; left: 60px; background-image: url('../img/light12.png'); }
div#light36 { top: 186px; left: 70px; background-image: url('../img/light2.png'); }
div#light37 { top: 240px; left: 160px; background-image: url('../img/light10.png'); }
div#light38 { top: 168px; left: 40px; background-image: url('../img/light3.png'); }
div#light39 { top: 110px; left: 128px; background-image: url('../img/light6.png'); }
div#light40 { top: 160px; left: 110px; background-image: url('../img/light12.png'); }
div#light41 { top: 258px; left: 120px; background-image: url('../img/light1.png'); }
div#light42 { top: 217px; left: 30px; background-image: url('../img/light10.png'); }
div#light43 { top: 46px; left: 95px; background-image: url('../img/light10.png'); }
div#light44 { top: 100px; left: 100px; background-image: url('../img/light10.png'); }
div#light45 { top: 140px; left: 45px; background-image: url('../img/light7.png'); }
div#light46 { top: 200px; left: 140px; background-image: url('../img/light8.png'); }
div#light47 { top: 30px; left: 60px; background-image: url('../img/light10.png'); }
div#light48 { top: 65px; left: 110px; background-image: url('../img/light6.png'); }
div#light49 { top: 260px; left: 30px; background-image: url('../img/light1.png'); }
div#light50 { top: 200px; left: 60px; background-image: url('../img/light9.png'); }
div#light51 { top: 170px; left: 150px; background-image: url('../img/light4.png'); }
div#light52 { top: 90px; left: 45px; background-image: url('../img/light4.png'); }
div#light53 { top: 230px; left: 45px; background-image: url('../img/light6.png'); }
div#light54 { top: 85px; left: 100px; background-image: url('../img/light7.png'); }
div#light55 { top: 60px; left: 70px; background-image: url('../img/light1.png'); }
div#light56 { top: 128px; left: 55px; background-image: url('../img/light4.png'); }
div#light57 { top: 230px; left: 175px; background-image: url('../img/light7.png'); }
div#light58 { top: 140px; left: 25px; background-image: url('../img/light6.png'); }
div#light59 { top: 243px; left: 85px; background-image: url('../img/light7.png'); }
div#light60 { top: 225px; left: 144px; background-image: url('../img/light3.png'); }
div#light61 { top: 192px; left: 90px; background-image: url('../img/light7.png'); }
div#light62 { top: 35px; left: 103px; background-image: url('../img/light2.png'); }
div#light63 { top: 55px; left: 85px; background-image: url('../img/light5.png'); }
div#light64 { top: 122px; left: 60px; background-image: url('../img/light3.png'); }
div#light65 { top: 173px; left: 15px; background-image: url('../img/light10.png'); }
div#light66 { top: 10px; left: 93px; background-image: url('../img/light3.png'); }
div#light67 { top: 10px; left: 72px; background-image: url('../img/light7.png'); }
div#light68 { top: 248px; left: 20px; background-image: url('../img/light4.png'); }
div#light69 { top: 172px; left: 63px; background-image: url('../img/light7.png'); }
div#light70 { top: 82px; left: 60px; background-image: url('../img/light7.png'); }
div#light71 { top: 130px; left: 136px; background-image: url('../img/light7.png'); }
div#light72 { top: 212px; left: 105px; background-image: url('../img/light5.png'); }
div#light73 { top: 70px; left: 65px; background-image: url('../img/light4.png'); }
div#light74 { top: 155px; left: 125px; background-image: url('../img/light1.png'); }
div#light75 { top: 27px; left: 71px; background-image: url('../img/light11.png'); }
div#light76 { top: 142px; left: 85px; background-image: url('../img/light2.png'); }
div#light77 { top: 205px; left: 35px; background-image: url('../img/light6.png'); }
div#light78 { top: 160px; left: 25px; background-image: url('../img/light7.png'); }
div#light79 { top: 140px; left: 110px; background-image: url('../img/light4.png'); }
div#light80 { top: 200px; left: 120px; background-image: url('../img/light7.png'); }
div#light81 { top: 97px; left: 85px; background-image: url('../img/light4.png'); }
div#light82 { top: 220px; left: 10px; background-image: url('../img/light7.png'); }
div#light83 { top: 119px; left: 95px; background-image: url('../img/light7.png'); }
div#light84 { top: 77px; left: 110px; background-image: url('../img/light10.png'); }
div#light85 { top: 177px; left: 50px; background-image: url('../img/light5.png'); }
div#light86 { top: 99px; left: 115px; background-image: url('../img/light4.png'); }
div#light87 { top: 173px; left: 115px; background-image: url('../img/light4.png'); }
div#light88 { top: 170px; left: 135px; background-image: url('../img/light7.png'); }
div#light89 { top: 150px; left: 40px; background-image: url('../img/light4.png'); }
div#light90 { top: 152px; left: 63px; background-image: url('../img/light3.png'); }
div#light91 { top: 93px; left: 60px; background-image: url('../img/light10.png'); }
div#light92 { top: 90px; left: 70px; background-image: url('../img/light7.png'); }
div#light93 { top: 50px; left: 60px; background-image: url('../img/light3.png'); }
div#light94 { top: 10px; left: 80px; background-image: url('../img/light5.png'); }
div#light95 { top: 240px; left: 140px; background-image: url('../img/light4.png'); }
div#light96 { top: 210px; left: 70px; background-image: url('../img/light4.png'); }
div#light97 { top: 222px; left: 88px; background-image: url('../img/light4.png'); }
div#light98 { top: 225px; left: 112px; background-image: url('../img/light7.png'); }
div#light99 { top: 175px; left: 30px; background-image: url('../img/light12.png'); }



/* ==========================================================================
   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: 100%;
}

/*
 * 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.
   Theses 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 only screen and (-webkit-min-device-pixel-ratio: 1.5),
       only screen and (min-resolution: 144dpi) {
    /* 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;
    }
}
