/*! HTML5 Boilerplate v5.0 | MIT License | http://h5bp.com/ */

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

textarea {
    resize: vertical;
}

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}


/* ==========================================================================
   Author's custom styles
   ========================================================================== */

body{
    background: url(../img/bg.jpg);
}

#wrapper{
    max-width: 940px;
    margin:20px auto;
}

#wrapper header{ text-align: center; padding: 0 10px; }

#wrapper header img{ max-width: 100%; }

#wrapper .left-content{
    float:left;
    width:340px;
}

#wrapper .right-content{
    margin-left:340px;
}

/* ==========================================================================
   BOX
   ========================================================================== */

.box{
    display: inline-block;
    margin: 10px;

    background-color: white;

    border-radius: 10px 10px 10px 10px;
    -moz-border-radius: 10px 10px 10px 10px;
    -webkit-border-radius: 10px 10px 10px 10px;

    -webkit-box-shadow: 1px 1px 5px 0px rgba(50, 50, 50, 0.4);
    -moz-box-shadow:    1px 1px 5px 0px rgba(50, 50, 50, 0.4);
    box-shadow:         1px 1px 5px 0px rgba(50, 50, 50, 0.4);
}

    .box h1{
        font-size: 1em;
        margin: 8px 0;
    }

        .box h1 > img{
            vertical-align: sub;
        }

    .box > footer{
        padding: 10px;
    }

/* ==========================================================================
   SECTIONS
   ========================================================================== */

section{
    display: inline-block;
	    box-sizing: border-box;
}

section.stream{
    max-width: 320px;
	
}
section.stream .res-img {
    display: block;
    max-width: 100%;
    height: auto;
}

section.webcam{
    width: 320px;
}
    section.webcam > .your-webcam{
        background-color: #b3b3b3;
        height: 240px;
    }

        section.webcam > .your-webcam img{
            margin: 50px;
        }

section.profile{
    padding: 5px;
    max-width: 550px;
}
    section.profile img{ width: 100%; }

section.chatbox{
    max-width: 550px;
    padding: 20px;
	width: 90%;
    width: calc(100% - 20px);
}

section.accept-decline{
    width: 100%;
    max-width:600px;
    text-align: center;
}


/* Icons */

.alert{
    color:red;
    font-size:11px;
    font-weight:bold;
    margin:7px 0;
}
    .alert > i{ vertical-align: sub; }

.icon-live{
    color: #BBBBBB;
    background-color: #F1F1F1;
    font-size: 0.6em;
    margin: 10px 0;
    padding: 2px 5px;
    letter-spacing: 1px;
    height: auto;
}

/* ==========================================================================
   CHAT
   ========================================================================== */

form > .textarea{
    height: 200px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    overflow-y: scroll;
    padding: 15px;

    font-size: 12px;
    text-align: left;
}

    form > .textarea p{
        margin: 0;
    }


    form > .textarea span.date{
        color:#BBB;
    }

form > input{
    width: 79%;
    max-width: 405px;
    font-size: 12px;
    padding: 5px 10px;
    margin-right: 10px;
	box-sizing: border-box;
}

form > button {
  background: #ffffff;
  background-image: -webkit-linear-gradient(top, #ffffff, #e0e0e0);
  background-image: -moz-linear-gradient(top, #ffffff, #e0e0e0);
  background-image: -ms-linear-gradient(top, #ffffff, #e0e0e0);
  background-image: -o-linear-gradient(top, #ffffff, #e0e0e0);
  background-image: linear-gradient(to bottom, #ffffff, #e0e0e0);
  -webkit-border-radius: 4;
  -moz-border-radius: 4;
  border-radius: 4px;
  -webkit-box-shadow: 1px 1px 2px #b5b5b5;
  -moz-box-shadow: 1px 1px 2px #b5b5b5;
  box-shadow: 1px 1px 2px #b5b5b5;
  color: #888;
  font-size: 12px;
  padding: 8px 20px;
  border: solid #CCC 1px;
}

#connecting,
#typing{
    display: none;
    color: #BBB;
    font-style: italic;
}

/* ==========================================================================
   ACCEPT / DECLINE BUTTONS
   ========================================================================== */

.ad-btn {
    -moz-border-radius:6px;
    -webkit-border-radius:6px;
    border-radius:6px;
    display:inline-block;
    cursor:pointer;
    color:#ffffff;
    font-family:Arial;
    font-size:15px;
    font-weight:bold;
    padding:10px 40px;
    text-decoration:none;

    margin: 10px 10px;
}

.ad-btn:active{
    position:relative;
    top:1px;
}

.ad-btn > i,
.ad-btn > i{
    vertical-align: sub;
    margin-right: 10px;
}

.decline-btn {
    -moz-box-shadow:inset 0px 1px 0px 0px #f29c93;
    -webkit-box-shadow:inset 0px 1px 0px 0px #f29c93;
    box-shadow:inset 0px 1px 0px 0px #f29c93;
    background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #fe1a00), color-stop(1, #ce0100));
    background:-moz-linear-gradient(top, #fe1a00 5%, #ce0100 100%);
    background:-webkit-linear-gradient(top, #fe1a00 5%, #ce0100 100%);
    background:-o-linear-gradient(top, #fe1a00 5%, #ce0100 100%);
    background:-ms-linear-gradient(top, #fe1a00 5%, #ce0100 100%);
    background:linear-gradient(to bottom, #fe1a00 5%, #ce0100 100%);
    filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fe1a00', endColorstr='#ce0100',GradientType=0);
    background-color:#fe1a00;
    border:1px solid #d83526;
    text-shadow:0px 1px 0px #b23e35;
}
.decline-btn:hover {
    background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #ce0100), color-stop(1, #fe1a00));
    background:-moz-linear-gradient(top, #ce0100 5%, #fe1a00 100%);
    background:-webkit-linear-gradient(top, #ce0100 5%, #fe1a00 100%);
    background:-o-linear-gradient(top, #ce0100 5%, #fe1a00 100%);
    background:-ms-linear-gradient(top, #ce0100 5%, #fe1a00 100%);
    background:linear-gradient(to bottom, #ce0100 5%, #fe1a00 100%);
    filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ce0100', endColorstr='#fe1a00',GradientType=0);
    background-color:#ce0100;
}

.accept-btn {
    -moz-box-shadow:inset 0px 1px 0px 0px #caefab;
    -webkit-box-shadow:inset 0px 1px 0px 0px #caefab;
    box-shadow:inset 0px 1px 0px 0px #caefab;
    background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #77d42a), color-stop(1, #5cb811));
    background:-moz-linear-gradient(top, #77d42a 5%, #5cb811 100%);
    background:-webkit-linear-gradient(top, #77d42a 5%, #5cb811 100%);
    background:-o-linear-gradient(top, #77d42a 5%, #5cb811 100%);
    background:-ms-linear-gradient(top, #77d42a 5%, #5cb811 100%);
    background:linear-gradient(to bottom, #77d42a 5%, #5cb811 100%);
    filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#77d42a', endColorstr='#5cb811',GradientType=0);
    background-color:#77d42a;
    border:1px solid #268a16;
    text-shadow:0px 1px 0px #aade7c;
}
.accept-btn:hover {
    background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #5cb811), color-stop(1, #77d42a));
    background:-moz-linear-gradient(top, #5cb811 5%, #77d42a 100%);
    background:-webkit-linear-gradient(top, #5cb811 5%, #77d42a 100%);
    background:-o-linear-gradient(top, #5cb811 5%, #77d42a 100%);
    background:-ms-linear-gradient(top, #5cb811 5%, #77d42a 100%);
    background:linear-gradient(to bottom, #5cb811 5%, #77d42a 100%);
    filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#5cb811', endColorstr='#77d42a',GradientType=0);
    background-color:#5cb811;
}


/* ==========================================================================
   Signup FORM
   ========================================================================== */

#signup {
    overflow-x: scroll;
    display: none;
    position: fixed;
    z-index: 999;
    width: 100%;
    height: 100%;
    text-align: center;
    top: 0;
    left: 0;
    background: rgba(0,0,0,0.6);
}

    #signup h4{
        color:white;
        font-weight: normal;
    }

section.signup-form{
    margin: 20px auto;
    width:100%;
    max-width: 960px;
    background: #FFF;
    border:15px solid rgba(50, 50, 50, 0.5);
}

    section.signup-form > header{
        padding: 5px;
        background: #a02239;
    }
        section.signup-form > header > a:visited,
        section.signup-form > header > a:focus,
        section.signup-form > header > a:active,
        section.signup-form > header > a{
            width: 60px;
            height: 32px;
            display: block;
            margin:5px;

            border: 1px solid #7b192b ;
            -webkit-border-radius: 0.3em ;
            border-radius: 0.3em ;
            background: #b8334c ;
            font-weight: bold;
            color: #fff ;
            text-shadow: 0  1px  0  #111 ;
            background-image: -webkit-gradient(linear, left top, left bottom, from( #c03750 ), to( #b23048 ));
            background-image: -webkit-linear-gradient( #c03750 , #b23048 );
            background-image: -moz-linear-gradient( #c03750 , #b23048 );
            background-image: -ms-linear-gradient( #c03750 , #b23048 );
            background-image: -o-linear-gradient( #c03750 , #b23048 );
            background-image: linear-gradient( #c03750 , #b23048 );
        }


        section.signup-form > header > h1{
            display: inline-block;
            font-weight: 400;
            font-size: 1em;
            color: #FFF;
        }

    section.signup-form > form {
        padding: 20px;
        text-align: left;
    }
        section.signup-form > form > label{
            font-size: 12px;
            display: block;
        }

        section.signup-form > form .form-input > input,
        section.signup-form > form .form-input > select,
        section.signup-form > form button{
            border: none;
            width: 100%;
            padding: .4em 0;
            margin: 0;
            display: block;
            background: transparent none;
            outline: 0 !important;
        }

        section.signup-form > form > input{
            padding: 10px 0 ;
        }

        section.signup-form > form .form-input > select{
            font-weight: bold;
        }

        section.signup-form > form .form-input{
            margin:5px 0;
            padding: 4px;
            border:thin solid red;

            border: 1px solid #aaa ;
            color: #333 ;
            text-shadow: 0  1px  0  #fff ;
            background: #f9f9f9 ;
            background-image: -webkit-gradient(linear, left top, left bottom, from( #f9f9f9 ), to( #eee ));
            background-image: -webkit-linear-gradient( #f9f9f9 , #eee );
            background-image: -moz-linear-gradient( #f9f9f9 , #eee );
            background-image: -ms-linear-gradient( #f9f9f9 , #eee );
            background-image: -o-linear-gradient( #f9f9f9 , #eee );
            background-image: linear-gradient( #f9f9f9 , #eee );

            box-shadow: inset 0px 1px 4px rgba(0,0,0,.2);
            -moz-box-shadow: inset 0px 1px 4px rgba(0,0,0,.2);
            -webkit-box-shadow: inset 0px 1px 4px rgba(0,0,0,.2);

            -webkit-border-radius: 0.3em ;
            border-radius: 0.3em ;
        }

        section.signup-form > form .form-input.select{
            padding: 10px;
            box-shadow: 0px 1px 4px rgba(0,0,0,.2);
            -moz-box-shadow: 0px 1px 4px rgba(0,0,0,.2);
            -webkit-box-shadow: 0px 1px 4px rgba(0,0,0,.2);
        }

        section.signup-form > form .form-input.yellow{
            border: 1px solid #f4c63f ;
            background: #fadb4e ;
            font-weight: bold;
            color: #222 ;
            text-shadow: 0  1px  0  #fff ;
            background-image: -webkit-gradient(linear, left top, left bottom, from( #ffefaa ), to( #ffe155 ));
            background-image: -webkit-linear-gradient( #ffefaa , #ffe155 );
            background-image: -moz-linear-gradient( #ffefaa , #ffe155 );
            background-image: -ms-linear-gradient( #ffefaa , #ffe155 );
            background-image: -o-linear-gradient( #ffefaa , #ffe155 );
            background-image: linear-gradient( #ffefaa , #ffe155 );
        }

        section.signup-form > form button{
            margin: 10px 0 0 0;
            padding: 10px;
            border: 1px solid #0c83c1 ;
            background: #13a3ef ;
            font-weight: bold;
            font-size: 1.5em;
            color: #fff ;
            text-shadow: 0  1px  0  #194b7e ;
            background-image: -webkit-gradient(linear, left top, left bottom, from( #2ab5fe ), to( #0195e3 ));
            background-image: -webkit-linear-gradient( #2ab5fe , #0195e3 );
            background-image: -moz-linear-gradient( #2ab5fe , #0195e3 );
            background-image: -ms-linear-gradient( #2ab5fe , #0195e3 );
            background-image: -o-linear-gradient( #2ab5fe , #0195e3 );
            background-image: linear-gradient( #2ab5fe , #0195e3 );
            box-shadow: 0px 1px 3px  rgba(0,0,0,.2) ;
        }

        section.signup-form > form button:hover{
            border: 1px solid #00415e ;
            background: #4b88b6 ;
            font-weight: bold;
            color: #fff ;
            text-shadow: 0  1px  0  #194b7e ;
            background-image: -webkit-gradient(linear, left top, left bottom, from( #6facd5 ), to( #4272a4 ));
            background-image: -webkit-linear-gradient( #6facd5 , #4272a4 );
            background-image: -moz-linear-gradient( #6facd5 , #4272a4 );
            background-image: -ms-linear-gradient( #6facd5 , #4272a4 );
            background-image: -o-linear-gradient( #6facd5 , #4272a4 );
            background-image: linear-gradient( #6facd5 , #4272a4 );
        }

/* ==========================================================================
   Media Queries
   ========================================================================== */

@media only screen and (max-width: 768px) {

    section.webcam{
        display: none;
    }

    .left-content,
    .right-content{
        text-align: center;
        width:100% !important;
        margin-left:0 !important;
        float:none;
    }
	form > button {
	width:100%;
    margin-top:10px
}
form > input{
    width: 100%;
}

}

/* ==========================================================================
   Helper classes
   ========================================================================== */

.hidden {
    display: none !important;
    visibility: hidden;
}

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

.invisible {
    visibility: hidden;
}

.clearfix:before,
.clearfix:after {
    content: " ";
    display: table;
}

.clearfix:after {
    clear: both;
}

.clearfix {
    *zoom: 1;
}

.left{ float:left; }
.right{ float:right; }

span.red{color:red;}
