/* #ff0000 */
body {
    font-family: 'Anuphan', sans-serif;
    background: url('images/background.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #fff;
}

/* CSS for Flexbox layout */
html, body {
    height: 100%; /* ทำให้ HTML และ body มีความสูงเต็มจอ */
    margin: 0;
}

.wrapper {
    display: flex;
    flex-direction: column; /* จัดเรียงองค์ประกอบเป็นคอลัมน์ */
    min-height: 100vh; /* ความสูงขั้นต่ำให้เต็มหน้าจอ */
}

main {
    flex: 1; /* เนื้อหาใน main จะขยายเพื่อเติมเต็มพื้นที่ระหว่าง header และ footer */
}

footer {
    background-color: #dc3545; /* สีแดง (Danger) */
    color: white;
    text-align: center;
    padding: 10px 0;
}




/* navbar */
.navbar-custom {
    background-color: #333;
    border-bottom: 3px solid #ff0000;
}

.navbar-custom .navbar-brand {
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff;
    letter-spacing: 1px;
}

.navbar-custom .navbar-nav .nav-link {
    color: #fff;
    font-size: 1.1rem;
    padding: 14px 20px;
    transition: all 0.3s ease;
}

.navbar-custom .navbar-nav .nav-link:hover {
    color: #ff0000;
    background-color: #444;
    border-radius: 5px;
}

.navbar-custom .navbar-toggler-icon {
    background-color: #fff;
}

.navbar-custom .navbar-collapse {
    justify-content: flex-end;
}

.navbar-custom .nav-item {
    margin-right: 10px;
}

.navbar-custom {
    padding: 10px 20px;
}

/* Styling for logos in navbar */
.navbar-logo {
    width: 50px; /* Adjust size of logo */
    margin: 0 15px; /* Space between logos */
}

.navbar-left {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.navbar-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.navbar-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
/* navbar */

/* Section for sponsors logos */
.sponsors-section {
    margin-top: 50px;
    text-align: center;
}

.sponsors-section h3 {
    font-size: 2rem;
    font-weight: bold;
    color: #ff0000;
    margin-bottom: 20px;
}

.sponsors-logo {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.sponsors-logo img {
    width: 100px; /* Adjust size */
    height: auto;
    object-fit: contain;
    margin: 10px;
}
/* Section for sponsors logos */

/* รับชมนิทรรศการออนไลน์ */
.invite-container {
    text-align: center;
    margin-top: 50px;
}

.invite-container img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.invite-button {
    margin-top: 20px;
}

.invite-button a {
    text-decoration: none;
    background-color: #ff0000;
    color: #fff;
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.2rem;
}

.invite-button a:hover {
    background-color: #cc0000;
}
/* รับชมนิทรรศการออนไลน์ */


.highlight {
    font-size: 1.5em;
    font-weight: bold;
    color: #ff0000;
}

.timeline {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.timeline-item {
    background-color: #dc3545;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.timeline-item:hover {
    transform: scale(1.05);
}

.timeline-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.timeline-content {
    padding: 15px;
    text-align: center;
}

.review-card {
    background-color: #dc3545;
    margin: 10px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
    transition: transform 0.3s ease;
}

.review-card:hover {
    transform: translateY(-10px);
}

.review-card p {
    font-size: 1.2rem;
    font-weight: normal;
}

@keyframes fadeInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.section-title {
    font-size: 2rem;
    font-weight: bold;
    color: #ff0000;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.section-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background-color: #ff0000;
    margin: 10px auto 0;
}

.tiktok-video {
    width: 100%;
    height: 500px;
    margin-bottom: 20px;
}

/* แอนนิเมชั่นเลื่อน */
/* CSS Animation for fadeIn effect */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate {
    opacity: 0;
    animation: fadeIn 1s ease-out forwards; /* เริ่มการแอนิเมชั่นเมื่อปรากฏ */
}

.animate-visible {
    opacity: 1;
    transform: translateY(0);
}
/* แอนนิเมชั่นเลื่อน */




/* about */
.lead{
    color: #1a1a1a;
}


.member-name {
color: #000;
}

.ima-member {
    width: 200px;
object-fit: cover;
}
/* download */
.media-item {
    background-color: #1a1a1a;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.media-item img {
    max-width: 100%;
    border-radius: 10px;
}

.media-item button {
    margin-top: 10px;
}

/* .like-btn {
    color: #fff;
    cursor: pointer;
    font-size: 1.5rem;
}

.like-btn.liked {
    color: #ff0000;
} */

/* download */

/* gmae */
.container {
    max-width: 1200px;
    margin-top: 50px;
}

.game-card {
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
    transition: transform 0.3s;
}

.game-card:hover {
    transform: scale(1.05);
}

.game-card img {
    width: 100%;
    height: auto;
}

.game-card-body {
    padding: 20px;
    text-align: center;
}

.game-card-body h4 {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.btn-play {
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.btn-play:hover {
    background-color: #218838;
}

.section-title {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 50px;
}

.section-title-sbac {
    font-size: 1rem;
    color: #ff0000;
    font-weight: bold;
    text-align: center;
    margin-bottom: 50px;
}

.game-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.game-grid .col-md-4 {
    width: 300px;
}
/* game */

/* timeline */
.activities {
    position: relative;
    max-width: 1000px;
    margin: 50px auto;
    padding: 0 20px;
    color: #ff0000;
}

.activities::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: #ff5733;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
}

.activity-item {
    display: flex;
    align-items: center;
    position: relative;
    margin-bottom: 0px;
}

.activity-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.activity-content {
    background: #ffffff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 45%;
    z-index: 1;
}

.activity-item::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: #ff5733;
    border: 4px solid #ffffff;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.activity-item:nth-child(even)::before {
    left: calc(50% - 10px);
}

.activity-item:nth-child(odd)::before {
    right: calc(50% - 10px);
}

.activity-item:nth-child(even) .activity-content {
    margin-left: 30px;
}

.activity-item:nth-child(odd) .activity-content {
    margin-right: 30px;
}

.activity-content h4 {
    font-size: 1.5rem;
    color: #ff5733;
}

.activity-content p {
    font-size: 1rem;
    margin: 10px 0;
}

.activity-content a {
    display: inline-block;
    margin-top: 10px;
    color: #007bff;
    text-decoration: none;
}

.activity-content a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .activity-item {
        flex-direction: column !important;
    }

    .activity-content {
        max-width: 100%;
        margin: 20px 0 !important;
    }

    .activity-item::before {
        left: 50% !important;
    }
}
/* timeline */

/* comments */
.comments{
    color:#ff0000;
}
.section {
    margin: 40px 0;
}

.post-it-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}
.post-it {
    background: #fffcab;
    border: 2px solid #f6d32d;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2);
    color: #1a1a1a;
    border-radius: 10px;
    width: 250px;
    padding: 20px;
    text-align: center;
    font-size: 1rem;
    line-height: 1.5;
    position: relative;
    opacity: 0; /* ซ่อนก่อน */
    transform: translateY(50px); /* เริ่มต้นเลื่อนลง */
    transition: all 0.6s ease; /* เพิ่มการเคลื่อนไหว */
}

.post-it::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.05);
    clip-path: polygon(100% 0, 100% 100%, 0 0);
}

.post-it h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #ff5733;
}

.post-it p {
    margin: 0;
}

.post-it.show {
    opacity: 1; /* แสดง */
    transform: translateY(0); /* เลื่อนกลับที่เดิม */
}
.credit {
    color: #ff0000;
}
/* comments */

/* topic */
.like-btn {
    cursor: pointer;
    color: #ff0000;
}
.like-btn:hover {
    text-decoration: underline;
}
.form-label{
    color: #ff0000;
}
.topic{
    color: #1a1a1a;
}
/* topic */

/* size.php */
.exhibition-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;
    text-align: center;
}

.exhibition-container h1 {
    margin-bottom: 20px;
    color: #ff0000;
}

.size-title {
    color: #ff0000;
    margin: 20px 0 10px 0;
    font-size: 1.8rem;
    text-align: left;
}

.size-description {
    font-size: 1rem;
    text-align: left;
    margin-bottom: 20px;
    color: #555;
}

.image-card {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.image-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
/* size.php */

/* contact */
.contact{
    color: #000;
}
.contact-head{
    color: #ff0000;
}
/* contact */