body { font-family: 'Helvetica Neue', 'Helvetica', sans-serif; font-size: 1rem; }
table { width: 100%; }
table td { vertical-align: top; }
th { text-align: left; }
form { margin: 0; }
button:focus { box-shadow: none !important; outline: 0 !important; }
a { color: #638fd4; }
a:hover { color: #749fe5; }
ul { list-style: none; padding: 0; }

/** Header **/
body > .container { margin-top: 3rem; padding-top: 1.4rem; }
header { position: fixed; background: #000; box-shadow: 0 0 8px rgba(0,0,0,0.1); width: 100%; z-index: 2; height: 3rem; top: 0; font-weight: bold; }
header .container { position: relative; }
header .logo-container { position: absolute; left: 0.4rem; height: 3rem; padding: 0.5rem 0; display: inline-block; margin: 0 auto; transition: all 0.2s linear; }
header .logo-container .logo { height: 1.4rem; display: inline-block; margin: 0.3rem 1rem; }
header .language-menu { display: block; left: 5rem; position: absolute; left: 13rem; top: 0.7rem; }
header .language-menu a { color: #ddd; }
header .language-menu a span { font-size: 0.8rem; position: relative; top: -0.1rem; }
header .language-menu a { opacity: 0.3; }
header .language-menu a:hover { opacity: 0.7; text-decoration: none; }
header .language-menu a.active { opacity: 1; }
header .menu { position: absolute; right: 0; line-height: 3rem; font-size: 1rem; margin-right: 1rem; }
header .menu > * { display: inline-block; padding: 0 1em; position: relative; }
header .menu > span { color: #fff; }
header .menu > a { color: #aaa; position: relative; }
header .menu > a img { height: 1em; position: relative; vertical-align: middle; top: -0.1em; opacity: 0.8 }
header .menu > a:hover { text-decoration: none; color: #fff; }
header .menu > a:hover img { opacity: 1 }
header .menu > span::after,
header .menu > a:hover::after { content:""; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: #fff; }
header .menu > .user-box { background: #375a7f; padding: 0 1.2em; }
header .menu > div.user-box { cursor: default; }
header .menu > a.user-box { color: #fff; }
header .menu > a.user-box span { color: #fff; }
header .menu > div.user-box ul { min-width: 100%; display:none; text-align: right; position: absolute; right: 0; box-shadow: 1px 1px 3px rgba(0,0,0,0.2); margin: 0; padding: 0; list-style: none; }
header .menu > div.user-box ul li a { padding: 0 1.2em; display: block; background: #000; color: #aaa; }
header .menu > div.user-box ul li a:hover { text-decoration: none; background: #375a7f; color: #fff; }
header .menu > div.user-box:hover ul { display: block; }
.wrapper { padding-top: 3rem; }
@media screen and (max-width: 640px) {
  body > .container { margin-top: 6rem; ; }
  header { height: 6rem; text-align: center; }
  header .menu { position: relative; right: 0; font-size: 0.8rem; margin-right: 0; }
  header .logo-container { position: relative; left: 0; }
}

/** Bootstrap override **/
.bg-secondary { background: #222 !important; }
.tooltip-inner { line-height: 1.2; padding: 0.4rem; }

.text-yellow { color: #cebd2b; }
.text-green { color: #0cbd0c; }
.text-red { color: #de0a0a; }
.text-grey { color: #aaa; }

.btn-link { color: #638fd4; }
.btn-link:hover { color: #749fe5; }
.btn-yellow { font-family: 'Ubuntu Mono', Monaco, monospace; background: #fbe537; color: #111; font-weight: bold; border: none; }
.btn-yellow:hover { background: #fdf759; color: #000; }
.btn-yellow:disabled { background: #a1ad0c; color: #111; }
.btn-red { font-family: 'Ubuntu Mono', Monaco, monospace; background: #c11717; color: #111; font-weight: bold; border: none; }
.btn-red:hover { background: #e33939; color: #000; }
.btn-red:disabled { background: #580101; color: #111; }
.btn-grey:disabled { font-family: 'Ubuntu Mono', Monaco, monospace; background: #aaa; color: #111; font-weight: bold; border: none; }

.error { color: red; }
.dollars.svg img { height: 1em; margin-left: 0.2em; position: relative; bottom: 0.1em; }
.dollars.symbol { display: inline-block; position: relative; padding-right: 0.9em; }
.dollars.symbol::after { content: "¢"; position: absolute; font-size: 1.2em; right: 0; bottom: 0; }

.tooltip-trigger { cursor: pointer; display: inline-block; position: absolute; right: 0.4rem; top: 0.4rem; opacity: 0.5; }
.tooltip-trigger::before { content: ""; position: absolute; left: 1px; top: 1px; bottom: 1px; right: 1px; background: #fff; border-radius: 10rem; }
.tooltip-trigger i { position: relative; color: #638fd4; border-radius: 10rem; }
.tooltip-trigger:hover { opacity: 1; }

table.table { margin: 0; width: 100%; }
table.table tr th { padding: 0.4rem; position: relative; border-top: none; }
table.table tr th:first-child { padding-left: 1.25rem; }
table.table tr th:last-child { padding-right: 1.25rem; }
table.table tr th .btn { padding: 0; text-decoration: none !important; }
table.table tr th .btn.active { font-weight: bold; }
table.table tr td { padding: 0.4rem; position: relative; font-family: 'Ubuntu Mono', Monaco, monospace; font-size: 1rem; }
table.table tr td:first-child { padding-left: 1.25rem; }
table.table tr td:last-child { padding-right: 1.25rem; }
table.table tr.film td.flag { width: 3rem; }
table.table tr.film td .flag-icon { line-height: initial; font-size: 0.8rem; top: 0.05rem; }
table.table tr.film td { cursor: pointer; }
table.table tr.film td .fa { position: relative; top: 0.05rem; }
table.table tr.film:hover td { background: #375a7f; border-color: #25385d; color: #fff; }
table.table tr.film:hover td a { color: #fff; }
table.table tr.film:hover td a:hover { color: #fff; text-decoration: none; }
table.table tr.film.film-cours td { padding-top: 0.5rem; padding-bottom: 0.5rem; }
table.table tr.film.film-cours td.title { color: #638fd4; }
table.table tr.film.film-user td.title { text-overflow: ellipsis; overflow: hidden; white-space: nowrap; max-width: 0; }
table.table tr.film.film-user td.nb-actions { width: 3rem; }
table.table tr.odd td { background: #292929; }

table.leaderboard tr.selected td { background: #375a7f; border-color: #25385d; color: #fff; }

.wallet .amount-value { color: #fff; font-family: 'Ubuntu Mono', Monaco, monospace; font-size: 1.1rem; }

.calmos-modal { position: fixed; display: flex; top: 0; align-items: center; justify-content: center; z-index: 20; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 20; }
.calmos-modal .modal-content { max-width: 80%; width: auto; background: #1f1f1f; border-color: #333; }
.calmos-modal .modal-content button.modal-close { position: absolute; top: 0; right: 0.1rem; padding: 0.6rem; color: #777; font-size: 1.3rem; z-index: 2; background: none; border:none; }
.calmos-modal .modal-content button.modal-close:hover { color: #999; cursor: pointer; }
.calmos-modal .modal-content .modal-body { overflow: auto; }

.calmos-modal .modal-content .film-title { display: flex; margin-right: 2rem; }
.calmos-modal .modal-content .film-title .flag-icon { font-size: 1.1rem; margin: 0.7rem 0.7rem 0 0.7rem; position: relative; }
.calmos-modal .modal-content .film-title .french-title { font-size: 1.6rem; font-family: 'Roboto Condensed'; }
.calmos-modal .modal-content .film-title .original-title { font-size: 1rem; font-style: italic; }
.calmos-modal .modal-content .buy-form .form-content { padding: 0.8rem 0.8rem 0.4rem 0.8rem; }
.calmos-modal .modal-content .buy-form .form-content .btn-round { border: 0; background: #444; color: #111; font-weight: bold; font-size: 1rem; margin-right: 0.4em; width: 2em; height: 2em; padding: 0; border-radius: 10rem; vertical-align: top; line-height: 2em; }
.calmos-modal .modal-content .buy-form .form-content .btn-round:hover { background: #555; }
.calmos-modal .modal-content .buy-form .form-content .nb-actions { width: 1.5em; display: inline-block; text-align: center; margin-left: 0.1em; font-size: 2rem; line-height: 1; font-family: 'Ubuntu Mono', Monaco, monospace; }   
.calmos-modal .modal-content .buy-form .amount { font-family: 'Ubuntu Mono', Monaco, monospace; margin-top: 0.6rem; border-top: 1px solid #222; padding: 0.4rem 0.8rem 0.8rem 0.8rem; }  
.calmos-modal .modal-content .buy-form .amount .label { color: #999; }  
.calmos-modal .modal-content .buy-form .amount .calcul { color: #777; line-height: 1; }
.calmos-modal .modal-content .current-cours { font-family: 'Ubuntu Mono', Monaco, monospace; line-height: 1.2; }
.calmos-modal .modal-content .current-cours a { text-transform: uppercase; }
.calmos-modal .modal-content .current-cours a.selected { font-weight: bold; color: #fff; }

.calmos-modal-film .modal-content { max-width: 1000px; color: #eee; }
.calmos-modal-film .modal-content .chart { height: 18rem; margin: 1rem 0; }
.calmos-modal-film .modal-content .projection { margin-top: 1rem; background: #ad2727; color: #fff; display: inline-block; padding: 0.2rem 0.6rem; }
.calmos-modal-film .modal-content .directors { font-weight: bold; color: #999; }
.calmos-modal-film .modal-content .cast { color: #999; line-height: 1; }
.calmos-modal-film .modal-content .synopsis { margin-top: 1.4rem; color: #eee; line-height: 1.1rem; font-size: 0.85rem; }
.calmos-modal-film .modal-content .synopsis::before { content: ""; margin-bottom: 1rem; display: block; width: 10%; height: 0.2rem; background: #aaa; }
.calmos-modal-film .modal-content .buy { margin-top: 1.4rem; }
.calmos-modal-film .modal-content .buy .desc { font-weight: bold; color: #cebd2b; }
.calmos-modal-film .modal-content .buy-form { background: #111; border-radius: 0.2rem; margin-top: 0.4rem; }

.calmos-modal-sell .modal-content { width: 500px; background: #111; }
.calmos-modal-sell .modal-content .chart { margin-right: 2rem; }
.calmos-modal-sell .modal-content .buy-form { padding: 0.8rem; }

.calmos-modal-leaderboard .modal-content { min-width: 30rem; }
.calmos-modal-leaderboard .modal-content .modal-body { margin: 3em 2.6em; min-width: 60%; }
.calmos-modal-leaderboard .modal-content .modal-body table.table tr td:first-child { width: 0.01rem; }

.calmos-modal-rules table.table td { font-size: 0.9rem; padding-top: 0.3rem; padding-bottom: 0.3rem; }

footer { background: #1a1a1a; padding: 0.8rem; font-size: 0.8rem; color: #555; line-height: 1; text-align: center; }
footer a { color: #777; }

@media (max-width: 575px) {
  html { font-size: 13px; }
  header .language-menu { position: absolute; right: 1rem; left: auto; }
  table.table tr.film.film-cours td.title { width: 0; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; max-width: 0;; }
  table.table tr.film.film-cours td.cours { width: 6rem; }
  .calmos-modal .modal-content { max-width: none; width: 90%; }
  .calmos-modal .modal-content .film-title { line-height: 1.2; }
  .calmos-modal .modal-content .film-title .flag-icon { margin-top: 0.3rem; }
  .calmos-modal .modal-content .buy-form .form-content .btn-round { font-size: 1.4rem; }
  .calmos-modal .modal-content .buy-form .form-content .nb-actions { font-size: 2.8rem; }
  .calmos-modal .modal-content .buy-form .form-content .btn-primary { margin-top: 0.4rem; }
  .calmos-modal-film .modal-content .chart { height: 7rem; margin: 1rem 2rem 1rem 0; }
  .calmos-modal-film .modal-content .current-cours { margin-bottom: 1rem; }
  .calmos-modal-leaderboard .modal-content { min-width: 0; }
  .calmos-modal-leaderboard .modal-content .modal-body { padding: 0; margin: 3rem 2rem; }
  .calmos-modal-leaderboard .modal-content .modal-body table.table tr td { font-size: 0.9rem; padding: 0.3rem; }
  .calmos-modal-leaderboard .modal-content .modal-body table.table tr td:first-child { padding-left: 0rem; }
  .calmos-modal-rules p { line-height: 1.2; }
  .calmos-modal-rules table.table td { border: none; padding-top: 0.1rem; padding-bottom: 0.1rem; }
}