# ConNEXT Living — Global CSS

```css
@font-face {
    font-family: 'Anuphan';
    src: url('path/to/fonts/Anuphan-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Anuphan';
    src: url('path/to/fonts/Anuphan-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Anuphan';
    src: url('path/to/fonts/Anuphan-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Anuphan';
    src: url('path/to/fonts/Anuphan-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Anuphan';
    src: url('path/to/fonts/Anuphan-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Anuphan';
    src: url('path/to/fonts/Anuphan-ExtraLight.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
}

@font-face {
    font-family: 'Anuphan';
    src: url('path/to/fonts/Anuphan-Thin.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
}

body {
    font-family: 'Anuphan', sans-serif;
}

/* ส่วน Header Bar */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

/* ส่วน video */
.video-classes {
    max-width: 1830px !important;
    width: 100% !important;
    height: auto !important;
}

/* ส่วน Modal ที่ขึ้นมาจาก plan บ้าน */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    padding: 20px;
    width: 100%;
    max-width: 600px;
    position: absolute;
    animation: slideDown 0.3s;
}

@keyframes slideDown {
    from { transform: translateY(-30%); }
    to { transform: translateY(0); }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.center-header-image {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.center-header-image h1 {
    margin-right: 10px;
}

.center-header-image img {
    width: 40%;
}

/* ส่วน Footer */
.image-widget {
    position: relative;
    height: 100%;
    z-index: 10;
}

.image-widget img {
    width: 100%;
    height: auto;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.image-widget.fade-up img {
    opacity: 1;
    transform: translateY(0);
}

.footer-custom {
    padding: 20px;
    border-radius: 10px;
    color: white;
    text-align: start;
    margin-bottom: 50px;
    font-size: smaller;
}

.footer-custom a {
    color: white;
    text-decoration: none;
}

.footer-custom a:hover {
    text-decoration: underline;
}

.footer-custom h4 {
    margin-top: 0px;
    color: white;
    text-align: center;
}

.footer-custom ul {
    list-style-type: disc;
    padding-left: 20px;
}

.footer-custom ul li {
    margin: 5px 0;
}

.footer-custom ul li a {
    color: white;
    text-decoration: none;
}

.social-links {
    padding: 20px;
    border-radius: 10px;
    color: white;
    text-align: start;
    margin-bottom: 50px;
    font-size: smaller;
}

.social-links h4 {
    margin-top: 0px;
    color: white;
}

.social-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.social-links ul li {
    margin: 0px 0;
    display: flex;
    align-items: center;
}

.social-links ul li a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    font-size: 18px;
}

.social-links ul li .fa {
    font-size: 24px;
    margin-right: 8px;
}

.social-links ul li .icon-box {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    align-self: center;
    justify-content: center;
    border-radius: 50%;
    background-color: white;
    color: var(--e-global-color-primary);
    margin-right: 5px;
}

.social-links ul li span {
    font-size: 16px;
}

/* ส่วนแปลภาษา switcher */
.trp-ls-shortcode-current-language {
    background-color: transparent;
}

.trp-language-switcher {
    width: auto !important;
    margin: 0px;
    height: auto;
}

.trp-language-switcher > div {
    border-radius: 20px;
    margin: 0px;
    height: auto;
    background-color: transparent;
    padding: 0px !important;
    border-color: white;
    background-position: calc(100% - 20px) calc(0.9em), calc(100% - 3px) calc(1em + 0px);
}

.trp-language-switcher > div > a.trp-ls-shortcode-disabled-language {
    color: #ffffff !important;
    font-size: 14px;
}

.trp-language-switcher > div > a > img {
    display: inline;
    margin: 0 3px;
    width: 16px;
    height: 16px;
    border-radius: 50px;
}

.floating-button {
    text-align: end !important;
    align-items: end !important;
    align-content: end !important;
    margin-right: 0px !important;
}

/* ส่วน form ดาวน์โหลด catalog */
.container {
    flex-direction: column;
    align-items: center;
}

.form-container {
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
}

#myForm input[type='text'],
#myForm input[type='tel'],
#myForm input[type='line'] {
    width: calc(100%);
    border-radius: 10px;
    margin-bottom: 10px;
}

#myForm button[type='submit'] {
    width: 100%;
    background-color: #6E3FE3;
    color: #fff;
    border: none;
    border-radius: 10px;
    margin-top: 20px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#myForm button[type='submit']:hover {
    background-color: #FAE816;
}

#dialog {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border: 2px solid #6E3FE3;
    border-radius: 10px;
    z-index: 1000;
}

#dialog button {
    background-color: #6E3FE3;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    width: 100%;
}

#dialog button:hover {
    background-color: #face41;
}

/* ส่วนปุ่ม back to top */
.ast-scroll-top-icon .ast-scroll-to-top-right {
    background-color: #ffffff !important;
    color: var(--ast-global-color-0) !important;
    font-size: 12px !important;
    width: 20px !important;
    height: 20px !important;
}

/* responsive เฉพาะใน mobile */
@media (max-width: 768px) {

    /* ส่วนแปลภาษา switcher */
    .trp-language-switcher > div {
        border-radius: 20px;
        margin: 0px;
        height: auto;
        background-color: transparent;
        padding: 0px !important;
        border-color: white;
        background-position: calc(100% - 20px) calc(1em), calc(100% - 3px) calc(1em + 0px);
    }

    .trp-language-switcher > div > a.trp-ls-shortcode-disabled-language {
        color: #ffffff !important;
        font-size: 14px;
        padding: 2px 5px 2px 5px;
    }

    .trp-language-switcher .trp-ls-shortcode-language {
        font-size: 14px;
    }

    .trp-language-switcher > div > a > img {
        display: inline;
        margin: 0 3px;
        width: 16px;
        height: 16px;
        border-radius: 50px;
    }

    /* ส่วน footer */
    .icon-box {
        width: 20px;
        height: 20px;
        margin: 3px;
    }

    .footer-custom {
        margin-top: 0;
        padding: 10px;
        margin-bottom: 0px;
        font-size: smaller;
    }

    .footer-custom ul {
        list-style-type: disc;
        padding-left: 0px;
    }

    .social-links {
        padding: 10px;
        border-radius: 10px;
        color: white;
        text-align: start;
        font-size: smaller;
    }

    .site-content {
        margin-top: 0px;
    }

    .form-container {
        width: 100%;
        padding-left: 10px;
        padding-right: 10px;
    }
}
```
