/*  CSS RESET
--------------------------------------- */
div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, hr, a, abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strong, sub, sup, tt, var, b, u, i, dl, dt, dd, ol, ul, li, fieldset, form, input, textarea, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, figcaption, figure, footer, header, hgroup, menu, nav, section, summary, time, mark, audio, video, body {
    margin: 0;
    padding: 0;
}

article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
    display: block;
}

table {
    border-spacing: 0;
    border-collapse: collapse;
}

strong, b, mark {
    font-style: inherit;
    font-weight: bold;
}

em, i, cite, q, address, dfn, var {
    font-style: italic;
    font-weight: inherit;
}

    abbr[title], dfn[title] {
        cursor: help;
        border-bottom: 1px dotted;
    }

ins {
    border-bottom: 1px solid;
}

a, u, ins {
    text-decoration: none;
}

del, s {
    text-decoration: line-through;
}

pre, code, samp, kbd {
    font-family: monospace;
}

small {
    font-size: 0.75em;
}

img {
    border: none;
    font-style: italic;
}

input, select, option, optgroup, textarea {
    font: inherit;
}

input, textarea {
    cursor: text;
}

    label, input[type="button"], input[type="checkbox"], input[type="radio"], input[type="submit"], button, select, option {
        cursor: pointer;
    }

/*********************************
    Actual page styling
*********************************/

body {
    font-family: verdana, arial, sans-serif;
    font-size: 14px;
    margin: 0px;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    padding: 5px;
}

.site-wrapper {
    width: 100%;
    max-width: 748px;
    margin: 0px auto;
}

.site-wrapper video {
    width: 100%;
    height: 100%;
    display: inline-block;
}

.video-wrapper {
    width: 62.4%;
    height: 262px;
    float: right;
    max-width: 500px;
    margin: 0 0;
    display: inline-block;
}

.img-ctrl {
    max-width: 500px;
    width: 55%;
    float: right;
    margin: 25px 0 0;
    text-align: center;
}

.img-ctrl img {
    width: auto;
    max-width: 100%;
}

h2 {
    font-size: 24px;
    line-height: 30px;
    margin: 0px auto 15px;
    font-weight: bold;
}

h3 { 
    font-size: 15px;
    line-height: 30px;
    margin: 0px auto 15px;
    font-weight: bold;
}

p {
    width: 100%;
}

span {
    margin: 5px auto 10px 10px;
    display: block;
    
}

a {
    line-height: 16px;
    padding: 10px 20px;
    box-shadow: 2px 2px 3px #c0c0c0;
    background-color: #45A7DE;
    text-decoration: none;
    color: #fff;
    border-radius: 10px;
    font-weight: bold;
    font-style: italic;
    margin-top: 15px;
    display: inline-block;
    cursor: pointer;
}

article {
    width: 35.5%;
    margin: 0 0;
    display: inline-block;
}

.img-page {
    width: 43%;
}

.text-page article {
    width: 62.3%;
}

.text-page .video-wrapper, .text-page .img-ctrl {
    width: 35.5%;
}

.txtPage {
	background-repeat: repeat;
	background-size:100% auto;
	background-image: url('BackgroundWithoutLogo@2x.png');
    background-color: #FFFFFF;
    color: #000000;
}

.txtPage .site-wrapper {
    width: 100%;
    margin-top: 20%;
    max-width: 100%;
}

div.content {
	text-align: left;
	height: auto;
	margin-left: 3%;
	margin-right: 3%;
}
 
div.content h1 {
    margin: 0px auto 15px;
    font-size: 24px;
}

div.content h3 {
    margin: 0px auto 5px;
}

div.centeredContent {
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin: 0 auto;
	text-align: center;
}

/****************************************
    Special links section
*****************************************/

.building-instructions {
    background: url("../GlobalImg/btn-img-sprite.png") no-repeat 50% 50%;
    width: 190px;
    height: 70px;
    display: block;
    padding: 0px;
    border: 1px solid #ccc;
    margin: 0px;
}

.color-sensor-down {
    background-position: 0px 0px;
}

.color-sensor-forward {
    background-position: -130px 0px;
}

.cuboid {
    background-position: -260px 0px;
}

.driving-base {
    background-position: -427px 0px;
}

.gyro-sensor {
    background-position: -590px 0px;
}

.medium-motor {
    background-position: -747px 0px;
}

.touch-sensor {
    background-position: -910px 0px;
}

.ultrasonic-sensor {
    background-position: -1040px 0px;
}



@media screen and (max-width: 479px), screen and (max-device-width: 479px) {
    article {
        width: 100%;
    }

    .video-wrapper {
        width: 100%;
    }

    .site-wrapper video {
        width: 100%;
    }

    .img-ctrl {
        max-width: 400px;
        width: 100%;
    }
}
