/*
 * Copyright (c) 2013 Adobe Systems Incorporated. All rights reserved.
 *  
 * Permission is hereby granted, free of charge, to any person obtaining a
 * copy of this software and associated documentation files (the "Software"), 
 * to deal in the Software without restriction, including without limitation 
 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 
 * and/or sell copies of the Software, and to permit persons to whom the 
 * Software is furnished to do so, subject to the following conditions:
 *  
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *  
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 
 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 
 * DEALINGS IN THE SOFTWARE.
 * 
 */

@font-weight-semibold: 500;
@font-weight-light: 200;


/* SourceSansRegular */
@font-face {
    font-family: 'SourceSans';
    src: url('fonts/SourceSans/SourceSans-Regular.ttf');
    font-weight: normal;
    font-style: normal;
}


/* SourceSansLight */
@font-face {
    font-family: 'SourceSans-Light';
    src: url('fonts/SourceSans/SourceSans-Light.ttf');
    font-weight: @font-weight-light;
    font-style: normal;
}


/* SourceSansSemibold */
@font-face {
    font-family: 'SourceSans';
    src: url('fonts/SourceSans/SourceSans-Semibold.ttf');
    font-weight: @font-weight-semibold;
    font-style: normal;
}

/* SourceSansItalic */
@font-face {
    font-family: 'SourceSans';
    src: url('fonts/SourceSans/sourcesans-it-webfont.ttf');
    font-weight: normal;
    font-style: italic;
}


/* SourceCodePro Regular */
@font-face {
    font-family: 'SourceCodePro';
    src: url('fonts/SourceCodePro/SourceCodePro-Regular.ttf');
    font-weight: normal;
    font-style: normal;
}


body {
    margin:0;
    padding:0;
    overflow-x: hidden;
    -webkit-user-select: none;
    background-color:#333333;

}


/* Font Stacks */


h1 {
    font-size: 14px;
    letter-spacing:-.5px;
    font-family: 'SourceSans', Helvetica, Arial, sans-serif;
    color:#ccc;
    padding:0;
    display:block;
    margin:-10px 0 0px 10px;
}

.templates {
    width:720px;
    height:auto;
    position:relative;
    padding:0px 0px 0px 20px;
}

.templates div {
  -webkit-box-sizing: border-box;
  /* Safari/Chrome, other WebKit */

  -moz-box-sizing: border-box;
  /* Firefox, other Gecko */

  box-sizing: border-box;
}

.template-wrap {
    width:300px;
    float:left;
    background:#000;
}

.template-item {
    float: left;
    cursor:pointer;
    font-size:12px;
    width: 200px;
    height: 150px;
    background:#ccc;
    background-size: 200% auto;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    padding:100px 20px 0px 20px; 
    -webkit-box-shadow: 0px 0px 6px rgba(0, 0, 0, 1);
    margin:15px 18px 25px 10px;
    transition : all 300ms ease-out; 
    -webkit-transition : all 300ms ease-out; 
}

.template-item:hover .template-item-options  {
    opacity:1;
}


.template-item-name {
    margin:40px 0 0 -20px;
    width:200px;
    white-space: nowrap;    
    dispay:block;
    overflow:hidden;
    text-overflow:ellipsis;
    color:#ccc;
    text-align:left;
    font-size: 8pt;
    font-family: 'SourceSans', Helvetica, Arial, sans-serif;
}

.template-item:hover {
    box-shadow:inset 0px 0px 0px 7px #f7f7f7;
}

.template-item.selected {
    box-shadow:inset 0px 0px 0px 7px rgba(172,224,255,0.90);
}

.template-item-options {
    background:rgba(51, 51, 51, 0.5);
    width:186px;
    height:30px;
    margin:13px 0 -30px -13px;
    transition : all 300ms ease-out; 
    -webkit-transition : all 300ms ease-out; 
    opacity:0;
}

.template-trash {
    background:url('../img/trash.png');
    width:21px;
    height:21px;
    float:right;
    margin:5px 6px 0 0;
}

.template-trash:hover {
    background:url('../img/trash-hover.png');
}

.noTemplatesView {
    font-family: 'Lucida Grande', Helvetica, Arial, sans-serif;
    font-size:12px;
    color:#ccc;
    background:#282828;
    width:502px;
    margin:180px 0 0 90px;
    position:relative;
    padding:30px;
    border-radius:6px;
    text-shadow:0px 1px 0px rgba(0,0,0,0.45);
}
