body {
    font-family: sans-serif;
    font-variant-ligatures: none;
    line-height: 2.6rem;
    font-size: 1.75rem;
    overflow-wrap: break-word;
    position: relative;
}

@media print {
    nav, .shortcuts, #shortcuts {
        display: none;
    }
}

@media screen {
    html {
        background-color: #ededed;
    }

    body {
        margin: 0 auto 0px;
        width: 1000px;
        height: 1064px;
        max-width: 1064px;
    }
}

p {
    margin-bottom: 2rem;
}

li {
    list-style-position: outside;
    margin-left: 1.5em;
}

ul > li {
    list-style-type: disc;
}

textarea {
    width: 100%;
    min-height: 24ch;
    font-family: monospace, monospace;
}

.center-image {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 80%;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

h1 {
    margin-top: 1.5rem;
    text-align: center;
    font-weight: 600;
}

h2 {
    margin: 4rem 0;
}


main {
    padding: 20px 20px;
    position: relative;
    background-color: rgba(255, 255, 255, 0.8);
    margin-top: 10px;
}

hr {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

table.very-small {
    font-size: 80%;
}

table.very-small td, table.very-small th {
    padding: 0.4em;
    line-height: 1.4;
}

code {
    font-size: 80%;
    max-width: 1000px;
    overflow: scroll;
}

tr:last-child td {
    border-bottom: none;
}

a, .btn {
    color: #2af;
}

.btn {
    display: inline-block;
    padding: 0 20px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 0;
    border: none;
    font-family: inherit;
    text-transform: none;
    letter-spacing: 0;

    height: 30px;
    line-height: 30px;
    font-size: 1.5rem;
}

form .btn {
    height: 38px;
    line-height: 38px;
    font-size: 1.75rem;
}

input[type=text], input[type=password], input[type=email] {
    width: 100%;
    border-radius: 0;
}

figcaption {
    text-align: center;
}

@media (min-width: 961px) {
    label {
        text-align: right;
        height: 2em;
        display: flex;
        justify-content: flex-end;
        align-items: center;
    }
    /* normally the label is right-aligned because it's in a column inside a
     * row and left of the corresponding input, but sometimes it's just by
     * itself in a row above the input (hints page) */
    .row > label {
        text-align: left;
        justify-content: flex-start;
    }
}

@media print {
    main {
        border-top: 1px solid #111;
    }

    .btn {
        border: 1px solid currentColor;
    }
}

@media screen {
    main {
        display: table;
        min-width: 100%;
        box-sizing: border-box;
    }

    h1, h2, h3, h4 {
        color: black;
    }

    a {
        transition: color 0.3s;
    }

    a:hover,
    a:focus {
        color: #2af;
    }

    .btn {
        transition: background-color 0.3s;
        color: white;
        background-color: #e49656;
        border-radius: 10px;
    }

    .btn:hover,
    .btn:focus {
        color: white;
        background-color: orange;
    }

    nav {
        overflow: hidden;
    }

    .top-tabs {
        display: flex;
        white-space: nowrap;
        justify-content: space-evenly;
        font-size: 2rem;
        margin: 5px 0 1.5rem;
        line-height: 1;
        background-color: #9e9e9e;
    }

    .top-tabs a {
        display: inline-flex;
        position: relative;
        padding: 6px 0 10px;
        text-decoration: none;
        color: white;
        align-items: center;
    }

    .top-tabs a:hover {
        color: #fbf066;
    }

    .top-tabs a:focus {
        color: white;
    }

    .top-tabs .selected-tab {
        font-weight: 700;
        color: #fbf066;
    }

    .top-left-actions {
        float: left;
    }

    .top-right-actions {
        float: right;
        min-height: 36px;
        margin-bottom: 1.5rem;
    }

    .top-left-actions, .top-right-actions {
        line-height: 36px;
        word-spacing: 8px;
    }

    .top-left-actions > *, .top-right-actions > * {
        word-spacing: initial;
    }

    .current-stat {
        white-space: nowrap;
        display: inline-block;
        text-decoration: none;
        vertical-align: bottom;
    }

    .current-stat-label {
        vertical-align: middle;
    }

    .shortcuts {
        border: 4px double #111;
        background-color: white;
        position: absolute;
        padding: 1rem;
        right: 60px;
        min-width: auto;
        z-index: 800;
        display: none;
    }

    .shortcuts form {
        margin: 0;
    }

    #shortcuts {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    [for=shortcuts] {
        display: inline;
        cursor: pointer;
    }

    [for=shortcuts]:after {
        content: "\25BC";
    }

    :checked ~ nav [for=shortcuts]:after {
        content: "\25B2";
    }

    :checked ~ .shortcuts {
        display: block;
    }
}

.hunt-icon {
    vertical-align: middle;
}

.gph-list-table {
    min-width: 100%;
    max-width: 100%;
    table-layout: fixed;
    background-color: rgba(255, 255, 255, 0.8);
}

.gph-list-table td, .gph-list-table th {
    padding: 4px 8px;
    word-break: break-word;
    overflow-wrap: anywhere;
}

@media screen {
    .gph-list-table th {
        border: none;
        position: sticky;
        top: 0;
        background-color: white;
        box-shadow: inset 0 -1px 0 0 #111;
    }
}

@media screen and (max-width: 960px) {
    .gph-list-table th {
        top: 4rem;
    }
}

.no-break {
    -webkit-column-break-inside: avoid; /* Chrome, Safari */
    page-break-inside: avoid;           /* Theoretically FF 20+ */
    break-inside: avoid;                /* IE 11 */
    display: table;                     /* Actually FF 20+ */
    width: 100%;
}

.submitted-text {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: anywhere;
}

@media print {
    .story-chunk {
        border-bottom: 1px solid #111;
    }
}

@media screen {
    .story-chunk {
        max-width: 600px;
        margin: 0 auto 30px;
    }

    .story-chunk a {
        text-decoration: none;
    }
}

.flavor {
    margin-left: 22.5%;
    margin-right: 22.5%;
    text-align: center;
    font-style: italic;
}

.form-section {
    margin-top: 20px;
    margin-bottom: 40px;
}

.team-members-formset .delete-row {
    float: right;
}

.errorlist {
    padding: 10px;
    border: 3px solid currentColor;
    list-style-type: none;
    color: orangered;
    background-color: #eee;
}

.errorlist li {
    margin-bottom: 0;
    list-style-type: none;
    text-indent: 0;
    padding-left: 0;
}

.team-info-panel, .call-in-answer-panel, .solved-panel, .puzzle-stats-panel {
    margin-bottom: 24px;
}

.call-in-answer-panel:last-child {
    margin-bottom: 0;
}

.call-in-answer-panel .row {
    margin: 1em 0;
}

.call-in-answer-panel .errorlist {
    margin-bottom: 0;
}

.solved-panel {
    color: green;
}

.unsolved-panel {
    color: orangered;
}

.solved-title-marker {
    font-size: 50%;
    color: initial;
}

.solved-title-answer {
    color: green;
}

.stat-entry {
    font-size: 2rem;
}

.stat-value {
    font-weight: bold;
}

.current-team {
    font-weight: bold;
}

.puzzle-erratum {
    color: orangered;
    margin-bottom: 10px;
}

.hint-table {
    width: 100%;
}

.hint-table th, .hint-table td {
    border: none;
    padding: 0 15px;
}

.hint-table tr:first-child th, .hint-table tr:first-child td, .hint-table td[colspan] {
    padding-top: 12px;
}

.hint-table tr:last-child th, .hint-table tr:last-child td {
    padding-bottom: 12px;
}

.hint-table button {
    margin: 0;
}

.hint-table hr {
    border-color: currentColor;
    opacity: 0.25;
}

.hint-table .submitted-text, .hint-table textarea {
    font-size: 1.5rem;
    line-height: 2rem;
}

.hint-controls {
    margin-bottom: 2rem;
}

.hint-controls > :last-child {
    float: right;
}

.hint-controls form, .hint-controls input {
    margin: 0;
}

.puzzles-list {
    display: flex;
    flex-wrap: wrap;
}

.puzzles-list a {
    text-decoration: none;
}

.puzzles-entry, .puzzles-spacer {
    flex-grow: 1;
    margin: 0 20px;
    width: 280px;
    box-sizing: border-box;
}

.puzzles-entry {
    margin: 20px;
    border: 2px solid #111;
    position: relative;
    padding: 20px;
    text-align: center;

}

@keyframes zoom-in-zoom-out {
    0%, 100% {
      transform: scale(1, 1) translate(-50%,-50%);
    }
    50% {
      transform: scale(1.2, 1.2) translate(-50%,-50%);
    }
}

@keyframes move-up-and-down {
    0%, 100% {
      transform: translateY(0) translateX(-50%);
    }
    50% {
      transform: translateY(-20%) translateX(-50%);
    }
}

.puzzles-new, .puzzles-expired, .puzzles-started, .puzzles-solved {
    z-index: 3;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.puzzles-new, .puzzles-started {
    width: 50px;
    height: 50px;
    background-image: url("../images/unlocked.5075cc79c9d9.svg");
}
.puzzles-new {
    animation: zoom-in-zoom-out 1.5s ease infinite;
}
.puzzles-meta-meta-started, .puzzles-meta-meta-new, .puzzles-crack_the_safe-started, .puzzles-crack_the_safe-new {
    width: 50px;
    height: 70px;
    background-image: url("../images/meta.b699e0c48dc7.svg");
    animation: move-up-and-down 1s ease infinite;
}
.puzzles-crack_the_safe-started, .puzzles-crack_the_safe-new {
    width: 50px;
    height: 60px;
    background-image: url("../images/arrow.a5957e854d07.svg");
    animation: move-up-and-down 1s ease infinite;
}
.puzzles-solved {
    width: 115px;
    height: 70px;
    background-image: url("../images/solved.914d9cbd925e.svg");
}

.puzzles-inner {
    font-size: 1.4rem;
}

.puzzles-inner b {
    font-size: 1.6rem;
}

.puzzles-list {
    background-image: url("../images/background.1792affb4d69.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #ededed;
    width: 100%;
    height: 940px;
    position: relative;
}

.puzzles-item {
    position: absolute;
    background-repeat: no-repeat;
}
.puzzles-item:hover + .puzzles-link {
    transform: scale(1.2);
}
.puzzles-link {
    background-repeat: no-repeat;
    transition: transform .2s;
    height: 100%;
    width: 100%;
}
.puzzles-link:hover{
    transform: scale(1.2);
}

.puzzles-item-a_turn_of_phrase {
    left: 215px;
    top: 140px;
    width: 155px;
    height: 87px;
}
.puzzles-item-a_turn_of_phrase-img {
    background-size: contain;
    background-image: url("../images/a_turn_of_phrase.5a781fc88e36.png");
}

.puzzles-item-add_dusted_fillings {
    left: 607px;
    top: 524px;
    width: 127px;
    height: 130px;
}
.puzzles-item-add_dusted_fillings-img {
    background-size: contain;
    background-image: url("../images/add_dusted_fillings.a1aaa97e8ab9.png");
}

.puzzles-item-black_and_white_and_something_all_over {
    left: 586px;
    top: 142px;
    width: 149px;
    height: 127px;
}
.puzzles-item-black_and_white_and_something_all_over-img {
    background-size: contain;
    background-image: url("../images/black_and_white_and_something_all_over.27a896fc17bc.png");
}

.puzzles-item-drop_cards {
    left: 215px;
    top: 543px;
    width: 135px;
    height: 117px;
}
.puzzles-item-drop_cards-img {
    background-size: contain;
    background-image: url("../images/drop_cards.64d38130cbbc.png");
}

.puzzles-item-dropped_the_ball {
    left: 391px;
    top: 502px;
    width: 173px;
    height: 171px;
}
.puzzles-item-dropped_the_ball-img {
    background-size: contain;
    background-image: url("../images/dropped_the_ball.cfa14d372b48.png");
}

.puzzles-item-meals_on_wheels {
    left: 563px;
    top: 334px;
    width: 170px;
    height: 145px;
}
.puzzles-item-meals_on_wheels-img {
    background-size: contain;
    background-image: url("../images/meals_on_wheels.4d3a0073687d.png");
}

.puzzles-item-whats_the_point {
    left: 215px;
    top: 268px;
    width: 154px;
    height: 105px;
}
.puzzles-item-whats_the_point-img {
    background-size: contain;
    background-image: url("../images/whats_the_point.efab57ca742f.png");
}

.puzzles-item-worth_its_weight_in_gold {
    left: 215px;
    top: 394px;
    width: 132px;
    height: 107px;
}
.puzzles-item-worth_its_weight_in_gold-img {
    background-size: contain;
    background-image: url("../images/worth_its_weight_in_gold.962864c33566.png");
}

.puzzles-item-meta-meta {
    left: 413px;
    top: 131px;
    width: 127px;
    height: 158px;
}
.puzzles-item-meta-meta-img {
    background-size: contain;
    background-image: url("../images/six_shifty_characters.e9b0efc69053.png");
}

.puzzles-item-crack_the_safe {
    left: 415px;
    top: 327px;
    width: 120px;
    height: 147px;
}
.puzzles-item-crack_the_safe-img {
    background-size: contain;
    background-image: url("../images/crack_the_safe.1b726fba01a2.png");
}

.puzzle-content {
    text-align: center; 

}

.note {
    border: 1px solid indianred;
    padding: 0.5em;
    margin-bottom: 2em;
}

.note strong {
    color:indianred;
}

@media screen {
    .spoiler.solved-title-answer {
        display: inline-block;
        min-width: 200px;
        text-align: left;
    }

    .spoiler:not(:hover) {
        background-color: currentColor;
    }
}

.copy-only {
    display: none;
}

.clipboard-button {
    border-radius: 1em;
    bottom: 1.5em;
    cursor: pointer;
    font-size: 1em;
    height: 2em;
    padding: 0 0.8em;
    position: fixed !important;
    right: 1.5em;
}

.clipboard-container {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 10px;
    border-radius: 10px;
}

@media print {
    .clipboard-button {
        display: none;
    }
}

@media screen {
    time[title] {
        text-decoration: underline dotted;
        text-underline-position: under;
        cursor: help;
    }
}

.chart {
    width: 100%;
    height: 82px;
    transform: scaleY(-1);
    margin-bottom: 24px;
    position: relative;
    z-index: -1;
}

.chart-area {
    fill: #44454d;
    opacity: 0.5;
}

.chart-line {
    stroke: indianred;
    stroke-width: 0.25%;
    fill: none;
}

@media print {
    .chart {
        display: none;
    }
}

footer {
    font-size: 12px;
    text-align: center;
    opacity: 0.5;
}

@media print {
    footer {
        display: none;
    }
}

.terms-content {
    max-width: 800px;
    margin: auto;
    background: white;
    padding: 10px 20px;
}
