

.sec1-bg {background: url(../images/bg-main.jpg); background-size: cover; background-position: top center; background-attachment: fixed;}
.sec2-bg {
    background: url(../images/bg-sec2.jpg);
    background-size: cover;
    background-position: top center;
    margin: 12px;
    width: -webkit-fill-available !important; /* เพิ่ม !important ตรงนี้ */
    border: solid 10px #fff;
}
.sec4-bg {background: url(../images/bg-sec4.jpg); background-size: cover; background-position: top center;}
.sec5-bg {background: url(../images/bg-last.jpg); background-size: cover; background-position: top center; background-attachment: fixed;}
.header {
    font-size: 2.2em;
    font-weight: bold;
    color: #e5c300;
    /* Yellow/gold color for the main title */
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.3;
}

.header span {
    color: #fff;
    /* White for "BACK TO THE BEAT" part */
}

.description {
    font-size: 1.1em;
    margin-bottom: 25px;
    line-height: 1.6;
    color: #e0e0e0;
}

.description strong {
    color: #fff;
    /* White for "มันส์" and "มีสไตล์" */
}

.highlight {
    font-size: 1.3em;
    font-weight: bold;
    color: #ff0099;
    /* Bright pink for key phrases */
    margin-bottom: 25px;
}

.call-to-action {
    font-size: 1.4em;
    font-weight: bold;
    color: #00ffc0;
    /* Bright teal/green for the call to action */
    margin-bottom: 30px;
    background-color: #5b008d;
    /* Purple background for the call to action block */
    padding: 15px 20px;
    border-radius: 10px;
    display: inline-block;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    /* Space between icons */
    flex-wrap: wrap;
    /* Allow icons to wrap on smaller screens */
}

.social-icons a {
    display: block;
    width: 50px;
    /* Size of the social icon background */
    height: 50px;
    background-color: #fff;
    /* Default white background, will be overridden by specific colors */
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2em;
    /* Adjust icon size if using font icons */
    color: #fff;
    /* White icon color */
    text-decoration: none;
    transition: transform 0.2s ease-in-out;
    overflow: hidden;
    /* Hide overflow if image is slightly larger */
}
.toggle-social {cursor: pointer;}
.social-icons a:hover {
    transform: scale(1.1);
}

/* Specific colors for social icons based on the image */
.social-icons .facebook {
    background-color: #1877f2;
}

.social-icons .youtube {
    background-color: #ff0000;
}

.social-icons .instagram {
    background-color: #c13584;
    /* A common Instagram gradient color */
}

.social-icons .twitter {
    background-color: #000;
}

.social-icons .tiktok {
    background-color: #000;
    /* TikTok's dark background */
}

.social-icons .twitch {
    background-color: #6441a5;
}

/* Twitch purple */

/* Using actual icon images or a font icon library (like Font Awesome) would be ideal here */
/* For this example, we'll use placeholder text or simple representations */
.social-icons a::before {
    font-family: 'Font Awesome 5 Brands';
    /* Placeholder for a font icon library */
    content: '';
    /* Placeholder for actual icon content */
    display: inline-block;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.social-icons .facebook::before {
    content: '\f39e';
    font-weight: 900;
}

/* Example for Font Awesome */
.social-icons .youtube::before {
    content: '\f167';
    font-weight: 900;
}

.social-icons .instagram::before {
    content: '\f16d';
    font-weight: 900;
}

.social-icons .twitter::before {
    content: '\e61b';
    font-weight: 900;
}

.social-icons .tiktok::before {
    content: '\e07b';
    font-weight: 900;
}

.social-icons .twitch::before {
    content: '\f1e8';
    font-weight: 900;
}

/* Fallback for simple text if no font icon library is used */
.social-icons .facebook span {
    display: none;
}

.social-icons .youtube span {
    display: none;
}

.social-icons .instagram span {
    display: none;
}

.social-icons .twitter span {
    display: none;
}

.social-icons .tiktok span {
    display: none;
}

.social-icons .twitch span {
    display: none;
}

.section-right-container2 {
    flex: 0.9556;
    border-radius: 24px;
    background-color: #fff;
    border: 6px solid #5143F0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0.75rem;
}

.btn-animate {
    display: inline-block;
    color: white;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-animate:hover {
    transform: translateY(-2px) scale(1.03);
}

/* floating menu */
.social-1 {
    position: absolute;
    top: 0.938rem;
    left: 1rem;
    width: 6.563rem;
}

.spacer {
    align-self: stretch;
    position: relative;
    background-color: #744296;
    height: 0.25rem;
    overflow: hidden;
    flex-shrink: 0;
}

.background-image-icon {
    width: 18.188rem;
    position: absolute;
    margin: 0 !important;
    top: 0rem;
    left: calc(50% - 145.5px);
    max-height: 100%;
    object-fit: cover;
    z-index: 0;
}

.background-image-icon1 {
    width: 18.188rem;
    position: absolute;
    margin: 0 !important;
    bottom: 0rem;
    left: calc(50% - 145.5px);
    max-height: 100%;
    object-fit: contain;
    z-index: 1;
}

.vector-smart-object {
    width: 0.813rem;
    position: relative;
    max-height: 100%;
    object-fit: cover;
}

.icon-container {
    width: 2.188rem;
    height: 2.188rem;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    color: white;
}

.social-text {
    position: relative;
    text-transform: uppercase;
    text-shadow: 0px 0px 2.1px #751ea2;
    color: #fff;
    font-family: Kanit;
    font-size: 0.8rem;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.social-link {
    text-decoration: none;
    align-self: stretch;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    z-index: 2;
    color: inherit;
}

.vector-smart-object-2 {
    width: 1.438rem;
    position: relative;
    max-height: 100%;
    object-fit: cover;
}

.vector-smart-object-4 {
    width: 1.625rem;
    position: relative;
    max-height: 100%;
    object-fit: cover;
}

.layer-30-icon {
    width: 1.25rem;
    position: relative;
    max-height: 100%;
    object-fit: cover;
}

.container2 {
    align-self: stretch;
    background: linear-gradient(180deg, #9c5bc1, #566ac6);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 1rem 0.5rem;
    position: relative;
    gap: 0.5rem;
    overflow: hidden;
    height: 0;
    padding: 0;
    transition: all 1s ease-out;
}

.container2.active {
    padding: 1rem 0.5rem;
    height: 18rem;
    transition: all 1s ease-out;
}

.spacer1 {
    align-self: stretch;
    position: relative;
    background-color: #4c56ae;
    height: 0.25rem;
    overflow: hidden;
    flex-shrink: 0;
}

.container1 {
    align-self: stretch;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.frame {
    width: 8.563rem;
    margin: 0 !important;
    position: fixed;
    left: 26px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    z-index: 6;
    font-size: 1.125rem;
    bottom: 2rem;
}

.greeting-box {
    display: flex;
    border-radius: 24px;
    overflow: hidden;
    border: 6px solid #5143F0;
    /* background: linear-gradient(180deg, #7F62FD 0%, #311FD5 100%); */
    background: url('../images/bg-bt.png') center;
    background-repeat: repeat-x;
    background-size: cover;
    height: 100%;
}

.greeting-message {
    flex: 1;
    background-color: white;
    padding: 15px;
    font-family: 'Kanit', sans-serif;
    height: 120px;
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: center;
    min-height: 150px;
}

.greeting-text {
    margin: 0;
    font-size: 1.2em;
    color: #5143F0;
}

.greeting-name {
    margin: 10px 0 0;
    font-size: 1em;
    color: #ff00ff;
}

.greeting-send-btn {
    /* background: linear-gradient(180deg, #7F62FD 0%, #311FD5 100%); */
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    font-size: 1.5em;
    font-weight: bold;
    font-family: 'Kanit', sans-serif;
    cursor: pointer;
    height: 100%;
}
.greeting-send-btn:hover {
    background-color: #5143F0;
    color: #fff;
    transition: background-color 0.3s ease;
}

.light-sweep {
    margin-top: -8px;
    overflow: hidden;
    position: relative;
}

.lightSweep {
    -moz-animation-timing-function: linear;
    -moz-filter: brightness(2);
    -moz-mask-image: -webkit-linear-gradient(-45deg, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, 0) 60%);
    -moz-mask-size: 300% 200%;
    -moz-transform: translate3d(0, 0, 0);
    -moz-transition: -webkit-mask-position;
    -o-animation-timing-function: linear;
    -o-filter: brightness(2);
    -o-mask-image: -webkit-linear-gradient(-45deg, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, 0) 60%);
    -o-mask-size: 300% 200%;
    -o-transform: translate3d(0, 0, 0);
    -o-transition: -webkit-mask-position;
    -webkit-animation-timing-function: linear;
    -webkit-filter: brightness(2);
    -webkit-mask-image: -webkit-linear-gradient(-45deg, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, 0) 60%);
    -webkit-mask-size: 300% 200%;
    -webkit-transform: translate3d(0, 0, 0);
    -webkit-transition: -webkit-mask-position;
    animation: move 2s ease-out infinite;
    animation-timing-function: linear;
    background: none 0 0/auto repeat scroll padding-box border-box rgba(0, 0, 0, 0);
    bottom: 0;
    filter: brightness(2);
    left: 0;
    mask-image: -webkit-linear-gradient(-45deg, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, 0) 60%);
    mask-size: 300% 200%;
    overflow: hidden;
    position: absolute;
    right: 0;
    top: 0;
    transform: translate3d(0, 0, 0);
    transition: -webkit-mask-position;
    transition-duration: 3s;
}

@keyframes move {
    from {
        -moz-mask-position: 150% 0;
        -o-mask-position: 150% 0;
        -webkit-mask-position: 150% 0;
        mask-position: 150% 0;
    }

    to {
        -moz-mask-position: 0 0;
        -o-mask-position: 0 0;
        -webkit-mask-position: 0 0;
        mask-position: 0 0;
    }
}

.card-shadow {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

.fade-out {
    animation: fadeOut 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}



@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    .header {
        font-size: 1.8em;
    }

    .description {
        font-size: 1em;
    }

    .highlight {
        font-size: 1.1em;
    }

    .call-to-action {
        font-size: 1.2em;
        padding: 10px 15px;
    }

    .social-icons a {
        width: 45px;
        height: 45px;
        font-size: 1.8em;
    }
    .greeting-send-btn {
        width: 100%;
    }
    .greeting-send-btn:hover {
    background-color: #5143F0;
    color: #fff;
    transition: background-color 0.3s ease;
    }
    .sec2-bg {border: 6px solid #fff;}
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
        border-radius: 10px;
    }

    .header {
        font-size: 1.4em;
    }

    .description {
        font-size: 0.9em;
    }

    .highlight {
        font-size: 1em;
    }

    .call-to-action {
        font-size: 1em;
        padding: 8px 12px;
    }

    .social-icons {
        gap: 10px;
    }

    .social-icons a {
        width: 40px;
        height: 40px;
        font-size: 1.6em;
    }
}