* {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  font-family: 'PT Sans', sans-serif;
  margin-bottom: 60px;
  /* Margin bottom by footer height */
  /*    background-image: url("../../assets/images/background.jpg");*/
  background-color: white;
  color: black;
  background-size: cover;
}

/*.container-fluid {
    max-width: 1000px;
}*/

/*#content .container-fluid {
    margin-top: 1.5em;
}*/

.head {
  background-color: rgba(0, 0, 0, 0.5);
  font-size: .9em;
  font-weight: bold;
  padding: .2em;
  padding-left: .4em;
  padding-top: 0em;
  border: 1px solid white;
}

/* Drag and Drop */

.draggable-false {
  user-drag: none;
  user-select: none;
  -moz-user-select: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

.player-position {
  background-color: rgba(0, 0, 0, 0.5);
  border: 1px solid white;
  height: 6em;
  width: 3.5vw;
  font-size: 1.0vw;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.formation-space {
  height: 2em;
}

#formation {
  text-align: center;
}

/* Analist page */

.contenttable {
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid white;
  font-size: .8em;
  padding: .5em;
  min-height: 5em;
}

.contenttable .btn {
  font-weight: bold;
  color: white;
  line-height: 1.1em;
  margin-top: .3em;
  width: 12vw;
  height: 3.3em;
  font-size: 1.4vw;
  padding: 0;
}

.horizontal-space {
  height: 1em;
}

.contentwrapper {
  margin-top: 1em;
}

table#movelist {
  width: 20em;
  font-size: .9em;
}

table#movelist tr {
  border-top: 1px solid white;
}

table#movelist tr:first-child {
  border-top: none;
}

/*table#movelist tr td:first-child{
   width:9em;
}*/

footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100px;
  padding: 25px;
  line-height: 20px;
  /* Set the fixed height of the footer here */
  font-weight: bold;
  /* Vertically center the text there */
  background-color: rgba(0, 0, 0, 0.5);
  height: 3em;
  color: white;
  font-size: 1.0em;
}

.player-horizontal {
  background-color: rgba(0, 0, 0, 0.5);
  height: 2em;
  color: white;
  min-width: 10em;
  margin-bottom: 5px;
  text-align: center;
}

div.selected-player {
  border: 1px solid #00aaff;
  font-size: 2em;
  z-index: 100;
}

/*.player-horizontal .row {
    line-height: 0em;
}*/

.player-horizontal .image img {
  max-height: 3em;
}

.player-position .player-horizontal .image img {
  max-height: 5em;
  display: block;
  margin: 5px 0 5px 8px;
}

#formation .player-position .player-horizontal {
  height: 6em;
  min-width: 10px;
}

#formation .player-position .player-horizontal .text {
  height: 1em;
}

.player-position .player-horizontal .row {
  width: 1em;
  text-align: center;
}

/*.player-position .player-horizontal .text {
    display:none;
}*/

.player-horizontal .text {
  font-size: 1em;
  font-weight: bold;
  /*    white-space: nowrap;*/
  /*    padding: 15px;*/
  margin-left: 5px;
}

/*.player-horizontal .status-red {
    background-color: #fe0000;
    height: 4em;
    width: .7em
}

.player-horizontal .status-green {
    background-color: #01bb00;
    height: 4em;
    width: .7em
}*/

.table td,
.table th {
  padding: 0;
}

/* Player selected*/

.player-selected {
  max-width: 7em;
}

.player-selected img {
  width: inherit;
  border: 4px solid #01bb00;
}

.player-selected .text {
  background-color: rgba(0, 0, 0, 0.5);
  text-align: center;
}

.player-selected-info {
  margin-top: 25px;
}

.player-selected-info table {
  font-size: .7em;
}

/*Table inf*/

.table-inf {
  background-color: rgba(0, 0, 0, 0.5);
  border: 1px solid white;
  padding: 10px;
}

table#info tr td:first-child {
  font-weight: bold;
}

/* graph */

.graph {
  padding-top: 2.5em;
}

.btn {
  cursor: pointer;
  color: white;
  line-height: 1em;
  font-weight: bold;
  font-size: 1.1em;
  border-radius: 0 !important;
}

.action button {
  width: 7em;
  height: 3em;
  margin-bottom: .3em;
}

.btn-lowsuccess {
  background-color: #6ad881;
}

.btn-lowsuccess:hover {
  background: #2af821;
}

.btn-lowwarning {
  background-color: #e3613d;
}

.btn-lowwarning:hover {
  background: #f3a17d;
}

.btn-lowsuccess:hover {
  background: #2af821;
}

.btn-success {
  background-color: #01bb00;
}

.btn-action:hover {
  background-color: #fff !important;
  color: #000;
}

.btn-action:active {
  background-color: #ff0000 !important;
  color: #000;
  border: none;
}

.btn-warning {
  background-color: #fe0000;
  border: 1px solid #fe0000;
}

/* Buttons undo, pause, delete */

.btn-undo {
  background-color: #00aaff;
}

.btn-undo:hover {
  background: #44eeff;
}

.btn-pause {
  background-color: #f7931e;
}

.btn-pause:hover {
  background: #f7e33e;
}

.btn-delete {
  background-color: #FF0000;
}

.btn-delete:hover {
  background: #FF5544;
}

div.col.action {
  padding-right: 0;
}

table.actions {
  text-align: center;
  width: 10em;
}

table.actions tr td:first-child button {
  margin-right: 1.5em;
}

table.actions tr td {
  text-align: center;
}

.moves-action .btn {
  height: 3em;
  font-size: 1em;
  width: 4em;
  padding: 0;
  padding: 0 auto;
  margin-left: 1em;
  margin-top: 3em;
  margin-left: 2.3em;
}

/*.moves-action {
    width:10em;
    margin-bottom:40px;
}*/

/* Custom page CSS
-------------------------------------------------- */

/* Not required for template or sticky footer method. */

p {
  color: blue;
}

header {
  background-color: rgba(0, 0, 0, 0.5);
  height: 3em;
  color: white;
  font-weight: bold;
  font-size: .8em;
  padding: 5px 15px 0px 15px;
}

i {
  /*    border: solid white;
        border-width: 0 3px 3px 0;*/
  display: inline-block;
  padding: 3px;
}

.right {
  transform: rotate(-45deg);
  -webkit-transform: rotate(-45deg);
}

.left {
  transform: rotate(135deg);
  -webkit-transform: rotate(135deg);
}

.up {
  transform: rotate(-135deg);
  -webkit-transform: rotate(-135deg);
}

.down {
  transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
}

.fbm-logo {
  width: 6em;
  z-index: 1000;
  margin-left: -1em;
  margin-top: -0.15em;
}

.scroller {
  overflow-y: auto;
  overflow-x: hidden;
  height: 80%;
}

/*h1 {
  font-size: 5.9vw;
}
h2 {
  font-size: 3.0vh;
}
body {
  font-size: 4vmin;
}*/

html,
body {
  font-size: 14px !important;
}

h1 {
  font-size: 1.602em;
}

h2 {
  font-size: 1.424em;
}

h3 {
  font-size: 1.266em;
}

h4 {
  font-size: 1.125em;
}

h5 {
  font-size: 0.889em;
}

h6 {
  font-size: 0.79em;
}

.display-1 {
  font-size: 3.906em;
}

.display-2 {
  font-size: 3.125em;
}

.display-3 {
  font-size: 2.5em;
}

.display-4 {
  font-size: 2em;
}

@media (min-width: 48em) {
  h1 {
    font-size: 2.441em;
  }

  h2 {
    font-size: 1.953em;
  }

  h3 {
    font-size: 1.563em;
  }

  h4 {
    font-size: 1.25em;
  }

  .display-1 {
    font-size: 6em;
  }

  .display-2 {
    font-size: 5.5em;
  }

  .display-3 {
    font-size: 4.5em;
  }

  .display-4 {
    font-size: 3.5em;
  }
}

@media (min-width: 62em) {
  html,
  body {
    font-size: 16px !important;
  }
}

@media (min-width: 75em) {
  html,
  body {
    font-size: 18px !important;
  }
}

.jumbotron {
  font-size: 16px;
}

@media (min-width: 62em) {
  .jumbotron {
    font-size: 20px;
  }
}

.jumbotron h1 {
  border-bottom: 4px solid #0275d8;
}

.jumbotron p.lead {
  border-radius: 4px;
}

.list-group-item {
  background-color: transparent;
  border: none;
  border-radius: 0;
  color: #fff;
  margin: 0;
  padding: 0;
}

/* Draggable */

/* Prevent the text contents of draggable elements from being selectable. */

[draggable] {
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  /* Required to make elements draggable in old WebKit */
  -khtml-user-drag: element;
  -webkit-user-drag: element;
}

*[draggable=true] {
  -moz-user-select: none;
  -khtml-user-drag: element;
  cursor: move;
}

*:-khtml-drag {
  background-color: rgba(238, 238, 238, 0.5);
}

.column {
  height: 150px;
  width: 150px;
  float: left;
  border: 2px solid #666666;
  background-color: #ccc;
  margin-right: 5px;
  border-radius: 10px;
  -webkit-box-shadow: inset 0 0 3px #000;
  -ms-box-shadow: inset 0 0 3px #000;
  box-shadow: inset 0 0 3px #000;
  text-align: center;
  cursor: move;
}

.column header {
  color: #fff;
  text-shadow: #000 0 1px;
  -webkit-box-shadow: 5px;
  box-shadow: 5px;
  padding: 5px;
  background: -ms-linear-gradient(left center, black, #4f4f4f, #151515);
  border-bottom: 1px solid #ddd;
  -ms-border-radius-topleft: 10px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

#scroll-area {
  max-height: 80vh;
  width: 12em;
  overflow-y: scroll;
  overflow-x: hidden;
}

/*
 Large desktop 
@media (min-width: 1200px) { 
    body    {
       padding: 0;
        margin:0;
    }
}

 Portrait tablet to landscape and desktop 
@media (min-width: 768px) and (max-width: 1199px) { 
    body    {
        padding: 0;
        margin:0;
        
    }
    
     #formation {
        padding: 0;
        margin:0;
    }
    
}

 Landscape phone to portrait tablet 
@media (max-width: 767px) { 
    body    {
        font-size: .7em !important;
    }
    
    .formation-space {
        height:1.3em;
    }
    
    .formation-space:first-of-type {
        height:0em;
    }
    
    #formation {
        padding: 0;
        margin:0;
    }
    
    .player-horizontal{
        width:20px !important;
        max-width: 20px;
        background:none;
    }
    
    #formation .player-horizontal .text{
        padding: 6px !important;
    }
    
    #formation .player-position{
        width:4em !important;
       // max-width: 40px !important;
        background:none;
        height:5em;
    }
    
    ul .player-horizontal .text {
        display:none;
        margin:0 auto;
        
    }
    
    .player-position .player-horizontal .image img{
        margin: 0;
       
    }
    
    button {
        margin-bottom:50px;
    }
    
    .player-horizontal .image img {
        max-height: 3.5em;
    }
}

 Landscape phones and down 
@media (max-width: 480px) { 
    body    {
        font-size: .7em !important;
    }
    
    .player-horizontal{
        width:20px !important;
        max-width: 20px;
        background:none;
    }
    
    #formation {
        padding: 0;
        margin:0;
    }
    
    #formation .player-horizontal .text{
        padding: 6px !important;
    }
    
    #formation .player-position{
        width:4em !important;
       // max-width: 40px !important;
        background:none;
        height:5em;
    }
    
    ul .player-horizontal .text {
        display:none;
        margin:0 auto;
        
    }
    
    .player-position .player-horizontal .image img{
        margin: 0;
       
    }
    
    button {
        margin-bottom:50px;
    }
    
    .player-horizontal .image img {
        max-height: 3.5em;
    }
}*/

#formation .row div.text {
  font-size: .85em !important;
}

#content .table td,
#content .table th {
  font-size: .85rem !important;
  padding: 5px;
}

div#content td.goals {
  font-weight: bold;
  font-size: 2em !important;
}

/* LAter to cleanup this below to keep good structure of the css*/

div#content .teamWon {
  color: green;
  font-weight: bold;
  vertical-align: middle;
  font-size: 1.4em !important;
}

div#content .teamLose {
  color: red;
  font-weight: bold;
  vertical-align: middle;
  font-size: 1.4em !important;
}

div#content .teamDraw {
  color: orange;
  font-weight: bold;
  vertical-align: middle;
  font-size: 1.4em !important;
}

/* lists */

.add-new {
  margin-top: .6em;
  margin-left: 3em;
}

#button-list button.btn {
  width: 6em;
  height: 3em;
}

#position-list tr td:nth-child(2),
#position-list tr td:nth-child(4) {
  font-weight: bold;
}

#position-list tr td:nth-child(2) {
  font-size: .9em !important;
}

.yes {
  color: green;
}

.no {
  color: red;
}

.switcher {
  width: 25px;
  height: 25px;
  margin-right: 1em;
  margin-top: .3em;
  cursor: pointer;
}

header a,
header:visited {
  font-size: 1.4em;
}

#displayStopWatch {
  font-size: 3em;
}

#player-statistics-name div:first-child {
  background-color: #01bb00;
  padding: 5px 10px;
}

#player-statistics-name {
  font-size: 2.5em;
}

option:checked {
  /* For some reason on update multiple shows selected values as very grey */
  background: #00aaff -webkit-gradient(linear, left bottom, left top, from(#0069d9), to(#0069d2));
  background: #00aaff linear-gradient(0deg, #0069d9 0%, #0069d2 100%);
  font-weight: bold;
  color: #fff;
}

