html { 
	background-color:#092E20; 
}

body { 
	position:relative;
	border-radius:8px; 
	box-shadow:black 0px 0px 2px; 
	max-width: 1100px;
	width: 100%;
	background:#FFF; 
	margin:10px auto; 
	border:solid 1px black; 
	font-family: arial, sans-serif; 
	padding:20px;
	box-sizing: border-box;
	zoom: 1.1;
}
#buttons {
	text-align:center;
}

a img {
	position: absolute; 
	top: 0; 
	right: 0; 
	border: 0;			
}
button {
	height:40px;
	min-width:100px;
	margin:8px auto;
	padding: 8px 16px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	font-weight: bold;
	border: 2px solid #555;
	background-color: #f8f9fa;
	transition: all 0.2s;
}

button:hover {
	background-color: #e9ecef;
	transform: translateY(-1px);
	box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

button:active {
	transform: translateY(0);
}
img.preload {
	display:none;
}
h1 {
	font-size:48px;
	text-align:center;
	padding:0px;
	margin:10px auto 20px;
	color: #2c3e50;
}

#card-table {
	position: relative;
	background-color:green;
	height:400px;
	width:100%;
	max-width:100%;
	margin: 0 auto;
	border:solid 6px brown;
	border-radius:8px;
	box-shadow:#111 1px 1px 2px;
}
a:visited {color:blue;}

#language-switch {
	text-align: right; 
	margin-bottom: 10px;
	padding: 5px;
	font-size: 14px;
}

#language-switch a {
	text-decoration: none;
	color: #3498db;
	padding: 0 5px;
}

#language-switch a:hover {
	text-decoration: underline;
}

#deal {
	position: absolute;
	left:75%;
	top:50%;
	transform: translate(-50%, -50%);
}

#japjap-button {
	display: block;
	margin: 15px auto;
	background-color: #ff6b6b;
	color: white;
	font-weight: bold;
	border: 2px solid #c92a2a;
	padding: 10px 20px;
	font-size: 16px;
}

#japjap-button:hover {
	background-color: #fa5252;
	border-color: #a61e1e;
}

#game-info {
	margin: 10px 0;
	padding: 10px;
	background-color: #f0f0f0;
	border-radius: 5px;
}

#player-count-selector {
	font-size: 16px;
	margin-bottom: 10px;
	padding: 5px;
}

#player-count {
	margin-left: 10px;
	padding: 5px 10px;
	font-size: 14px;
	border: 1px solid #555;
	border-radius: 4px;
	background-color: white;
	cursor: pointer;
}

#scores {
	font-size: 18px;
	margin-bottom: 5px;
}

#status-message {
	font-size: 16px;
	color: #2c5f2d;
	font-weight: bold;
	margin-top: 5px;
}

#instructions {
	margin: 15px 0;
	padding: 10px;
	background-color: #e7f5ff;
	border-radius: 5px;
	border: 1px solid #339af0;
}

#instructions ul {
	margin: 5px 0;
	padding-left: 20px;
}

#instructions li {
	margin: 3px 0;
	font-size: 14px;
}

footer {
	font-size : 12px;
	color:grey;
	margin:10px;
	text-align: center;
	line-height: 1.6;
}

footer a, footer a:visited{
	color:grey;
}

footer a:hover {
	color:black;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
	body {
		padding: 10px;
		margin: 10px auto;
	}
	
	h1 {
		font-size: 36px;
	}
	
	#card-table {
		height: 350px;
	}
	
	#instructions {
		font-size: 13px;
	}
	
	#instructions li {
		font-size: 12px;
	}
}
