/**
 * GiftCodeNgon - Base Styles
 * 
 * Typography, body, scrollbar, and reset styles
 * @version 1.4.0
 */

/* ========================================
   RESET & BASE
   ======================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    font-size: var(--text-base);
    font-weight: var(--font-normal);
    line-height: var(--leading-normal);
    color: var(--color-text-primary);
    background-color: var(--color-dark) !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    margin-bottom: var(--space-4);
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
    color: var(--color-text-primary);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

h1 {
    font-size: var(--text-4xl);
}

h2 {
    font-size: var(--text-2xl);
}

h3 {
    font-size: var(--text-xl);
}

h4 {
    font-size: var(--text-lg);
}

h5 {
    font-size: var(--text-base);
}

h6 {
    font-size: var(--text-sm);
}

p {
    margin-top: 0;
    margin-bottom: var(--space-4);
    color: var(--color-text-secondary);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

a:hover {
    color: var(--color-primary-hover);
}

strong,
b {
    font-weight: var(--font-semibold);
}

small {
    font-size: var(--text-sm);
}

/* ========================================
   LISTS
   ======================================== */

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* ========================================
   IMAGES
   ======================================== */

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   TABLES - Mobile Fix
   ======================================== */

table {
    max-width: 100%;
    overflow-x: auto;
    display: block;
}

/* ========================================
   FORMS
   ======================================== */

input,
textarea,
select,
button {
    font-family: inherit;
    font-size: inherit;
    max-width: 100%;
}

input:focus,
textarea:focus,
select:focus,
button:focus {
    outline: none;
}

/* ========================================
   CUSTOM SCROLLBAR
   ======================================== */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--color-surface);
    border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-surface-hover);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--color-surface) var(--color-dark);
}

/* ========================================
   SELECTION
   ======================================== */

::selection {
    background-color: var(--color-primary);
    color: white;
}

/* ========================================
   CONTAINER
   ======================================== */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-4);
    padding-right: var(--space-4);
    overflow-x: hidden;
}

/* ========================================
   MAIN CONTENT WRAPPER
   ======================================== */

.site-content {
    overflow-x: hidden;
}

.main-column {
    min-width: 0;
    /* Fix for flexbox/grid overflow */
    overflow-x: hidden;
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ========================================
   MOBILE OVERFLOW FIX
   ======================================== */

@media (max-width: 768px) {
    * {
        max-width: 100%;
    }

    pre,
    code {
        white-space: pre-wrap;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    iframe,
    video,
    embed,
    object {
        max-width: 100%;
    }
}