body {
  padding-top: 70px;
  padding-bottom: 30px;
  background-position: 50% 0% !important;
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-image:url(/organiser/tournament-bg.jpg), url(/organiser/organiser-bg.jpg);
}
.navbar-inverse .navbar-brand, .navbar-inverse .navbar-nav>li>a {
  text-shadow:none;
}
.navbar-brand{
  line-height:1em;
}
.navbar{
  background-image:url(/organiser/header-bg.jpg);
  background-size:cover;
  background-position:50% 50%;
}
.navbar-inverse{
  background-image:url(/organiser/header-bg.jpg);
  background-size:cover;
  background-position:50% 50%;
}
.navbar-nav a{
text-shadow:none;
}
#navbar ul{
  width:auto;
}
.navbar-inverse .navbar-brand {
  float:none;
  display:inline-block;
}

.ilmoittautumisryhma h2{
border-bottom:1px solid #005687;
}
.ilmoittautumisryhma .ikaluokka{
font-size:0.8em;
}
.navbar{
  margin-top:-70px;
}

.navbar-inverse {
  background:none;
  border:0;
}

#navbar{
/*
  margin-left:-15px !important;
  margin-right:-15px !important;
*/
}


body, table{
font-size:14px;
}

.theme-dropdown .dropdown-menu {
  position: static;
  display: block;
  margin-bottom: 20px;
}

.theme-showcase > p > .btn {
  margin: 5px 0;
}
.navbar{
  margin-top:-70px;
  width:100%;
  border:0;
}
#navbar ul{
  margin:0px -15px;
}

.theme-showcase .navbar .container {
  width: auto;
}

.torneopal-template {
  padding:10px;
  min-height:30em;
}

.navbar-header{
  width:auto;
  display:block;
  float:none !important;
/*
  margin-left:-15px !important;
  margin-right:-15px !important;
*/
  margin-left:0;
  margin-right:0;
  text-align:center;
}
.navbar-header img{
  max-width:100%;
}

.navbar-brand{
float:none;
}
.navbar-brand img{
display:inline-block;
max-height:80px;
margin-top:10px;
margin-right:0.5em;
}

@media (max-width:768px){
  .navbar{
    position:fixed;
  }
  .container-fluid > .navbar-collapse, .container-fluid > .navbar-header, .container > .navbar-collapse, .container > .navbar-header {
  margin-left:0;
  margin-right:0;
  }
  
  .navbar-brand img{
  max-height:8vh;
  }
  .navbar-header{
    display:block !important;
  }
    .navbar-fixed-bottom .navbar-collapse, .navbar-fixed-top .navbar-collapse {
    max-height: 90vh;
  }
  .navbar-inverse .navbar-nav .open .dropdown-menu>li>a {
    color: #d9d9d9;
  }
}

.flag{
  box-shadow:0px 0px 4px 0.1px #666;
}
.language-flag{
  height:12px !important;
}

.torneopal {
margin-top:2em;
text-align:center;
}
@media print{
  .noprint{
    display:none;
  }
  a[href]:after {
    content: none !important;
  }
}

h1{
  font-size:1.6em;
  border-bottom:1px solid #aaa;
  background:none;
}
h2{
  font-size:1.4em;
  margin-left:1em;
  padding-left:1em;
}
h3{
  font-size:1.2em;
}
h4{
  font-size:1.1em;
}
.navbar-inverse {
    background-image: -webkit-linear-gradient(top,#63A800 0,#04A466 100%);
    background-image: -o-linear-gradient(top,#63A800 0,#63A800 100%);
    background-image: -webkit-gradient(linear,left top,left bottom,from(#63A800),to(#63A800));
    background-image: linear-gradient(to bottom,#63A800 0,#63A800 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff63A800', endColorstr='#ff63A800', GradientType=0);
    filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
}
.navbar-inverse .navbar-nav>li>a {
    color: #000;
}
.navbar-inverse .navbar-brand {
    color: #000;
}
.formbox{
display:inline-block;
width:100%;
}

.navbar-toggle{
  position:absolute;
  right:0;
}

.navbar-inverse .navbar-toggle:focus, .navbar-inverse .navbar-toggle:hover, .navbar-toggle {
  background:none;
  border:0;
}
.navbar-nav{
  margin:0px;
  float:none;
}

@media (max-width:480px){
  .ml_sarjanimi{
   display:none;
  }
  .ilmoittautuminen td, .ilmoittautuminen th{
    display:block;
  }

  .palvelut{
  width:100%;
  }

  .palvelut td{
  display:inline-block;
  padding:0px 4px;
  }
  td.majoituskpl{
  float:right;
  }
  .palvelut td.majoituskuvaus{
  padding-bottom:2em;
  font-size:80%;
  width:90vw;
  }
  table.palvelut>tbody>tr.odd>td {
      background: none;
  }
}

.miniawesome {
display:inline-block;
font-size:0.8em;
}

/* ---- General ---- */
a.awesome,input.awesome,button.awesome {
    cursor: pointer;
    padding:4px 6px;
    color:#fff;
    text-decoration:none !important;
    border:1px solid #333;
    border-radius:2px;
    white-space:nowrap;
}
a.awesome,button.awesome{
    display:inline-block;
    margin-bottom:0.5em;
}

/* ---- Ottelulista ---- */
.ottelufiltteri{
white-space:nowrap;
}
@media (max-width:480px){
  .ottelufiltteri{
    display:block;
  }
}

/* ----- START Cupkaavio ----- */


div.cupkaavio {
  position:relative;
  margin-left:10px;
}

div.cup{
  position:absolute;
  z-index:9;
  width:180px;
  border:0px solid red;
  border-radius:5px;
}
th.koticupjoukkue{
border-top-left-radius:4px;
border-top-right-radius:4px;
}
th.vierascupjoukkue{
border-bottom-left-radius:4px;
border-bottom-right-radius:4px;
}
.cup table{
-moz-border-radius:5px 5px 5px 5px;
-moz-box-shadow:2px 2px 5px #888888;
-webkit-border-radius:5px 5px 5px 5px;
-webkit-box-shadow:2px 2px 5px #888888;
border-radius:5px 5px 5px 5px;
box-shadow:2px 2px 5px #888888;
}

div.cupviivaylosvoittaja
{
  position:absolute;
  z-index:0;
  border-bottom:1px solid #000000;
  border-right:1px solid #000000;
}

div.cupviivaalasvoittaja
{
  position:absolute;
  z-index:0;
  border-top:1px solid #000000;
  border-right:1px solid #000000;
}

.cup table{
background-color: #006e75;
color:white;
width:100%;
overflow:hidden;
}

.cup th{
background-color: #006e75;
color:white;
font-size:10px;
white-space: nowrap;
overflow: hidden;
text-align:center;
font-weight:normal;
border:0px solid red;
}

th.cupvoittaja{
/*color:yellow;*/
font-weight:bold;
}

.cup td {
background-color:#D8E2E3;
color:black;
font-size:10px;
overflow:hidden;
text-align:center;
white-space:nowrap;
}
/* ----- END Cupkaavio ----- */

.pieniotsikko{
float:right;
font-size:10pt;
}

/* ---- Ottelulista --- */

.col_sarjanimi{
white-space:nowrap;
}

.col_sarja{
display:none;
}

ul.matchlist li{
overflow:hidden;
}
ul.matchlist {
list-style-type:none;
padding-left:0px;
}
.matchlist a{
color:#000;
}
.matchlist li:hover{
background:#eee;
color:#000;
}
.matchlist a:hover{
text-decoration:none;
}
.matchlist li{
width:100%;
display:table;
table-layout:fixed;
}

.matchlist div{
display:table-cell;
padding:4px 2px;
vertical-align:middle;
}
@media (min-width:768px){
.matchlist div{
border-bottom:1px solid #eee;
  }
}


.matchlist li.title {
  margin-top: 1em;
  border-bottom: 1px solid #999;
  border-top: 1px solid #999;
  padding: 0.5em;
  background: #e8f4f8;
}

.matchlist .ml_sarjanimi{
  width:15%;
}
.matchlist .ml_ottelunro{
  width:30px;
  max-width:30px;
}
.matchlist .ml_pvm{
  width:75px;
  max-width:75px;
}
.matchlist .ml_klosiisti{
  width:10%;
}
.matchlist .ml_lohkosijat{
  width:10%;
}
.matchlist .ml_tulosklo{
  width:10%;
  text-align:center;
}
.matchlist .ml_pvmsiisti{
  width:15%;
}
.matchlist .ml_kenttanimi{
  width:15%;
}
.matchlist .ml_kotisiisti{
  width:20%;
  text-align:right;
  white-space:nowrap;
}
.matchlist .ml_vierassiisti{
  width:20%;
  white-space:nowrap;
}
.matchlist .ml_tuomaristo{
  width:25%;
}

.matchlist li.played{
  color:#666;
}

.matchlist .homewin .ml_kotisiisti{
  color:#000;
}

.matchlist .awaywin .ml_vierassiisti{
  color:#000;
}

.matchlist .ml_kotilogo,
.matchlist .ml_vieraslogo
{
  width:5%;
  text-align:center;
}



.tapahtumalista tr:nth-child(even) ,
#tilasto tr:nth-child(even)
{
    background: #f0f0f0;
}

.tapahtumalista thead th{
text-align:Center;
}
.tapahtumalista{
width:100%;
max-width:450px;
}
.tapahtumalista td{
padding:2px;
}
.uusijakso td{
padding-top:1em;
border-bottom:1px solid black;
}
.matchlist .ml_sarja{
  width:10%;
  display:none;
}
.formbox>table.lohko{
width:49%;
margin-left:auto;
margin-right:auto;
}

table.lohko{
border-collapse:unset;
}



@media (max-width:768px){
  .formbox>table.lohko {
    width:100%;
  }

  .matchlist .ml_sarjanimi
  ,.matchlist .ml_vkpv
  ,.matchlist .ml_kenttanimi
  {
  display:none;
  }
  .matchlist .ml_tuomaristo
  {
    font-size:80%;
    position:absolute;
    right:0px;
    width:auto;
  }
  .matchlist .ml_sarja{
  display:table-cell;
  }


  .patulos{
    display:none;
  }

  
  table.ottelulista,.ottelulista tr,.ottelulista tbody,.ottelulista thead{
    box-sizing:content-box;
    position:relative;
    display:block;
  }

  .ottelulista td,.ottelulista th{
    display:inline-block;
/*    width:100px;*/
    position:relative;
  }
  table.tapahtumalista{
    display:table;
  }
  .tapahtumalista tr{
    display:table-row;
  }
  .tapahtumalista td{
    display:table-cell;
    font-size:90%;
  }
  table.tapahtumalista thead{
    display:table-header-group;
  }

  img.logo{
  max-width:50px;
  }
  h1, .h1{
    font-size:22px;
  }

}

.lohko_maalit{
  white-space:nowrap;
}
table>tbody>tr>td.lohko_logo{
  vertical-align:middle;
}
  
.jatkoviiva td{
border-bottom:1px solid black;
}

@media (max-width:480px){
  .matchlist .ml_kotilogo,
  .matchlist .ml_vieraslogo
  {
    left:1em;
    width:1em;
    display:inline-block;
  position:absolute;
    height:0.8em;
    text-align:center;
    vertical-align:middle;
  }
  .matchlist .ml_kotilogo img,
  .matchlist .ml_vieraslogo img
  {
    height:auto !important;
    width:auto !important;
    max-height:15px !important;
    max-width:15px !important;

  }
  .matchlist img{
    height:0.8em;
  }
  .matchlist .ml_kotilogo{
  top:1.5em;
  }
  .matchlist .ml_vieraslogo{
  top:2.5em;
  }
  .matchlist li.header,
  .lohko_kunto
  {
    display:none;
  }
  .lohko_logo img{
    width:1em;
  }
  td.lohko_logo{
    vertical-align:middle !important;
  }
  .lohko td,.lohko th{
    font-size:0.8em;
  }
  .matchlist li{
    display:block;
    position:relative;
    height:4em;
    line-height:1em;
    padding-top:0.5em;
    border-bottom:1px solid #aaa;
    padding-left:1em;
  }
  .matchlist .ml_kotisiisti{
  position:absolute;
  left:3.5em;
  width:80%;
  text-align:left;
  top:1.5em;
  }
  .matchlist .ml_vierassiisti{
  position:absolute;
  left:3.5em;
  width:80%;
  text-align:left;
  top:2.5em;
  }
  .matchlist .ml_tulos, .matchlist .ml_tulosklo{
  top:0.5em;
  position:absolute;
  left:80%;
  width:20%;
  text-align:center;
  }
  .matchlist .ml_ottelunro,
  .matchlist .ml_sarjanimi,
  .matchlist .ml_lohkosijat,
  .matchlist .ml_kenttanimi
  {
    display:inline-block;
    width:auto;
    color:#333;
    font-size:80%;
    padding-right:1em;
  }
  .matchlist .ml_sarja
  {
    display:none;
  }
  
  .matchlist .ml_klosiisti{
    top:2.5em;
    font-size:80%;
    width:20%;
    text-align:center;
    left:80%;
    position:absolute;
  }
  .matchlist .ml_pvm,
  .matchlist .ml_pvmsiisti{
    top:1.7em;
    font-size:80%;
    width:20%;
    text-align:center;
    left:80%;
    position:absolute;
  }
  .matchlist .played .ml_klosiisti,
  .matchlist .played .ml_pvmsiisti,
  .matchlist .played .ml_pvm
  {
    display:none;
  }
  .matchlist .played .ml_tulos
  {
    display:inline-block;
    font-weight:bold;
  }
  .matchlist .subtitle{
    padding-top:1em;
    height:2em;
    border-bottom:1px solid #333;
  }
}


.ottelujoukkue{
text-align:center;
}

/* ----- START kalenteri ---- */
.table>thead>tr>th{
border-bottom:0;
}
.table>tbody>tr>td, .table>tbody>tr>th, .table>tfoot>tr>td, .table>tfoot>tr>th, .table>thead>tr>td, .table>thead>tr>th
{
border-top:0;
}
.dropdown-menu>.level2{
padding-left:30px;
font-size:0.9em;
}
.dropdown-menu .divider {
    margin: 2px 0;
    background-color: rgba(0,0,0,0.2);
}
table.kk,table.kalenteri{
display:inline-block;
}
table.kalenteri{
width:240px;
}
.kalenteri th{
 text-align:center;
}
.kalenteri a{
color:#04c;
}
.kalenteri td.tapahtuma{
background-color:#FFD677;
}
div.tapahtuma{
position:relative;
top:-20px;
background-color:#FFD633;
padding:5px;
margin-right:150px;
}
.kalenteri{
cursor:default;
width:200px;
background:white !important;
}
.kalenteri td{
  text-align:right;
  padding:2px 2px 0 2px;
  color:#999;
/*  border:0 !important;*/
  line-height:16px !important;
}
.estekalenteri td{
  color:#000;
}
.kalenteri a{
  min-height:0px !important;
  font-size:13px !important;
  line-height:16px !important;
  line-height:16px !important;
background-color:transparent !important;
border:0 !important;
padding:0 !important;
}
table.kalenteri{  
display:inline-block;
vertical-align:top; 
margin-bottom:10px;
margin-right:10px;
}
.kalenteri a {
padding:0;
}

/* ----- END kalenteri ---- */

/* ---- Ilmoittautuminen ---- */
table.palvelut>tbody>tr.odd>td{
background:#eee;
}

.palvelut td{
padding:10px 4px;
}

@media (max-width:480px){

  .ilmoittautuminen td, .ilmoittautuminen th{
    display:block;
  }

  .palvelut{
  width:100%;
  }

  .palvelut td{
  display:inline-block;
  padding:0px 4px;
  }
  td.majoituskpl{
  float:right;
  }
  .palvelut td.majoituskuvaus{
  padding-bottom:2em;
  font-size:80%;
  width:90vw;
  }
  table.palvelut>tbody>tr.odd>td {
      background: none;
  }

}


.ilmoittautumisryhma{
float:left;
width:49%;
margin-right:1%;
}
.vahvistanut{
font-weight:bold;
}
.mainsponsor img{
max-width:400px;
max-height:400px;
}
.minorsponsor img{
max-width:200px;
max-height:200px;
margin:10px;
}
.minorsponsor a:hover{
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
position:relative;
}

.ottelufilter{
display:none;
}
input:read-only,input:-moz-read-only {
background-color:#eee;
}
.maksulinkki form{
display:inline-block;
text-align:center;
border:1px solid #999;
width:10em;
}
.maksulinkki span{
display:block;
}

.db_arena .ilmoittautumisryhma{
  width:24%;
}
.db_arena .ilmoittautumisryhma .col-md-6{
  width:100%;
}
.db_arena .ilmoittautumisryhma h4{
border-bottom:1px solid #333;
}

@media (max-width:480px){
  label{
    display:block;
  }
  label.inline{
    display:inline;
  }
  .navbar-brand{
    font-size:80%;
  }
  .navbar-header{
    white-space:nowrap;
    font-size:12px;
    z-index:10;
  }
  .ilmoittautumisryhma{
  float:none;
  width:99% !important;
  margin-right:1%;
  }
}
@media (min-width:768px){
  .navbar-brand img {
    border-right: 40px solid #3d428a;
    border-radius: 40px;
  }
}
@media (max-width:768px){
  table>tbody>tr>td, .table>tbody>tr>th, .table>tfoot>tr>td, .table>tfoot>tr>th, .table>thead>tr>td,
  .table>thead>tr>th{
  padding:0.1em !important;
  }
  .col-md-6{
    padding-left: 0px;
    padding-right: 0px;
  }
  .navbar{
    z-index:10;
  }
  .torneopal-template{
    overflow-x:auto;
  }
  .floatporssi{
    display:none;
  }
  #lmap,#lkentat{
  display:block;
  }
  #brandi .navbar-brand{
  display:none;
  }
  #brandi{
  width:100%;
  }
  #brandi img{
  max-height:10vh;
  max-width:75%;
  height:auto !important;
  width:auto !important;
  }
  #navbar ul{
  columns:1 !important;
  }
}
tr.valittujoukkue{
background:#c5d4ed;
}

li a.some {
padding-left:2px;
padding-right:2px;
}



@media (max-width:480px){
  label{
    display:block;
  }
  label.inline{
    display:inline;
  }
  .navbar-brand{
    font-size:80%;
  }
  .navbar-header{
    white-space:nowrap;
    font-size:12px;
    z-index:10;
  }
  .ilmoittautumisryhma{
  float:none;
  width:99%;
  margin-right:1%;
  }
}
.slick-prev::before, 
.slick-next::before{
  color:#000;
  font-size:30px;
}
.slick-prev,
.slick-next{
  width:30px;
  height: 30px;
}

.slick-prev{
  left:5px;
  z-index: 2;
}
.slick-next{
  right:5px !important;
}
.slick-track a{
  display:inline-block;
}
#sponsorfooter{
margin-top:1em;
height:5em;
text-align:center;
line-height:5em;
vertical-align:middle;
background:#fff;
}
@media (max-width:768px){
  .navbar{
    z-index:10;
  }
  .torneopal-template{
    overflow-x:auto;
  }
  .floatporssi{
    display:none;
  }
  #sponsorfooter{
  display:block;
  }
}
@media(min-width:769px){
  #sponsorfooter{
    display:none !important;
  }
  #brandi {
    position:absolute;
    left:30px;
    top:-80px;
  
  }  
}
.lohko.eitaulukko{
border:0;
}
#navbar a{
  padding-left:10px;
  padding-right:10px;
}
input[readonly] {
  background: #ddd !important;
  color:#333333;
  border: 1px solid #777;
}
.bigtext {
  font-size: 16pt !important;
  text-align: center;
}
.livebtn{
  line-height:1em;
  white-space:normal !important;
  padding:1em !important;
}
h1{
background:none !important;
font-size:12pt !important;
}

### jQueryTools DateInput
/* For the details, see:
   http://flowplayer.org/tools/dateinput/index.html#skinning */

/* the input field */
.date {
    border:1px solid #ccc;
    font-size:18px;
    padding:2px 4px;
    text-align:center;
    width:80px;
    cursor:pointer;
    -moz-box-shadow:0 0 10px #eee inset;
    -webkit-box-shadow:0 0 10px #eee inset;
color:red;
}

/* calendar root element */
#calroot {
    /* place on top of other elements. set a higher value if nessessary */
    z-index:10000;

    margin-top:-1px;
    width:208px;
    padding:2px;
    background-color:#fff;
    font-size:11px;
    border:1px solid #ccc;

    -moz-border-radius:5px;
    -webkit-border-radius:5px;

    -moz-box-shadow: 0 0 15px #666;
    -webkit-box-shadow: 0 0 15px #666;
}

/* head. contains title, prev/next month controls and possible month/year selectors */
#calhead {
    padding:2px 0;
    height:22px;
}

#caltitle {
    font-size:14px;
    color:#0150D1;
    float:left;
    text-align:center;
    width:155px;
    line-height:20px;
    text-shadow:0 1px 0 #ddd;
}

#calnext, #calprev {
    display:block;
    width:20px;
    height:20px;
    background:transparent url(/taso/img/prev.gif) no-repeat scroll center center;
    float:left;
    cursor:pointer;
}

#calnext {
    background-image:url(/taso/img/next.gif);
    float:right;
}

#calprev.caldisabled, #calnext.caldisabled {
    visibility:hidden;
}

/* year/month selector */
#caltitle select {
    font-size:10px;
}

/* names of the days */
#caldays {
    height:14px;
    border-bottom:1px solid #ddd;
}

#caldays span {
    display:block;
    float:left;
    width:28px;
    text-align:center;
}

/* container for weeks */
#calweeks {
    background-color:#fff;
    margin-top:4px;
}

/* single week */
.calweek {
    clear:left;
    height:22px;
}

/* single day */
.calweek a {
    display:block;
    float:left;
    width:27px;
    height:20px;
    text-decoration:none;
    font-size:11px;
    margin-left:1px;
    text-align:center;
    line-height:20px;
    color:#666;
    -moz-border-radius:3px;
    -webkit-border-radius:3px;
}

/* different states */
.calweek a:hover, .calfocus {
    background-color:#ddd;
}

/* sunday */
a.calsun {
    color:red;
}

/* offmonth day */
a.caloff {
    color:#ccc;
}

a.caloff:hover {
    background-color:rgb(245, 245, 250);
}


/* unselecteble day */
a.caldisabled {
    background-color:#efefef !important;
    color:#ccc	!important;
    cursor:default;
}

/* current day */
#calcurrent {
    background-color:#498CE2;
    color:#fff;
}

/* today */
#caltoday {
    background-color:#333;
    color:#fff;
}
input.pvm{
border-width:1px;
border-style:solid;
outline:0;
text-align:center;
font-size:12pt;
padding:4px 0px 4px 8px;
cursor:pointer;
text-shadow:0 1px 0 white;
border-color:#ccc #ccc #aaa;
background-color:#e0e0e0;
-moz-box-shadow: inset 0 0 1px #fff;
-ms-box-shadow: inset 0 0 1px #fff;
webkit-box-shadow: inset 0 0 1px white;
box-shadow: inset 0 0 1px white;
filter: progid:DXImageTransform.Microsoft.Gradient(GradientType=0,StartColorStr=#fffafafa,EndColorStr=#ffdcdcdc);
background-image: -moz-linear-gradient(top,#FAFAFA 0,gainsboro 100%);
background-image: -ms-linear-gradient(top,#FAFAFA 0,gainsboro 100%);
background-image: -o-linear-gradient(top,#FAFAFA 0,gainsboro 100%);
background-image: -webkit-gradient(linear,left top,left bottom,color-stop(0,#FAFAFA),color-stop(100%,gainsboro));
background-image: -webkit-linear-gradient(top,#FAFAFA 0,gainsboro 100%);
background-image: linear-gradient(to bottom,#FAFAFA 0,gainsboro 100%);
width:130px;
border-radius:3px;
}
input.pvm:hover{
border-color:#aaa #aaa #999 #aaa;
box-shadow:rgba(0,0,0,0.25) 0px 1px 2px 0px, #fff 0px 0px 4px 0px inset;
}
.vieras img {
  margin-left:25px !important;
}

.header_logot img {
  max-height: 92px;
  max-width: 118px;
  vertical-align: middle;
}
.header_logot img {
  padding-left: 0px;
  padding-right: 0px;
}

.livetorjunnat {
  display: inline-block;
  margin: 0 50px;
}
.livetorjunnat span {
  margin-left: 0px !important;
}
.kaukalopallo .tapahtumat {
  height: 0px;
  overflow-y: hidden;
}
.tapahtumat {
  margin-top: 4px;
  height: 0px;
  overflow: hidden;
  height: 220px;
  overflow-y: scroll;
  -moz-transition: height 0.5s;
  -webkit-transition: height 0.5s;
}
.tapahtumat table td {
  padding: 4px;
  text-align: left;
}
.tapahtumat tr.maali{
color:#001342;
}
.tapahtumat th{
  padding: 2px 4px;
  text-align: center;
  border-bottom: 2px solid #64d7ff;
  border-top: 2px solid #64d7ff;
}
.avaatapahtumat {
  margin-left: 10px;
  cursor: pointer;
  position: relative;
  top: 2px;
  font-weight: bold;
  padding-top: 0px;
  padding-bottom: 16px;
  line-height: 0.5em;
}


.liveottelu {
  margin-top: 2px;
  text-align: center;
  margin-bottom: 15px;
  position: static;
  width: 1200px;
  height: auto;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 0px 5px;
  border-radius: 10px;
  box-shadow: 1px 1px 5px rgba(255, 255, 255, 0.4);
  margin-left: 0px;
  background: #1cabe8;
  display: inline-block;
  max-width:100%;
}


  .livesuosikki{
    margin-top:0 !important;
    margin-right:10px;
  }

.liveottelu{
padding-left:10px;
padding-right:10px;
}
.liverivi{
width:100%;
display:flex;
flex-direction:row;
border:2px solid white;
border-radius:50px;
overflow:hidden;
background:white;
}
.liverivi>span{
display:inline-block;
}
.liverivi .livejoukkue{
flex-grow:1;
width:50%;
display:flex;
flex-direction:row;
align-items:center;
}
.liverivi .livejoukkue>span{
flex-grow:1;
background:#001342;
height:100%;
display:flex;
align-items:center;
}
.liverivi img{
margin:0 !important;
background:#fff;
padding:4px;
}
.liverivi .livejoukkue.koti{
text-align:left;
}
.liverivi .livejoukkue.vieras{
text-align:right;

}
.liverivi .livejoukkue.koti>span{
padding-left:10px;
}
.liverivi .livejoukkue.vieras>span{
padding-right:10px;
justify-content:right;
}
.liverivi .livekeski{
white-space:nowrap;
display:flex;
flex-direction:row;
width:20%;
min-width:30vw;
justify-content:center;
align-items:center;
background:#001342;

}
.liverivi .liveaika{
  display:flex;
  justify-content:center;
  align-items:center;
  font-size:30px;
  width:50%;
  height:100%;
  border-left:2px solid white;
  border-right:2px solid white;
  background:#63d7ff;
  color:#000;    
}
.liverivi .liveaika.loppunut{
  font-size:2vw;
  background: -moz-linear-gradient(#fa5b00, #890000);
  background: -webkit-gradient(linear, left top, left bottom, from(#fa5b00), to(#890000));
  color:#fff;
}
.liverivi .livemaali{
  width:25%;
}


.liveottelu>br {
  display: none;
}

@media (min-width:768px){
  .liverivi{
    font-size: 30px;  
  }
  .liverivi .liveaika.loppunut{
  font-size:20px;
  }
}

@media (max-width:768px){
  .liveottelu {
    font-size:10px !important;
  }
  .liverivi img{
    max-height:36px;
  }
  .liverivi .liveaika{
  font-size:10px;
  }
  .liveottelu h5, .liveottelu .livetorjunnat{
  display:none;
  }
  .tapahtumat table td {
    font-size:10px !important;

  }
  
}


.aikajanamaali{
width:20px;
padding-top:2px;
cursor:help;
text-align:center;
vertical-align:middle;
height:20px;
background:green;
color:#fff;
border-radius:20px;
border:2px solid white;
background:#999;
position:absolute;
font-size:10px;
}
.johdossa{
background:#080;
}
.tasoissa{
background:#dd0;
color:#000;
}
.haviolla{
background:#800;
}
.aikajanarangaistus{
border-radius:3px;
cursor:help;
width:2px;
height:16px;
background:yellow;
color:#000;
position:absolute;
text-align:center;
border:1px solid #aaa;
border-bottom:1px solid #eee;
border-right:1px solid #eee;
}

.ottelulista th {
  background-color:#3d428a;
  color:#FFFFFF;
}
#vanhaiframe {
  margin-left:0px !important;
}
