/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
    display: block;
}
body {
    line-height: 1;
}
ol, ul {
    list-style: none;
}
blockquote, q {
    quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 1.25rem; /* 25% larger base font size */
}

body {
    font-family: 'degular', sans-serif;
    background: #ffffff;
    min-height: 100vh;
    padding: 2rem;
    color: #1a1a1a;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 3rem;
}

header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
    text-wrap: balance;
}

#scroll-to-bottom {
    color: inherit !important;
    text-decoration: none !important;
}

#scroll-to-bottom:hover {
    color: inherit !important;
    text-decoration: none !important;
}

header h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: #666666;
}

.timing {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 1rem 2rem;
    display: inline-block;
    margin: 0 auto;
}

.timing p {
    font-size: 0.9rem;
    margin: 0.25rem 0;
}

.timing span {
    font-weight: 700;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.location-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    border: 4px solid #dc2626; /* Red border by default */
}

.location-card:hover {
    /* No shadow on hover */
}

.location-link {
    text-decoration: none;
    color: inherit;
    display: block;
    text-align: center;
}

.location-name {
    margin-bottom: 1rem;
    text-align: center;
}

.city {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
}

.country {
    font-size: 1rem;
    font-weight: 400;
    color: #666666;
}

.status {
    margin: 1rem 0;
    text-align: center;
}

.icon {
    font-size: 2.5rem;
    line-height: 1;
}

.location-card.success {
    border-color: #10b981; /* Green border for success */
}

.location-card.success .city,
.location-card.success .country {
    color: #10b981; /* Green text for success */
}

.location-card.success .icon {
    filter: none;
}

.location-card.failure .city,
.location-card.failure .country {
    color: #dc2626;
}

.location-card.failure .icon {
    filter: none;
}

.location-card.has-background {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.location-card.has-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 16px;
    transform: scale(1);
    transition: transform 20s ease;
    z-index: 0;
}

.location-card.has-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    z-index: 1;
    transition: background 3s ease;
}

/* Hover effect to show background image with slow fade and zoom */
.location-card.has-background:has(.person-link:hover)::before {
    background: rgba(255, 255, 255, 0.15);
    transition: background 3s ease;
}

.location-card.has-background:has(.person-link:hover)::after {
    transform: scale(3);
    transition: transform 20s ease;
}

/* Fast return when not hovering */
.location-card.has-background::before {
    transition: background 1s ease;
}

.location-card.has-background::after {
    transition: transform 1s ease;
}

/* Special positioning for different person types */
.location-card.realbrian::after {
    transform-origin: center 30%;
}

.location-card.novelist::after {
    transform-origin: center 25%;
}

.location-card.rugby::after {
    transform-origin: center 43%;
}

.location-card.commentator::after {
    transform-origin: center 60%;
}

.location-card.novelist:has(.person-link:hover)::after {
    transform: scale(3);
    transition: transform 20s ease;
}

.location-card.has-background .location-content {
    position: relative;
    z-index: 2;
}

.location-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.special-note {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.special-note span {
    font-size: 0.9rem;
    color: #dc2626;
    font-weight: normal;
    font-style: italic;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    border: 1px solid #dc2626;
}

.person-link {
    color: #dc2626;
    text-decoration: underline;
    font-weight: 700;
}

.person-link:hover {
    color: #b91c1c;
    text-decoration: underline;
}

.ranking {
    margin-top: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ranking span {
    font-size: 0.85rem;
    font-weight: normal;
    color: white !important;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    border: none;
    transition: all 0.3s ease;
}

.ranking span strong {
    font-weight: 700; /* Ensure strong tags are actually bold */
}

.ranking.first-place span {
    font-size: 1.7rem; /* 2x bigger */
    padding: 0.5rem 1.5rem;
    border-radius: 24px;
}

.ranking.first-place span strong {
    font-weight: 700; /* Ensure first place strong tags are bold too */
}

footer {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

footer p {
    margin: 0.5rem 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

/* Responsive design */
@media (max-width: 768px) {
    body {
        padding: 1rem;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    header h2 {
        font-size: 1.2rem;
    }
    
    .results-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .location-card {
        padding: 1rem;
    }
    
    .city {
        font-size: 1.2rem;
    }
    
    .country {
        font-size: 0.9rem;
    }
}