/*
    body ==============================================================================================================================================================
*/

body {
    margin: 0px;
    font-family: 'Times New Roman', 'TH Sarabun', Times, serif, 'Noto Serif Thai', 'Noto Serif';
    font-weight: 300;
}

input {
    font-family: 'Times New Roman', 'TH Sarabun', Times, serif, 'Noto Serif Thai', 'Noto Serif';
    font-weight: 300;
}

button {
    font-family: 'Times New Roman', 'TH Sarabun', Times, serif, 'Noto Serif Thai', 'Noto Serif';
    font-weight: 300;
}

::selection {
    background: var(--primary-mid-1-color-600);
    color: white;
}

body::-webkit-scrollbar {
    width: 10px;
}

body::-webkit-scrollbar-track {
    background-color: var(--gold-tone-1-color);
}

body::-webkit-scrollbar-thumb {
    background-color: var(--gold-tone-3-color);
}

body::-webkit-scrollbar-thumb:hover {
    background-color: var(--gold-tone-2-color);
}







h1,
h2,
h3,
h4,
h5,
p,
a {
    padding: 0;
    margin: 0;
    color: var(--normal-inverse);
}

h1 {
    font-size: 3.5em;
}
h2 {
    font-size: 3em;
}
h3 {
    font-size: 2.5em;
}
h4 {
    font-size: 2em;
}
h5 {
    font-size: 1.75em;
}
p {
    font-size: 1.5em;
}
p a {
    color: #3dab39;
    font-weight: bold;
    font-size: 1em;
}
a {
    color: #3dab39;
    font-weight: bold;
    font-size: 1em;
}

@media (max-width: 1420px) {
    h1 {
        font-size: 2.7em;
    }
    h2 {
        font-size: 2.5em;
    }
    h3 {
        font-size: 2.3em;
    }
    h4 {
        font-size: 2.0em;
    }
    h5 {
        font-size: 1.7em;
    }
    
    p {
        font-size: 1.2em;
    }
    a {
        font-size: 1.2em;
    }
}

section {
    padding: 20px;
}

/*
    bg ==============================================================================================================================================================
*/

/* Background styles - Only for home page */
body {
    background-image: url('https://cdn.rldragon.cc/images/backgrounds/DSC_0070.JPG');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Remove background-attachment: fixed for iOS compatibility */
    
    min-height: 100vh;
    position: relative;
}

/* Alternative approach for fixed background effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://cdn.rldragon.cc/images/backgrounds/DSC_0070.JPG');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
}

/* Background overlay for better readability */
body::after {
    content: '';
    position: fixed;
    
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--glassy-effect);

    z-index: -1;
    pointer-events: none;
}

/* iOS specific fix */
@supports (-webkit-touch-callout: none) {
    body {
        background-attachment: scroll;
    }
}

