html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* The page beside the ad column (_Layout): let wide content such as tables shrink or scroll
   rather than push the column off the screen, as a flex item would by default. */
.page-main {
    min-width: 0;
}

/* A sweep's details, rules and review (Sweeps/Details) are HTML from the database: keep wide
   images and tables inside the page's column, clear of the ad gutter, and let long words wrap. */
.sweep-html {
    overflow-wrap: anywhere;
    overflow-x: auto;
}

    .sweep-html img,
    .sweep-html table {
        max-width: 100%;
        height: auto;
    }

/* globals.css sets every .table to a fixed layout with one-line, clipped cells and set column
   widths. A table of figures that should size its columns to what is in them, and wrap. */
.table-natural {
    table-layout: auto;
}

    .table-natural th,
    .table-natural td {
        width: auto;
        white-space: normal;
        overflow: visible;
    }

/* globals.css takes the bullets off every <ul>; a list of points that wants them back. */
.list-bulleted {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

/* ASP.NET renders a validation summary even when nothing failed, for client-side validation
   to fill in; it stays hidden until it has errors to show. */
.validation-summary-valid {
    display: none;
}

.sweeps-header {
    font-size: 18px;
    font-weight: 900;
    color: #0e8444;
    text-shadow: 1px 0 #f4df22;
}

.details-button {
    color: white;
    text-transform: uppercase;
    font-weight: 600;
    border-radius: 5px;
    background-color: rgb(21, 133, 69);
    transition: 0.25s;
}

/* Custom breakpoint for navbar */
@media (max-width: 1560px) {
    .navbar-expand-custom .navbar-collapse {
        display: none !important;
    }
    .navbar-expand-custom .navbar-toggler {
        display: block;
    }
}

@media (min-width: 1560px) {
    .navbar-expand-custom .navbar-collapse {
        display: flex !important;
        flex-direction: row !important;
    }
    .navbar-expand-custom .navbar-nav {
        flex-direction: row !important;
    }
    .navbar-expand-custom .navbar-toggler {
        display: none;
    }
}

/* Text links that look like the main menu's (New, Featured...), which take mrsweepy.css's
   .navbar-nav .nav-link and the navbar's black, lighter on hover. The profile page's links. */
.menu-links a {
    font-family: "Trebuchet MS", Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #000;
    text-decoration: none;
}

    .menu-links a:hover,
    .menu-links a:focus {
        color: rgba(0, 0, 0, .7);
    }

/* The main menu (New, Featured...) as on www.sweepstakestoday.com: room around and between the
   links, and the one under the mouse a yellow button with white text. .navbar makes it outweigh
   Bootstrap's .navbar-expand-xxl .navbar-nav .nav-link padding. */
.navbar .main-menu {
    gap: 5px;
}

.navbar .main-menu .nav-link {
    padding: 10px;
    border-radius: 5px;
}

/* Up to 1411px, just above the width where the menu goes behind the hamburger, the full padding
   would put New's hover button against Mr. Sweepy's thumb, so the sides are a pixel narrower there. */
@media (min-width: 1400px) and (max-width: 1411.98px) {
    .navbar .main-menu .nav-link {
        padding: 10px 9px;
    }
}

    .navbar .main-menu .nav-link:hover,
    .navbar .main-menu .nav-link:focus {
        color: #fff;
        background-color: #ffd000;
    }

/* header.css and mrsweepy.css hide dropdown arrows everywhere; the menu's Categories keeps Bootstrap's. */
.navbar .main-menu .dropdown-toggle::after {
    display: inline-block;
}

/* Below md the ad column stacks under the page, and its slots' fixed 260-300px heights left that much
   blank space above the footer whenever no ad was served. There each slot is as tall as its ad, and
   an empty one takes no room; the gap keeps two served ads apart. AdSense marks a slot it had no ad
   for as unfilled once it has asked, and hiding it then (as Google suggests) drops the line of text
   height the empty inline <ins> would still take. */
@media (max-width: 767.98px) {
    .right-col .ad {
        gap: 14px;
    }

    .right-col .ad-img {
        height: auto;
        margin-bottom: 0;
    }

    .right-col ins.adsbygoogle[data-ad-status="unfilled"] {
        display: none;
    }
}

/* The loading overlay (_Layout, shown by site.js while a slow page loads): the page dimmed under a
   site-green spinner, over everything, the hamburger menu (100000) included. */
.page-loading {
    position: fixed;
    inset: 0;
    z-index: 100001;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.6);
    animation: page-loading-in 0.2s ease-out;
}

    .page-loading[hidden] {
        display: none;
    }

    .page-loading .spinner-border {
        width: 3.5rem;
        height: 3.5rem;
        border-width: 0.35em;
        color: #0e8444;
    }

@keyframes page-loading-in {
    from {
        opacity: 0;
    }
}

/* A part of a page loading after it (site.js's data-load-url, /sweeps/hot's sweeps): the overlay's
   site-green spinner where the part goes, with a line saying what is coming. */
.part-loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 3rem 1rem;
    color: #424242;
    text-align: center;
}

    .part-loading-spinner .spinner-border {
        width: 3.5rem;
        height: 3.5rem;
        border-width: 0.35em;
        color: #0e8444;
    }

    .part-loading-spinner p {
        margin: 0;
    }

/* A spinner that keeps turning for seconds is hard on anyone sensitive to motion: slowed right down,
   rather than stopped, so it still shows something is happening. */
@media (prefers-reduced-motion: reduce) {
    .page-loading .spinner-border,
    .part-loading-spinner .spinner-border {
        animation-duration: 2.4s;
    }
}

/* /sweeps (Sweeps/Index) and /prizes (Home/Prizes): Prize and Sweepstake Categories side by side, each
   in one column, the second going under the first when there is not room for both. The headings are
   the site's h2 size but stay black, without h2's green and yellow shadow, beside their icons so that
   on a phone, where SWEEPSTAKE CATEGORIES takes two lines, both are beside the icon. The links are 16px
   instead of the category lists' 14px, black, blue under the mouse. On /sweeps sweeps-categories is the
   main-content section itself, on /prizes a block inside it. */
.sweeps-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 60px;
}

.main-content.sweeps-categories .cat-prize,
.main-content.sweeps-categories .cat-sweepstakes,
.main-content .sweeps-categories .cat-prize,
.main-content .sweeps-categories .cat-sweepstakes {
    width: auto;
}

.main-content.sweeps-categories .icon-heading,
.main-content .sweeps-categories .icon-heading,
.main-content.sitemap .icon-heading {
    display: flex;
    align-items: center;
    font-size: 24px;
    color: #231f20;
    text-shadow: none;
}

    .main-content.sweeps-categories .icon-heading::before,
    .main-content.sitemap .icon-heading::before {
        flex: none;
    }

.sweeps-categories ul > li > a {
    font-size: 16px;
    color: #000;
}

    .sweeps-categories ul > li > a:hover,
    .sweeps-categories ul > li > a:focus {
        color: #0d6efd;
    }

/* /prizes (Home/Prizes): the last 30 days' dates look like the category links above them, 16px, black,
   blue under the mouse, with the category lists' indent, weight and spacing (mrsweepy.css); each date's
   count, in bold, is the same size. The 30 days total under them has the same indent and size, under a
   thin gray line as wide as it, with its number bold as the counts are. */
.prize_list ul {
    padding-left: 45px;
}

.prize_list > label {
    margin: 6px 0 0 45px;
    padding-top: 6px;
    border-top: 1px solid #ccc;
    font-size: 16px;
}

.prize_list ul > li > a {
    display: inline-block;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.8em;
    color: #000;
    text-decoration: none;
}

    .prize_list ul > li > a:hover,
    .prize_list ul > li > a:focus {
        color: #0d6efd;
    }

.prize_list ul > li > span,
.prize_list > label > span {
    font-size: 16px;
    font-weight: bold;
}

/* /sitemap (Sitemap/Index): Prize and Sweepstake Categories headed as on /sweeps, and under them each
   category's name and how many sweeps it has, lined up with the headings' text past the icon, with its
   sweeps indented below it. The links are black, blue under the mouse, as on /sweeps. */
.main-content.sitemap .icon-heading {
    margin-top: 30px;
}

.sitemap h3 {
    margin: 18px 0 4px 45px;
    font-size: 18px;
}

.sitemap-count {
    font-size: 14px;
    font-weight: 400;
    color: #6c757d;
}

.sitemap ul {
    padding-left: 65px;
    list-style: none;
}

    /* Close lines with room between sweeps, so a long name that wraps on a phone reads as one */
    .sitemap ul > li {
        margin-bottom: 5px;
    }

    .sitemap ul > li > a {
        font-size: 14px;
        line-height: 1.4;
    }

.sitemap h3 a,
.sitemap ul > li > a {
    color: #000;
    text-decoration: none;
}

    .sitemap h3 a:hover,
    .sitemap h3 a:focus,
    .sitemap ul > li > a:hover,
    .sitemap ul > li > a:focus {
        color: #0d6efd;
    }

/* A list that works as the admin site's lists do (/sweeps/featured): its order as tabs, its
   search box beside them, the cards, and the pager (_Pager) at the foot. The chosen tab and the
   current page are in the site's green. */
.list-pills {
    --bs-nav-link-padding-y: .25rem;
    --bs-nav-link-padding-x: .75rem;
    --bs-nav-link-font-size: .875rem;
    --bs-nav-link-font-weight: 600;
    --bs-nav-link-color: #0e8444;
    --bs-nav-link-hover-color: #249557;
    --bs-nav-pills-link-active-bg: #0e8444;
    gap: .25rem;
}

.list-search .lookup-search {
    width: 18rem;
}

@media (max-width: 575.98px) {
    .list-search,
    .list-search .lookup-search {
        width: 100%;
    }
}

/* The list's pager: Bootstrap's own small one, not the big squares .pagination is elsewhere on
   the site (globals.css). */
.list-pager .pagination {
    gap: 0;
    --bs-pagination-color: #0e8444;
    --bs-pagination-hover-color: #0e8444;
    --bs-pagination-focus-color: #0e8444;
    --bs-pagination-focus-box-shadow: 0 0 0 .25rem rgba(14, 132, 68, .25);
    --bs-pagination-active-bg: #0e8444;
    --bs-pagination-active-border-color: #0e8444;
}

    .list-pager .pagination li,
    .list-pager .pagination li.active,
    .list-pager .pagination li:hover {
        display: block;
        width: auto;
        height: auto;
        font-size: inherit;
        background-color: transparent;
    }

/* The matches under a list's search box (wwwroot/js/list-lookup.js): wider than the box, they
   open under it at its right edge, as the box sits at the right of the list's bar; the script
   moves them to its left edge (lookup-menu-start) when there is not room. The match moved to
   with the arrow keys, or under the mouse, is shaded green. While matches load, a small spinner
   sits left of the browser's clear button. */
.lookup {
    position: relative;
}

.lookup-menu {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1000;
    width: 26rem;
    max-width: calc(100vw - 2rem);
    max-height: 20rem;
    overflow-y: auto;
    background-color: #fff;
    border: 1px solid #d7d7d7;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);
}

    .lookup-menu.lookup-menu-start {
        left: 0;
        right: auto;
    }

.lookup-option {
    padding: .375rem .75rem;
    cursor: pointer;
}

    .lookup-option:hover,
    .lookup-option.active {
        background-color: rgba(14, 132, 68, .1);
        color: #0e8444;
    }

.lookup-note {
    padding: .375rem .75rem;
    font-size: .875em;
    color: #6c757d;
}

    .lookup-note:empty {
        display: none;
    }

.lookup-spinner {
    position: absolute;
    top: 50%;
    right: 1.75rem;
    margin-top: -.5rem;
    color: #0e8444;
}

/* The home page's opening paragraphs (Home/Index, its banner beside the ad column): 5px between
   them, where .main-content has 20px. The last keeps its 20px above "Top Featured Sweepstakes". */
.welcome-body .welcome-banner .main-content:not(:last-child) {
    margin-bottom: 5px;
}
