/*
 *  Copyright (c) 2015 The WebRTC project authors. All Rights Reserved.
 *
 *  Use of this source code is governed by a BSD-style license
 *  that can be found in the LICENSE file in the root of the source
 *  tree.
 */

* {
    box-sizing: border-box;
}

html, body {
    padding: 0;
    margin: 0;
    height: 100%;
}

body {
    font-family: Calibri;
    font-size: 2em;
    overflow: hidden;
}

#wrapper, .white, #popup{
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
}

.white, #popup
{
    background: #fff;
    display: none;
}

.popup-content
{
    position: absolute;
    width: 50%;
    height: 50%;
    left:25%;
    top:25%;

    padding: 20px;
}

.preview{
    width: 100%;
    margin-top: 20px;
    margin-bottom: 20px;
    display: none;
}

video#container {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    margin: auto;
    min-height: 50%;
    min-width: 50%;
}

canvas#canvas {
    display: none;
}

.content {
    position: fixed;
    bottom: 0;
    color: #f1f1f1;
    width: 100%;
    padding: 20px;
}

#countdowntimer {
    font-size: 20em;
    color: #fff;
    position: fixed;
    top: 50%;
    left: 0;
    width: 60px;
    width: 100%;
    text-align: center;
    margin-top: -40%;
    text-shadow: 0 0 4px #000; /* horizontal-offset vertical-offset 'blur' colour */
    -moz-text-shadow: 0 0 4px #000;
    -webkit-text-shadow: 0 0 4px #000;
}

.button {
    background-image: -webkit-linear-gradient(top, #f4f1ee, #fff);
    background-image: linear-gradient(top, #f4f1ee, #fff);
    border-radius: 50%;
    box-shadow: 0px 8px 10px 0px rgba(0, 0, 0, .3), inset 0px 4px 1px 1px white, inset 0px -3px 1px 1px rgba(204, 198, 197, .5);
    float: left;
    height: 200px;
    margin: 0 30px 30px 0;
    position: relative;
    width: 200px;
    -webkit-transition: all .1s linear;
    transition: all .1s linear;
    margin-left: 50%;
    left: -100px;
}

.button:after {
    color: #e9e6e4;
    content: "";
    display: block;
    font-size: 30px;
    height: 30px;
    text-decoration: none;
    text-shadow: 0px -1px 1px #bdb5b4, 1px 1px 1px white;
    position: absolute;
    width: 30px;
}

.photo:after {
    content: url('assets/icon-photo.png');
    left: 60px;
    top: 70px;
}

.video:after {
    content: url('assets/icon-video.png');
    left: 60px;
    top: 60px;
}

.send:after {
    content: url('assets/icon-send.png');
    left: 62px;
    top: 70px;
}

.cross:after {
    content: url('assets/icon-delete.png');
    left: 60px;
    top: 60px;
}

.button:hover {
    background-image: -webkit-linear-gradient(top, #fff, #f4f1ee);
    background-image: linear-gradient(top, #fff, #f4f1ee);
    color: #0088cc;
}

.photo:hover:after {
    content: url('assets/icon-photo_press.png');;
    left: 60px;
    top: 70px;
}

.video:hover:after {
    content: url('assets/icon-video_press.png');;
    left: 60px;
    top: 60px;
}

.video.active:after {
    content: url('assets/icon-video_press.png');;
    left: 60px;
    top: 60px;
}

.send:hover:after {
    content: url('assets/icon-send_press.png');
    left: 62px;
    top: 70px;
}

.cross:hover:after {
    content: url('assets/icon-delete_press.png');
    left: 60px;
    top: 60px;
}

.button:active {
    background-image: -webkit-linear-gradient(top, #efedec, #f7f4f4);
    background-image: linear-gradient(top, #efedec, #f7f4f4);
    box-shadow: 0 3px 5px 0 rgba(0, 0, 0, .4), inset 0px -3px 1px 1px rgba(204, 198, 197, .5);
}

.button:active:after {
    color: #dbd2d2;
    text-shadow: 0px -1px 1px #bdb5b4, 0px 1px 1px white;
}