/* -------------------------------- 

Primary style

-------------------------------- */

body {
  font-size: 100%;
  font-family: "PT Sans", sans-serif;
  background-color: white;
  position: center;
  margin: 0;
  padding-top: 175px;
}

/* -------------------------------- 

Main components 

-------------------------------- */

.Logo-and-header {
    position: fixed;
    max-width: 960px;
    width: 90%;
    margin-left: auto;
    background-color: white;
    top: 0;
}

header {
    -webkit-font-smoothing: antialiased;
    font-size: 80px;
    color: rgb(255, 153, 0);
    font-family: serif;
    text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
    text-align: center;
}

header h1 {
    font-size: 20px;
    color: rgb(255, 153, 0);
}

/* Navigation bar parts */
.NavigationBar {
  overflow: hidden;
  /*background-color: #f8f7ee;*/
  background-color: rgb(255, 153, 0);
  max-width: 960px;
  margin-left: auto;
  border-bottom: solid black;
}

.NavigationBar a {
  float: left;
  display: block;
  color: black;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;

}

.NavigationBar a:hover {
  background-color: #ddd;
  color: black;
  border-top: solid black;
}

.NavigationBar .icon {
  display: none;
}




/* Navigation bar parts */


/* Other content 
    Total content
*/
.whole-page {
    width: 90%;
    max-width: 960px;
    margin: auto;
    float: inherit;
    
}

.under-menu {
    background-color: rgb(255, 153, 0);
    padding: 1.4em;
    border-bottom: 5px;
    border-bottom-color: white;
    border-style: solid;
    position: page;
    display: block;
    
}

.under-menu-first {
    background-color: rgb(255, 153, 0);
    padding: 1.4em;
    border-bottom: 5px;
    border-bottom-color: white;
    border-style: solid;
    position: page;
    display: block;
    top: 0;
}

.NavigationBar a.selected {
  background-color: #ffffff !important;
  box-shadow: inset 0 2px 0 #f05451;
  color: #29324e;
}

.active {
    background-color: #4CAF50;
}


/* Navigation ends here */

.sponsors-and-news {
    display: inline-block;
    width: 45%;
    top: 0px;
    vertical-align: top;
}

.a-sponsors {
    margin-left: 5px;
}

.header-bar {
    width: 90%;
    max-width: 960px;
    position: relative;
}

/* Otteluohjelma*/

.otteluohjelma {
    font-family:Ubuntu,Arial;
    /*display: compact;*/
    width: 90%;
    margin: auto;
}

.otteluohjelma th{
  text-align:center;
  background: white;
  color: black;
  padding:4px 2px;
  border-bottom: solid;
  border-bottom-color: black;
}
.otteluohjelma th.team,
.otteluohjelma td.team
{
  text-align:left;
}

.otteluohjelma td{
  text-align:center;
  background: rgb(255, 153, 0);
  padding:4px 4px;
}
.otteluohjelma tr:nth-child(even) td{
  background: white;
}
.otteluohjelma #updated{
  display:none;
}

/*Otteluohjelma*/

.tapahtumaLista-ja-Facebook {
    width: 300px;
    height: 400px;
    border: none;
    padding: 0px;
    margin: 5px 5px 5px 50px;
    display: inline-block;
}

a:visited {
    color: black;
}

a:hover {
    color: grey;
}

a:default {
    color: black;
    text-underline-position: initial;
}

a {
    color: black;
}

ul {
    list-style-type: lower-greek;
    list-style-position: hanging;

}


/* Näyttö max 870*/


@media screen and (max-width: 870px) {

    .whole-page, body{
        max-width: 600px;
        width: 100%;
    }

    .NavigationBar, .Logo-and-header {
        width: 100%;

    }

    .NavigationBar a:not(:first-child) {
        display: none;

    }

    .NavigationBar a:first-child {    
    }

    .NavigationBar a.icon {
        position: relative;
        display: block;
        align-content: center;
    }

    .NavigationBar.responsive {
        position: fixed;


    }
    .NavigationBar.responsive .icon {
        
    }
    .NavigationBar.responsive a {
        float: none;
        display: block;
        text-align: center;
    }
  
    .NavigationBar {
        position: fixed;
        display: block;
    }

    body {
        padding-top: 150px;

    }

    .sponsors-and-news {
        display: block;
        width: 100%
    }

    .tapahtumaLista-ja-Facebook {
        width: 100%;
        height: 400px;
        border: none;
        padding: 0px;
        margin: 0;
        display: block;
    }

    /* Otteluohjelma*/

    .otteluohjelma {
        font-family:Ubuntu,Arial;
        /*display: compact;*/
        width: 10%;
        margin: 0;
    }

    .otteluohjelma th{
      text-align:center;
      background: white;
      color: black;
      padding:0;
      border-bottom: solid;
      border-bottom-color: black;
    }

    .otteluohjelma th.team, .otteluohjelma td.team
    {
      text-align:left;
    }

    .otteluohjelma td{
      text-align:center;
      background: rgb(255, 153, 0);
      padding: 0;
    }
    .otteluohjelma tr:nth-child(even) td{
      background: white;
    }
    .otteluohjelma #updated{
      display:none;
    }

    /*Otteluohjelma*/
    
    .logo {
        width: 50px;
    }    

    /* Otteluohjelman kentän poistot */
    .match {
        display: none;
    }
    
    .scheduletable .torneopalwidget {
        width: 100%;
        font-size: 10px;
    }

    .date, .time, .pitch, .home, .away, .score {
        width: 15%;
        font-size: 10px;
        
    }

    header {
        font-size: 40px;
    }
   
    .header-logo {
        height: 20%;
        width: 20%;
    }
}

