body{
    overflow: auto;
    height: auto !important;
}

.card {
  //transition: box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  //transition-delay: 0.2s;
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);
  
}

.title-card h1{
    margin-top: 10px;
    margin-bottom: 0px;
}

body {
  /*text-align: center;*/
  background-color: f0f0f0;
}

md-content.md-default-theme, md-content {
    background-color: white;
}

h3 {
  margin-top: 2px;
}

div.xi-center{
   margin:0 auto;
}

div.xi-minibox{
   text-align:center;
   flex-grow:1;
}

div.xi-mini-header{
   font-size: smaller;
   color:DimGray;
}

.xi-text-no-overflow{
        white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.xi-text-line{
    margin-top: 5px;
    margin-bottom: 5px;
    display:block;
}

span.title {
  display: inline-block;
  height: 100%;
  vertical-align: middle;
  line-height:50px;
  color:white;
}

.logo {
  width: 42px;
  height: 42px;
  vertical-align: middle;
  margin-right:5px
}

.logo.mobile {
  width: 40px;
  height: 40px;
  margin-right:10px
}

#content-container {
  margin: 0 auto;
  padding-top:1px;
  width: 1220px;
  -webkit-transition: width 2s; /* Safari */
  transition: width 0.3s;
}

#notification-container {
  margin: 0 auto;
  width: 1220px;
  -webkit-transition: width 2s; /* Safari */
  transition: width 0.3s;
}

.flex-container-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

.flex-container-col {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

.basis-index{
  flex-basis:300px;
}

.flex-box-fixed {
  flex-grow: 1;
}

.flex-box-grow {
  flex-grow: 10;
}

.flex-box.text {
  flex: 1 1 200px;
  min-width: 200px;
}

.main-card {
  background-color: white;
  padding: 15px;
  margin:10px;
}

.other-card {
  background-color: white;
  margin:10px;
}

.title-card {
  margin-bottom:10px;
  margin-left:10px;
  margin-right:10px;
  background-color: white;
  padding-top: 1px;
  padding-bottom:15px;
  padding-left:15px;
  padding-right:15px;
}

.errorimg {
  max-width: 500px;
  width:100%
}

img.centered {
  margin-left: auto;
  margin-right: auto;
  display:block;
}

.material-icons.center { text-align:center; }
.material-icons.ok { color: green; }
.material-icons.error { color: red; }

.ctrl-button {
  position:absolute;
  top:0;
  right:0;
  font-size: 18px;
}

/* Points Scoring */

div.points_desc ol {
  list-style-type: none;
  padding-left:10px;
  font-size: small;
}

div.points_desc ol li {
  position: relative;
  margin-bottom: 5px;
}

div.points_desc li p {
  padding-left: 110px;
}

div.points_desc span {
  position: absolute;
}

.btn-social {
    position: relative;
    padding-left: 44px;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-social.btn-lg {
    padding-left: 61px;
    margin: 10px auto;
}

.btn {
    padding: 10px 16px;
    font-size: 18px;
    line-height: 1.3333333;
    border-radius: 6px;
    border: 1px solid;
    text-decoration: none;
    display: block;
    max-width: 280px;
}

.btn-social>:first-child {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 32px;
    line-height: 34px;
    font-size: 1.6em;
    text-align: center;
    border-right: 1px solid rgba(0,0,0,0.2);
}

.btn-social.btn-lg>:first-child {
    line-height: 45px;
    width: 45px;
    font-size: 1.8em;
}


/* Different login methods */
.btn.btn-reddit {
    color: #000;
    background-color: #eff7ff;
    border-color: rgba(0,0,0,0.2);
}

.fa-reddit:before {
    content: "\f1a1";
}

.btn.btn-facebook {
    color: #fff;
    background-color: #3b5998;
    border-color: rgba(0,0,0,0.2);
}
.fa-facebook:before {
    content: "\f09a";
}

.btn.btn-google {
    color: #fff;
    background-color: #dd4b39;
    border-color: rgba(0,0,0,0.2);
}

.fa-google:before {
    content: "\f1a0";
}

/* menu */

.dl-menu.dl-animate-out-1 {
    animation: MenuAnimOut1 0.4s linear forwards;
}

@keyframes MenuAnimOut1 {
    50% {
        transform: translateZ(-250px) rotateY(30deg);
    }
    75% {
        transform: translateZ(-372.5px) rotateY(15deg);
        opacity: .5;
    }
    100% {
        transform: translateZ(-500px) rotateY(0deg);
        opacity: 0;
    }
}

.dl-menu.dl-animate-in-1 {
    animation: MenuAnimIn1 0.3s linear forwards;
}

@keyframes MenuAnimIn1 {
    0% {
        transform: translateZ(-500px) rotateY(0deg);
        opacity: 0;
    }
    20% {
        transform: translateZ(-250px) rotateY(30deg);
        opacity: 0.5;
    }
    100% {
        transform: translateZ(0px) rotateY(0deg);
        opacity: 1;
    }
}

#mobile-container{
    //display:table;
    width:100%;
}


div.title {
    //float: right;
    position: absolute;// top: 0; left: 0;
    //margin-left: 48px;
    //margin-right: 48px;
    background: #1976d2;
    width: 100%; 
    height: 45px; 
    //display:table-cell;
    //z-index: -1;
    text-align: center;
}

.title h1{
    margin: 0px; 
    height: 45px;
    text-align: center;
    line-height: 45px;
}

.dl-menuwrapper {
    position: absolute;
    //display:table-cell;
    //width: 45;
    z-index: 2;
}

#desktop-container {
    position: relative;
    width: 100%;
    height: 50px;
    z-index: 2;
    background-color: #1976D2;
}

#title {
    font-size: 36px;
    position: absolute;
    left: calc(50vw - 600px);
    height: 100%;
    vertical-align: middle
    color:white
}

#desktop-menu {
    position: relative;
    left: calc(50vw - 360px);
    width: 420px;
    z-index: 2;
}

@media screen and (max-width: 1200px) {
    #title {
        left: 8px;
    }
    #desktop-menu {
        left: 250px;
    }
}

@media screen and (min-width: 601px) {
    #mobile-container {
        display: none;
    }
}

@media screen and (max-width: 600px) {
    #desktop-container {
        display: none;
    }
}


.xi-vmiddle{
    vertical-align: middle;
}
.dashboard{
    font-family: 'Lato', Calibri, Arial, sans-serif;
}

.xi-coming-soon{
    text-align: center;
    font-size: larger;
    margin: 10px auto;
}

.xi-team {
    position: relative;
    margin-top: 10px;
    background-color:white;
}

.xi-article {
    position: relative;
    margin-top: 10px;
    background-color:white;
    flex-basis: 400px;
}

.xi-main-bar {
    color: white;
    background-color: #1976d2;
    height: 30px;
    text-align: left;
    vertical-align: middle;
    
    line-height: 30px;
}

.xi-bar {
    position: relative;
    display: block;
    clear: left;
}

.xi-team-name {
    display: block;
    float: left;
    font-weight: bold;
    font-size: 22px;
    margin-left: 5px;
}

.xi-article-name {
    display: block;
    float: left;
    font-weight: bold;
    font-size: 22px;
    margin-left: 5px;
}

.xi-team-edit {
    display: block;
    float: right;
    margin-right:5px;
}

.xi-team-edit-button {
    margin: 0px !important;
    min-height: 30px !important;
    line-height: 30px !important;
    min-width: 60px !important;
}

.xi-team-comp-bar {
    position: relative;
    display: block;
    clear: left;
    padding-bottom: 4px;
    padding-top: 2px;
}

.xi-comp-name{
    margin-left:10px;
    font-size: 14px;
}


.xi-team-comp {
    display: block;
    float: left;
    font-size: smaller;
}

.xi-team-round-status {
    display: block;
    float: right;
    margin-right: 10px;
}

.xi-team-round-bar {
    position: relative;
    display: block;
    clear: left;
}

.round_score {
    display: block;
    float: left;
}

.xi-team-round {
    display: block;
    float: left;
    margin-left:10px;
}

.round_rank {
    float: right;
}

.total_rank {
    float: right;
}





.xi-match-team {
    display: block;
    float: left;
    position: absolute;
}

.xi-match-team-name {
    display: block;
    text-align: center;
    width: 160px;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: absolute;
    left: 5px;
}

.xi-match-team-score {
    position: absolute;
    display: block;
    font-size: 20px;
    text-align: center;
    width: 160px;
    top: 16px;
    left: 5px;
}

.xi-match-vs {
    display: block;
    float: left;
    position: absolute;
    top: 0px;
    left: 180px;
    height: 39px;
    min-width: 40px;
    line-height: 40px;
    vertical-align: middle;
    text-align: center;
}

.xi-match-team-home {
    top: 0px;
    left: 15px;
}

.xi-match-team-away {
    top: 0px;
    left: 225px;
}

.xi-league-container {
    padding-top: 10px;
    display: block;
    clear: left;
}

.xi-league {
    display: block;
    position: relative;
    clear: left;
    padding-top: 5px;
    border-bottom-style: solid;
    border-bottom-width: 1px;
    border-bottom-color: LightGray;
}

.xi-league-info {
    position: relative;
    min-height: 50px;
}

.xi-league-view {
    display: block;
    position: absolute;
    top: 3px;
    right: 0px;
    margin-right:5px;
}

.xi-league-view-button{
    margin: 0px !important;
    min-height: 28px !important;
    line-height: 28px !important;
    min-width: 60px !important;
}

.xi-mini-heading {
    font-size: smaller;
    color: DimGray;
}

.league-match {
    position: relative;
    display: block;
    clear: left;
}

.xi-league-rank {
    position: absolute;
    border-color: blue;
    display: block;
    top: 0px;
    right: 0px;
    text-align: center;
    min-width:50px;
    margin: 0 10px
}

.xi-league-name {
    font-size: 18px;
    height: 28px;
    margin-left: 10px;
}

.xi-league-bar {
    font-size: 14px;
    color: DimGray;
    border-bottom-style: solid;
    border-bottom-width: 1px;
    border-bottom-color: LightGray;
}

.xi-league-bar span {
    margin-left: 10px;
}

.xi-league-start-round {
    display: block;
    position: absolute;
    text-align: left;
    width: 260px;
    font-size: 14px;
    top: 0px;
    left: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.xi-league-start-countdown {
    position: absolute;
    display: block;
    float: left;
    font-size: 20px;
    text-align: left;
    width: 260px;
    top: 18px;
    left: 20px;
}

.xi-league-buttons{
    display: flex;
    flex-direction: row;
    flex-flow: row wrap;
    justify-content: space-around;
    
}

.xi-league-button{
    margin: auto;
}

.xi-team-alert{
    font-weight: 600;
    text-align: center;
    background-color: #EEFF41;
    
}

.xi-team-alert-icon {
    font-size: 20px;
    color: gold;
    vertical-align: bottom;
        height: 18px;
    margin-right: 3px;
}


.xi-comp-design{
    background-color:white;
    margin-top:10px;
}

.xi-comp-design-index{
    flex-basis: 380px;
    margin: 10px;
}

.xi-comp-bar{
    position:relative;
    height:55px;
    color:white;
}

.xi-info-bar{
    margin-top: 8px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.xi-info{
    margin:5px auto;
    text-align: center;
    min-width: 140px;
}

.xi-info-buttons{
    margin:0 auto;
    text-align: center;
    min-width: 110px;
}

.xi-comp-text{
    margin: 10px;
}

.xi-article-text{
    margin: 10px;
}

.xi-comp-background-img{
    background-position: center !important; 
    opacity: 0.65;
    height:100%;
    filter: grayscale(20%);
    background-size: 100% auto !important;
}

.xi-comp-title {
  position: absolute;
  bottom: 2px;
  left: 5px;
  right: 5px;
  font-size: 22px;
  opacity: 1;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.xi-container-team {
    flex-basis: 450px;
    margin:0px 10px;
}

.xi-container-article {
    flex-basis: 450px;
    margin:0px 10px;
}

.xi-container-comp {
    flex-basis: 380px;
    margin:0px 10px;
}

.xi-container-article-side {
    flex-basis: 380px;
    margin:0px 10px;
}

.finals_limit td {
    border-top: 1px solid grey;
}

/* footer */
.page-wrap {
  min-height: calc(100% - 50px);
  margin-bottom: -26px !important;
}

.page-wrap:after {
  content: "";
  display: block;
}
.site-footer, .page-wrap:after {
  height: 26px; 
}
.site-footer {
  background: blue;
  margin-top: 5px;
}

.footer-left {
    position: absolute;
    left: calc(50vw - 600px);
}

.footer-right {
    position: absolute;
    right: calc(50vw - 600px);
    text-align:right;
}

.footer-item {
  float: left;
  padding: 2px 5px 2px 5px; 
  min-width: 10px;
}
.footer-item a {color:lightgray; font-style:normal; text-decoration:none;}
.footer-item a:link {color:lightgray; font-style:normal; text-decoration:none;}
.footer-item a:visited {color:lightgray; font-style:normal; text-decoration:none;}
.footer-item a:hover {color:white; font-style:normal; text-decoration:none;}
.footer-item a:active {color:lightgray; font-style:normal; text-decoration:none;}

.fa-brands {
  font-style: normal !importaint;
}

.fa-fw {
  margin-right:5px;
}


.fa-facebook-pad:before {
    margin-left:1.5px;
    margin-right:1.5px;
    content: "\f09a";
}
.fa-twitter-pad:before {
    margin-left:1.5px;
    margin-right:1.5px;
    content: "\f099";
}

@media screen and (max-width: 1200px) {
    .footer-left {
        left: 8px;
    }
    .footer-right {
        right: 8px;
    }
}

@media screen and (max-width: 600px) {
    .site-footer, .page-wrap:after {
      height: 60px; 
    }
    .page-wrap {
      min-height: calc(100% - 60px);
      margin-bottom: -0px !important;
    }
    
    .site-footer {
      margin-top: 0px;
    }
    
    .footer-item {
      float: none;
      max-width: 100px;
      font-size: 12px
    }

}

@media screen and (max-width: 500px) {
    .xi-team-name {
        max-width: 400px;
    }
    
    .xi-comp-design-index {
        min-width: 300px;
    }
}


@media screen and (max-width: 450px) {
    .xi-team-name {
        max-width: 400px;
    }
    
    .xi-league-name {
	    max-width: 370px;
	    overflow:hidden;
	    text-overflow:ellipsis;
	    white-space: nowrap;
	}
    
    .xi-match-team-name, .xi-match-team-score{
        width: 130px;
    }
    
    .xi-match-vs {
        left: 150px;
    }
    
    .xi-match-team-away{
        left:195px;
    }
}

@media screen and (max-width: 400px) {
    .xi-team-name {
        max-width: 325px;
    }
    
    .xi-league-name {
	    max-width: 300px;
	}
    
    .xi-match-team-name, .xi-match-team-score{
        width: 110px;
    }
    
    .xi-match-team-home{
        left:10px;
    }
    
    .xi-match-vs {
        left: 120px;
    }
    
    .xi-match-team-away{
        left:160px;
    }
}

@media screen and (max-width: 380px) {
    .xi-league-name {
	    max-width: 280px;
	}

	.xi-comp-text{
        margin: 5px;
    }
    
    .xi-article-text{
        margin: 5px;
    }
}

@media screen and (max-width: 1270px) {
  #content-container, #notification-container {
    width: 96%;
  }
}

@media screen and (min-width: 601px) {
  .mobile, .xi-mobile {
    display: none;
  }
  
}


@media screen and (max-width: 600px) {
  #content-container, #notification-container {
    width: 100%;
    position:relative;
    top:45px;
  }
  
  .main-card, .other-card, .title-card, .dashboard, .xi-container-comp, .xi-container-team, .xi-container-article .xi-container-article-side {
    margin-left:0px !important;
    margin-right:0px !important;
  }
  
  .title-card {
    /*margin-top:32px !important;*/
    margin-bottom: 5px
  }
  
  .desktop, .xi-desktop {
    display: none;
  }
  .main-card{
      padding: 10px;
      margin: 5px;
  }
  
}

