.case-section-wrapper { background-color: #1a1a1a; border: 2px solid #444; border-radius: 20px; padding: 40px; max-width: 1200px; width: 100%; margin: 0 auto; box-shadow: 0 0 30px rgba(0, 0, 0, 0.6); position: relative; } .items-view-wrapper { position: relative; overflow: hidden; height: 250px; margin-bottom: 30px; } .middle-line { position: absolute; top: 0; left: 50%; left: calc(50% + 9px); transform: translateX(-50%); width: 0; height: 100%; display: flex; flex-direction: column; justify-content: space-between; align-items: center; pointer-events: none; z-index: 10; } .middle-line::before, .middle-line::after { content: ''; display: block; width: 0; height: 0; border-left: 10px solid transparent; border-right: 10px solid transparent; } /* ลูกศรข้างบน ชี้ลง */ .middle-line::before { border-top: 15px solid red; } /* ลูกศรข้างล่าง ชี้ขึ้น */ .middle-line::after { border-bottom: 15px solid red; } #items-container { display: flex; gap: 20px; align-items: center; position: absolute; top: 50%; transform: translate(calc(-50% + 20px), -50%); } .item { width: 140px; height: 200px; border-radius: 12px; background: linear-gradient(to bottom, #1a1a1a, #222); padding: 10px; text-align: center; flex-shrink: 0; box-shadow: 0 0 10px rgba(0, 0, 0, 0.3); } .item img { width: 100%; height: 100px; object-fit: contain; margin-bottom: 8px; } .item.common { border: 2px solid gray; } .item.rare { border: 2px solid deepskyblue; } .item.epic { border: 2px solid purple; } .item.legendary { border: 2px solid orange; } #openBtn, #openTenBtn, #openFiveBtn { display: inline-block; margin: 0 10px 20px 10px; /* ซ้าย-ขวา = 10px, ด้านล่าง = 20px */ padding: 10px 30px; font-size: 18px; background-color: #e0a800; border: none; border-radius: 8px; color: #000; cursor: pointer; font-weight: bold; text-align: center; } .button-wrapper { text-align: center; margin-top: 20px; } #openBtn:disabled, #openTenBtn:disabled, #openFiveBtn:disabled { background-color: #888; cursor: not-allowed; } #detail-box { margin-top: 15px; text-align: center; color: #fff; font-size: 16px; background-color: rgba(255, 255, 255, 0.05); padding: 10px 20px; border-radius: 10px; max-width: 500px; margin-left: auto; margin-right: auto; box-shadow: 0 0 10px rgba(255, 255, 255, 0.1); } #result img { width: 200px; height: auto; margin-top: 10px; border-radius: 12px; box-shadow: 0 0 20px rgba(255, 255, 255, 0.3); animation: zoomIn 0.5s ease-out; } #result { margin-top: 20px; font-size: 20px; } #reward { margin-top: 10px; } @keyframes zoomIn { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } } .item.expanded { transform-origin: center center; transform: scale(1.0); z-index: 10; box-shadow: 0 0 20px rgba(255, 255, 255, 0.7); transition: transform 0.5s ease; } .popup-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6); display: none; justify-content: center; align-items: center; z-index: 9999; } .popup-content { background: #0F0D0D; padding: 20px; border-radius: 12px; max-width: 500px; width: 90%; position: relative; color: #eee; box-shadow: 0 0 15px rgba(255, 255, 255, 0.1); font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; overflow-y: auto; max-height: 90vh; } .close-btn { position: absolute; top: 10px; right: 15px; font-size: 24px; cursor: pointer; color: #aaa; transition: color 0.2s ease; } .close-btn:hover { color: #fff; } .popup-table { width: 100%; border-collapse: collapse; margin-top: 10px; } .popup-table td, .popup-table th { padding: 8px 10px; border-bottom: 1px solid #444; vertical-align: middle; color: #ddd; font-size: 14px; } .popup-table th { font-weight: bold; background-color: #313131; color: #ccc; } .popup-table td:first-child { font-weight: bold; width: 40%; color: #bbb; } .text-danger { color: #ff4d4d; text-align: center; font-weight: 600; padding-top: 10px; } .reward-table-wrapper { max-height: 240px; overflow-y: auto; margin: 0 auto; border-radius: 8px; padding: 8px; box-sizing: border-box; background-color: #211E1F; box-shadow: 0 0 8px rgba(0, 0, 0, 0.4); } .reward-table-wrapper::-webkit-scrollbar { width: 6px; } .reward-table-wrapper::-webkit-scrollbar-thumb { background-color: rgba(255, 255, 255, 0.4); border-radius: 4px; } .reward-table-wrapper::-webkit-scrollbar-thumb:hover { background-color: rgba(255, 255, 255, 0.6); } .reward-table img { width: 50px; height: 50px; object-fit: contain; } .info-table { max-width: 100%; margin: 0 auto; table-layout: fixed; } .info-table td { padding: 8px 10px; vertical-align: top; font-size: 14px; color: #ddd; word-break: break-word; } .info-table td:first-child { width: 45%; font-weight: 600; color: #bbb; } .btn-show-detail { margin-top: 10px; background-color: rgb(194, 72, 73); color: white; border: none; padding: 10px 16px; border-radius: 6px; cursor: pointer; font-weight: 600; box-shadow: rgba(172, 62, 63, 0.3) 0px 10px 18px 0px; transition: background-color 0.3s ease; } .btn-show-detail:hover { background-color: rgb(172, 62, 63); } /* Overlay popup */ .popup-overlay-rewards { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); display: none; justify-content: center; align-items: center; z-index: 9999; } /* กล่อง popup */ .popup-overlay-rewards .popup-content { background-color: #222; color: #fff; border-radius: 8px; padding: 20px; max-width: 500px; max-height: 80vh; overflow-y: auto; box-shadow: 0 0 15px rgba(255, 255, 255, 0.1); position: relative; text-align: center; } /* ปุ่มปิด X */ .popup-overlay-rewards .close-btn { position: absolute; top: 10px; right: 15px; font-size: 28px; color: #fff; cursor: pointer; } /* ปิดปุ่มล่าง */ .popup-overlay-rewards .close-popup-btn { padding: 8px 16px; margin-top: 10px; background-color: #e0a800; border: none; border-radius: 6px; font-weight: bold; cursor: pointer; color: #000; } /* กรณี 1 ชิ้น */ #popup-rewards-container.single { display: flex; flex-direction: column; align-items: center; justify-content: center; } #popup-rewards-container.single img { width: 120px; height: 120px; object-fit: contain; margin-bottom: 10px; } #popup-rewards-container.single .item-name { font-size: 18px; font-weight: bold; margin-top: 6px; } /* กรณีหลายชิ้น */ #popup-rewards-container.multiple { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; } .reward-item { display: flex; flex-direction: column; align-items: center; background-color: #333; padding: 8px; border-radius: 6px; width: 80px; } .reward-item img { width: 60px; height: 60px; object-fit: contain; border-radius: 6px; } .reward-item .item-name { margin-top: 4px; font-size: 13px; } .reward-item.common { border: 2px solid gray; } .reward-item.rare { border: 2px solid deepskyblue; } .reward-item.epic { border: 2px solid purple; } .reward-item.legendary { border: 2px solid orange; } #skipBtn { background-color: #ff9800; color: #0F0D0D; padding: 8px 16px; margin-left: 10px; border: none; border-radius: 6px; cursor: pointer; font-weight: bold; transition: background-color 0.2s ease; } #skipBtn:hover { background-color: #e68900; } body.blur-background>*:not(#pointtime-popup) { filter: blur(6px); user-select: none; pointer-events: none; } .popup-overlay-pointtime { display: none; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0, 0, 0, 0.6); justify-content: center; align-items: center; z-index: 1050; backdrop-filter: blur(4px); animation: fadeInOverlay 0.25s ease forwards; } .popup-content-pointtime { background: #1e1e1e; padding: 24px 32px; border-radius: 14px; width: 90%; max-width: 420px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6); text-align: center; color: #f0f0f0; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; animation: scaleUp 0.25s ease forwards; word-wrap: break-word; line-height: 1.5; } .popup-title-pointtime { font-size: 1.4rem; margin-bottom: 20px; font-weight: bold; color: #fff; letter-spacing: 0.04em; text-transform: uppercase; } #pointtime-popup-message { font-size: 1rem; margin-bottom: 30px; color: #ccc; } #pointtime-popup-close { margin-top: 12px; background-color: #d44343; color: white; border: none; padding: 10px 20px; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 0.95rem; transition: background-color 0.2s ease; box-shadow: 0 6px 12px rgba(212, 67, 67, 0.3); } #pointtime-popup-close:hover { background-color: #bb3838; } /* Optional animations */ @keyframes fadeInOverlay { from { opacity: 0; } to { opacity: 1; } } @keyframes scaleUp { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }