* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    background-color: #D6D6D6;
    font-family: Tahoma, Arial, sans-serif;
    overflow-y: scroll;
    max-width: 100%;
}

#logo_bmec {
    float: left;
    height: 135px;
}

#svg_camera {
    float: left;
    width: 300px;
    height: 135px;
}

#fotografin {
    float: left;
    height: 135px;
}

#fotografin.hide {
    display: none;
}

#fotografin_big {
    width: 120px;
}

#main {
    width: 500px;
    margin: 5px auto 0 auto;
    background: white;
    border: 2px solid #999999;
    box-shadow: 5px 5px 5px #999999;
}

#global_error {
    color: red;
    font-weight: bold;
}

.hide_error {
    display: none;
}

header {
    padding: 5px;
}

section {
    padding: 0 5px 5px 5px;
}

h1 {
    color: #00B753;
    padding-top: 5px;
    padding-bottom: 10px;
    font-size: 30px;
    font-weight: bold;
    text-align: center;
}

noscript {
    display: block;
}

#info_data_charges {
    color: black;
    font-size: 16px;
}

#no_connection,
#offline,
#code_invalid,
noscript {
    color: red;
    text-align: center;
    border: 1px solid red;
    border-radius: 8px;
    background-color: #FFD5D5;
    padding: 10px 0;
    font-size: 25px;
}

#connecting {
    color: black;
    text-align: center;
    border: 1px solid black;
    border-radius: 8px;
    background-color: #D5D5D5;
    padding: 10px 0;
    font-size: 25px;
}

#start_info,
#busy,
#positioning,
#countdown,
#preview,
#await_definite,
#definite,
#email_sent {
    color: black;
    font-size: 25px;
    text-align: center;
}

#enter_code {
    color: black;
    font-size: 25px;
    text-align: center;
}

input {
    margin-top: 10px;
    width: 320px;
    height: 45px;
    font-size: 25px;
    text-align: center;
    border: 2px solid;
}

input.invalid {
    border-color: red;
    background-color: #FFD5D5;
}

input:focus {
    border-color: #00B753;
    outline: none;
}

#preview_image,
#definite_image {
    width: 100%;
    display: block;
    border: 1px solid #00B753;
    margin: 0 auto 20px auto;
}

#countdown_value {
    font-size: 55px;
    font-weight: bold;
    color: white;
    background-color: #00B753;
    border-radius: 10px;
    width: 80px;
    margin: 10px auto 0 auto;
}

#email {
    font-weight: bold;
}

.smiley {
    font-size: 60px;
    display: block;
}

.hide {
    display: none;
}

.view {
    animation: 1.5s fade_in;
}

button {
    cursor: pointer;
    display: block;
    background-color: #00B753;
    color: white;
    font-size: 35px;
    font-weight: bold;
    width: 400px;
    border: 4px solid #00B753;
    border-radius: 10px;
    padding: 10px;
    margin: 20px auto 20px auto;
    text-align: center;
}

button:active {
    background-color: white;
    color: #00B753;
    border-color: #00B753;
    font-style: italic;
    -webkit-tap-highlight-color: transparent;
}

.animated_button {
    animation: shake 0.82s cubic-bezier(.36, .07, .19, .97) both;
    animation-iteration-count: 3;
}

#close_button_1,
#close_button_2 {
    font-size: 25px;
    width: 200px;
    margin-top: 50px;
}

.animated_ring {
    margin: 0 auto;
    display: block;
    width: 80px;
    height: 80px;
}

.animated_ring:after {
    content: " ";
    display: block;
    width: 64px;
    height: 64px;
    margin: 8px;
    border-radius: 50%;
    border: 6px solid;
    border-color: #00B753 transparent #00B753 transparent;
    animation: ring 1.2s linear infinite;
}

.animated_ring.ccw:after {
    animation-direction: reverse;
}

@keyframes ring {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes fade_in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes shake {
    10%, 90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%, 80% {
        transform: translate3d(2px, 0, 0);
    }

    30%, 50%, 70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%, 60% {
        transform: translate3d(4px, 0, 0);
    }
}

footer {
    width: 500px;
    margin: 10px auto 10px auto;
    padding-top: 3px;
    text-align: center;
    font-size: 0.7em;
}