/* <copyright>
Copyright (c) 2012, Motorola Mobility LLC.
All Rights Reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice,
  this list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above copyright notice,
  this list of conditions and the following disclaimer in the documentation
  and/or other materials provided with the distribution.

* Neither the name of Motorola Mobility LLC nor the names of its
  contributors may be used to endorse or promote products derived from this
  software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
</copyright> */

html {
    background: #e7e7e7;
}
#header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 46px;
    background: url(../../mfiddle-ui.png);
    border-bottom: 1px solid #3D3D3D;
    z-index: 9999;
}
#logo {
    position: absolute;
    margin: 0;
    padding: 0;
    left: 12px;
    top: 9px;
    width: 119px;
    height: 27px;
    color: transparent;
    font-size: 1px;
    background: url(../../logo.png);
    background-size: 119px 27px;
}
#logo:after {
    content: "";
    position: absolute;
    left: 131px;
    top: -9px;
    width: 4px;
    height: 46px;
    background: url(../../mfiddle-ui.png);
    background-position: -115px -101px;
    no-repeat;
}
#components {
    list-style-type: none;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 6px;
    left: 147px;
    height: 36px;
    overflow: hidden;
}
#components > li {
    position: relative;
    top: 0;
    margin: 0;
    padding: 0;
    float: left;
}
#components > li:first-child > div {
    border-left: none;
}
#components > li:last-child > div {
    border-right: none;
}

.component-button-holder {
    display: inline-block;
    border: none;
    margin: 0;
    padding: 0;
    width: 66px;
    height: 34px;
    font-size: 1px;
    color: transparent;
    background: none;
    border-left: 1px solid #636363;
    border-right: 1px solid #404040;
    cursor: pointer;
}
#links {
    list-style-type: none;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 6px;
    right: 280px;
    height: 36px;
    overflow: hidden;
}

#links > li {
    position: relative;
    top: 0;
    margin: 0;
    padding: 0;
    float: left;
    margin: 6px 0 0 0;
    padding: 0 12px 0 12px;
}

.link {
    font-size: 14px;
    line-height: 23px;
    color: white;
    font-family: Helvetica, Arial, sans-serif;
}

#menu {
    position: absolute;
    list-style-type: none;
    border: none;
    margin: 0;
    padding: 0;
    right: 0;
    height: 46px;
    background: url(../../mfiddle-ui.png);
    z-index: 2;
}
#menu > li {
    margin: 0;
    padding: 0;
    float: left;
    height: 46px;
}
#menu:after {
    content: "";
    position: absolute;
    left: -4px;
    top: 0;
    width: 4px;
    height: 46px;
    background: url(../../mfiddle-ui.png) -115px -101px no-repeat;
}
.menu-button {
    position: relative;
    border: none;
    margin: 6px 0 0 0;
    padding: 0 12px 0 12px;
    background: none;
    border-right: 1px solid #404040;
    cursor: pointer;
    font-size: 14px;
    line-height: 34px;
    color: white;
    font-family: Helvetica, Arial, sans-serif;
}
.menu-button:after {
    content: "";
    position: absolute;
    top: 11px;
    left: 12px;
    width: 8px;
    height: 11px;
}
/* override Button defaults */
.menu-button.matte-Button:hover {
    color: white;
    background-color: transparent;
}
.menu-button:hover:before {
    content: "";
    position: absolute;
    top: 0;
    left: 6px;
    right: 6px;
    border: 1px solid #11BDFB;
    height: 32px;
}
#run {
    padding: 0 12px 0 25px;
}
#run:after {
    background: url(../../mfiddle-ui.png) 0 -147px no-repeat;
}
#examples {
    position: relative;
    margin: 6px 0 0 0;
    padding: 0 25px 0 12px;
    height: 34px;
    border-left: 1px solid #636363;
    cursor: pointer;
}
#examples:hover:before {
    content: "";
    position: absolute;
    top: 0;
    left: 6px;
    right: 6px;
    border: 1px solid #11BDFB;
    height: 32px;
}
#examples:after {
    content: "";
    position: absolute;
    top: 12px;
    right: 11px;
    width: 10px;
    height: 10px;
    background: url(../../mfiddle-ui.png) -9px -147px no-repeat;
}
#examples h2 {
    margin: 0;
    padding: 0;
    font-size: 14px;
    font-weight: normal;
    line-height: 34px;
    color: white;
    font-family: Helvetica, Arial, sans-serif;
}
#examples ul {
    display: block;
    position: absolute;
    list-style-type: none;
    top: 33px;
    right: 6px;
    z-index: 9999;
    border: 2px solid #11BDFB;
    background-color: #404040;
    margin: 0;
    padding: 0 0;
    -webkit-box-shadow: 0 1px 7px rgba(0,0,0,.4);
    visibility: hidden;
    opacity: 0;
    -webkit-transition: opacity 250ms;
}
#examples:hover ul {
    visibility: visible;
    opacity: 1;
}
#examples li {
    width: 100%;
    background: none;
    border: none;
    color: white;
    font-size: 14px;
    font-family: Helvetica, Arial, sans-serif;
    height: 32px;
    line-height: 32px;
    text-align: right;
    border-top: 1px solid #525252;
    border-bottom: 1px solid #333;
    cursor: pointer;
    white-space: nowrap;
}
#examples li:hover {
    background: #287F9E;
    border-top: 1px solid #227897;
    border-bottom: 1px solid #227897;
}
.exampleButtons {
    position: relative;
}

.exampleButtons .example-button {
    display: inline-block;
    padding: 0 17px;
    width: 100%;
    box-sizing: border-box;
}
#css {
    position: absolute;
    top: 57px;
    left: 10px;
    right: 50%;
    bottom: 68%;
    margin-right: 5px;
    margin-bottom: -19px;
    background: white;
    border: 1px solid #B9B9B9;
}
#serialization {
    position: absolute;
    top: 32%;
    left: 10px;
    right: 50%;
    bottom: 34%;
    margin-top: 29px;
    margin-right: 5px;
    margin-bottom: -19px;
    background: white;
    border: 1px solid #B9B9B9;
}
#html {
    position: absolute;
    margin-top: 29px;
    margin-right: 5px;
    top: 66%;
    left: 10px;
    right: 50%;
    bottom: 10px;
    background: white;
    border: 1px solid #B9B9B9;
}
#javascript {
    position: absolute;
    margin-left: 5px;
    top: 57px;
    left: 50%;
    right: 10px;
    bottom: 50%;
    margin-bottom: -19px;
    background: rgba(0,0,0,.5);
    background: white;
    border: 1px solid #B9B9B9;
}

#preview {
    position: absolute;
    top: 50%;
    left: 50%;
    right: 10px;
    bottom: 10px;
    margin-left: 5px;
    margin-top: 29px;
    background: rgba(0,0,0,.5);
    background: white;
    border: 1px solid #B9B9B9;
}
#iframe-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 15px;
}
#preview iframe {
    position: absolute;
    width: 100%;
    height: 100%;
}
#logger {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 30px;
}

#logger.open {
    height: 100%;
}

.montage-invisible {
    display: none;
}

/* CodeMirror customizations */
div.CodeMirror, div.CodeMirror-scroll {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100%;
    width: 100%;
}

.CodeMirror-matchingbracket {
    border: 1px solid grey;
    color: black !important;
}

.montage-app-bootstrapping .montage-app-loading #montage-app-bootstrapper {
    display: none;
}


/* Teaser Button */

.teaser-button {
    position: absolute;
    top: 0;
    right: 328px;
    width: 48px;
    height: 48px;
    background: url(../../teaser-button.png) no-repeat center center;
    background-size: 48px 48px;
}

.teaser-button:hover {
    opacity: .9;
}

.teaser-button:active {
    opacity: .6;
}
