html, body{
	margin:0 auto;
	padding:0;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

a{
	color: #337c33;
}

#container{
	width: 100%;
	max-width: 600px;
	margin: 0 auto;
	height: 100%;
	display: flex;
	flex-direction: column;
	border-left: 1px solid;
	border-right: 1px solid;
}

/*logo*/
.logo{
	text-align: center;
	margin-top: 1px;
	cursor:pointer;
	text-shadow: 2px 3px 2px #000;
	transition: .5s;
}

.logo:hover{
	filter: brightness(1.125);
}

.logo_green, .logo_gold{
    font-size: 22px;
	color: #fff;
	width: 49px;
	height: 30px;
	padding-bottom: 2.5px;
	border-radius: 12px;
	margin: 3px;
	display: inline-block;
}

.logo_gold{
    background-color: #d7bf4a;
}

.logo_green{
    background-color: #35a535;
}
/* intro panel */
.introPanel {
    margin: 20px;
    padding: 15px;
    font-size: 1.2em;
    text-align: center;
    background: #f5f5f5;
    border-radius: 8px;
}
/*notification*/
#notification{
	text-align: center;
	letter-spacing: 1px;
	font-size: 18px;
	margin-top: 4px;
	margin-bottom: 4px;
	height: 20px;
}


/*game*/
.game_area{
	margin-top:3px;
}

.row, .row_block{
	display: flex;
	justify-content: center;
	margin: 1px;
}

.row_block{
	font-size: 40px;
    border: 1px solid;
    padding-bottom: 2.5px;
    width: 56px;
    height: 51px;
	border-radius: 12px;
	transition: transform 1.6s;
}
/* bottom bar */
.bottomBar, .nav_bar{
    display: flex;
    justify-content: space-between;
    margin: 4px 4px;
    gap: 4px;
}
.bottomBtn, .btn, #levelSelectBtn,#hintBtn,#giveUpBtn {
    flex: 1;
    padding: 2px 2px;
    font-size: 0.9rem;
    color: #666;
    background: none;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    transition: .3s;
}
.bottomBtn:hover, .btn:hover, #levelSelectBtn:hover,#hintBtn:hover,#giveUpBtn:hover {
    color: #538d4e;
    border-color: #538d4e;
}

/* definition */
#defBlock {
    margin: 12px 16px 0;
    padding: 10px 12px;
    background: #f9f9f9;
    border-left: 3px solid #538d4e;
    border-radius: 4px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #333;
    text-align: left;
}
#defBlock strong { color: #538d4e; font-size: 1rem; }
#defBlock em { color: #777; }
.defLinks {
    margin-top: 10px;
    display: flex;
    gap: 12px;
}
.defLinks a {
    color: #538d4e;
    font-size: 0.85rem;
    text-decoration: none;
}
.defLinks a:hover { text-decoration: underline; }
/* keyboard */
#keyboard{
	text-align:center;
	margin-top: 5px;
}

#topKeys, #midKeys, #botKeys{
	display: flex;
	justify-content:center;
}

.keyboardKey_s, .keyboardKey_m, .keyboardKey_l{
	background-color: #c5c5c5;
	font-size: 26px;
	height: 32px;
	padding: 2px 0;
	margin: 2.5px;
	display: flex;
	justify-content: center;
	cursor: pointer;
}
.keyboardKey_s{
	width: 52px;
}
.keyboardKey_m{
	width: 58px;
}
.keyboardKey_l{
	width: 81px;
}

.blockGreen, .blockGrey, .blockGold{
	color:#fff;
	transform: rotateX(360deg);
}
.blockGreen{
	background-color: #35a535;
}
.blockGrey{
	background-color: #737373;
}
.blockGold{
	background-color: #d7bf4a;
}
/* added for hint */
.blockHint {
    background-color: #6fa8dc; /* a calm blue */
    color: white;
    border-color: #6fa8dc;
}

/*modal*/
#shadowBack{
	position: absolute;
	left: 0;
	background: #000;
	opacity: 0;
	width: 100%;
	height: 100%;
	z-index: 10;
	transition: .5s;
}

#modal{
	position: absolute;
	top: 100px;
	width: 350px;
	background: #fff;
	opacity: 0;
	left: calc(50% - 175px);
	z-index: 11;
	transition: .5s;
}

#modalClose{
	position: absolute;
	margin-top: -42px;
	margin-left: 277px;
	font-size: 21px;
	cursor: pointer;
	padding: 5px 10px;
}

.modalBtn, .modalBtnL{
	width: 100%;
	font-size: 28px;
	cursor: pointer;
}

.modalBtn, .modalBtnL{
	padding: 23.5px;
}

.modalBtnL{
	padding: 87.5px;
}

.modalMessage{
	display: block;
	font-size: 22px;
	text-align: center;
	margin-top: 11px;
	line-height: 32px;
	letter-spacing: .5px;
}

.msBlock{
	display: inline-block;
	text-align: center;
    margin-top: 17px;
	width: 49%;
}

.msHead{
	display:block;
	font-size: 20px;
}

.msBody{
	display:block;
	font-size: 60px;
}

.scoreType{
	display: inline-block;
	width:50%;
	text-align: center;
    padding: 10px 0;
}

.scoreBtn, .scoreBtnActive{
	width: 25%;
	padding: 13px 0;
	cursor: pointer;
	transition:.5s;
}

.helpBtn, .helpBtnActive{
	width: 50%;
	padding: 13px 0;
	cursor: pointer;
	transition:.5s;
}

.scoreBtnActive, .helpBtnActive{
	background:#737373;
	color:#fff;
}

#mhBlock{
	padding: 8px;
	font-size: 15px;
}

.mhbHead{
	padding-bottom: 10px;
	border-bottom: 1px solid #bbbbbb;
}

.mhbBody{
	text-align: center;
}

.exampleRow{
	padding: 4px;
}

.exampleTile{
	font-size: 21px;
	padding: 5px;
	border: 3px solid #737373;
	width: 28px;
	margin: 3px;
	display: inline-block;
}

/* social - removed but add back if required 42px high*/
.socialNav{
	height: 5px;
	text-align: center;
	border-bottom:1px solid #ccc;
	margin-bottom:5px;
}

.modalSocialIcon{
	width: 35px;
	margin: 7px;
	cursor: pointer;
}

/* menu */
#menu{
	position: relative;
	top:7px;
}

.menuBtn{
	width:100%;
	padding: calc(6vh - 30px);
	font-size: 20px;
	cursor: pointer;
}

@media only screen and (max-width: 800px) {
	.game_area{
		margin-top: 1px;
		
	}
	.row, .row_block{
		margin: 2px;
	}
	.row_block {
		font-size: 40px;
		width: 45px;
		height: 44px;
	}
	#notification, .nav_bar{
		margin-top: 0;
		margin-bottom: 0;
	}
}

@media only screen and (max-width: 415px) {
	.game_area{
		margin-top: 1px;
		
	}
	.row, .row_block{
		margin: 2px;
	}
	.row_block {
		font-size: 28px;
		width: 30px;
		height: 30px;
	}
	.logo_green, .logo_gold {
		font-size: 21px;
		width: 32px;
		height: 27px;
	}
	.btn{
		font-size:15px;
	}
	#difficultySelectBtn{
		margin-left:-131px;
	}
	#levelSelectBtn{
		margin-left:57px;
	}
	#modal{
		width:300px;
		left:calc(50% - 150px);
	}
	#notification {
		height:15px;
		font-size:17px;
	}
	.nav_bar{
		margin-bottom:6px;
	}
	#modalClose {
		margin-left: 215px;
	}
	.modalBtnL, .modalBtn{
		padding:6vh;
	}
	.msBlock {
		margin-top: 22px;
		margin-bottom: 10px;
	}
	.msHead {
		font-size: 13px;
	}
	.msBody {
		font-size: 36px;
	}
	.mhbHead {
		font-size: 12px;
	}
	.helpBtn, .helpBtnActive {
		padding: 7px 0;
	}
	.exampleTile {
		font-size: 15px;
		padding: 4px;
		width: 21px;
	}
	.socialNav{
		display:none;
	}
}
