/* Small devices (tablets, 768px and up) */
@media (max-device-width: 779px){

/* @media (max-device-width: 779px) { */
	
	h1,h2,h3,h4 {
		font-size: 24px !important;
	}
	
	#main li, strong, ul, ol, blockquote, #main a {
		font-size: inherit !important;
	}	
	
	p {
		font-size: 18px !important;
		line-height: 26px;
	}	

html, body {	
height:  auto;
vertical-align: top;
margin:  0;
border:  0px solid black;
font-size:  18px;
text-align: center;
}

html {
width:  100%;
padding:  0;
}

body {
width: 100%;
}

div {
width: 98%;
	margin-left:auto;
	margin-right:auto;
position: relative;
	vertical-align:top !important;
}
	
	#logo h1 {
		font-size: 40px !important;
	}

	#header {
		background: transparent;
		position:absolute;
		top:0;
		left:0;
		z-index: 2;
		width: 100%;
	}
	
	#gallery {
	background-size: auto;
	height: 1px;
	padding-bottom: 150%;
/*	background-image: url('images/background.jpg');
	background-repeat: no-repeat;
	background-size: cover; */
	position: relative;
	top: 0;
	left:0;
		overflow: hidden;
}
	
	#gallery img {
		height: 500px;
		width: auto;
		max-width: auto !important;
			display:  block;
	position:  absolute;
	z-index: 0;
	top: 0; left:0;
	}

#page img, #halfblock img {
height: auto;
margin-left: auto;
margin-right: auto;
max-width: 100% !important;
} 
	
	#tagline {
	margin-top: 500px;
	padding: 5% 0;
	text-align: right;
	width: 100%;
	position: absolute;
	bottom: 0%;
	right:0;
}

#tagline span {
	display: inline-block;
	vertical-align: middle;
	line-height: normal;
	font-size: 40px !important;
	color: gray;
}
	
	#bar {
		z-index: 1 !important;
	}
	
#barButtons li a img {
	vertical-align: middle;
	width: 40%;
}	
	
	#onImage {
		font-size: 2em;
	}

/*
#background {
    width: 100%;
    height: auto;
    display:  block;
    position: absolute;
}
*/

#nav {
display: none;
}

.inline {
display: moz-inline-block;
display: inline-block;
*display: inline;
list-style-type: none;
zoom: 1;
}

	#opening {
		display: none !important;
	}

#menu-selector {
    height: 50px;
    text-align: right;
    color: white;
    font-size: 1em;
    background: transparent;
    position: relative;
    padding: 1%;
margin-bottom: 20px;
display: block;
width: 100% !important;
border:  none;
}

#menu-selector img {
    height: 40px;
    width: auto;
    display: moz-inline-block;
display: inline-block;
*display: inline;
list-style-type: none;
zoom: 1;
margin: 0 1% 20px 0;
vertical-align: top;
}

#menu-selector span {
    color: white;
    font-size: 1em;
    padding: 0 1%;
   display: moz-inline-block;
display: inline-block;
*display: inline;
list-style-type: none; 
	
zoom: 1;
vertical-align: top;
}

#mobilenav {
    height: 50px;
    overflow:  hidden;
    width: 100%;
    border: inherit;
    padding: 5px 0 2%;
    vertical-align: bottom;
    text-align: right !important;
list-style:none;
	font-size: 1.5em !important;
	color: white;
position: relative;
	z-index: 1000;
	background: transparent;
}

#mobilenav ul {
margin: 0;
padding: 0;
	height: 850px;
	background: white;
}
	

#mobilenav ul li, #mobilenav li {
display: moz-inline-block;
display: inline-block;
*display: inline;
list-style-type: none;
zoom: 1;
width: auto;
height: auto;
padding: 5px;
text-align: center;
display: block;
background: white !important;
}

#mobilenav ul li a, #mobilenav li a {
    width: auto;
    height: auto;
    padding: 10px 20px;
    text-align: right;
    font-family: 'Fjalla One', sans-serif;
    font-size: 0.8em;
    color:  gray;
text-decoration: none;
}

#drop li a, .children li a  {
background: gray !important;
display: block;
margin: 0;
text-align: center !important;
font-size: 2em !important;
}
	
	#footer * {
		color: white;
	}	
	
	#footer img {
		padding-top: 20px;
	}

}

/* ------------------- tablet version ---------------------------------- */

@media only screen and (min-device-width: 780px) and (max-device-width: 1200px) {

html, body {	
height:  auto !important;
vertical-align: top;
margin:  0;
border:  0px solid black;
font-size:  18px;
text-align: center;
}

html {
width:  100% !important;
padding:  0;
}

body {
width: 100% !important;
}

div {
border: 0px solid black;
	vertical-align:top;
}

#page {
width: 95%;
min-width: 780px;
}

#background {
    width: 100% !important;
    height: auto !important;
    display: block;
    position: absolute;
top: 0;
left: 0;
}

#header {
width: 100% !important;
height: auto !important;
}

#nav {
display: none;
}
	
#header {
background: #b2002b url('../../../ruenthaispa/wp-content/uploads/sites/9/2019/05/ruen-thai-spa-milton-keynes-background.jpg') no-repeat;
background-size: auto 1000px;      
}	

#mobilenav {
display: moz-inline-block !important;
display: inline-block !important;
*display: inline !important;
list-style-type: none !important;
zoom: 1 !important;
	font-size: 1.5em !important;
	color: white;
	text-align:center;
}
	
	#mobilenav > span {
		display: none;
	}
	
		#mobilenav img {
		display:none;
	}

.inline {
display: moz-inline-block;
display: inline-block;
*display: inline;
list-style-type: none;
zoom: 1;
}


#menu-selector {
    height: 50px;
    text-align: center;
    color: white;
    font-size: 20px;
    background: transparent;
    position: relative;
    padding: 1%;
margin-bottom: 20px;
display: block;
width: 100% !important;
border:  none;
}

#menu-selector img {
    height: 50px;
    width: auto;
    display: moz-inline-block;
display: inline-block;
*display: inline;
list-style-type: none;
zoom: 1;
margin: 0 1% 20px 0;
vertical-align: top;
}

#menu-selector span {
    color: white;
    font-size: 1em;
    padding: 0 1%;
      display: moz-inline-block;
display: inline-block;
*display: inline;
list-style-type: none; 
zoom: 1;
vertical-align: top;
}

#mobilenav {
    height: 50px;
    overflow:  hidden;
    width: 50%;
    border: inherit;
    padding: 5px 0 2%;
    vertical-align: bottom;
    text-align: right;
}

#mobilenav li {
display: moz-inline-block;
display: inline-block;
*display: inline;
list-style-type: none;
zoom: 1;
width: auto;
height: auto;
padding: 5px;
text-align: center;
display: block;
background: #b2002b;
}

#mobilenav li a {
    width: auto;
    height: auto;
    padding: 10px 20px;
    text-align: right;
    font-family: 'Fjalla One', sans-serif;
    font-size: 1.5em;
    color:  white;
}

	} /* end media mobile screen */

/* ------------------- mobile navigation fix ---------------------------------- */

@media only screen and (min-device-width: 1201px) and (max-device-width: 1400px) {
	#nav * {
		font-size: 14px !important;
	}
}