/* Fonts */
.sixtyfour-convergence-font {
    font-family: "Sixtyfour Convergence", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings:
        "BLED" 0,
        "SCAN" 0,
        "XELA" 0,
        "YELA" 0;
}

/* Global Styles */

:root {
    --background-html: rgba(0, 0, 0, 0);
    
    --hero-banner-background: #B99682;
    --background-body: #f0f0f0;
    --text-color-body: #000;
    --link-color: #432d2d;
    --header-background: #f9f9f9;
    --header-text-color: #fff; /* Note: This color is used for general header text. */
    --logo-color: #a13e3e;
    --social-icon-color: #333;
    --social-icon-hover-color: #a13e3e; /* This is the same as --logo-color, consider reusing. */
    --qr-image-border-color: #fff; /* This is the same as --header-text-color, consider reusing. */
    --show-background-color: rgb(255, 255, 255);
    --show-border-color: #ccc;
}

@media (prefers-color-scheme: dark) {
    :root {
        --hero-banner-background: #a13e3e;
        --background-body: #121212;
        --text-color-body: #e0e0e0;
        --link-color: #bb86fc;
        --header-background: #1e1e1e;
        --header-text-color: #e0e0e0;
        --logo-color: #cf6679;
        --social-icon-color: #e0e0e0;
        --social-icon-hover-color: #cf6679; /* This is the same as --logo-color, consider reusing. */
        --qr-image-border-color: #1e1e1e;
        --show-background-color: #1e1e1e;
        --show-border-color: #333;
    }
}

* {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

html {
    background: var(--background-html);
    font-family: "Source Sans Pro", sans-serif;
    height: 100%;
    letter-spacing: 1px;
}

html body {
    background: var(--background-body);
    color: var(--text-color-body);
    min-height: 100%;
    -ms-scroll-chaining: none;
    overscroll-behavior: none;
    padding: 0;
    position: relative;
}

html body h1,
html body h2,
html body h3,
html body h4,
html body h5,
html body h6 {
    font-family: "Caveat", cursive;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    margin-top: 0;
}

a,
a:visited,
a:hover,
a:active,
a:focus {
    color: var(--link-color);
    text-decoration: none;
}

a:hover,
a:visited:hover,
a:hover:hover,
a:active:hover,
a:focus:hover {
    text-decoration: underline;
}

/* Header Styles */

header {
    background: var(--header-background);
    color: var(--header-text-color);
    left: 0;
    position: fixed;
    right: 0;
    text-align: center;
    top: 0;
    width: 100%;
    z-index: 1;
}

.logo {
    font-size: 1.8rem;
    margin: 0 auto;
    padding-top: 14px;
    text-align: center;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    margin-bottom: -10px;
    color: var(--logo-color);
    cursor: pointer;
}

/* Main Content Styles */

main {
    padding-top: 50px;
    padding-bottom: 50px;
}

main .main-content {
    margin: 0 auto;
    max-width: 600px;
    padding: 60px 20px 0;
}

.main-content p {
    font-size: .9rem;
}

.center {
    text-align: center;
}

.hero-banner {
    background: var(--hero-banner-background);
    position: relative;
}

.hero-banner .hero-banner-image {
    background: url('./assets/images/hero.png');
    background-position: center center;
    background-repeat: no-repeat;
    min-height: 600px;
    width: 100%;
}

.show-lists {
    margin-top: 50px;
}

.show-image {
    max-height: 300px;
    overflow: hidden;
}

.show-dialog .show-image {
    max-height: none;
    flex-shrink: 1;
}

.show {
    background: var(--show-background-color) !important;
    border: 1px solid var(--show-border-color) !important;
    color: var(--text-color-body) !important;
}

.show-lists .show {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.show-lists .show:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (prefers-color-scheme: dark) {
    .show-lists .show:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    }
}

.show .card__footer {
    border-top: 1px solid var(--show-border-color) !important;
}

.show h2 {
    margin: 0;
}

.social-links {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.social-icon {
    color: var(--social-icon-color);
    margin: 0 1rem;
    transition: color 0.2s ease;
}

.social-icon:hover {
    color: var(--social-icon-hover-color);
}

.qr-img {
    border: 20px solid var(--qr-image-border-color);
}

.card-container {
    max-width: 400px;
    margin: 1rem auto;
    background: var(--show-background-color) !important;
    border: 1px solid var(--show-border-color) !important;
}

.card-container .card__footer {
    border-top: 1px solid var(--show-border-color) !important;
}

.sections-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.support-section {
    flex: 1;
    max-width: 600px;
}

@media (min-width: 768px) {
    .sections-container {
        flex-direction: row;
        justify-content: center;
        align-items: flex-start;
    }
}

.hero-banner-small {
    background: var(--hero-banner-background);
    position: relative;
}

.hero-banner-small .hero-banner-image {
    background: url('./assets/images/hero.png');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
    min-height: 200px;
    width: 100%;
}

/* Dialog Styles */

.show-dialog {
    background: transparent;
    border: none;
    max-width: 90vw;
    max-height: 95vh;
    padding: 0;
    overflow: visible;
}

.show-dialog::backdrop {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

@media (prefers-color-scheme: dark) {
    .show-dialog::backdrop {
        background: rgba(0, 0, 0, 0.85);
    }
}

.show-dialog-content {
    position: relative;
    max-width: 600px;
    max-height: 95vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.show-dialog-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--show-background-color);
    border: 2px solid var(--show-border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    color: var(--text-color-body);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.2s ease;
}

.show-dialog-close::before,
.show-dialog-close::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 2px;
    background: currentColor;
}

.show-dialog-close::before {
    transform: rotate(45deg);
}

.show-dialog-close::after {
    transform: rotate(-45deg);
}

.show-dialog-close:hover {
    background: var(--logo-color);
    color: #fff;
    transform: scale(1.1);
}

.show-dialog .show {
    cursor: default;
    display: flex;
    flex-direction: column;
    max-height: 100%;
    overflow: hidden;
}
