@import url(https://fonts.googleapis.com/css?family=Yesteryear);

/* CSS Variables for consistency */
:root {
    --app-background-color: #c4dbf2;
    --app-row-height: 100%;
    --win-anim-start-color: cyan;
    --win-anim-end-color: #508ABB;
}

/* html, body, div, span, a, li, td, th {
	font-family: 'Lato', sans-serif;
	font-weight: 300;
} */

/* Table styling for poker calculator */
table {
  border-collapse: collapse;
  width: 100%;
  margin: 20px auto;
  background-color: #f9f9f9;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

th, td {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: left;
}

th {
  background-color: #4CAF50;
  color: white;
  font-weight: bold;
}

td {
  background-color: #fff;
}

tr:nth-child(even) {
  background-color: #f2f2f2;
}

tr:hover {
  background-color: #e8f5e8;
}

/* Card styling */
.card {
  margin: 3px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  cursor: pointer;
}

.card:hover {
  filter: brightness(70%);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* Center the cards within table cells */
td:nth-child(2) {
  text-align: center;
  vertical-align: middle;
}

/* Button styling */
button {
  background-color: #4CAF50;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  margin: 5px;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #45a049;
}

button:active {
  transform: translateY(1px);
}

/* Input styling */
input[type="number"], select {
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin: 5px;
  font-size: 16px;
}

/* Label styling */
label {
  font-weight: bold;
  margin-right: 10px;
}

.inactive{
  filter: brightness(50%);
  background-color: grey;
  opacity: 0.6;
}

/* Status and percentage styling */
#status {
  font-style: italic;
  color: #666;
  background-color: #f0f0f0;
  padding: 10px;
  border-radius: 4px;
  margin: 10px 0;
}

/* Percentage display styling */
span[id^="percent_"] {
  font-weight: bold;
  color: #2e7d32;
  font-size: 18px;
  background-color: #e8f5e8;
  padding: 4px 8px;
  border-radius: 4px;
}

/* Player row styling */
tr td:first-child {
  font-weight: bold;
  color: #333;
}

/* Overall page styling */
body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

h1 {
  color: #2e7d32;
  text-align: center;
  margin-bottom: 30px;
  font-size: 2.5em;
}

/* Controls section styling */
div[style*="margin-bottom: 20px"] {
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

/* Description section styling */
div[style*="background-color: #f5f5f5"] {
  border-left: 4px solid #2e7d32;
}

@-webkit-keyframes winAnim{
	0% {
    background-color: var(--win-anim-start-color);
  }
  100% {
    background-color: var(--win-anim-end-color);
  }
}
@-moz-keyframes winAnim{
  0% {
    background-color: var(--win-anim-start-color);
  }
  100% {
    background-color: var(--win-anim-end-color);
  }
}
@-o-keyframes winAnim {
  0% {
    background-color: var(--win-anim-start-color);
  }
  100% {
    background-color: var(--win-anim-end-color);
  }
}
@keyframes winAnim {
  0% {
    background-color: var(--win-anim-start-color);
  }
  100% {
    background-color: var(--win-anim-end-color);
  }
}

/* Only disable text selection on interactive elements like cards */
.card, button {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

*{
  outline-style:none;/*IE*/
}

.center-box{
	margin : auto;
	position: absolute;
	top : 0;
	right : 0;
	bottom : 0;
	left : 0;
}

html,body{
	/* background-image: linear-gradient(to bottom,#dddbd1,#d2dbdc); */
	background-color: var(--app-background-color);
	height : 100%;
	width  : 100%;
}

.app{
	/* Extended from .center-box */
	margin : auto;
	position: absolute;
	top : 0;
	right : 0;
	bottom : 0;
	left : 0;
	width : 80%;
	height : 70%;
	max-width: 550px;
	background-color : var(--app-background-color);
	box-shadow: 0 5px 30px -5px rgba(0,0,0, .85);
	border-radius: 10px;
}
.app-container,
.app-row{
	height: var(--app-row-height);
}
.play-box,.symbol-option{
	font-family: 'Yesteryear', cursive;
}

.play-box{
	border-bottom : 2px solid #fff;
	border-right : 2px solid #fff;
	height : calc(var(--app-row-height) / 3);
	cursor: pointer;
	position: relative;
}
.play-box.last-right{
	border-right : none;
}
.play-box.last-bottom{
	border-bottom : none;
}
.play-box.win {
	-webkit-animation: winAnim .2s ease-out infinite;
  -moz-animation:    winAnim .2s ease-out infinite;
  -o-animation:      winAnim .2s ease-out infinite;
  animation:         winAnim .2s ease-out infinite;
	animation : winAnim .5s infinite;
}
.play-box .symbol{
	/* Extended from .center-box */
	margin : auto;
	position: absolute;
	top : 0;
	right : 0;
	bottom : 0;
	left : 0;
	width: 50%;
	height : 50px;
	text-align: center;
	line-height : 50px;
	font-size: 35px;
	color : white;
}

.modal-content .content{
	padding : 15px;
	text-align: center;
	margin : 0;
}
.modal-content .content.body{
	line-height: 2;
}
.modal-content .symbol-options{
	width: 200px;
	margin-top: 10px;
}
.modal-content .symbol-options .symbol-option:first-child{
	margin-right: 10px;
}
.modal-content .symbol-options .symbol-option:last-child{
	margin-left: 10px;
}
.modal-content .warning-hr{
	margin: 0;
}