/*
 * Multi Puzzle Pack -- Styles
 */

body {
    background-color: black;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
}

#content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 10px auto;
}

h1 {
    padding: 8px 0;
    margin: 10px;
    color: #dd9;
    font-size: 24px;
}

h2 {
    font-size: 16px;
    color: royalblue;
}

h3 {
    font-size: 14px;
    color: grey;
}

.block {
    width: 100%;
    max-width: 800px;
    min-width: 800px;
}

.subblock {
    width: 100%;
    max-width: 600px;
    min-width: 600px;
}

a {
    color: #6ab;
    text-decoration: none;
}
a:hover {
    color: #9de;
}

#ts {
}

#since {
    float: right;
    margin: 0 20px 10px 20px;
    color: #355;
    font-size: 12px;
}
#since .ts {
    color: #535;
    padding-left: 32px;
}

#wrapper {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin: 0;
    padding: 0;
    background-color: #112;
}

#sidebar {
    width: 200px;
    padding: 16px;
}
#sidebar img {
    width: 100%;
    padding: 10px 2px;
}

#puzzles {
}

section {
    margin: 20px;
    background-color: #112;
}

.sect-title {
    background-color: #134;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.treebind {
    display: flex;
    align-items: center;
}

.tree {
    width: 20px;
    padding: 6px;
    color: #367;
}

.done-stats {
    padding: 8px;
    color: #5a9;
}

section ul {
    display: flex;
    margin: 0;
    padding: 4px;
}

section li {
    display: block;
    margin: 2px;
    padding: 0;
    color: #88a;
}

li.author {
    font-size: 12px;
    color: #555555;
}

span.author {
    color: #5485b1;
}

li.lmdlink {
    font-size: 12px;
    color: #555555;
    text-align: center;
}

.solv {
    color: white;
    padding: 4px;
}

.puzz-list.open,
.puzz-chart.open {
  max-height: 1725px; /* enough for 50 items */
  opacity: 1;
}

.puzz-list,
.puzz-chart {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.7s ease-out, opacity 0.6s ease-out;
}

.puzz-chart {
    font-size: 0;
}
.puzz-chart svg {
    width: 100%;
    height: 50px;
    background-color: #111;
}


/* set puzzle list column widths here... */

/* DONE button */
section .puzz-list li:nth-child(1) {
    width: 26px;
    height: 20px;
    text-align: center;
    padding: 0;
    font-weight: bold;
    color: #000;
    border: 1px solid #556;
    border-radius: 6px;
    box-shadow: 2px 2px 6px rgba(20,50,40,0.2);
}
section .puzz-list li:nth-child(1).done {
    color: #88a;
    border: 1px solid #556;
    border-radius: 6px;
    box-shadow: 2px 2px 6px rgba(40,120,200,0.2);
    background-color: #335;
}

/* Puzzle Number (item.rom) */
section .puzz-list li:nth-child(2) {
    width: 40px;
    text-align: right;
    padding: 0 12px 0 0;
    color: #88a;
}
/* Puzzle title (item.title) */
section .puzz-list li:nth-child(3) {
    width: 160px;
}
/* Puzzle author (item.author) */
section .puzz-list li:nth-child(4) {
    width: 130px;
    text-align: right;
}
/* Solve Count (item.nsolves) */
section .puzz-list li:nth-child(5) {
    width: 120px;
    text-align: right;
}
/* YouTube link (item.yt) */
section .puzz-list li:nth-child(6) {
    width: 40px;
    text-align: right;
}
section .puzz-list li:nth-child(6) img {
    width: 20px;
}

.yt-grey {
    opacity: 0.2;
}

.puzz-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #759;
    background-color: #223;
}

.totals {
    font-size: 12px;
    padding: 8px;
}

.chart-toggle {
    border: 1px solid #556;
    border-radius: 6px;
    box-shadow: 2px 2px 6px rgba(20,50,40,0.2);
    margin: 4px;
    padding: 2px;
    cursor: pointer;
}
.chart-toggle img {
    width: 12px;
    padding: 0 2px;
}
