/*! 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
   ========================================================================== */
html {
	background: transparent url(../img/Felt_BG_GREEN.jpg) repeat 0 0;
}
#wrapper {
	margin: 0 auto;
	width: 1920px;
	height: 1080px;
	background: transparent url(../img/Baccarat_Menu.png) no-repeat 0 0;
	/*
	background: transparent url(../img/guide.jpg) no-repeat 0 0;
	*/
	position: relative;
	top: 0;
	left: 0;
	z-index: 1;
}

#layout {
	width: 762px;
	height: 663px;
	position: absolute;
	top: 82px;
	left: 380px;
	z-index: 1;
	background: transparent url(../img/baccarat_single_layout_0010_Baccarat-Single-Layout.png) no-repeat 0 0;
}
#layout-wrapper {
	width: 100%;
	height: 100%;
	position: relative;
	top: 0;
	left: 0;
	z-index: 1;
}
.layout-button {
	width: 183px;
	height: 91px;
	display: block;
	position: absolute;
	z-index: 1;
	background: transparent url(../img/layout-buttons.png) no-repeat 0 0;
}
.layout-button:link, 
.layout-button:visited, 
.layout-button:hover, 
.layout-button:focus, 
.layout-button:active {
	text-indent: -999999px;
	outline: none;
	text-decoration: none;
}
#p {
	top: 393px;
	left: 83px;
}
#ppair {
	top: 516px;
	left: 83px;
}
#b {
	top: 393px;
	left: 496px;
}
#bpair {
	top: 516px;
	left: 496px;
}
#tie {
	top: 455px;
	left: 290px;
}
#p:link, 
#p:visited {
	background-position: 0 0;
}
#p:hover, 
#p:focus, 
#p:active {
	background-position: 0 -91px;
}
#ppair:link, 
#ppair:visited {
	background-position: -183px 0;
}
#ppair:hover, 
#ppair:focus, 
#ppair:active {
	background-position: -183px -91px;
}
#b:link, 
#b:visited {
	background-position: -549px 0;
}
#b:hover, 
#b:focus, 
#b:active {
	background-position: -549px -91px;
}
#bpair:link, 
#bpair:visited {
	background-position: -732px 0;
}
#bpair:hover, 
#bpair:focus, 
#bpair:active {
	background-position: -732px -91px;
}
#tie:link, 
#tie:visited {
	background-position: -366px 0;
}
#tie:hover, 
#tie:focus, 
#tie:active {
	background-position: -366px -91px;
}

#layout .text {
	font-size: 24px;
	line-height: 24px;
	color: #fff;
	position: absolute;
	top: 340px;
	z-index: 1;
}
#player {
	left: 0;
}
#banker {
	right: 0;
}

#chip-stacks {
	position: absolute;
	bottom: 23px;
	left: 261px;
	z-index: 1;
	overflow: hidden;
}
.chip-stack {
	padding: 0 6px;
	width: 84px;
	height: 102px;
	display: block;
	float: left;
	background: transparent url(../img/3in1_chip_stack.png) no-repeat 0 0;
}
.chip-stack:link, 
.chip-stack:visited, 
.chip-stack:hover, 
.chip-stack:focus, 
.chip-stack:active {
	text-indent: -999999px;
	outline: none;
	text-decoration: none;
}
#chip-1:link, 
#chip-1:visited {
	background-position: 0 0;
}
#chip-1:hover, 
#chip-1:focus, 
#chip-1:active {
	background-position: 0 100%;
}
#chip-10:link, 
#chip-10:visited {
	background-position: -90px 0;
}
#chip-10:hover, 
#chip-10:focus, 
#chip-10:active {
	background-position: -90px 100%;
}
#chip-50:link, 
#chip-50:visited {
	background-position: -180px 0;
}
#chip-50:hover, 
#chip-50:focus, 
#chip-50:active {
	background-position: -180px 100%;
}
#chip-100:link, 
#chip-100:visited {
	background-position: -270px 0;
}
#chip-100:hover, 
#chip-100:focus, 
#chip-100:active {
	background-position: -270px 100%;
}
#chip-500:link, 
#chip-500:visited {
	background-position: -360px 0;
}
#chip-500:hover, 
#chip-500:focus, 
#chip-500:active {
	background-position: -360px 100%;
}


#button-stacks {
	width: 1057px;
	position: absolute;
	bottom: 9px;
	left: 867px;
	z-index: 1;
	overflow: visible;
}
.button {
	margin: 0 21px 0 2px;
	width: 128px;
	height: 105px;
	display: block;
	float: left;
	background: transparent url(../img/button.png) no-repeat 0 0;
}
.button:link, 
.button:visited, 
.button:hover, 
.button:focus, 
.button:active {
	text-indent: -999999px;
	outline: none;
	text-decoration: none;
}
#rebet:link, 
#rebet:visited {
	background-position: 0 0;
}
#rebet:hover, 
#rebet:focus, 
#rebet:active {
	background-position: 0 -106px;
}
#double:link, 
#double:visited {
	background-position: -128px 0;
}
#double:hover, 
#double:focus, 
#double:active {
	background-position: -128px -106px;
}
#maxbet:link, 
#maxbet:visited {
	background-position: -256px 0;
}
#maxbet:hover, 
#maxbet:focus, 
#maxbet:active {
	background-position: -256px -106px;
}
#undo:link, 
#undo:visited {
	background-position: -384px 0;
}
#undo:hover, 
#undo:focus, 
#undo:active {
	background-position: -384px -106px;
}
#clearall:link, 
#clearall:visited {
	background-position: -512px 0;
}
#clearall:hover, 
#clearall:focus, 
#clearall:active {
	background-position: -512px -106px;
}
#help:link, 
#help:visited {
	background-position: -640px 0;
}
#help:hover, 
#help:focus, 
#help:active {
	background-position: -640px -106px;
}
#lobby:link, 
#lobby:visited {
	background-position: -768px 0;
}
#lobby:hover, 
#lobby:focus, 
#lobby:active {
	background-position: -768px -106px;
}
#denomination {
	padding: 42px 14px 0 0;
	width: 90px;
	height: 68px;
	display: block;
	position: absolute;
	bottom: 23px;
	left: 737px;
	z-index: 1;
	color: #ffcc01;
	background: transparent url(../img/button-denomination.png) no-repeat 0 0;
	text-align: right;
	font-size: 24px;
	line-height: 24px;
}
#denomination:link, 
#denomination:visited {
	background-position: 0 0;
	text-decoration: none;
}
#denomination:hover, 
#denomination:focus, 
#denomination:active {
	background-position: 0 -110px;
	text-decoration: none;
}

#logo {
	margin: 0;
	padding: 0;
	width: 190px;
	height: 60px;
	font-size: 1em;
	line-height: 60px;
	color: #fff;
	text-transform: uppercase;
	text-align: center;
}

#generic-status {
	width: 1308px;
	height: 69px;
	position: absolute;
	top: 0;
	left: 408px;
	z-index: 1;
}
#generic-status .text {
	display: block;
	float: left;
	color: #fecc00;
	text-transform: uppercase;
}
#timer {
	margin: 0 0 0 220px;
	width: 314px;
	font-size: 42px;
	line-height: 61px;
}
#user {
	margin: 0 0 0 96px;
	width: 388px;
	font-size: 26px;
	line-height: 71px;
}
#balance {
	margin: 0 0 0 160px;
	font-size: 26px;
	line-height: 71px;
}

#baccart-status {
	width: 192px;
	height: 288px;
	position: absolute;
	top: 100px;
	left: 0;
	z-index: 1;
}
#baccart-status h2 {
	margin: 0;
	padding: 0;
	font-size: 1em;
	line-height: 1em;
}
#baccart-status .text {
	margin: 0 11px 36px 0;
	padding: 0;
	display: block;
	font-size: 32px;
	line-height: 32px;
	text-align: right;
	color: #fff;
}
#roulette-status {
	width: 192px;
	height: 288px;
	position: absolute;
	top: 427px;
	left: 0;
	z-index: 1;
}
#roulette-status h2 {
	margin: 0;
	padding: 0;
	font-size: 1em;
	line-height: 1em;
}
#roulette-status .text {
	margin: 0 11px 36px 0;
	padding: 0;
	display: block;
	font-size: 32px;
	line-height: 32px;
	text-align: right;
	color: #fff;
}
h2 img {
	margin: 0 auto;
	padding: 28px 0 60px;
	display: block;
}

#history-status {
	padding: 86px 0 0;
	width: 192px;
	height: 657px;
	position: absolute;
	top: 0;
	right: 0;
	z-index: 1;
}
#history-status .text {
	margin: 0 10px 78px 0;
	display: block;
	font-size: 32px;
	line-height: 32px;
	text-align: right;
}
#history-status .banker {
	color: #00a0e3;
}
#history-status .player {
	margin: 0 10px 84px 0;
	color: #e31e25;
}
#history-status .tie {
	color: #b0ca1f;
}
#history-status .bpair {
	margin: 0 10px 77px 0;
	color: #00a0e3;
}
#history-status .ppair {
	color: #e31e25;
}
#history-status .natural {
	color: #fecc00;
}

#bets-status {
	width: 246px;
	height: 115px;
	position: absolute;
	bottom: 0;
	left: 0;
	z-index: 1;
}
#bets-status .text {
	margin: 0 10px 32px 118px;
	display: block;
	font-size: 32px;
	line-height: 32px;
	color: #ffcc00;
}
/* ==========================================================================
   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;
    }
}
