:root { --vv-top: 0px; }

#pill-top,
#pill-bottom {
    float:left;
    list-style:none;
    margin:30px 0 20px 0;
    }
    #pill-bottom {margin:0 0 40px 0;}
    #pill-top li .right,
    #pill-bottom li .right {
        float:right;
        margin-right:10px;
        }

#pill-left,
#pill-right {
    height:100%;
    list-style:none;
    position:absolute;
        top:50px;
    }
#pill-right {right:0;}
    #pill-top li,
    #pill-bottom li,
    #pill-left li,
    #pill-right li {
        border-radius:15px;
        display:block;
        float:left;
        height:96%;
        opacity:0.2;
        white-space:nowrap;
        width:30px;
        }
    #pill-top li,
    #pill-bottom li {
        height:30px;
        margin:0 0 20px 30px;
        width:730px;
        }
    #pill-right li {position:absolute;}

        #pill-left li:hover,
        #pill-right li:hover,
        #pill-top li:hover,
        #pill-bottom li:hover {
            opacity:0.8;
            }
        /* 80n - 20 */
        #pill-left li:nth-child(1) {right:60px;} 
        #pill-left li:nth-child(2) {right:140px;}
        #pill-left li:nth-child(3) {right:220px;}
        #pill-left li:nth-child(4) {right:300px;}
        #pill-left li:nth-child(5) {right:380px;}
        #pill-left li:nth-child(6) {right:460px;}
        #pill-left li:nth-child(7) {right:540px;}
        #pill-left li:nth-child(8) {right:620px;}
        #pill-left li:nth-child(9) {right:700px;}
        #pill-left li:nth-child(10) {right:780px;}
        #pill-left li:nth-child(11) {right:860px;}
        #pill-left li:nth-child(12) {right:940px;}
        #pill-left li:nth-child(13) {right:1020px;}
        #pill-left li:nth-child(14) {right:1100px;}
        #pill-left li:nth-child(15) {right:1180px;}
        #pill-left li:nth-child(16) {right:1260px;}
        #pill-left li:nth-child(17) {right:1340px;}
        #pill-left li:nth-child(18) {right:1420px;}
        #pill-left li:nth-child(19) {right:1500px;}
        #pill-left li:nth-child(20) {right:1580px;}

        /* 50n - 20 */
        #pill-right li:nth-child(1) {left:30px;}
        #pill-right li:nth-child(2) {left:80px;}
        #pill-right li:nth-child(3) {left:130px;}
        #pill-right li:nth-child(4) {left:180px;}
        #pill-right li:nth-child(5) {left:230px;}
        #pill-right li:nth-child(6) {left:280px;}
        #pill-right li:nth-child(7) {left:330px;}
        #pill-right li:nth-child(8) {left:380px;}
        #pill-right li:nth-child(9) {left:430px;}
        #pill-right li:nth-child(10) {left:480px;}
        #pill-right li:nth-child(11) {left:530px;}
        #pill-right li:nth-child(12) {left:580px;}
        #pill-right li:nth-child(13) {left:630px;}
        #pill-right li:nth-child(14) {left:680px;}
        #pill-right li:nth-child(15) {left:730px;}
        #pill-right li:nth-child(16) {left:780px;}
        #pill-right li:nth-child(17) {left:830px;}
        #pill-right li:nth-child(18) {left:880px;}
        #pill-right li:nth-child(19) {left:930px;}
        #pill-right li:nth-child(20) {left:980px;}
    #pill-left li,
    #pill-right li {
        overflow: clip;
    }
    #pill-left li span,
    #pill-right li span {
        display:block;
        margin-left:6px;
        transform:rotate(90deg);
        transform-origin:left bottom;
        -moz-transform:rotate(90deg);
        -moz-transform-origin:left bottom;
        -webkit-transform:rotate(90deg);
        -webkit-transform-origin:left bottom;
        position: sticky;
        top: calc(var(--vv-top) + env(safe-area-inset-top)); /* Push the sticky header below iOS's address bar */
        }
        #pill-left li:hover span,
        #pill-right li:hover span,
        #pill-top li:hover span,
        #pill-bottom li:hover span {
            text-shadow: 0 0 5px black;
            }
    #pill-left li a,
    #pill-right li a,
    #pill-top li a,
    #pill-bottom li a {
        color:#fff;
        display:block;
        height:100%;
        text-decoration:none;
        width:100%;
        }
    #pill-top li a,
    #pill-bottom li a {
        padding:7px 0 0 15px;
        width:715px;
        }




#team-year {
    color:#999;
    display:block;
    float:right;
    font-size:18px;
    margin:20px 25px 0 0;
    text-align: left;
    }
    #team-year a {
        color: inherit;
        float: none;
        text-decoration: none;
    }
    #team-year a:hover {
        border-bottom: 1px solid #999;
    }

#team-head {
    color:#43d4a7;
    float:left;
    font-family:"logofont", "Impact", "Helvetica", sans-serif;
    font-size:80px;
    font-weight:normal;
    margin:0 0 20px 15px;
    min-width:230px;
    padding:0 0 20px 0;
    }
    #team-head p {
        color:#222;
        font-family:"Helvetica";
        font-size:18px;
        position:absolute;
            top:85px;        
        }
        #team-head p.finish span {
            display: inline-block;
            float:none;
            padding-left:8px;
            padding-right:8px;
            text-shadow:0 0 0 #fff;
            }
    #team-head p.finish {
        left:5px;
        }
    #team-head p.team-owner {
        right:5px;
        }
    #team-head a {
        border-bottom: 1px solid #fff;
        color: inherit;
        text-decoration: none;
        }
    #team-head a:hover {
        border-bottom-color: #222;
        }

#owner-head {
    color:#ffcc00;
    font-family:"logofont", "Impact", "Helvetica", sans-serif;
    font-size:80px;
    font-weight:normal;
    margin-left:15px;
    }

#team-info {
    clear:left;
    margin:0 0 40px 0;
    padding:0 0 0 20px;
    width:530px;
    }

#team-info table,
#team-info tr,
#team-info td {
    clear: both;
    float: none;
}
#team-info table {
    border-collapse: collapse;
    margin-top: 30px;
    width: 500px;
}

#team-info tr.transactions-heading td, 
#team-info tr.roster-heading td {
    color: #222;
    padding: 0 0 1rem 0;
}

#team-info tr.week-heading td {
    border-bottom: 1px solid #222;
    font-weight: bold;
    padding-left: 0.25rem;
}
    #team-info tr.week-heading-spacer td {
        height: 0;
        padding-bottom: 0.5rem;
        }

#team-info tr.home-team {
    background: #eee;
    border-top: 1rem solid #eee;
}
#team-info tr.opposing-team {
    background: #eee;
    border-bottom: 1rem solid #eee;
}

#team-info tr.spacer td {
    height: 0;
    padding-bottom: 0.5rem;
}

#team-info td {
    height: 20px;
    padding: 4px 22px 0 20px;
    position: relative;
    width: 420px;
}

#team-info td.matchup-outcome {
    border-left: 1px solid #ccc;
    color:#ccc;
    font-size: 1.6em;
    padding-left: 20px;
    text-align: center;
    width: 20px;
}
#team-info td span {
    color: #fff;
    float:right;
    height: 100%;
    margin-top: -4px;
    padding: 4px 4px 0 0;
    text-align: right;
    z-index: 200;
}
#team-info td span.bargraph {
    position: absolute;
      top: 0;
      right: 22px;
    margin: 0;
    padding: 0;
    z-index: 10;
}
#team-info td a {
    border-bottom: 1px solid rgba(99,99,99,0); /* Opacity 0 */
    color: inherit;
    text-decoration: none;
    z-index: 200;
}
#team-info td a:hover {
    border-bottom-color: #222;
}
#team-info td.loser {
    color:#aaa;
}
#team-info td.loser a:hover {
    border-bottom-color: #aaa;
}

#team-info details summary {
    width: 100%;
    padding-left: 0.5rem;
    float: none;
}

#team-info table.transaction-summary,
#team-info table.transaction-summary p,
#team-info table.roster-summary {
    margin-top: 0;
    font-size: 0.6rem;
}
#team-info table.transaction-summary td,
#team-info table.roster-summary td {
    padding: 0;
}
#team-info table.transaction-summary p {
    clear: both;
    float: right;
    padding: 0.2rem;
}

#team-info table.transaction-summary td a,
#team-info table.roster-summary td a {
    float: none;
}

.optimal { background-color: rgba(255, 215, 0, 0.6) } /* Yellow */

.real-winner { background-color: rgba(50, 205, 50, 0.6) } /* Green */
.optimal-winner { background-color: rgba(50, 205, 50, 0.2) }

.real-loser { background-color: rgba(220, 20, 60, 0.6) } /* Red */
.optimal-loser { background-color: rgba(220, 20, 60, 0.2) }

#team-info table.transaction-summary tr.transaction-divider,
#transactions table tr.transaction-divider {
    border-bottom: 1px solid #ccc;
}
    #team-info table.transaction-summary tr.transaction-divider td,
    #transactions table tr.transaction-divider td {
        height: 0;
        padding-top: 0.25rem;
    }
    #team-info table.transaction-summary tr.transaction-divider + tr.player td,
    #transactions table tr.transaction-divider + tr.player td {
        padding-top: 0.35rem;
    }
    #team-info table tr.player td:nth-child(2) { text-align: right; }
    #team-info table tr.player { width: 100%; }

#team-info table.roster-summary {
    margin-top: 1rem;
}
#team-info table.roster-summary tr {
    border-bottom: 1px solid #ccc;
}
    #team-info table.roster-summary tr.matchup-roster-heading {
        border-bottom: 1px solid #000;
    }
    #team-info table.roster-summary tr.matchup-optimals {
        border-bottom: 0;
        border-top: 3px double #ccc;
    }
        #team-info table.roster-summary tr.matchup-optimals td {
            color: #666;
        }
    #team-info table.roster-summary tr.matchup-totals {
        border-top: 3px double #000;
    }
#team-info table.roster-summary tr.matchup-roster-heading,
#team-info table.roster-summary tr.matchup-totals,
#team-info table.roster-summary tr.matchup-optimals {
    font-weight: bold;
}
#team-info table.roster-summary td:nth-child(1), 
#team-info table.roster-summary td:nth-child(4) {
    padding-left: 0.5rem;
}
#team-info table.roster-summary td:nth-child(2), 
#team-info table.roster-summary td:nth-child(5) {
    padding-right: 0.5rem;
    text-align: right;
    width: 50px;
}
#team-info table.roster-summary td:nth-child(3) {
    text-align: center;
    width: 60px;
}

#team-info #button-bar, 
#transactions #tr-button-bar {
    background: #fff;
    padding: 1rem;
    position: sticky;
        top: calc(var(--vv-top) + env(safe-area-inset-top)); /* Push the sticky header below iOS's address bar */
    width: calc(100% - 2rem);
    z-index: 1000;
}
#team-info button,
#transactions button {
    height: 30px;
    padding: 0.25rem 0.5rem;
    opacity: 0.6;
}
#team-info button + button {
    margin-left: 1rem;
}

#team-graphics {
    float:right;
    width:210px;
    }
    #team-graphics * {
        float:right;
        }
    
#transactions {
    clear: both;
    margin-bottom: 40px;
    padding: 0 20px 0 20px;
    width: calc(100% - 40px);
}
#transactions h3 { padding-bottom: 1rem; }
#transactions table {
    border-collapse: collapse;
    width: 100%;
}

#transactions table,
#transactions table * {
    float: none;
}

#transactions tr.transaction-date-heading td {
    font-weight: bold;
    padding-top: 2rem;
}
#transactions tr.transaction-date-heading td span {
    font-weight: normal;
    padding-left: 1rem;
}
#transactions tr.transaction-date-heading td span a {
    border-bottom: 1px solid #aaa;
    color: #aaa;
    text-decoration: none;
}

#transactions .transaction-evaluation tr {
    border-bottom: 1px solid #ccc;
}
#transactions .transaction-evaluation thead tr {
    border-bottom-color: #000;
}
    #transactions .transaction-evaluation thead tr th:first-child::before {
        content: "▶";
    }
    #transactions .transaction-evaluation tbody {
        display: none;
    }
    #transactions .transaction-evaluation.open thead tr th:first-child::before {
        content: "▼";
    }
    #transactions .transaction-evaluation.open tbody {
        display: table-row-group;
    }
#transactions .transaction-evaluation tfoot tr {
    border-top: 3px double #000;
    border-bottom: 0;
}

#transactions .transaction-evaluation td,
#transactions .transaction-evaluation th {
    font-size: 0.8rem;
    padding: 0 0.5rem;
    height: 2rem;
    text-align: left;
}

#transactions .transaction-evaluation thead th {
    padding-top: 0.5rem;
}


#transactions .transaction-evaluation td:nth-child(1),
#transactions .transaction-evaluation th:nth-child(1) {
    width: 70px;
}
#transactions .transaction-evaluation td:nth-child(2),
#transactions .transaction-evaluation th:nth-child(2) {
    text-align: right;
    width: 80px;
}
#transactions .transaction-evaluation td:nth-child(3),
#transactions .transaction-evaluation th:nth-child(3) {
    width: 110px;
}

#transactions .transaction-evaluation th:nth-child(4) { font-weight: normal; }
#transactions .transaction-evaluation td:nth-child(4) { color: #aaa; }
#transactions .transaction-evaluation .starter {
    color: #000;
    font-weight: bold;
}
#transactions .transaction-evaluation .added { color: #000; }
#transactions .transaction-evaluation .dropped { color: #aaa; }


#main .eval-tag {
    float: right;
}
#main .eval-tag div {
    padding: 0.5rem;
}
#main .eval-tag div:nth-child(1) { text-align: right; }
#main .eval-tag div:nth-child(2) { width: 45px; }
#main .eval-tag + p { color: #aaa; }
#main .eval-tag + p a { border-bottom: 1px solid #aaa; }