/***************CSS RESET**************************************/

/* http://meyerweb.com/eric/tools/css/reset/ 
v2.0 | 20110126
License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
    display: block;
}
body {
    line-height: 1;
}
ol, ul {
    list-style: none;
}
blockquote, q {
    quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/***************END CSS RESET**************************************/

/***************

font-family: 'Raleway', sans-serif;
font-family: 'Permanent Marker', cursive;
font-family: 'Marck Script', cursive;









****************/

/***************Main styles ----- Mobile First ---- Up to 600px wide***********************************/

html, body {
    width: 100%;
    height: 100%;
    font-family: 'Raleway', sans-serif;
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}

#app {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.flex {
    display:  flex;
}

.row {
    flex-direction: row;
    padding: .5em 0;
}

.column {
    flex-direction: column;
}

.row.center {
    justify-content: center;
}

.row.start {
    justify-content: flex-start;
}

.row.end {
    justify-content: flex-end;
}

.row.center.vertical {
    align-content: center;
    align-items: center;
}

.shrink {
    flex: 0 1 auto;
}

.expand {
    flex: 1 0 0;
}

.row.wrap {
    flex-wrap: wrap;
}

.purple {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: .5em 0 2em 0;
    background: #673AB7;  /* fallback for old browsers */
    background: -webkit-linear-gradient(to bottom, #512DA8, #673AB7);  /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to bottom, #512DA8, #673AB7); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
}

.title {
    font-family: 'Permanent Marker', cursive;
    color: #fff;
    font-size: 5em;
    text-align: center;
    padding: .5em 0 .25em 0;
}

.subtitle {
    font-family: 'Marck Script', cursive;
    font-size: 3em;
    text-align: center;
    padding: 1.25em 0 .25em 0;
}

.white {
    color: #fff;
}

.controls span {
    font-size: 1em;  
    padding:  .5em;
    cursor: pointer;
    border-right: 1px solid #fff;
}

.controls span:first-of-type {
    cursor: default;
    border-right: none;
    font-family: 'Marck Script', cursive;
}

.controls span:last-of-type {
    border-right: none;
}

.section {
    padding: 1em 0;
}

.results {
    padding-bottom: 5em;
}

.podium {
    width: 150px;
    height: 100px;
    max-width: 30%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    align-content: center;
}

.podium > div {
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
    flex: 1 0 auto;
    width: 100%;
    text-align: center;
}

.podium > .above {
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: .5em;
}

.podium > .below {
    background-color: #fff;
    color: #673AB7;
    font-weight: bold;
}

.podium.first > .above {
    flex-basis: 0%;
}

.podium.second > .above {
    flex-basis: 40%;
}

.podium.third > .above {
    flex-basis: 60%;
    
}

select {
    margin: .5em;
    border: 1px solid #fff;
    padding: .75em;
    background-color: #e67e22;
    border: none;
    color: #fff;
    font-size: 1.1em;
}

table.standings {
    width: 100%;
    max-width: 500px;
    
}

th, td {
    padding: .3em;
}

.heading > th {
    width: 25%;
}


.keys > th {
    text-align: center;
}

.standings td {
    text-align: center;
    border: 1px solid #fff;
}

tr.team:nth-of-type(odd) {
    background-color: #dcdcdc;
}

.draft {
    background-color: #fff;
}

.draft > .flex.row > img {
    margin: 0 .5em;
}

.draft > .flex.row > .end {
    font-size: 1.5em;
    font-family: 'Marck Script', cursive;
}

.draft > .flex.row > .start {
    font-size: .9em;
}

.card {
    background-color: #ffffff;
    padding: .5em;
    margin: .5em;
    border-radius: 10px;
    /*----Box Shadow---*/
    -webkit-box-shadow: 0px 7px 20px 0px rgba(0,0,0,0.33);
    -moz-box-shadow: 0px 7px 20px 0px rgba(0,0,0,0.33);
    box-shadow: 0px 7px 20px 0px rgba(0,0,0,0.33); 
}

.btn {
    cursor: pointer;
    padding: 1em;
    margin: 1em;
    border-radius: 20px;
    background-color: #e67e22;
    color: #fff;
    /*----Box Shadow---*/
    -webkit-box-shadow: 0px 7px 20px 0px rgba(0,0,0,0.33);
    -moz-box-shadow: 0px 7px 20px 0px rgba(0,0,0,0.33);
    box-shadow: 0px 7px 20px 0px rgba(0,0,0,0.33); 
}

.rosters-container {
    margin: .5em 0;

}

.rosters-container > .card {
    max-width: 300px;
}

.rosters-container .card > .row.name {
    padding: .5em;
    font-size: 1.1em;
}

.rosters-container .card > table {
    width: 100%;
}

.rosters-container .card > table tr:nth-of-type(even) {
    background-color: #dcdcdc;
}

.font8 {
    font-size: .8em;
}

.bold {
    font-weight: bold;
}

#trades span {
    margin: .5em;
    padding: .5em;
    border-right: 1px solid #dcdcdc;
    font-weight: bold;
}


.trades, .rules {
    padding: 0 .5em 0 1em;
}

#trades {
    margin-bottom: 7em;
}

.rules ol, .trades ol {
    list-style: decimal;
    width: 100%;
    max-width: 1000px;
    padding: 1em;
    margin: 0 auto;
}

#trades li {
    margin: .2em 0;
}

.rules ol > li, .trades ol > li {
    padding: .3em;
    text-decoration: line-through;
}

.rules ol > li.active, .trades ol > li.active {
    text-decoration: none;
}

.shadow {
    /*----Box Shadow---*/
    -webkit-box-shadow: 0px 7px 20px 0px rgba(0,0,0,0.33);
    -moz-box-shadow: 0px 7px 20px 0px rgba(0,0,0,0.33);
    box-shadow: 0px 7px 20px 0px rgba(0,0,0,0.33); 
}

.champion {
    margin: 16px;
    padding-top: 10px;
    position: relative;
}

.absolute {
    position: absolute;
    top: 20px;
    width: 100%;
    z-index: 99;
}

.banner {
    position: relative;
    background: #e67e22;
    height: 100px;
    width: 100px;
    border-radius: 50px;
    z-index: 0;
}
.banner:before,
.banner:after {
    content: '';
    position: absolute;
    border-bottom: 70px solid #e67e22;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    top: 70px;
    left: -10px;
    transform: rotate(-140deg);
    z-index: 0;
}
.banner:after {
    left: auto;
    right: -10px;
    transform: rotate(140deg);
    z-index: 0;
}



/***************Media Query Break points**************************************/

/*****------  anything above 680px      ------*********/
@media screen and (min-width: 680px) and (min-height: 500px) {

    .rosters-container .card table {
        font-size: .8em;
    }
}


/*****------  anything above 800px      ------*********/
@media screen and (min-width: 800px) and (min-height: 500px) {
    .rosters-container .card {
        cursor: grab;
        cursor: -webkit-grab;
    }
    
    .rosters-container .card table {
        font-size: .8em;
    }
}


/*****------  anything above 1050px      ------*********/
@media screen and (min-width: 1050px) {
    .rosters-container .card table {
        font-size: 1em;
    }
}


/*****------  anything above 1200px      ------*********/
@media screen and (min-width: 1200px) {

}





.noPadding {
    padding: 0;
}


/*****------  Loading screen     ------*********/

.init {
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #673AB7;  /* fallback for old browsers */
    background: -webkit-linear-gradient(to bottom, #512DA8, #673AB7);  /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to bottom, #512DA8, #673AB7); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
}

.lds-ellipsis {
    display: inline-block;
    position: relative;
    width: 64px;
    height: 64px;
}
.lds-ellipsis div {
    position: absolute;
    top: 27px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #fff;
    animation-timing-function: cubic-bezier(0, 1, 1, 0);
}
.lds-ellipsis div:nth-child(1) {
    left: 6px;
    animation: lds-ellipsis1 0.6s infinite;
}
.lds-ellipsis div:nth-child(2) {
    left: 6px;
    animation: lds-ellipsis2 0.6s infinite;
}
.lds-ellipsis div:nth-child(3) {
    left: 26px;
    animation: lds-ellipsis2 0.6s infinite;
}
.lds-ellipsis div:nth-child(4) {
    left: 45px;
    animation: lds-ellipsis3 0.6s infinite;
}
@keyframes lds-ellipsis1 {
    0% {
        transform: scale(0);
    }
    100% {
        transform: scale(1);
    }
}
@keyframes lds-ellipsis3 {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(0);
    }
}
@keyframes lds-ellipsis2 {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(19px, 0);
    }
}

















