/*
watches.club css
gurugeek version 28 Aug 2021
updated 6 September 2022
*/

@font-face {
    font-family: 'GT Cinetype';
    src: url('/fonts/GT-Cinetype-Bold-Italic.woff2') format('woff2');
    font-weight: bold;
    font-style: italic;
    font-display: auto;
}

@font-face {
    font-family: 'GT Cinetype';
    src: url('/fonts/GT-Cinetype-Bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-display: auto;
}

@font-face {
    font-family: 'GT Cinetype';
    src: url('/fonts/GT-Cinetype-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: auto;
}

@font-face {
    font-family: 'GT Cinetype';
    src: url('/fonts/GT-Cinetype-Regular-Italic.woff2') format('woff2');
    font-weight: normal;
    font-style: italic;
    font-display: auto;
}

ul, li {
    margin: 0;
    padding: 0;
}

/* Page Layout */
body {
    background-color: #231F20;
    font-size: 22px;
    font-family: "GT Cinetype", sans-serif;
    font-weight: 400;
    font-style: normal;
    counter-reset: theorem;
    counter-reset: definition;
    color: #F0EAD6;
    max-width: 720px;
    margin: 2em auto;
    -moz-hyphens: auto;
    -webkit-hyphens: auto;
    hyphens: auto;
    padding: 0 1em;
}

@media (min-width: 43.75em) {
    body {
        padding: 0;
    }
}

img {
    max-width: 100%;
}

h2, h3, h4, h5, h6 {
    border: none;
    font-family: "GT Cinetype", sans-serif;
    font-weight: 400;
    font-style: normal;
    color: #B1A96E !important;
    word-break: none;
    -webkit-hyphens: none;
    -moz-hyphens: none;
    hyphens: none;
}

h2 {
    font-size: 2.0rem;
    font-weight: bold;
}

h1 {
    font-family: "GT Cinetype", sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 3.0rem;
}

/* Site title - GOLD */
.site-title {
    font-family: "GT Cinetype", sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 3.0rem;
    text-align: center;
}

.site-title a,
.site-title a:visited {
    color: #B1A96E !important;
    text-decoration: none;
}

.site-title a:hover {
    color: #F0EAD6 !important;
}

h1:first-of-type {
    text-align: center;
    display: block;
}

.keep {
    font-family: "GT Cinetype", sans-serif;
    font-weight: 400;
    font-size: 1.5rem;
}

h1 a, h2 a, a:visited {
    text-decoration: none;
}

a, a:visited {
    color: #F0EAD6;
    text-decoration: underline;
}

ul {
    font-style: italic;
    list-style: none;
    list-style-type: "#";
}

dl dd {
    text-align: center;
}

/* Theorem/proof styles */
.theorem {
    counter-increment: theorem;
    display: block;
    margin: 12px 0;
    font-style: italic;
}

.theorem:before {
    content: "Theorem " counter(theorem) ".";
    font-weight: bold;
    font-style: normal;
}

.lemma {
    counter-increment: theorem;
    display: block;
    margin: 12px 0;
    font-style: italic;
}

.lemma:before {
    content: "Lemma " counter(theorem) ".";
    font-weight: bold;
    font-style: normal;
}

.proof {
    display: block;
    margin: 12px 0;
    font-style: normal;
}

.proof:before {
    content: "Proof.";
    font-style: italic;
}

.proof:after {
    content: "\25FB";
    float: right;
}

.definition {
    counter-increment: definition;
    display: block;
    margin: 12px 0;
    font-style: normal;
}

.definition:before {
    content: "Definition " counter(definition) ".";
    font-weight: bold;
    font-style: normal;
}

.author {
    margin-top: 8px;
    margin-bottom: 8px;
    font-variant-caps: small-caps;
    font-family: "GT Cinetype", sans-serif;
    font-size: 27px;
    text-align: center;
}

.nav {
    margin-top: 8px;
    margin-bottom: 8px;
    font-family: "GT Cinetype", sans-serif;
    font-variant-caps: small-caps;
    font-size: 30px;
    text-align: center;
}

.pagination a, a:visited {
    text-decoration: none;
}

.pagination {
    text-align: center;
    font-size: 30px;
}

.paginationText {
    text-align: center;
    font-size: 20px;
}

/* Clap container */
#clap-container {
    position: relative;
    cursor: pointer;
}

#clap-container svg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.8;
    stroke: none;
    overflow: visible !important;
    width: auto;
    height: auto;
}

#clap-container svg g.flat {
    visibility: hidden;
}

#clap-container svg g.outline {
    visibility: visible;
}

#clap-container.clapped svg g.flat {
    visibility: visible;
}

#clap-container.clapped svg g.outline {
    visibility: hidden;
}

#clap-container .count-container {
    position: absolute;
    top: -30%;
    width: 100%;
    color: #F0EAD6;
    user-select: none;
}

#clap-container .count-container .count {
    text-align: center;
    font-size: 0.7em;
}

#clap-container g.sparkle path {
    opacity: 0;
    stroke-width: 0;
}

#clap-container.clap {
    animation-name: pulse;
    animation-duration: 0.5s;
    animation-iteration-count: 1;
}

#clap-container.clap .sparkle path {
    animation-name: spark;
    animation-duration: 0.5s;
    animation-iteration-count: 1;
}

#clap-container.clap .count {
    animation-name: blinkin;
    animation-duration: 0.5s;
    animation-iteration-count: 1;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes spark {
    0% { transform: scale(1); opacity: 0; }
    20% { transform: scale(1.1); opacity: 1; transform: translateY(8px); }
    50% { transform: scale(1.3); transform: translateX(6px); }
    70% { transform: scale(1.1); transform: translateX(-6px); }
    100% { transform: scale(1); transform: translateX(-6px); }
}

@keyframes blinkin {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0; }
}

/* Card styling */
.card {
    width: 95%;
    max-width: 100%;
    border-radius: 20px;
}

.card .card-img {
    width: 100%;
    margin-bottom: 0rem;
}

.card .card-img img {
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.card .card-info {
    font-family: "GT Cinetype", sans-serif;
    color: #F0EAD6;
    padding: 1.5rem;
    padding-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: .5rem;
    border: 1px solid;
    border-top: none;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    position: relative;
}

.card .card-info .card-info-title {
    font-family: "GT Cinetype", sans-serif;
    font-weight: 400;
    font-style: normal;
    width: 100%;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.card .card-info .card-info-title a,
.card .card-info .card-info-title a:visited {
    font-weight: 700;
    font-size: 1.6rem;
    line-height: 1.75rem;
    color: #B1A96E;
    text-decoration: none;
}

.card .card-info .card-info-title a:hover {
    color: #F0EAD6;
}

.card .card-info .card-info-category {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-weight: 600;
}

.card .card-info .card-info-category p {
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 600;
    color: #F0EAD6;
}

.card .card-info .card-info-category ul li {
    list-style: none;
}

.card .card-info .card-info-category ul li a {
    transition-property: background-color, color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
    border-radius: 9999999px;
    font-weight: 600;
    background-color: #F0EAD6;
    color: #212124;
    text-decoration: none;
    display: inline-block;
    width: 100%;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.card .card-info .card-info-category ul li a:hover {
    background-color: #b71c1c;
    color: #F0EAD6;
}

.card-info-date {
    font-size: 1.2rem;
    font-weight: 900;
}

h2.applause {
    text-align: center;
    font-family: "GT Cinetype", sans-serif;
}

h3.post-title {
    font-size: 1.3rem;
}

/* Search box */
.cf:before, .cf:after {
    content: "";
    display: table;
}

.cf:after {
    clear: both;
}

.cf {
    zoom: 1;
}

.form-wrapper {
    width: 100%;
    max-width: 500px;
    margin: 20px auto 40px auto;
    padding: 0;
    display: flex;
    align-items: center;
    background: transparent;
    border: 1px solid rgba(240, 234, 214, 0.3);
    border-radius: 50px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.form-wrapper:focus-within {
    border-color: rgba(240, 234, 214, 0.6);
    box-shadow: 0 0 20px rgba(240, 234, 214, 0.1);
}

.form-wrapper input {
    flex: 1;
    height: 50px;
    padding: 0 25px;
    font: 18px "GT Cinetype", sans-serif;
    font-weight: 400;
    border: 0;
    background: transparent;
    color: #F0EAD6;
}

.form-wrapper input:focus {
    outline: 0;
}

.form-wrapper input::placeholder {
    color: rgba(240, 234, 214, 0.4);
    font-weight: 300;
}

.form-wrapper button {
    border: 0;
    padding: 0 20px;
    cursor: pointer;
    height: 50px;
    font-size: 24px;
    background: transparent;
    color: #F0EAD6;
    transition: all 0.2s ease;
}

.form-wrapper button:hover {
    color: #B1A96E;
    transform: scale(1.1);
}

.form-wrapper button:active,
.form-wrapper button:focus {
    outline: none;
}

.byline p {
    text-align: center;
    color: rgba(240, 234, 214, 0.6);
    font: bold 18px "GT Cinetype", sans-serif;
}

.byline p a {
    color: #F0EAD6;
    text-decoration: none;
}

/* Instant Search Dropdown */
.search-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.search-results {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #2a2622;
    border: 2px solid #B1A96E;
    border-radius: 12px;
    margin-top: 8px;
    max-height: 450px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    text-decoration: none;
    color: #F0EAD6;
    border-bottom: 1px solid #3a3632;
    transition: background 0.15s ease;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: #3a3632;
}

.search-result-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 14px;
    flex-shrink: 0;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-title mark {
    background: #B1A96E;
    color: #231F20;
    padding: 0 2px;
    border-radius: 2px;
}

.search-result-meta {
    font-size: 13px;
    color: rgba(240, 234, 214, 0.6);
}

.search-no-results {
    padding: 20px;
    text-align: center;
    color: rgba(240, 234, 214, 0.6);
    font-size: 15px;
}

/* Search keyboard selection */
.search-result-item.selected {
    background: #3a3632;
    outline: 2px solid #B1A96E;
    outline-offset: -2px;
}

.search-result-img-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    margin-right: 14px;
    flex-shrink: 0;
    background: #3a3632;
}

.search-footer {
    padding: 10px 16px;
    text-align: center;
    font-size: 12px;
    color: rgba(240, 234, 214, 0.5);
    border-top: 1px solid #3a3632;
    background: #252220;
}

.search-footer kbd {
    display: inline-block;
    padding: 2px 6px;
    font-size: 11px;
    font-family: inherit;
    background: #3a3632;
    border-radius: 4px;
    border: 1px solid #4a4642;
    color: #F0EAD6;
}

.search-hint {
    padding: 10px 16px;
    text-align: center;
    font-size: 13px;
    color: rgba(240, 234, 214, 0.4);
}
