body {
    background-color: #FAFAFA;
}

#carpet {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    opacity: 0.8;
    z-index: 888;
}

#carpetimg {
    position: fixed;
    left: 50%;
    top: 50%;
    width: 200px;
    height: 200px;
    margin-left: -100px;
    margin-top: -100px;
    z-index: 999;
    box-shadow: 0 0 4px 4px #000;
}

#wrapper-all {
    background-color: #FFFFFF;
}

#plugin-position a.left {
    margin-left: 120px;
    float: left;
    padding: 2px;
}
#plugin-position a.right {
    margin-right: 120px;
    float: right;
    padding: 2px;
}
#plugin-position a.active {
    background-color: #F00;
}

#qrimg {
    width: 200px;
    height: 200px;
}

.form-group {
    margin-bottom: 8px;
}

.foot hr {
    margin: 0;
}
#footer {
    list-style-type: none;
    margin: 0;
    padding: 0;
    float: right;
}
#footer li {
    float: left;
    padding: 0 4px;
}
#footer a {
    color: #666;
    font-size: 8pt;
}

#footer .active a {
    color: #000;
}

input, button, select, textarea {
    border: 1px solid #CCC;
}

.clear {
    clear: both;
}

#ad_right {
    width: 120px;
    height: 600px;
    background-color: #FFF;
    position: absolute;
    left: 100%;
    margin-left: -130px;
    top: 10px;
    border: 1px solid #000;
}

#locales * {
    border: none;
    text-decoration: none;
}

#locales a img {
    opacity: 0.5;
}

@media (max-width: 767px) {
    #form, #code {
        text-align: center;
    }
    #form label {
        text-align: left;
    }
    #title {
        margin-left: 10px;
        font-size: 16pt;
    }
    .foot {
        background-color: #EEE !important;
        padding: 6px;
        margin: 0;
        margin-top: 20px;
    }
    #footer {
        margin-bottom: 6px;
    }
    #footer a {
        font-size: 12pt;
    }
    p, #title {
        margin-left: 10px;
    }
    h3 {
        margin-left: 10px !important;
        text-align: center;
    }

    #qrimg {
        cursor: pointer;
    }

    #locales {
        list-style-type: none;
        padding: 0;
        margin: 0;
        float: right;
        margin: 0 4px 4px 0;
    }

    #locales li {
        float: left;
        margin-left: 4px;
    }

    #locales img {
        height: 30px;
    }

    #locales li.current img {
        opacity: 1;
    }
}

@media (min-width: 768px) {

    pre {
        max-width: 620px;
    }

    #code, #form, #title, #uris {
        margin-left: 20px;
    }
    #form {
        float: left;
        margin-top: 15px;
    }
    #code {
        float: right;
        margin-right: 20px;
    }

    #wrapper-all {
        margin-top: 20px;
        max-width: 650px;
        padding: 10px;
        border: 1px solid #666;
        border-radius: 10px;
        box-shadow: 4px 4px 8px #666;
    }

    .navitem a {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
        border-radius: 10px 10px 0 0 !important;
    }
    .navitem.active a {
        border-color: #DDD;
        border-width: 1px 1px 0 1px;
        border-style: solid;
        background-color: #FFF;
        margin-bottom: -1px;
    }
    .navitem a:hover {
        background-color: #EFEFEF !important;
    }
    .navitem.active a:hover {
        background-color: #FFF !important;
    }
    .navbar {
        margin-top: 20px;
        min-height: 30px !important;
        border-radius: 0;
        background-color: #FFF;
        border-bottom: 1px solid #DDD;
    }
    hr {
        border-color: #DDD;
    }
    .foot hr {
        margin-top: 10px;
        margin-bottom: 10px;
    }

    #locales {
        padding: 2px 4px;
        text-align: center;
        border-color: #000;
        border-style: solid;
        border-width: 0 1px 1px 1px;
        position: absolute;
        top: 0;
        background-color: #FFF;
        border-bottom-right-radius: 4px;
        border-bottom-left-radius: 4px;
        left: 100px;
    }

    #locales a.current img {
        opacity: 1;
    }
}
