@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@400&display=swap'); * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Prompt', sans-serif; -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; /* font-size: 25px; */ color: whitesmoke; text-shadow: 1px 1px 3px black; } *::-webkit-scrollbar { display: none; } .box-check { width: 1000px; height: 600px; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); } .box-check h1, .box-sell h1 { text-align: center; } .grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr; justify-items: center; align-items: center; column-gap: 0px; row-gap: 12px; padding: 10px; } .container { width: 100%; height: 90%; /* กำหนดความสูงเพื่อให้มันเลื่อนได้ */ overflow-x: hidden; overflow-y: scroll; position: relative; } #my-scrollbar #col { margin: auto; } .item { width: 150px; height: auto; padding: 10px; box-sizing: border-box; text-align: center; color: #ffffff; will-change: transform; transition: transform 450ms; } .item #check-name { font-size: 18px; font-weight: 600; } .item img { width: 95px; height: auto; } .item #check-price { font-size: 15px; font-weight: 600; position: relative; /* bottom: 1rem; */ } /* Sell */ .box-sell { width: 1000px; height: 600px; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); } .sell-count, .sell-submit { display: flex; justify-content: space-around; } .sell-count a { text-decoration: none; } .count-num { background-color: #5a5959e7; width: 55px; border-radius: 30px; } .sell-count button { background-color: #5a5959e7; background-repeat: no-repeat; border: none; } .minus, .plus { width: 23px; height: 23px; border-radius: 50%; transition: all 0.4s ease-out; } .minus:hover { background-color: red; } .plus:hover { background-color: green; } .sell-submit { margin-top: 10px; } .sell-all { background-color: #595a59e7; background-repeat: no-repeat; border: unset; width: 65px; /* height: 23px; */ font-size: 12px; border-radius: 5px; transition: all 0.4s ease-out; } .sell { background-color: #595a59e7; background-repeat: no-repeat; border: unset; width: 48px; /* height: 23px; */ font-size: 12px; border-radius: 5px; transition: all 0.4s ease-out; } .sell-all:hover { background-color: rgb(214, 230, 0); } .sell:hover { background-color: green; } #announce { transform: translate(-50%, -50%); /* background: linear-gradient(90deg, rgba(0, 0, 0, 0.0) 0%, rgba(0, 0, 0, 0.892) 40%, rgba(0, 0, 0, 0) 100%); */ } .ann-center { width: 600px; height: auto; position: absolute; top: 10%; left: 50%; } .ann-right { width: 600px; height: auto; position: absolute; top: 10%; left: 80%; } .ann-left { width: 600px; height: auto; position: absolute; top: 10%; left: 20%; } #announce h3 { text-align: center; color: #f7e600e7; } #announce #des { text-align: center; }