﻿/*!

    This XWord Info CSS file (c) 2010-2025 by Jim Horne.
    All rights reserved.

*/

/*
    CROSSWORD.CSS

    Styles for pages that show full grids: Crossword, Variety, PS, and possibly AnalyzeView.

    NOTE:This file must be included *after* xwi.css and after notepad.css because it overrides some of their styles.
    <%: System.Web.Optimization.Styles.Render("~/bundle/CrosswordCss") %> puts notepad.css and this file in the right order.
*/


h1 {
    font-size: 22pt;
    margin-top: 0;
}

h2 {
    margin-top: 0;
}

hr {
    clear: both;
    margin-top: 25px;
    margin-bottom: 25px;
}

/*
    toppanel contains title and author info, baseball cards, and basic stats
*/

.toppanel {
    overflow: hidden;
    margin-top: 25px;
}

.keyclue {
    margin-top: 12px;
    font-size: 14px;
    margin-bottom: 14px;
    font-style: italic;
    color: darkblue;
}

.kcLit {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    padding: 2px 8px 2px 0;
}

.KCHighlight {
    color: darkorange;
    font-weight: bold;
    margin: 20px 0 16px 0;
    font-size: 17px;
    font-style: normal;
}

    .KCHighlight img {
        max-width: 200px;
        max-height: 80px;
    }

.toppow {
    background-image: url('/images/pow.jpg');
    background-repeat: no-repeat;
    background-position: right 0 top -5px;
}

.synd {
    font-style: italic;
    color:darkmagenta;
    font-weight:bold;
    margin-bottom: 20px;
    margin-top:4px;
}

.aegrid {
    display: inline-grid;
    grid-template-columns: auto auto;
    column-gap: 10px;
    row-gap: 1px;
    margin-top: 12px;
    font-size: 14px;
    font-weight: bold;
}

    .aegrid a {
        font-weight: normal;
    }

.statsgrid {
    display: grid;
    justify-content: start;
    align-items: start;
    grid-template-columns: auto 1fr;
    grid-gap: 18px;
    margin-top: 30px;
}

.fillBoth {
    grid-column-end: span 2;
}

.two {
    order: 2;
}

.three {
    order: 3;
}
.four {
    order: 4;   /* to push unscored words to the right of the stats when there are exactly 4 panels */
}

.fillBoth .entity {
    display: inline-block;
}

.xwstats {
    font-size: 12px;
    color: #333;
    margin-top: 8px;
    line-height: 1.5;
}

.xwsize {
    font-size: 12px;
    color: #333;
    margin-top: 8px;
    line-height: 16px;
}

.bonus {
    margin-left: 20px;
}

.bonus img {
    max-width: 95%;
}

#xwauthor { /* used in AnalyzeView */
    font-size: 14px;
    margin-top: 2px;
    margin-bottom: 16px;
    font-weight: bold;
}

.misslist {
    white-space: nowrap;
    letter-spacing: 3px;
}

.scorefix { /* scorefix and ansfix decorate some admin-only links at top of page */
    color: crimson;
    background-color: #ffffc0;
    padding: 0 4px 1px 4px;
}

.ansfix {
    background-color: #ffffc0;
    padding: 0 4px 1px 4px;
    border: 1px solid gray;
    color: crimson;
}

.unscoredlist a {
    font-size: 12px;
    padding: 0 3px;
}

.varnote {
    font-size: 11pt;
    margin-top: 12px;
    border-radius: 8px;
    border: 1px solid blue;
    padding: 0;
    background-color: #f0ffff;
    box-shadow: var(--xBoxShadow);
    clear: both;
}

    .varnote p {
        margin: 12px;
    }

/*
    midpanel is used to show notes, grid, and grid-side ads
*/

.midpanel {
    /*    display: grid;
    grid-template-columns: max-content max-content;
    justify-content: space-between;*/
    margin-top: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}


.sidead {
    min-width: 100px;
    min-height: 20px;
    display: flex;
    flex-direction: column;
    gap: 13px;
    justify-content: space-evenly;
    height: 100%;
}

#Inc2 {
    margin-top: 15px;
}


/* allow old broswers to at least read the notes */

.no-flexbox .midpanel, .no-cssgrid .midpanel, .no-flexbox .notepad, .no-cssgrid .notepad {
    display: block;
}

.no-flexbox .stripped, .no-cssgrid .stripped, .no-flexbox .sidead, .no-cssgrid .sidead {
    display: none;
}

#shownotes {
    display: none;
    font-size: 14px;
    margin-top: 10px;
}

#shownotes a {
    color: crimson;
}

/* Basic notepad styles are in notepade.css. These are overrides for ShowPuz, etc. */

.notehead {
    color: #333;
    line-height: initial;
    padding: 6px 8px;
    border: 1px solid gray;
    border-radius: 7px;
    margin-top: 30px;
    margin-bottom: 6px;
    font-size: 11.5pt;
    font-weight: bold;
    box-shadow: var(--xBoxShadow);
}

.xnote {
    font-family: acumin-pro, sans-serif;
    font-size: 12pt;
}

.xnote a[href*='?author'] {
    white-space: nowrap;
}

.notetext {
    padding: 0 8px;         /* covers full and stripped */
    line-height: 1.5;
}

    .notetext p {
        margin-top: 10px;
    }

    .notetext a {
        color: #1a0dab;
        font-weight: bold;
    }

    .notetext ul, .notetext ol {
        padding-left: 10px;
        margin-left: 10px;
    }

.notepad a {
    font-weight: bold;
}

.stripped {
    font-size: 14px;
}

.notes {
    margin-bottom: 30px;
}

    .notes a {
        font-weight: bold;
    }

a.showmore {
    white-space: nowrap;
    font-style: italic;
    color: crimson;
}

.closebox {
    font-size: 8px;
    float: right;
    background-image: url(/images/x7.gif);
    background-repeat: no-repeat;
    background-position-x: 4px;
    background-position-y: 4px;
    width: 11px;
    height: 11px;
    padding: 2px;
    border-top: 1px solid lightgray;
    border-right: 1px solid gray;
    border-bottom: 1px solid gray;
    border-left: 1px solid lightgray;
    background-color: #eaeaea;
}

.broken {
/*    background-image: radial-gradient(circle, orange, red, black);
    border-radius: 8px;
    max-width: 130px !important;*/
    display: none;
}

/*
    the main grid
*/

#PuzBox {
    overflow-x: auto;
}

#GridOnly {
    margin-right: 4px; /* room for drop shadow */
}

.gridOnly {
    position: relative;
    display: inline-block;
}

.overlay {
    position: absolute;
    top: -2px !important; /* Account for top border */
    left: -2px !important; /* Account for left border */
    width: calc(100% + 4px); /* Subtract both horizontal borders */
    height: calc(100% + 4px); /* Subtract both vertical borders */
    pointer-events: none; /* Allow clicks to pass through to the grid */
}

/* overlayGrid is used to keep td widths more or less even when the overlay requires it, e.g. 4/6/2025 */

.overlayGrid td {
    min-width: 26px;
}

#GridCanvas {
    pointer-events: none;
}

.PuzTable {
    border-spacing: 0;
    border-collapse: collapse;
    background-color: #f5f5f5;
}

    .PuzTable:not(.nonRect) {
        border: 2px solid #000;
        box-shadow: var(--xBoxShadow);
    }

    .PuzTable td {
        border: 1px solid #999;
        vertical-align: top;
        text-align: center;
        font-family: Arial, Sans-Serif;
        width: 32px;
        height: 32px;
        padding: 0;
        margin: 0;
    }

        .PuzTable td.black {
            border: 1px solid #333;
            background-color: #333;
            color: #b0b0b0;
        }

        .PuzTable td.shape {
            background-color: white;
            border: 1px solid transparent;
        }

        .PuzTable td.slash {
            background: linear-gradient(to bottom right, transparent calc(50% - 1px), #777 calc(50% - 1px), #777 50%, transparent 50%) #fafafa;
        }

        .PuzTable td.backslash {
            background: linear-gradient(to bottom left, transparent calc(50% - 1px), #777 calc(50% - 1px), #777 50%, transparent 50%) #fafafa;
        }

        .PuzTable td.leftBar {
            background: linear-gradient(to right, transparent calc(30% - 2px), rgba(255, 0, 0, .6) 30%, transparent calc(30% + 1px)) #f5f5f5;
        }

        .PuzTable td.bucket1 {
            background-color: #ffffe0;
        }

        .PuzTable td.bucket2 {
            background-color: #e0ffe0;
        }

        .PuzTable td.bucket3 {
            background-color: #e0e0ff;
        }

        .PuzTable td.bucket4 {
            background-color: lightcyan;
        }

        .PuzTable td.bucket5 {
            background-color: #F6DDCC;
        }

        .PuzTable td.bucket6 {
            background-color: #fce8e8;
        }

        .PuzTable td.plot {
            font-size: 16px;
            background-color: burlywood;
            background: linear-gradient(0, #345, #356a80, #345);
            vertical-align: middle;
            font-weight: bold;
            color: white;
            border: 1px solid darkblue;
        }

    .PuzTable div.num {
        height: 12px;
        font-weight: normal;
        font-size: 10px;
        text-align: left;
        color: #000;
        padding-left: 2px;
        padding-top: 0;
    }

    .PuzTable div.letter {
        height: 20px;
        font-size: 16px;
        font-weight: bold;
    }

    .PuzTable td.vBlock {
        height: auto;
        background-color: cornsilk;
    }

        .PuzTable td.vBlock>.letter {
            position: relative;
            top: 11px;
        }

    .PuzTable td.hBlock {
        width: auto;
        background-color: cornsilk;
    }

/*        .PuzTable td.hBlock > .letter {
            font-weight: normal;
            transform: scaleX(2.5);
        }*/

    td.bigDot {
        text-align: center;
        font-size: 22px;
    }

.PuzTable .subst {
    height: 19px;
    font-size: 12px;
    padding-top: 1px;
    font-weight: bold;
    color: var(--xRed);
}

.PuzTable .subst2 {
    height: 18px;
    font-size: 10px;
    padding-top: 2px;
    font-weight: normal;
    color: var(--xRed);
}

.PuzTable .subst3 {
    color: var(--xRed);
}

.ColorTable.nonRect {
    border: 2px solid var(--xDarken) !important;
}

.ColorTable .cheat {
    color: white;
    font-weight: normal;
}

.ColorTable .shape {
    background-color: var(--xDarken) !important;
}

    .ColorTable .shape .letter {
        color: var(--xDarken) !important;
    }

.slashLeft {
    position: relative;
    left: -3px;
    top: -10px;
    color: var(--xRed);
}

.slashRight {
    position: relative;
    left: 2px;
    top: 2px;
    color: blue;
}

.backslashLeft {
    position: relative;
    left: -3px;
    top: 2px;
    color: var(--xRed);
}

.backslashRight {
    position: relative;
    left: 2px;
    top: -10px;
    color: blue;
}

.darken td {
    background-color: #e0e0e0;
}

.Diagramless td.black {
    border: 1px solid #4682b4;
    background-color: #4682b4;
}

.PuzTable .bigcircle {
    background-image: url(/images/circle5t.png);
    background-repeat: no-repeat;
    background-position: 0 0;
}

.PuzTable .bigcircle2 {
    background-image: url(/images/circle_linen_glow.png);
    background-repeat: no-repeat;
    background-position: -2px -2px;
    color: #000;
}

.floater {
    position: absolute;
    font-weight: bold;
    color: maroon;      /* default */
    font-size: 18px;    /* default */
}

.PuzTable .shade {
    background-color: #c0c0c0;
}

.PuzTable.yshade .shade {
    background-color: #f6f399;
}

.copy {
    font-style: normal;     /* override normal italic style */
    color: #707070;
    margin-top: 2px;
}

.puznum {
    float: right;
}

.twos {
    padding: 0 5px;
    background-color: yellow;
    color: black;
    font-weight: bold;
}


/* Clues and Answers */

.cluebox {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 30px;
    margin-top: 20px;
    font-size: 13px;
    max-width: 780px;
}

    .cluebox img[src*='svg'] {
        max-width: 200px;
        max-height: 80px;
    }

.clueshead {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 4px;
    background-color: var(--xDarken);
    padding: 2px 12px;
    max-width: 482px;
    border: 1px solid lightgray;
    border-radius: 8px;
}

.numclue {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 8px;
    row-gap: 2px;
}

    /* formatting for clue numbers is in nth-child(odd) */

    .numclue div:nth-child(odd) {
        font-weight: bold;
        text-align: right;
    }

.archive {
    margin-top: 4px;
    font-size: 13px;
}

    .archive a {
        font-weight: bold;
    }


/* Below clues stuff */

.info {
    font-style: italic;
    color: maroon;
}

.scoretab {
    display: block;
    margin-bottom: 20px;
    font-size: 20px;
}


/* Analyze section (the full containing div) */

#analyze {
    font-size: 12px;
    margin-top: 26px;
    margin-bottom: 18px;
    border-top: 3px solid darkgreen;
    border-bottom: 3px solid darkgreen;
    background-color: var(--xDarken);
    padding: 8px;
}

#analysis h2 {
    font-size: 20pt;
}

#analyze h3 {
    font-size: 15pt;
    font-family: Century-Gothic;
}

/* Day of Week comparisons */

#AvgTable .category {
    text-align: left;
    padding: 0 12px;
}

#AvgTable .this {
    background-color: yellow;
}

#AvgTable .highlight {
    background-color: palegreen;
}

/* Distribution of answer words by length */

#DistByLengthTable .words {
    text-align: left;
}

#DistByLenPan {
    margin: 12px 0 20px 34px;
}

    #DistByLenPan .msChart {
        clip-path: inset(0 0 5px 10px);
        max-width: calc(100% + 20px);
    }

/* Letter distribution */

#LetterDistTable {
    border: 1px solid #d0d0d0;
}

#ScrabLegend td { /* scrabble score legend */
    width: 14%;
}


/* Colorized */

.ColorTable td {
    border: 1px solid #000;
}

.ColorTable td.bigcircle2 div.letter { color: #606060; }

#ColorLegend { /* uniqueness colors */
    margin-left: 0;
}

/* Freshness Factor */

#FreshTable .count {
    width: 35px;
}

#FreshTable .wordsx {
    text-align: left;
}


/* Override XTab2 styles for tables in analyze section */

.XTab2 {
    max-width: 800px;
    margin-top: 10px;
    border: none;
    clear: left;
    border-collapse: separate;
    border-spacing: 2px;
    background-color: #ffffff;
}

    .XTab2 th {
        text-align: center;
    }

    .XTab2 td {
        text-align: center;
        border: 1px solid #808080;
        padding: 3px;
        vertical-align: middle;
    }

    .XTab2 a {
        padding-left: 4px;
        padding-right: 4px;
    }

    .XTab2 td.chart { /* letter distribution chart */
        width: 3.8%;
        padding: 8px 5px 0 5px;
        border: 1px solid #fff;
        vertical-align: bottom;
    }

    .XTab2 .chart div {
        border: 1px solid black;
    }

    .XTab2 tr.unscored {
        background-color: #ffffc0 !important;
    }

    .XTab2 tr.bogus {
        background-color: #fce8e8 !important;
    }


/* More Analyze section styles */

table.autoalt tr:nth-of-type(odd) {
    background-color: #f9f9f9;
}

table.autoalt tr:nth-of-type(even) {
    background-color: #fff;
}

.SimTable, .FreshTable, .ScoreTable {
    border-collapse: collapse;
    border-spacing: 0;
}

    .SimTable td, .SimTable, .ScoreTable th, .ScoreTable {
        text-align: left;
        vertical-align: top;
    }

        .SimTable .author {
            font-style: italic;
        }

    .FreshTable td, .FreshTable th {
        text-align: left;
    }

.ScoreTable {
    margin: 0 auto;
}

#analyze .oddLinks {
    border-top: none;
    border-left: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, auto));
    justify-content: start;
    
}


/* Common styles */

.hilight {
    border: 1px solid #404040;
    background-color: #ffff00;
    padding: 4px;
    margin-left: 10px;
}

.note {
    background-color: #ffffc0;
    padding: 0 2px;
    margin: 0 1px;
    border: 1px solid #c0c0c0;
}

.pulledquote {
    display: block;
    float: right;
    padding: 0 0 0 10px;
    margin: 0 0 10px 10px;
    width: 170px;
    max-width: 50%;
    font-size: 140%;
    line-height: 140%;
    text-align: right;
    color: #666;
    border-left: 3px solid #ccc;
}

.wow {
    font-size: 18px;
    padding: 4px 12px;
    background-color: #ffff99;
    border: 1px solid gray;
    margin-left: 14px;
    float: left;
    margin-top: 12px;
    margin-bottom: 20px;
}

.ulist, .except {
    margin-left: 30px;
    margin-top: 4px;
}

    .ulist a {
        margin: 6px 3px;
    }

    .except a {
        margin: 6px 3px;
        color: #009000;
    }

.unique a {
    color: inherit;
}

.debut a {
    color: inherit;
}

.notready {
    border: 3px solid #900;
    margin-bottom: 10px;
    padding: 8px 12px 12px 12px;
}

.botad {
    text-align: left;
}

/* Stats panel */

.flexcon {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

.statsdata {
    font-size: 12px;
    margin: 1px 0 0 4px;
    display: flex;
    column-gap: 14px;
    row-gap: 5px;
    flex-flow: row wrap;
    align-items: start;
    line-height: 1.5;   /* so border still works */
}

    .statsdata h2 {
        margin-top: 0;
        margin-bottom: 8px;
    }

.entity {
    display: block;
    white-space: nowrap;
}

.uninote {
    font-size: 14px;
}

.fran {
    font-size: 13px;
    max-width: 550px;
    font-style: italic;
}


/* Double Cross styles (5/16/2010) */
table.dc {
    border-collapse: collapse;
    border-spacing: 0;
}

    table.dc td {
        width: 16px !important;
        height: 16px !important;
        font-size: 11px;
        font-weight: bold;
        border: none;
        text-align: center;
        vertical-align: bottom;
        background-color: #fafad2;
        padding: 0;
    }

    table.dc .nw {
        border-right: 1px solid #a0a0a0;
        border-bottom: 1px solid #a0a0a0;
    }

    table.dc .ne {
        border-bottom: 1px solid #a0a0a0;
    }

    table.dc .sw {
        border-right: 1px solid #a0a0a0;
    }

/* svg images in tooltip -- 7/9/2023 */

.ui-tooltip-content img[src*='svg'] {
    max-height: 80px;
}

/* 12/17/2023 water bridges */

.hbridge {
    display: grid;
}

    .hbridge div {
        width: 100%;
        height: 30%;
        border-top: 3px solid maroon;
        border-bottom: 3px solid maroon;
        background: linear-gradient(to right, #ecc245, #cc992c, #ecc245);
        align-self: center;
    }

    .vbridge div {
        width: 30%;
        height: 100%;
        border-left: 3px solid maroon;
        border-right: 3px solid maroon;
        background: linear-gradient(to bottom, #ecc245, #cc992c, #ecc245);
        margin-left: 8px;
    }

/* 10/6/2024 */

.teacherMark {
    display: inline-block;
    white-space: nowrap;
    border: 3px solid red;
    padding: 1px 4px;
    border-radius: 12px;
    text-decoration: none;
}

/* smaller screen styles */

@media (max-width: 858px) {
    /* ads disappear at 860px. Change template columns to allow for smooth squeezing. */

    .midpanel {
        grid-template-columns: auto 0;
    }

    .bbCard {
        width: inherit;
    }

    .bonus {
        margin-left: 0;
    }

    .keyclue {
        font-size: 13px;
    }

    /* This rule solves Google clickable elements too close issue but makes the page too long */
    /*.cluebox div { margin-top: 6px; }*/
}

@media (max-width: 700px) {

    h1 {
        font-size: 4vw;
    }

    .statsgrid {
        grid-template-columns: auto;
    }

    .fillBoth {
        grid-column-end: inherit;
    }

    .entity {
        display: inline-block;
    }

    .cluebox {
        font-size: 12px;
        column-gap: 12px;
    }

    .clueshead {
        font-size: 15px;
        padding: 2px 8px;
        border: none;
        border-radius: 0;
    }
    
    .numclue {
        row-gap: 0;
    }

        .numclue div:nth-child(odd) {
            padding-right: 5px;
        }

    .xnote a[href*='?author'] {
        white-space: normal;
    }

    .cluebox img {
        max-width: 70%;
    }
}

@media (max-width: 600px) {

    h1 {
        font-size: 18pt;
    }

    .largeOnly {
        display: none;
    }

    .PuzTable td.plot {
        font-size: 13px;
    }

    .PuzTable td {
        width: 24px;
        height: 24px;
    }

    .overlayGrid td {
        min-width: 18px;
    }

    .PuzTable div.letter {
        font-size: 12px;
        height: 13px;
    }

    td.bigDot {
        font-size: 13px;
        vertical-align: middle;
    }

    .PuzTable div.num {
        font-size: 9px;
        height: 9px;
    }

    .PuzTable .bigcircle {
        background-size: 24px 24px;
        background-position: 0 2px;
    }

    .PuzTable .bigcircle2 {
        background-size: 24px 100%;
        background-position: 0 4px;
    }

    .PuzTable .subst {
        height: 13px;
        font-size: 11px;
        padding-top: 0;
    }

    .PuzTable .subst2 {
        height: 13px;
        font-size: 10px;
        padding-top: 1px;
    }

    .slashLeft {
        top: -9px;
        left: 0;
    }

    .toppow {
        background-size: 100px 100px;
        background-position: right 0 top 18px;
    }

    #LetterDistTable td, #LetterDistTable th {
        padding: 0;
        border: none;
        width: 4%;
    }

    .cluebox img {
        max-width: 90%;
    }

    .vbridge div {
        margin-left: 4px;
    }
}