/* Resetting default styles */ @import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Thai+Looped:wght@100;200;300;400;500;600;700&display=swap'); :root { --background-color: #333; --cta-background-color: #5a5a5a; --cta-button: #fcfcfc; --hover-cta-button: #636262; } * { margin: 0; padding: 0; box-sizing: border-box; font-family: "IBM Plex Sans Thai Looped", sans-serif; font-weight: 300; font-style: normal; } /* Navbar styles */ /* Navbar styles */ .navbar { background-color: var(--background-color); color: #fff; padding: 10px 20px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; display: flex; justify-content: space-between; align-items: center; } .logo { display: flex; align-items: center; } .logo img { width: 20px; /* Adjust the size of the logo image */ height: auto; /* Maintain aspect ratio */ margin-right: 10px; /* Optional: Adjust spacing between logo and text */ } .navbar .open-btn { background-color: #333; border: none; color: white; cursor: pointer; font-size: 1.2rem; padding: 12px 20px; transition: background-color 0.3s; } .navbar .open-btn:hover { background-color: #555; } /* Adjustments for Open/Close state */ .navbar.opened .open-btn { background-color: #555; /* สีพื้นหลังเมื่อ Sidebar เปิด */ } .navbar.opened .open-btn:hover { background-color: #777; /* สีพื้นหลังเมื่อ Hover เมื่อ Sidebar เปิด */ } .sidebar { background-color: #222; height: 100%; width: 250px; position: fixed; top: 0; left: -250px; transition: left 0.3s ease; z-index: 9999; box-shadow: 2px 0 4px rgba(0, 0, 0, 0.1); display: flex; flex-direction: column; align-items: center; padding-top: 80px; /* Adjust this value if your navbar height changes */ } .sidebar a { color: #ccc; font-size: 1.1rem; padding: 15px; text-decoration: none; transition: 0.3s; } .sidebar a img { width: 20px; /* Adjust the width of the icon as needed */ } .sidebar a:hover { background-color: #444; color: #fff; } .sidebar .close-btn { color: #ccc; cursor: pointer; font-size: 1.5rem; padding: 12px; position: absolute; right: 20px; top: 20px; transition: color 0.3s; } .sidebar .close-btn:hover { color: #fff; } .footer { background: var(--background-color); color: #fff; text-align: center; padding: 2rem 1rem; display: flex; flex-direction: column; align-items: center; } .footer .icon { width: 20px; /* Adjust the width of the icon as needed */ } .footer .footer-content { max-width: 1200px; width: 100%; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; } .footer .footer-section { flex: 1; min-width: 200px; } .footer .footer-section h3 { margin-bottom: 1rem; font-size: 1.2rem; } .footer .footer-section p, .footer .footer-section a { font-size: 0.9rem; color: #fff; text-decoration: none; margin-bottom: 0.5rem; display: block; } .footer .footer-section a:hover { text-decoration: underline; } .footer .footer-bottom { text-align: center; margin-top: 1rem; font-size: 0.8rem; color: #bbb; } .main { padding: 20px; text-align: center; background: #fff; margin: 2rem; border-radius: 8px; box-shadow: 0 4px 8px rgba(0,0,0,0.1); margin-top: 7rem; /* กำหนด margin ด้านบน */ } .form { text-align: center; margin-top: 7rem; /* กำหนด margin ด้านบน */ margin-bottom: 7rem; } .main h1 { font-size: 2.5rem; /* ขนาดตัวอักษรของหัวเรื่อง */ color: #333; /* สีตัวอักษร */ margin-bottom: 20px; /* ระยะห่างขอบล่างของหัวเรื่อง */ } .main p { font-size: 1.2rem; /* ขนาดตัวอักษรของย่อหน้า */ color: #666; /* สีตัวอักษร */ line-height: 1.6; /* ระยะห่างระหว่างบรรทัด */ } .main .cta-button { background-color: var(--cta-background-color); color: var(--cta-button); padding: 10px 20px; border: 2px solid var(--cta-background-color); border-radius: 20px; cursor: pointer; font-size: 16px; transition: all 0.3s ease; width: 200px; display: inline-block; text-decoration: none; } .main .cta-button:hover { background-color: var(--hover-cta-button); border-color: var(--hover-cta-button); transform: scale(1.05); } .img { border-radius: 10px; transition: transform 0.3s ease-in-out; } .img:hover { transform: translateY(-5px); } .production { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; } .product { background-color: #fff; border-radius: 8px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); overflow: hidden; } .product-content { padding: 20px; } .product-title { font-size: 1.2rem; font-weight: bold; margin-bottom: 10px; } .product-description { margin-bottom: 10px; } @media only screen and (max-width: 600px) { .production { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); } } @media only screen and (min-width: 992px) { .production { grid-template-columns: repeat(4, 1fr); } } .container { max-width: 1200px; margin: 20px auto; background-color: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); margin-top: 7rem; } .history-item { display: flex; align-items: center; margin-bottom: 20px; } .history-item img { width: 100%; /* ทำให้รูปภาพเต็มความกว้างของ container */ max-width: 1200px; /* ขนาดสูงสุดของรูปภาพ */ height: auto; /* ให้รูปภาพปรับขนาดตามอัตราส่วน */ border-radius: 8px; margin-right: 20px; box-shadow: 0 0 8px rgba(0, 0, 0, 0.2); } .history-item .text { flex: 1; } .history-item h1 { font-size: 2rem; margin-bottom: 10px; color: #333; } .history-item p { font-size: 1rem; line-height: 1.6; color: #666; } /* Media queries for responsive design */ @media (max-width: 768px) { .container { padding: 10px; } .history-item { flex-direction: column; align-items: flex-start; } .history-item img { margin-bottom: 10px; } } @media (min-width: 769px) { .container { padding: 10px; } .history-item { flex-direction: column; align-items: flex-start; } .history-item img { margin-bottom: 10px; } } .breadcrumb { display: flex; flex-wrap: wrap; padding: 0.75rem 1rem; margin-bottom: 1rem; list-style: none; background-color: #e9ecef; border-radius: 0.25rem; } .breadcrumb-item { display: flex; align-items: center; } .breadcrumb-item + .breadcrumb-item::before { content: "/"; padding: 0 0.5rem; color: #6c757d; } .breadcrumb-item a { color: #007bff; text-decoration: none; background-color: transparent; } .breadcrumb-item a:hover { color: #0056b3; text-decoration: underline; } .breadcrumb-item.active { color: #6c757d; } .a { text-decoration: none; } button[type="submit"] { background-color: var(--cta-background-color); color: var(--cta-button); padding: 10px 20px; border: 2px solid var(--cta-background-color); border-radius: 20px; cursor: pointer; font-size: 16px; transition: all 0.3s ease; width: 100%; } button[type="submit"]:hover { background-color: var(--hover-cta-button); border-color: var(--hover-cta-button); transform: scale(1.05); } form { max-width: 500px; margin: 0 auto; background-color: #f9f9f9; padding: 20px; border-radius: 8px; box-shadow: 0 0 20px rgba(0, 0, 0, 0.1); } input[type="text"], input[type="number"], input[type="email"], input[type="password"], textarea { width: 100%; padding: 10px; margin-bottom: 15px; border: 1px solid #2e2d2d; border-radius: 4px; box-sizing: border-box; } input[type="submit"] { background-color: #353535; color: #ffffff; padding: 10px 20px; border: none; border-radius: 4px; cursor: pointer; font-size: 16px; } input[type="submit"]:hover { background-color: #797979; } .g-recaptcha { display: flex; justify-content: center; align-items: center; margin-bottom: 20px; /* Adjust margin as needed */ } .register-link { display: flex; justify-content: space-between; /* แยกไปด้านซ้ายและด้านขวา */ margin-top: 20px; } .register-link p { margin: 10px 0; } .register-link a { color: #7c8794; text-decoration: none; font-weight: bold; } .register-link a:hover { text-decoration: underline; }