/* Mobile Layout: 480px and below. */

.slide-text p {
    font-size: 12px;
    line-height: 16px;
    margin: 0 0 10px 0;
}
.slide-text h3 {
    font-size: 1em;
    line-height: normal;
	margin: 0 0 10px 0;
}

::-webkit-scrollbar{width:2px;height:2px;}
::-webkit-scrollbar-button{width:2px;height:2px;}

div{
  box-sizing:border-box;
}

.horizontal-scroll-wrapper {
    position: inherit;
    display: block;
    top: 0;
    left: 0;
    width: 400px;
    max-height: 500px;
    margin: 0;
    overflow-y: auto;
    overflow-x: hidden;
    transform: rotate(-90deg) translateY(-400px);
    transform-origin: right top;
    max-width: 100%;
}

.horizontal-scroll-wrapper > div{
  display:block;
  padding:5px;
  transform:rotate(90deg);
  transform-origin: right top;
  max-width: 100%;
}

.slide-text{
	width: 100%;
    margin: 0;
    display: block;
}

.rectangles {
    top: 100px;
    padding: 390px 0 0 0;
	margin: -70px 0 -120px 0;
}

.rectangles hr{
	display:none;
}
.rectangles > div{
	width: 1200px;
    height: 200px;
    margin: 300px 0;
    padding: 0;
    transform: rotate(90deg) translateY(80px);
    transform-origin: right top;
    max-width: 100%;
}
.last-slide > div{
	width: 1200px;
    height: 200px;
    margin: 300px 0;
    padding: 0;
    transform: rotate(90deg) translateY(80px);
    transform-origin: right bottom;
    max-width: 100%;
}
.rectangles > div:first-of-type{
    margin: 0 !important;
}
.last-slide{
	margin: 0 0 -140px 0 !important;
}
.slidelink{
	text-align:center; 
	z-index:9999; 
	display:block; 
	position:relative; 
	padding:50px 0 60px 0; 
	margin:-170px 0 0 0;
}

/* horizontal scrolling end */

/* Tablet Layout: 481px to 768px. Inherits styles from: Mobile Layout. */

@media only screen and (min-width: 481px) {
.slide-text{
	width: 90%;
    margin: 0 5%;
}
.last-slide{
	margin: 0 0 -500px 0 !important;
}
.rectangles{
    padding: 980px 0 0 0;
    margin: -70px 0 -400px 0;
}
.horizontal-scroll-wrapper{
	width: 1000px;
    transform: rotate(-90deg) translateY(-996px);
}
.slide-text h3 {
    font-size: 1.3em;
}
.slide-text p {
    font-size: 18px;
    line-height: 28px;
}
.rectangles > div {
    height: 440px;
}
.slidelink{
	padding:0 0 30px 0; 
}
}

/* Desktop Layout: 769px to a max of 1232px.  Inherits styles from: Mobile Layout and Tablet Layout. */

@media only screen and (min-width: 769px) {
.horizontal-scroll-wrapper{
    position: inherit;
    display: block;
    top: 0;
    left: 0;
    width: 800px;
    max-height: 500px;
    margin: 0;
    overflow-y: auto;
    overflow-x: hidden;
    transform: rotate(-90deg) translateY(-800px);
    transform-origin: right top;
    max-width: 100%;
}
.last-slide{
	margin: 0 0 -140px 0 !important;
}
.horizontal-scroll-wrapper > div{
  display:block;
  padding:5px;
  transform:rotate(90deg);
  transform-origin: right top;
  max-width: 100%;
}

.slide-text{
    width: 80%;
    margin: 0 10%;
    display: block;
}
.rectangles{
    top: 100px;
    padding: 782px 0 0 0;
    margin: -70px auto -100px auto;
}
.rectangles hr{
	display:none;
}
.rectangles > div{
    width: 800px;
    height: 400px;
    margin: 360px 0;
    padding: 0;
    transform: rotate(90deg) translateY(80px);
    transform-origin: right top;
	max-width: 100%;
}
.rectangles > div:first-of-type{
    margin: 0 !important;
}
.last-slide{
	margin: 0 0 -800px 0 !important;
}
}
