/* 
  Device = Low Resolution Tablets, Mobiles (Landscape)
*/

@media only screen and (max-width: 768px), only screen and (max-height: 480px) {
	html {
		-webkit-text-size-adjust: none;
	}
	h2, h3 {
		font-size: 1.1rem;
		line-height: 2rem;
	}
	nav {
		background-color: #f8f8f8;
	    width: 325px;
	    padding: 20px 5px;
	    margin-top: 35px;
	    border-top: 1px #7da65c solid;
		position: absolute;
		left: 0;
		top: -30px;
		z-index: 10;
      	transform: translateX(-100%);
  		transition: transform .3s ease-in-out;
	}
	nav.open {
		transform: none;
	}
	ul#nav {
		width: 11em;
		margin: 0;
	}
	#nav li {
		z-index: 100;
	}
	#nav > li ul {
    	width: 11em;
	}
	#nav li > a, #nav li > a:hover, #nav li > a:focus, #nav li > a:visited {
		padding-left: 10px;
	}
	.copyright {
		width: 11em;
	}

/** 
 * logo
 */
	.logo {
		position: fixed;
		top: 10px;
		right: 10px;
    width: 75px;
    height: 26px;
    margin: 0;
	}

	#page {
	    margin: 30px 0 0 0;
	}
	#main {
		width: 100%;
		height: 100%;
		min-width: 0;
		margin: 5px 0 0 0;
		padding: 0;
		border: none;
		border-radius: none;
		-moz-box-shadow: none;
		-webkit-box-shadow: none;
		box-shadow: none;
		align-items: flex-start;
		justify-content: center;
	}
	#bg {
		margin-top: 10px;
	}
	.container {
		width: 100%;
		margin: 0;
	}
	.container img {
	    margin: auto;
    	display: block;
	}
	.container.single p {
	    width: 500px;
	}
	.container.animatedCard h2 {
		display: none;
	}
	.container.animatedCard img {
		display: inline-block;
	}
	.video iframe {
		width: 100%;
	}

/** 
 * Slideshow style rules
 */
.carousel img {
	width: 100%;
	height: 100%;
}
.carousel img.portrait {
	width: 80%;
	height: 80%;
}
.carousel img.portrait_longer {
	width: 70%;
	height: 70%;
}
.carousel img.portrait_longest {
	width: 60%;
	height: 60%;
}
.control {
	top: 120px;
}

	/** 
	 * menu
	 */
	menu {
		z-index: 3;
		width: 25px;
		height: 15px;
		position: fixed;
		top:  10px;
		left: 10px;
		-webkit-transform: rotate(0deg);
		-moz-transform: rotate(0deg);
		-o-transform: rotate(0deg);
		transform: rotate(0deg);
		-webkit-transition: .5s ease-in-out;
		-moz-transition: .5s ease-in-out;
		-o-transition: .5s ease-in-out;
		transition: .5s ease-in-out;
		cursor: pointer;
	}

	menu span {
	  display: block;
	  position: absolute;
	  height: 2px;
	  width: 100%;
	  background: #7da65c;
	  opacity: 1;
	  left: 0;
	  -webkit-transform: rotate(0deg);
	  -moz-transform: rotate(0deg);
	  -o-transform: rotate(0deg);
	  transform: rotate(0deg);
	  -webkit-transition: .25s ease-in-out;
	  -moz-transition: .25s ease-in-out;
	  -o-transition: .25s ease-in-out;
	  transition: .25s ease-in-out;
	}

	menu span:nth-child(1) {
	  top: 0px;
	}

	menu span:nth-child(2), menu span:nth-child(3) {
	  top: 7px;
	}

	menu span:nth-child(4) {
	  top: 14px;
	}

	menu.open span:nth-child(1) {
	  top: 7px;
	  width: 0%;
	  left: 50%;
	}

	menu.open span:nth-child(2) {
	  -webkit-transform: rotate(45deg);
	  -moz-transform: rotate(45deg);
	  -o-transform: rotate(45deg);
	  transform: rotate(45deg);
	}

	menu.open span:nth-child(3) {
	  -webkit-transform: rotate(-45deg);
	  -moz-transform: rotate(-45deg);
	  -o-transform: rotate(-45deg);
	  transform: rotate(-45deg);
	}

	menu.open span:nth-child(4) {
	  top: 7px;
	  width: 0%;
	  left: 50%;
	}  

	/** 
	 * simple template
	 */
	.simpleContainer {
		padding: 5px;
		margin: 5px;
	}
	.simpleContainer .carousel {
		margin-top: 5px;
	    width: 650px;
	    height: 475px;
	}
	.simpleContainer img {
		width: 90%;
		height: 90%;
	}

	.simpleContainer .slideswrapper {
	    width: 600px;
	    height: 475px;
	}

	.back span.desc {
		display: none;
	}

	#pigcontainer {
		width: 670px;
		height: 375px;	
		margin-left: 45px;
	}
	#pigcontainer img {
		width: 100%;
		height: 100%;
	}
	#pigcontainer #animation {
		margin: 25px;
		width: 360px;
	}
	#pigcontainer #desc {
		width: 250px; 
		margin-top: 265px; 
		padding: 0; 
	}

	.frame {
		width: 620px;
		padding: 10px;
	}
	.frame img {
		width: 85%;
		height: 85%;
		margin: 10px;
	}
	#doodles table {
		width: 90%;
	}
	#doodles img {
		width: 90%;
	}

	#contact, #about {
		top: 150px;
	}
}

/* 
  Device = Most of the Smartphones Mobiles (Portrait)
*/

@media only screen and (max-width: 480px) {
	.container.single p {
	    width: auto;
	    padding-left: 10px;
	}
	nav {
		width: 100%
	}

	.carousel, .slideswrapper {
		width: 100%;
	}

	/** 
	 * simple template
	 */
	.simpleContainer {
		margin-top: 30px;
	}
	.simpleContainer .slideswrapper {
	    width: 100%;
	}
	.simpleContainer .carousel {
	    width: 100%;
	}
	.simpleContainer li {
	    padding: 0;
	    border: none;
	}
	.simpleContainer li div {
	    background-color: transparent;
	}	
	.simpleContainer .carousel img {
	    margin: 0;
	    border: 1px solid #b9bfac;
	}	
	.simpleContainer .control {
		top: 100px;
	}

	#pigcontainer {
	    width: 90%;
    	margin: 50px auto 0;
    	height: 400px;
	}
	#pigcontainer #animation {
		margin: 10px;
    	width: auto;
	}
	#pigcontainer #desc {
		margin-top: 0;
		float: none;
    	margin-left: 20px;
	}

	#doodles table {
		margin-top: 30px;
	}
}