:root {
	--ui-scale: 1; /* likely NOT necessary as it's auto calculated, but just to be safe we add it here */
	--canvas-scale: 1;


	/*--font-reg: 'titilliumWeb';
	--font-btn: 'titilliumWeb';
	--font-title: 'titilliumWeb';
	--font-light: 'titilliumWeb';*/

    --font-fam-reg: 'Montserrat';
    --font-fam-btn: 'Montserrat';
    --font-fam-title: 'Montserrat';
    --font-fam-light: 'Montserrat';

	--bg-pri: #ffffff;
	--bg-sec: #2a2b2f;

	--clr-body-bg: #1A6F40;
	--clr-green1: #093b2a;
	--clr-green2: #0e5036;
	/*--clr-green3: #166238; !* bg table *!*/
	/*--clr-green3: #1B7242; /*!* bg table *!*/
	--clr-green3: #1A6F40; /*!* bg table *!*/
	--clr-green4: #0f4427; /* bg actions bar*/
	--clr-green5: #1e7929; /* bg actions check/raise buttons */
    --clr-green6: #166238;

	--clr-black1: #000000; /* bg actions check/raise buttons */
	--clr-black2: #1E1E1C;

	--clr-pri: #ffffff;
	--clr-sec: #000000;

    --clr-red: #e00102;
    --clr-yellow: yellow;
    --clr-gold: #ffd700;
    --clr-grey: #606060;
    --clr-grey-2: #adadad;
    --clr-green: #2c8b13;
    --clr-grey: #bebebe;
    --clr-grey2: #808080;
    --clr-orange1: #fda900;
    --clr-orange2: #ff7a00;

	--lobby-bg-clr: var(--clr-body-bg);

	--offset-per-card: calc(20px * var(--canvas-scale));
	--offset-per-card-relative: -94%;
	--offset-per-card-relative-faceup: -94%;

    --offset-per-card-margin-faceup: calc(24px * var(--canvas-scale));

	/*--clr-progress-front1: #000000;*/
	--clr-progress-front1: var(--clr-green2);

    --default-border-radius: calc(10px * var(--ui-scale));

    /* for a custom slider thumb, we have to offset it horizontally from -50% to +50%, based on fill - this requries dynamic css solution like this! */
    --slider-thumb-offset-x: 0;
    --slider-thumb-offset-y: 0; /* y for vertical version?*/
}
html {
	margin: 0;
	padding: 0;
	font-family: var(--font-fam-reg), 'Helvetica';
	font-size: calc(14px * var(--ui-scale));
	line-height: calc(16px * var(--ui-scale));;
	width: 100%;
	height: 100%;

	background: var(--clr-body-bg);
	color: var(--clr-pri);
}
body {
	position: relative;
	margin: 0;
	padding: 0;
	width: 100%;
	height: 100%;

	user-select: none;
	-webkit-user-select: none; /* webkit (safari, chrome) browsers */
	-moz-user-select: none; /* mozilla browsers */
	-khtml-user-select: none; /* webkit (konqueror) browsers */
	-ms-user-select: none; /* IE10+ */
}
body:before {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;

	/*background: var(--clr-body-bg) no-repeat center center;*/
	background: var(--lobby-bg-clr) url('../images_nonopt/table_backgrounds/horizontal/2.png') no-repeat center center;

	/* Attempt with vignette, but reverted back to using BG images, due to desired specific look */
	/*background: var(--lobby-bg-clr) url('../images/table_backgrounds/landscape_vignette_smaller_17op_w_white2.webp') no-repeat center center;*/
	background-size: 100% 100%;
	filter: hue-rotate(0deg) saturate(100%) brightness(100%);
}
#ezPrivacyCenter {
	/* disabled/hidden the ezoic icon for now, as we don't really need it on the in-game page */
	display: none !important;
}
[data-ezoic-role="privacy-policy"] {
	position: fixed;
	bottom: 0;
	z-index: 9999;
}
[data-ezoic-role="privacy-policy"] * {
	color: #333 !important;
}
.is-dark-lobby-background body:before {
	--lobby-bg-clr: var(--clr-black2);
    background: var(--lobby-bg-clr) url('../images_nonopt/table_backgrounds/horizontal/1.png') no-repeat center center;

}
[data-setting_bg_theme="theme_2"] body:before {
	--lobby-bg-clr: var(--clr-green3);
	background: var(--lobby-bg-clr) url('../images_nonopt/table_backgrounds/horizontal/2.png') no-repeat center center;
}
[data-setting_bg_theme="theme_3"] body:before {
	--lobby-bg-clr: var(--clr-grey-2);
    background: var(--lobby-bg-clr) url('../images_nonopt/table_backgrounds/horizontal/3.png') no-repeat center center;
}
[data-setting_bg_theme="theme_4"] body:before {
	--lobby-bg-clr: #393939;
    background: var(--lobby-bg-clr) url('../images_nonopt/table_backgrounds/horizontal/4.png') no-repeat center center;
}
[data-setting_bg_theme="theme_5"] body:before {
	--lobby-bg-clr: #6f0011;
    background: var(--lobby-bg-clr) url('../images_nonopt/table_backgrounds/horizontal/5.png') no-repeat center center;
}
[data-setting_bg_theme="theme_6"] body:before {
	--lobby-bg-clr: #682478;
    background: var(--lobby-bg-clr) url('../images_nonopt/table_backgrounds/horizontal/6.png') no-repeat center center;
}
[data-setting_bg_theme="theme_7"] body:before {
	--lobby-bg-clr: #784e25;
    background: var(--lobby-bg-clr) url('../images_nonopt/table_backgrounds/horizontal/7.png') no-repeat center center;
}
[data-setting_bg_theme="theme_8"] body:before {
	--lobby-bg-clr: #a46729;
    background: var(--lobby-bg-clr) url('../images_nonopt/table_backgrounds/horizontal/8.png') no-repeat center center;
}
[data-setting_bg_theme="theme_9"] body:before {
	--lobby-bg-clr: #000ec2;
    background: var(--lobby-bg-clr) url('../images_nonopt/table_backgrounds/horizontal/9.png') no-repeat center center;
}
[data-setting_bg_theme="theme_10"] body:before {
	--lobby-bg-clr: #b76646;
    background: var(--lobby-bg-clr) url('../images_nonopt/table_backgrounds/horizontal/10.png') no-repeat center center;
}
[data-setting_bg_theme="theme_11"] body:before {
	--lobby-bg-clr: #237788;
    background: var(--lobby-bg-clr) url('../images_nonopt/table_backgrounds/horizontal/11.png') no-repeat center center;
}
[data-setting_bg_theme="theme_12"] body:before {
	--lobby-bg-clr: #992348;
    background: var(--lobby-bg-clr) url('../images_nonopt/table_backgrounds/horizontal/12.png') no-repeat center center;
}
.portrait body:before {
	background: var(--lobby-bg-clr) url('../images_nonopt/table_backgrounds/vertical/2.png') no-repeat center center;
	/* Attempt with vignette, but reverted back to using BG images, due to desired specific look */
	/*background: var(--lobby-bg-clr) url('../images/table_backgrounds/portrait_vignette_smaller_17op.webp') no-repeat center center;*/
}
.portrait[data-setting_bg_theme="theme_1"] body:before {
    background: var(--lobby-bg-clr) url('../images_nonopt/table_backgrounds/vertical/1.png') no-repeat center center;
}
.portrait[data-setting_bg_theme="theme_2"] body:before {
    background: var(--lobby-bg-clr) url('../images_nonopt/table_backgrounds/vertical/2.png') no-repeat center center;
}
.portrait[data-setting_bg_theme="theme_3"] body:before {
    background: var(--lobby-bg-clr) url('../images_nonopt/table_backgrounds/vertical/3.png') no-repeat center center;
}
.portrait[data-setting_bg_theme="theme_4"] body:before {
    background: var(--lobby-bg-clr) url('../images_nonopt/table_backgrounds/vertical/4.png') no-repeat center center;
}
.portrait[data-setting_bg_theme="theme_5"] body:before {
    background: var(--lobby-bg-clr) url('../images_nonopt/table_backgrounds/vertical/5.png') no-repeat center center;
}
.portrait[data-setting_bg_theme="theme_6"] body:before {
    background: var(--lobby-bg-clr) url('../images_nonopt/table_backgrounds/vertical/6.png') no-repeat center center;
}
.portrait[data-setting_bg_theme="theme_7"] body:before {
    background: var(--lobby-bg-clr) url('../images_nonopt/table_backgrounds/vertical/7.png') no-repeat center center;
}
.portrait[data-setting_bg_theme="theme_8"] body:before {
    background: var(--lobby-bg-clr) url('../images_nonopt/table_backgrounds/vertical/8.png') no-repeat center center;
}
.portrait[data-setting_bg_theme="theme_9"] body:before {
    background: var(--lobby-bg-clr) url('../images_nonopt/table_backgrounds/vertical/9.png') no-repeat center center;
}
.portrait[data-setting_bg_theme="theme_10"] body:before {
    background: var(--lobby-bg-clr) url('../images_nonopt/table_backgrounds/vertical/10.png') no-repeat center center;
}
.portrait[data-setting_bg_theme="theme_11"] body:before {
    background: var(--lobby-bg-clr) url('../images_nonopt/table_backgrounds/vertical/11.png') no-repeat center center;
}
.portrait[data-setting_bg_theme="theme_12"] body:before {
    background: var(--lobby-bg-clr) url('../images_nonopt/table_backgrounds/vertical/12.png') no-repeat center center;
}
body:before {
    background-size: 100% 100% !important; /* important to be set after setting bg image */
}
html, body {
    /* prevent overscrolling vertically on mobile devices */
    overscroll-behavior-y: none;

    /* prevent horizontal scrollbar on mobile devices */
    position: relative;
    overflow: hidden;
    max-width: 100%;
}
#main_container {
	width: 100%;
	height: 100%;
	max-width: 100%;
	margin: 0 auto;
}
#main_content {
	position: relative;
	margin: 0 auto;
	width: 100%;
	height: 100%;

	/*width: 1000px;*/
	/*height: 800px;*/

	max-width: calc(100vw);
	max-height: calc(100vh);
}
#game_content {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
	background: var(--clr-black);
}
.animation-holder {
	position: relative;
	width: 100%;
	height: 100%;
}
#animations_attach_point {
	position: absolute;
	width: 100%;
	height: 100%;
}
#staticCanvas, #mainCanvas, #coverCanvas {
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
}
#game_ui {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

#game_ui .overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
}
#logger_board {
    position: absolute;
    top: 10%;
    left: 0;
    width: 60%;
    height: 60%;
    pointer-events: none;
    overflow-y: auto;
    color: black;
    background: rgba(255,255,255, 0.7);

    /*pointer-events: none;*/
}
/* START UI-HOLDERS */
#game_ui .overlay .ui-holder {
	position: absolute;

	display: flex;
	justify-content: center;
	pointer-events: none;
}
#game_ui .overlay .ui-holder > div > div > div {
	pointer-events: auto;
}
#game_ui .overlay .ui-holder.top {
	top: 0;
	left: 0;
	right: 0;

	z-index: 1;

}
#game_ui .overlay .ui-holder.right {
	top: 0;
	right: 0;
	bottom: 0;

	flex-direction: column;
}
#game_ui .overlay .ui-holder.bottom {
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 1;
}
#game_ui .overlay .ui-holder.left {
	top: 0;
	bottom: 0;
	left: 0;

	flex-direction: column;
}
#game_ui .overlay .ui-holder .ui-slots {
	width: 100%;
	height: auto;
	display: flex;
	justify-content: space-between;
}
#game_ui .overlay .ui-holder.left .ui-slots,
#game_ui .overlay .ui-holder.right .ui-slots {
	width: auto;
	height: 100%;
	flex-direction: column;
}
#game_ui .overlay .ui-holder.bottom .ui-slots {
	align-items: flex-end;
}
/* END UI-HOLDERS */

/* START ICONS */
.icon {
	display: inline-block;
	width: calc(30px * var(--canvas-scale));
	height: calc(30px * var(--canvas-scale));
	vertical-align: middle;
	/*outline: 1px solid black;*/
}
.icon.extra-large {
	width: calc(80px * var(--canvas-scale));
	height: calc(80px * var(--canvas-scale));
}
.icon.large {
	width: calc(60px * var(--canvas-scale));
	height: calc(60px * var(--canvas-scale));
}
.icon.big {
	width: calc(40px * var(--canvas-scale));
	height: calc(40px * var(--canvas-scale));
}
.icon.small {
	width: calc(20px * var(--canvas-scale));
	height: calc(20px * var(--canvas-scale));
}
.icon.smaller {
	width: calc(15px * var(--canvas-scale));
	height: calc(15px * var(--canvas-scale));
}

/* slider */
.slide-container {
	width: 100%; /* Width of the outside container */
}
.slide-container .slider-value {
	text-align: left;
	font: calc(16px * var(--ui-scale))/calc(20px * var(--ui-scale)) var(--font-fam-btn);
	text-transform: uppercase;
	color: black;
	margin-bottom: calc(8px * var(--ui-scale));
}
/* The slider itself */
.slider {
	/*-webkit-appearance: none;
	appearance: none;*/
	width: 100%;
	height: calc(6px * var(--ui-scale));
	/*background: #d3d3d3;*/
	outline: none;
	opacity: 1;
	-webkit-transition: .2s;
	transition: opacity .2s;
	/*background: var(--clr-progress-front1);*/
	accent-color: var(--clr-progress-front1);
	border-radius: calc(10px * var(--ui-scale));
	margin-bottom: calc(15px * var(--ui-scale));
    border: 1px solid #ffffff;
}

.slider:hover {
	opacity: 1;
}
.slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: calc(30px * var(--ui-scale));
	height: calc(30px * var(--ui-scale));
	border-radius: calc(15px * var(--ui-scale));
	border: 0;
	background: var(--clr-progress-front1);
	/*background-size: 100% 100%;*/
	cursor: pointer;
    transform: translateX(calc(var(--slider-thumb-offset-x) * 100%));
}

.slider::-moz-range-thumb {
	width: calc(40px * var(--ui-scale));
	height: calc(40px * var(--ui-scale));
	border-radius: calc(25px * var(--ui-scale));
	border: 0;
	background: var(--clr-progress-front1);
	/*background-size: 100% 100%;*/
	cursor: pointer;
    transform: translateX(calc(var(--slider-thumb-offset-x) * 100%));
}

/* slider vertical adjustments */
.slider.vertical {
    width: auto;
    height: 100%;
    padding: 0 !important;
    box-sizing: border-box;

    border-radius: 0 !important;
    border-bottom: 0;
    --slider-bg-clr: var(--clr-green3);
    --slider-bg-clr: transparent;
}
.slider.vertical::-webkit-slider-thumb {
    width: 110%;
    height: calc(13px * var(--ui-scale));
    border-radius: calc(25px * var(--ui-scale));
    border: 1px solid #ffffff;
    filter: drop-shadow(0 0 3px #ffd700a6);
    /* we can still use xoffset, but apply it veritcally */
    /*transform: translateY(calc(var(--slider-thumb-offset-x) * 100%));*/
    transform: none !important;
}
.slider.vertical::-moz-range-thumb {
    width: 110%;
    height: calc(13px * var(--ui-scale));
    border-radius: calc(25px * var(--ui-scale));
    border: 1px solid #ffffff;
    filter: drop-shadow(0 0 3px #ffd700a6);
    /* we can still use xoffset, but apply it veritcally */
    /*transform: translateY(calc(var(--slider-thumb-offset-x) * 100%));*/
    transform: none !important;
}
.slider.rotate-vertical {
    padding: 0 !important;
    box-sizing: border-box;

    border-radius: 0 !important;
    border-bottom: 0;
    --slider-bg-clr: var(--clr-green3);
    --slider-bg-clr: transparent;
}
.slider.rotate-vertical::-webkit-slider-thumb {
    width: calc(13px * var(--ui-scale));
    height: 110%;
    border-radius: calc(25px * var(--ui-scale));
    border: 1px solid #ffffff;
    filter: drop-shadow(0 0 3px #ffd700a6);
    /* we can still use xoffset, but apply it veritcally */
    /*transform: translateY(calc(var(--slider-thumb-offset-x) * 100%));*/
    margin-top: 0;
    transform: translateY(calc(var(--vertical-slider-width) * -0.05)) !important;
}
.slider.rotate-vertical::-moz-range-thumb {
    width: calc(18px * var(--ui-scale));
    height: 110%;
    border-radius: calc(25px * var(--ui-scale));
    border: 1px solid #ffffff;
    filter: drop-shadow(0 0 3px #ffd700a6);
    /* we can still use xoffset, but apply it veritcally */
    /*transform: translateY(calc(var(--slider-thumb-offset-x) * 100%));*/
    transform: none !important;
}
    /* end slider */

/* start input styling */
input {
	/* these values at top are attempt at potentia lfix for square border o nsafari? */
	-webkit-appearance: none;

    line-height: 1.5;
    font-size: calc(25px * var(--ui-scale));
    border-radius: calc(13px * var(--ui-scale));
    padding: calc(5px * var(--ui-scale)) calc(10px * var(--ui-scale));
    border: 2px solid #bebebe;

    /* we have to add these for mobile input select cursor works on number inputes?*/
    user-select: text;
    -webkit-user-select: text; /* webkit (safari, chrome) browsers */
    -moz-user-select: text; /* mozilla browsers */
    -khtml-user-select: text; /* webkit (konqueror) browsers */
    -ms-user-select: text; /* IE10+ */

    /*font-family: var(--font-fam-btn);
    font-weight: 600;*/
}
/* // old way with outline
input:focus:focus-visible:focus-within {
    outline: 2px solid black;
}*/

/* attempt at fixing safari border square issues */

input:focus:focus-visible:focus-within,
input:focus,
input:focus-visible,
input:focus-within {
    outline: none !important;
	border-color: black;
}
input[type="range"]:focus:focus-visible:focus-within,
input[type="range"]:focus,
input[type="range"]:focus-visible,
input[type="range"]:focus-within {
	border-color: white;
}
/* same trick as with buttons won't work, as pseudo elements don't work on input elements
input:focus:focus-visible:focus-within:after {
	 content: "";
	 position: absolute;
	 top: calc(-1px * var(--ui-scale));
	 right: calc(-1px * var(--ui-scale));
	 bottom: calc(-1px * var(--ui-scale));
	 left: calc(-1px * var(--ui-scale));
	 border: calc(1px * var(--ui-scale)) solid white;

	 border-radius: calc(15px * var(--ui-scale));
 }*/
label {
    line-height: 1.5;
}
.input-wrapper {
	margin-top: 0;
	position: relative;
}
.input-wrapper input {
	padding-right: calc(40px * var(--ui-scale));
    font-family: var(--font-fam-btn);
    font-weight: 600;
}
.input-wrapper .input-icon {
	color: #000000;
	position: absolute;
	font-size: 1.2em;
	bottom: calc(10px * var(--ui-scale));
	right: calc(10px * var(--ui-scale));
}
.input-wrapper .numeric-steps {
    position: absolute;

    top: calc(6px * var(--ui-scale));
    bottom: 0;
    margin: auto 0;
    right: calc(17px * var(--ui-scale));
    color: #000000;
    height: max-content;
    font-size: 0.45em;

    display: flex;
    flex-direction: column;
    gap: calc(2px * var(--ui-scale));
}
.input-wrapper .numeric-steps .fa-stack {
    pointer-events: auto;
    cursor: pointer;
}
.input-wrapper .numeric-steps .fa-stack:hover {
    color: #848484;
}
/* end input styling */

/* scroll bars */
#game_content .scroll-holder {
    scrollbar-color: #CCCCCC transparent;
    scrollbar-width: thin;

    padding-right: calc(15px * var(--ui-scale));
    margin-left: calc(15px * var(--ui-scale));
}
#game_content .scroll-holder::-webkit-scrollbar {
    width: 4px;
    border-radius: calc(2px * var(--ui-scale));
    background-color: transparent;
}
#game_content .scroll-holder::-webkit-scrollbar-thumb {
    background-color: #CCCCCC;
}
#game_content .scroll-holder::-webkit-scrollbar-thumb:hover {
    background-color: #ffffff;
}

/* remove up/down buttons for number fields*/

/* Style to hide the up and down buttons in Firefox */
input[type="number"] {/* Reset the default Firefox styling */
    -moz-appearance: textfield;
    appearance: textfield;
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}


#dynamic_dom .debug-widget {
    position: absolute;
    z-index: 6;
    left: 10px;
    bottom: 10px;
    font-size: 0.8em;
    color: white;
    pointer-events: none;
}

#game_content [data-disable-actions-anchor].disable-all-actions-pointers [data-action-type]:not([data-action-type="card_clicked"]) {
	/* global block of all pointers evens, non-visual*/
    pointer-events: none !important;
}
#game_content [data-disable-actions-anchor].disable-all-actions [data-action-type]:not([data-action-type="card_clicked"]) {
	/* ui-grouped level block that also makes a UI change (i.e. dims the element)
	*The pointer event removal not really needed as it's done globally anyway, but doesn't hurt
	*/
    pointer-events: none !important;
    opacity: 0.8 !important;
}

#dynamic_dom [data-disable-actions-anchor].disable-all-actions [data-action-type] {
	/* ui-grouped level block that also makes a UI change (i.e. dims the element)
	*The pointer event removal not really needed as it's done globally anyway, but doesn't hurt
	*/
    pointer-events: none !important;
    opacity: 0.8 !important;
}

.cross-promo {
    font-size: 0.5em;
    margin-top: 2em;
    color: #ffffff;
}
.cross-promo a {
    color: var(--clr-yellow);
}
.cross-promo.cyan-variant a {
    color: #45e7ff;
	font-size: 1.2em;
}
.cross-promo a:hover {
    text-decoration: none;
}
.multiplayer.table-type-public .cross-promo {
	/* added back in due to cross promo of chip games */
    /*display: none;*/
}
html[data-setting_currency_type="chips"] .multiplayer.table-type-public .cross-promo {
	/* Override hide in chip games */
    display: none;
}

/* checkboxes */
.checkbox-with-label {
    position: relative;
    color: var(--clr-pri);
    cursor: pointer;
    padding-left: 2em;

    font-size: 1.27em;
    font-weight: 600;
}
.portrait .checkbox-with-label {
    font-size: 1.7em;
}
.checkbox-with-label:before,
.checkbox-with-label .checked-icon {
    content: '';
    display: inline-block;

    position: absolute;
    left: 0em;
    top: 0;
    bottom: 0;
    margin: auto 0;

    width: 1.5em;
    height: 1.5em;
    border-radius: calc(5px * var(--ui-scale));
    transition: filter 125ms ease-in-out;
}
.checkbox-with-label:before {
    background: var(--clr-green3);
    border: calc(1px * var(--ui-scale)) solid var(--clr-pri);
}
.checkbox-with-label:hover:before {
    filter: brightness(120%);
}
.checkbox-with-label .checked-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    border: calc(1px * var(--ui-scale)) solid transparent;

    pointer-events: none;
    transition: all 215ms ease-in-out;
    opacity: 0;
    transform: scale(0);
    transform-origin: 100% 0;
}
.checkbox-with-label[data-checked="true"]:not(.already-checked-on-render) .checked-icon {
    /*opacity: 1;
    transform: scale(1);*/
    animation: animateCheckbox 215ms ease-in-out forwards;
}
.checkbox-with-label[data-checked="true"].already-checked-on-render .checked-icon {
    opacity: 1;
    transform: scale(1);
    animation: none;
}
@keyframes animateCheckbox {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    80% {
        opacity: 1;
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}