/**
 * Tatoeba Project, free collaborative creation of multilingual corpuses project
 * Copyright (C) 2010  HO Ngoc Phuong Trang <tranglich@gmail.com>
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http: //www.gnu.org/licenses/>.
 */

/*
 * Language selection dropdowns
 */

@import url(chosen.css);

/*
 * Generic rules
 */
body, select, input, textarea {
    font-family: Trebuchet MS, sans-serif;
}

div, p {
    word-wrap: break-word;
}

body {
    padding: 0px;
    margin: 0px;
    color: #222222;
    background: #e5e3da;
}

textarea {
    -webkit-box-sizing : border-box;‌​
    -moz-box-sizing : border-box;
    box-sizing : border-box;
}

a img {
    border: none;
}

a {
    color: #849684;
    text-decoration: none;
}

a:hover {
    cursor: pointer;
    color: #EAA315;
}

h2 {
    background: url(../../img/title.png) no-repeat top left;
    padding-left: 28px;
    margin: 0 0 15px 0;
    font-size: 1.5em;
    color: #000;
}

h2 .annexe {
    font-weight: normal;
    font-size: 15px;
}

h3 {
    border-bottom: 1px dotted;
    color: #555;
    padding-left: 10px;
    font-size: 1.2em;
    margin-top: 30px;
}

h4 {
    margin: 10px 0px 5px 20px;
    color: #555;
    font-size: 1.1em;
}

table {
    border-collapse: collapse;
    width: 100%;
}

fieldset {
    border: none;
}

dt {
    font-weight: bold;
}

textarea {
    font-size: 13px;
}

/* User Menu : Main Menu */

#top_menu_container {
    background-color: #414141;
    border-bottom: 1px solid #000000;
}

#top_menu {
    height: 30px;
    width: 960px;
    margin: auto;
    font-size: 14px;
    overflow: hidden;
}

#top_menu .whatsNewItem {
    font-weight: bold;
    color: #FFCC00;
}

#top_menu a {
    color: #FFFFFF;
}

#top_menu a:hover {
    color: #FB6B10;
}


/*
 * Menu (Home, Browse, etc)
 */
#top_menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#top_menu li {
    float: left;
    padding: 0px;
}

#top_menu .menuSection{
    display:block;
    line-height:30px;
    margin:0px;
    padding:0px 10px;
    text-align:center;
    text-decoration:none;
}

#top_menu li a:hover, #top_menu ul li:hover a{
    text-decoration:none;
}

#top_menu li ul{
    background:#414141;
    display:none;
    height:auto;
    padding:0px;
    margin:0px;
    border:0px;
    position:absolute;
    width:225px;
    z-index:200;
}

#top_menu li:hover ul{
    display:block;
}

#top_menu li li {
    border-top: 1px solid #555;
    display:block;
    float:none;
    margin:0px;
    padding:0px;
    width:225px;
}

#top_menu li:hover li a {
    background:none;
}

#top_menu li ul a {
    display:block;
    margin:0px;
    padding:7px 10px;
    text-align:left;
}

#top_menu li ul a:hover, #top_menu li ul li:hover a {
    border:0px;
    text-decoration:none;
}

#top_menu .show {
    font-size: 1.2em;
    font-weight: bold;
}

.menuItem img {
    margin-left: 2px;
}


/* 
 * Interface Language Selector
 */
#languageSelectionContainer {
    padding-top: 2px;
    float: right;
}

#languageSelection {
    margin-left: 10px;
    margin-top: 2px;
    height: 20px; /* need to specify height otherwise in Firefox and Opera it's too big */
}

/* 
 * User Menu 
 */
#user_menu {
    float: right;
}

#profile img {
    position: relative;
    top: 2px;
    margin-right: 2px;
}

#log_out img {
    position: relative;
    top: 2px;
}

#inbox img {
    position: relative;
    top: 3px;
}

.newMessage {
    font-weight: bold;
}


/*
 * Container
 */

#container {
    width: 960px;
    margin: auto;
    margin-bottom: 100px;
    background-color: #fff;
    -webkit-box-shadow: 0px 0px 5px 5px rgba(50, 50, 50, 0.3);
    -moz-box-shadow: 0px 0px 5px 5px rgba(50, 50, 50, 0.3);
    box-shadow: 0px 0px 5px 5px rgba(50, 50, 50, 0.3);
}


/*
 * Header, search bar
 */

.search_bar {
    background-color: #94CE6C;
    position: relative;
    color: #FFFFFF;
    margin-bottom: 20px;
    -webkit-box-shadow: inset 0px -50px 30px -10px rgba(100,155,61,1);
    -moz-box-shadow: inset 0px -50px 30px -10px rgba(100,155,61,1);
    box-shadow: inset 0px -50px 30px -10px rgba(100,155,61,1);
}

/*
 * Language dropdown customization. Overrides rules from chosen.css.
 */

/* Colors that better fits Tatoeba's style */
.search_bar .chosen-container {
    color: #000000; /* Avoid white on white */
}
.chosen-container {
    padding: 1px 0 0 0;
}
.chosen-container .chosen-results li.highlighted {
  background-color: #86BF5E;
  background-image: none;
}
/* Smaller margins, paddings etc. */
.chosen-container-single .chosen-single {
    height: 20px;
    line-height: 21px;
    padding: 0 0 0 6px;
}
.chosen-container-single .chosen-single span {
    margin-right: 14px;
}
.chosen-container-single .chosen-single div {
    width: 14px;
}
.chosen-container .chosen-results {
    margin: 0;
    padding: 0;
}
.chosen-container-single .chosen-search {
    margin: 0;
    padding: 0;
}
.chosen-container-single .chosen-search input[type="text"] {
    border-style: solid none;
    margin: 0;
}
.chosen-container .chosen-results li {
    padding: 3px 4px;
}

.search_bar form {
    margin-left: 100px;
    margin-right: 100px;
    padding: 5px;
}

.search_bar #into {
    font-size: 1.3em;
    margin-top: 20px;
    text-align: center;
}

.search_bar fieldset {
    border: none;
    padding: 0px;
    margin: 2px;
    display: inline;
    margin-right: 5px;
    text-align: left;
}

.search_bar label {
    font-size: 0.8em;
    display: block;
}

.search_bar .select {
    width: 110px;
}

.search_bar .input {
    width: 300px;
}

#SentenceSearchForm {
    text-align: center;
}

#SentenceQuery {
    width: 300px;
}

.search_bar select {
    width: 110px;
}

#logo {
    position: absolute;
    padding: 4px 12px;
    z-index: 1;
    -webkit-border-top-right-radius: 40px;
    -webkit-border-bottom-right-radius: 32px;
    -moz-border-radius-topright: 40px;
    -moz-border-radius-bottomright: 32px;
    border-top-right-radius: 40px;
    border-bottom-right-radius: 32px;
    background: #fff;
}

#tatoeba {
    position: absolute;
    right: 0px;
    bottom: 0px;
    opacity: 0.7;
    filter: alpha(opacity=70);
    display: inline-block;
    padding: 5px 8px 5px 13px;
    background: #fff;
    color: #649B3D;
    font-size: 12px;
    -webkit-border-top-left-radius: 20px;
    -moz-border-radius-topleft: 20px;
    border-top-left-radius: 20px;
    font-weight: bold;
}

/*
 * Content 
 */

#content {
    width: 100%;
    background: #FFFFFF;
    min-height: 550px;
}

#annexe_content {
    float: right;
    width: 270px;
    padding: 10px 20px 20px 20px;
}

#main_content {
    margin-right: 290px;
    padding: 10px 20px 20px 20px;
}

.module {
    padding: 10px 10px 5px 10px;
    margin: 0px 0px 20px 0px;
    font-size: 13px;
    border-bottom: 1px solid #ededed;
    -webkit-box-shadow: inset 0px -50px 30px -10px rgba(245, 245, 245, 1);
    -moz-box-shadow: inset 0px -50px 30px -10px rgba(245, 245, 245, 1);
    box-shadow: inset 0px -50px 30px -10px rgba(245, 245, 245, 1);
}
#annexe_content .module {
    margin-left: 5px;
}

#annexe_content ul {
    margin: 0px;
    padding-left: 0px;
}

#annexe_content ul li {
    list-style-type: none;
}


/*
 * Footer 
 */
#footer {
    background: #e3e0d6;
}

#footer a {
    color: #3d3d3d;
    cursor: pointer;
    text-decoration: none;
}

#footer ul {
    display: block;
    font-size: 80%;
    text-align: right;
}

#footer li {
    display: inline;
    line-height: 30px;
    text-align: center;
    list-style: none;
    padding-left: 10px;
    padding-right: 10px;
}


/*
 * HTML Elements
 */
.more_link {
    text-align: right;
}


/*
 * ">>"
 */
.ToLanguage {
    font-size: 1.3em;
    margin: 0 5px;
}

/*
 * Flash message
 */
#flashMessage, #authMessage {
    margin: 25px;
    padding: 10px;
    color: #E05900;
    background: #EDE0B8;
    text-align: center;
}

/*
 * Warning
 */
.warning {
    font-size: 15px;
    padding: 10px;
    margin: 10px 0px;
    border: 1px solid #FFC1B5;
    background-color: #FFDDD6; 
    color: #D1523C;
}

/* 
 * Important 
 */
.important {
    color: red;
}

#session_expired {
    color: red;
    padding: 10px;
    background-color: #F1F1F1;
    border: #E1E1E1 1px solid;
}

/*
 * Login Form 
 */
#UserLoginForm_FromBar {
    position: absolute;
    top: 30px;
    z-index: 1000;
    min-width: 270px;
    padding: 5px 10px;
    background: #414141;
    color: #FFF;
    border: 1px solid #000000;
    border-top: none;
}

#UserLoginForm_FromBar fieldset {
    border: 0;
    text-align: right;
    line-height: 25px;
}

#UserLoginForm_FromBar label {
    text-align: right;
}

#UserLoginForm_FromBar input[type='text'], #UserLoginForm_FromBar input[type='password'] {
    width: 120px;
    display: inline-block;
    padding: 3px 5px;
    color: #414141;
    border: 0;
    border-bottom: 1px solid rgba(0,0,0,0.25);
}

#UserLoginForm_FromBar input[type='submit'] {
    width: 120px;
    background: #222;
    display: inline-block;
    padding: 4px 10px 5px;
    color: #FFF;
    border: 0;
    border-bottom: 1px solid rgba(0,0,0,0.25);
    position: relative;
    font-size: 0.9em;
}

#UserLoginForm_FromBar input[type='submit']: active {
    top: 1px;
}

#UserLoginForm_FromBar p {
    margin: 0;
    padding: 0;
}


/*
 * Other
 */
.annexeMenu {
    list-style: none;
}

.annexeMenu .item {
    margin: 5px 0px;
}

.annexeMenu .item:before {
    content: "\00BB \0020";
}

.contactLink {
    margin-top: 20px;
    background: url('../../img/pm.svg') no-repeat;
}

.contactLink:hover {
    background: url('../../img/pm-hover.svg') no-repeat;
}

.contactLink a{
    display: block;
    padding-left: 30px;
    line-height: 24px;
}