﻿/*!

    This XWord Info CSS file (c) 2010-2024 by Jim Horne.
    All rights reserved.

*/

/*
    Styles for xwordinfo.com home screen, including @media styles

    Admin/HPBlurb.aspx also uses this file so blurb editing looks correct.
*/

/*@font-face {
    font-family: NicholsonGothic;
    src: url("/Styles/Fonts/NicholsonGothicRegular-dBGR.otf") format("opentype");
}*/

#pagecontent {
    background-color: #f5f5f5;
    font-size: 12px;
    padding-top: 15px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 30px 20px;
    justify-content: space-between;
    align-content: start;
    max-width: 1150px;
    grid-template-areas: "header header header header"
        "title title title title"
        "main main VarietyPuzzles right"
        "main main mid right"
        "left left mid right"
        "PSPP PSPP PSPP right"
        ". . . right"
        "footer footer footer footer"
}

#account {
    display: flex;
    column-gap: 15px;
    line-height: 1.7;
    flex-wrap: wrap;
    margin: 10px 5px 0;
    font-size: 13px;
}

    #account .heart {
        color: red;
        font-size: 18pt;
        position: relative;
        top: -10px;
        margin-left: -10px;
    }

    #account .expired {
        padding: 0 14px;
    }

#cellarInfo {
    margin-top: 20px;
}

.glinks {
    display: inline-block;
}

    .glinks a {
        color: green;
    }

.keyClue {
    display: block;
    font-style: italic;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

    .keyClue a {
        color: var(--xRed);
    }

/* Grid elements */

#header {
    grid-area: header;
}

h1 {
    grid-area: title;
    margin: 0;
}

#main {
    grid-area: main;
}

#left {
    grid-area: left;
}

#mid {
    grid-area: mid;
}

#VarietyPuzzles {
    grid-area: VarietyPuzzles;
}

#right {
    grid-area: right;
    padding-left: 10px;
}

#PSPP {
    grid-area: PSPP;
    max-width: 650px;
}

#footer {
    grid-area: footer;
}

.miniPix img {
    opacity: 1;
}

h3 {
    margin-top: 20px;
}

.notes img {
    max-width: 100%; /* override value in Notepad.css */
}

.error {
    border: 1px solid maroon;
    font-weight: bold;
    font-size: 14px;
    color: firebrick;
    padding: 8px 16px;
    background-color: #ffffc0;
    margin-bottom: 12px;
    border-radius: 6px;
    box-shadow: var(--xBoxShadow);
}

.scoops a {
    white-space: normal;
    display: block;
    margin-bottom: 3px;
}

.new {
    font-weight: bold;
    background-color: #ffffa0;
    padding: 0 3px;
    box-shadow: 1px 1px 4px rgba(0,0,0,.2);
    border-radius: 6px;
    margin-right: 3px;
}

.newvar {
    color: #fff;
    background-color: firebrick;
    font-weight: bold;
    padding: 0 4px;
    border-radius: 4px;
    margin-right: 5px;
}

.shade,
.untopic {
    background-color: #b0b0b0;
}

.shade {
    /* for darker hp tab grids */
}

.photo248 {
    width: 238px;
    height: 377px;
    border: 1px solid #aaa;
    border-radius: 10px;
    box-shadow: 2px 2px 5px rgba(0,0,0,.2);
}

#recentPix {
    display: flex;
    flex-flow: row wrap;
    overflow: hidden; /* Hide the elements that don't fit */
    height: 86px; /* leave some room for shadow */
    column-gap: 13px;
}

    #recentPix img {
        width: 60px;
        height: 80px;
    }

.tips div {
    padding: 5px;
    font-size: 13px;
}

.adminfs {
    padding-right: 0;
}

.warm {
    margin-top: 12px;
}

    .warm a {
        margin-right: 12px;
    }

    .warm .done {
        margin-left: 6px;
        font-weight: bold;
        white-space: nowrap;
        color: green;
    }

.werror {
    white-space: nowrap;
    background-color: yellow;
    font-weight: bold;
}

    .werror a {
        color: red;
    }

.copy {
    font-style: normal;
    margin-top: 12px;
}

/* Software requirements: NYT subscription */

#SWReq {
    max-width: 541px;
    font-size: 12px;
    margin-top: 6px;
    font-weight: bold;
}

    #SWReq.NytWarn {
        margin-top: 10px;
        font-size: 12px;
        text-align: center;
        padding: 3px;
        background-color: white;
        border: 1px solid lightgray;
    }

/* other */

.when,
.varWhen {
    font-size: 13px;
    font-weight: bold;
}

.when {
    margin-top: 8px;
}

.varWhen {
    margin-top: 12px;
}

.varDetails {
    margin: 4px 0 0 2px;
}

div.varInfo {
    background-color: #fffff0;
    padding-bottom: 5px;
    margin-top: 0;
}

.varInfo p {
    margin-bottom: 8px;
    font-size: 10.5pt;
}

    .varInfo p a,
    .msg p a,
    .promo a,
    .topic.intro a,
    .xwblog li a,
    .new,
    .newvar {
        font-weight: bold;
    }

.varDetails a {
    font-style: italic;
}

.dtlink,
.dtlink2 {
    white-space: nowrap;
}

#aandd div {
    max-width: 250px;
    max-height: 200px;
}

#aandd img {
    max-height: 200px;
    max-width: 198px;
}

#AddFavIE,
#AddFavNonIE {
    padding: 2px 0;
}

.promo {
    font-size: 15px;
}

    .promo p {
        margin-top: 0;
    }

    .promo li {
        margin-left: -16px;
    }

.intro {
    font-size: 13px;
    padding: 8px 12px 12px !important;
}

#squeezyTopic {
    font-size: 15px;
}

#pairDownHeader {
    background-color: #f39962;
    padding: 4px 8px;
    margin-top: 15px;
    border: 3px solid maroon;
    border-radius: 8px;
    height: 40px;
    font-size: 22px;
}

    #pairDownHeader img {
        float: right;
        margin-left: 8px;
        height: 40px;
    }

    #pairDownHeader a {
        color: white;
    }

    #pairDownHeader a:hover {
        color: maroon;
    }

#squeezyHeader {
    background-color: #efe;
    padding: 4px 8px;
    margin-top: 5px;
    border: 3px solid #b2d565;
    border-radius: 8px;
    text-align: center;
}

#introVariety h2 {
    margin: 14px 0 4px;
}

#introVariety div {
    margin-bottom: 4px;
    padding-left: 6px;
}

#RecentCrosswords {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3px 14px;
    margin: 0 0 14px 6px;
}

/* The topic class is used for all the sections in rounded-corner boxes */

.topic {
    border: 1px solid #9fc4c6; /* lighter cadetblue */
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 2px 2px 2px rgba(0,0,0,.2);
    padding: 4px 6px 5px 8px;
    max-width: 549px;
    max-height: fit-content;
}

    .topic h2 {
        font-size: 14pt;
        margin: 0 0 15px;
    }

    .topic h3 {
        font-size: 12pt;
    }

    .topic a,
    #merch a {
        font-weight: normal;
    }

    .topic p {
        padding-left: 2px;
    }

    .topic input {
        max-width: 150px;
        min-width: 75px;
        border: 1px solid gray;
        margin-top: 3px;
        background-color: #ffffe0;
    }

    .topic li {
        margin-bottom: 8px;
    }

    .topic ul {
        margin-top: 6px;
        padding-left: 0;
        margin-left: 16px;
    }

    .topic:first-child {
        margin-top: 0;
    }

.topic,
.hpad,
.ppClient {
    margin-top: 24px;
}

/* topic additions and variations */

.special {
    border: 2px solid firebrick;
}

.msg {
    font-size: 13px;
    overflow: hidden;
    background-color: #fff5f5;
    border: 2px solid red;
}

.free {
    background-color: #ffdddd;
    border: 1px solid black;
    font-size: 13px;
    line-height: 24px;
}

/* untopic grays out information that doesn't apply, for example, in free access week */

.untopic h2 {
    color: white;
}

.bsphere {
    margin-top: 25px;
}

    .bsphere h3 {
        margin: 15px 0 0;
    }

        .bsphere h3 a,
        #XWordBlog h2 a {
            color: var(--xHeader);
            margin: 0;
        }

    .bsphere li {
        margin: 5px 0 0;
    }

#XWordBlog {
    background-color: #d1e4dd;
}

#PSPP table {
    width: 100%;
}

#PSPP ul {
    margin-bottom: 0;
}

#PSPP td {
    width: 50%;
    vertical-align: top;
}

#merch img {
    border: 1px solid #333;
    border-radius: 8px;
    width: 220px;
    float: right;
    max-width: 50%;
    margin: 2px 0 1px 8px;
}

/* Adjustments for screen widths */

@media (max-width: 1100px) {
    #pagecontent {
        grid-template-columns: 1fr 1fr 260px;
        grid-template-areas: "header header header"
            "title title title"
            "main main right"
            "left mid right"
            "VarietyPuzzles mid right"
            ". mid right"
            "PSPP PSPP PSPP"
            "footer footer footer"
    }
}

@media (max-width: 830px) {
    #pagecontent {
        grid-template-columns: 1fr 1fr 1fr;
        padding: 15px 9px 0;
        border: none;
    }

    .hpad {
        display: none !important;
    }

    #right {
        padding-left: 0;
    }

    .bsphere li {
        margin-top: 8px;
    }
}

@media (max-width: 700px) {
    #pagecontent {
        padding: 9px;
        grid-template-columns: 1fr 1fr;
        gap: 30px 15px;
        grid-auto-rows: auto;
        grid-template-areas: "header header"
            "title title"
            "main main"
            "left mid"
            "VarietyPuzzles mid"
            "right right"
            "PSPP PSPP"
            "footer footer"
    }

    .keyClue,
    .lemon {
        display: none;
    }

    #introVariety div {
        padding-left: 0;
    }

    #RecentCrosswords {
        margin-left: 0;
    }
}

@media (max-width: 580px) {
    #pagecontent {
        grid-template-columns: 1fr;
        grid-template-areas: "header"
            "title"
            "main"
            "left"
            "mid"
            "VarietyPuzzles"
            "right"
            "PSPP"
            "footer";
    }

    .intro {
        font-size: inherit;
        padding: 6px !important;
    }
}

@media (max-width: 450px) {
    .largeOnly {
        display: none;
    }
}