body {
	margin: 0;
	padding: 0;
	font-family: 'Helvetica Neue', Arial, sans-serif;
	font-size: 1.2em;
}
a {
	color: #036;
}

/* *************************************** */

#external-wrapper {
    margin: 30px auto 0;
    padding: 0 5px;
    text-align: center;
    position: relative;
}
#wrapper {
    margin: 20px auto;
    text-align: center;
    position: relative;
}

@media (min-width: 700px) {
    #external-wrapper {
        max-width: 800px;
        margin: 20px auto;
        padding: 0 50px;
        text-align: center;
        position: relative;
    }
    #wrapper {
        max-width: 728px;
        margin: 20px auto;
        text-align: center;
        position: relative;
    }
}

/* *************************************** */

.header {
    margin: 0 0 20px;
}
.logo {
	font-size: 1.1em;
	color: #999;
	font-variant:small-caps;
	letter-spacing: 0.2em;
	text-align: center;
}
h1 {
    margin: 0 0 4px;
}
.intro {
    color: #666666;
    font-size: 0.8em;
}
@media (max-width: 400px) {
    .header {
        margin-bottom: -15px;
    }
    .block-on-mobile {
        display: block;
    }
    .hide-on-mobile {
        display: none !important;
    }
}


/* *************************************** */


/* *************************************** */

#box {
    /*width: 728px;*/
    margin: 40px auto 10px;
    padding: 0;
    background: #eee;
    /*font-size: 1.2em;*/
    position: relative;
    overflow: hidden;
    /*box-shadow: 0 0 8px #aaaaaa;*/
}
.option {
    /*width: 364px;*/
    width: 50%;
    display: block;
    vertical-align: top;
    text-align: center;
    padding: 10px 0;
    margin: 0;
    text-decoration: none;
    background: #fff;
    font-weight: bold;
}
#mode-wakeup {
    float: left;
}
#mode-bedtime {
    float: right;
}
.option.active {
    color: #000;
    background: #f6f6f6;
}
.option-about {
    display: block;
    font-size: 0.7em;
    font-weight: normal;
}

#change {
    position: relative;
    display: inline-block;
}
#change-arrow {
    left: 20px;
    position: absolute;
    top: -40px;
    /*top: -148px;*/
    display: none;
}
#wakeup {
    border: 1px solid black;
    width: 140px;
    font-size: 1.2em;
    text-align: center;
}


#now {
    position: absolute;
    left: 8px;
    top: 5px;
    font-size: 0.6em;
    color: #999;
}

.main-calc {
    font-size: 1.2em;
    margin: 40px 0 0;
}
#sleep-duration {
    margin: 10px 0 40px;
    color: #666;
    font-size: 0.9em;
}
.bysleep {
    display: none;
}
#alternatives {
    /*width: 728px;*/
    padding: 10px 0;
    margin: 30px 0 0 0;
    background: #ddd;
    color: #333;
    font-size: 0.7em;
}
.t {
}
.w {
    font-weight: bold;
}
#w5 {
    font-size: 1.5em;
}
#t5, #w5 {
    white-space: nowrap;
}

.assumptions {
    font-size: 0.7em;
    color: #666;
    margin-bottom: 30px;
}
.assumptions input {
    width: 45px;
    border: 1px solid black;
    font-size: 1em;
    text-align: center;
}

/* *************************************** */

#explanation {
    /*width: 728px;*/
    font-size: 0.9em;
    text-align: justify;
    cursor: pointer;
    margin: 50px auto 0;
}
#explanation strong {
    color: #d30;
}
p {
    line-height: 1.2em;
}
#hypnogram {
    float: right;
    padding: 30px 30px 20px 30px;
    width: 300px;
    font-size: 0.7em;
    text-align: right;
    color: #999;
}
#hypnogram img {
    width: 300px;
    height: 160px;
    margin-bottom: 10px;
    display: block;
}
@media (max-width: 699px) {
    #explanation {
        padding: 0 20px;
    }
    #hypnogram {
        width: 30%;
        padding: 10px;
    }
    #hypnogram img {
        max-width: 100%;
        height: auto;
    }
}

/* *************************************** */

#comments {
    margin: 0 auto;
    display: none;
}

/* *************************************** */

.footer {
    text-align: right;
    font-size: 0.6em;
    color: #999;
    margin: 20px 0 40px;
}
@media (max-width: 699px) {
    .footer {
        padding: 0 20px;
    }
}
/* *************************************** */

#social {
    position: absolute;
    top: 10px;
    right: 0;
    width: 60px;
    text-align: left;
}
.social-button-facebook, .social-button-twitter, .social-button-plus {
    background: url('images/social-buttons.png');
    width: 56px;
    height: 20px;
    display: inline-block;
}
.social-button-twitter {
    background-position: 0 -122px;
}
.social-button-facebook {
    background-position: 0 -182px;
    height: 18px;
}
.social-button-plus {
    background-position: 0 -362px;
}
.social-arrow {
    background: url('images/social-buttons.png');
    width: 56px;
    height: 122px;
    background-position: 0 0;
    margin-top: 5px;
}
@media (max-width: 699px) {
    #social {
        top: -12px;
        right: 2px;
    }
    .social-arrow {
        display: none;
    }
}
@media (max-width: 400px) {
    #social {
        top: -27px;
        left: 0;
        width: 100%;
        text-align: center;
        opacity: 0.5;
    }
    #social a {
        display: inline-block;
    }
    .social-arrow {
        display: none;
    }
}


/* *************************************** */

.adsbygoogle {
    display: block;
    width: 728px;
    height: 90px;
}
@media (max-width: 600px) {
    .adsbygoogle {
        display: block;
        width: 100%;
    }
}