body{ width: 100vw; height: 100vh; overflow: hidden; } .container { position: absolute; width: 48%; height: 60%; top: 20%; left: 26%; border-radius: 3vmin; display: none; } .index-page { position: absolute; width: 48%; height: 60%; left: 26%; top: 20%; border-radius: 3vmin; display: none; justify-content: center; align-items: center; z-index: 500; } #logo-index { position: relative; bottom: 3%; width: 15%; } .index-text-box { position: relative; bottom: 3%; max-width: 30%; height: 18%; } .index-text-1 { position: relative; top: 2%; font-size: 3.6vmin; font-weight: 600; text-transform: uppercase; } .index-text-2 { position: relative; bottom: 2%; font-size: 2vmin; text-transform: uppercase; } @keyframes heightSlideUp { 0% { position: relative; height: 60%; opacity: 1; } 100% { position: relative; height: 0; opacity: 1; } } @keyframes heightSlideDown { 0% { position: relative; height: 0%; } 100% { position: relative; height: 60%; } } .index-page-height-slide-up { animation: heightSlideUp 1s ease-in-out forwards; overflow: hidden; /* เพื่อซ่อนเนื้อหาขณะบีบหน้าต่าง */ } .index-page-height-slide-down { animation: heightSlideDown 1s ease-in-out forwards; overflow: hidden; /* เพื่อซ่อนเนื้อหาขณะบีบหน้าต่าง */ } header { width: 100%; height: 18%; display: flex; margin-top: 1%; display: flex; align-items: center; } .box-header-title { width: 38%; height: 100%; display: flex; margin-left: 2%; } .header-icon { width: 25%; height: 100%; display: flex; align-items: center; justify-content: flex-end; } .header-icon i { font-size: 6.5vmin; } .text-header-box { margin-left: 2%; margin-top: 2%; width: 73%; height: 100%; } .title { font-weight: 900; font-size: 4vmin; text-transform: uppercase; } .server-name { position: relative; bottom: 15%; font-size: 2vmin; text-transform: uppercase; } .line-header { width: 0.7%; height: 50%; border-radius: 1vmin; } .nav-menu { width: 55%; height: 70%; border-radius: 1vmin; display: flex; align-items: center; justify-content: center; } .btn { margin-left: 2%; margin-right: 2%; width: 28%; height: 65%; border-radius: 1vmin; display: flex; align-items: center; } .btn-icon-box { margin-left: 3%; width: 3.2vmin; height: 3.2vmin; border-radius: 0.6vmin; display: flex; align-items: center; justify-content: center; } .btn-icon-box i { font-size: 2vmin; } .text-btn-box { margin-left: 4%; width: 58%; height: 100%; } .text-btn-1 { font-weight: 600; font-size: 1.7vmin; } .text-btn-2 { position: relative; bottom: 10%; font-weight: 500; font-size: 1.2vmin; } .box-btn-status { width: 10%; height: 100%; display: flex; align-items: center; } .btn-status { width: 0.6vmin; height: 0.6vmin; border-radius: 50%; } .main { margin-left: auto; margin-right: auto; width: 95%; height: 77%; display: flex; } .left-box { width: 56%; height: 100%; border-radius: 1vmin; display: flex; align-items: center; justify-content: center; } .left-box-fix { width: 99%; height: 99%; overflow-y: scroll; } ::-webkit-scrollbar-track { background-color: none; border: none; width: 0px; height: 0; } ::-webkit-scrollbar { width: 0px; height: 0; } ::-webkit-scrollbar-thumb { width: 0px; height: 0; border-radius: 8px; } .animal-box { margin-top: 0.2%; margin-bottom: 1.5%; width: 100%; height: 18.5%; border-radius: 1vmin; display: flex; align-items: center; } .animal-icon { margin-left: 1.5%; width: 7vmin; height: 7vmin; border-radius: 1vmin; display: flex; align-items: center; justify-content: center; } .animal-icon img { width: 70%; } .fix-box-1 { margin-left: 2%; width: 83%; height: 100%; } .top-box { width: 100%; height: 45%; display: flex; align-items: center; } .animal-name { margin-left: 2%; width: 33.5%; font-size: 2vmin; font-weight: 600; letter-spacing: 0.1vmin; text-transform: uppercase; } .fixed-box { width: 62%; height: 100%; display: flex; align-items: center; justify-content: space-between; } .rarity-box { max-width: 63%; font-size: 1vmin; padding: 0.3vmin 0.3vmin 0.3vmin 0.6vmin; border-radius: 1vmin; display: flex; } .text-rarity { width: 5vmin; opacity: 0.6; display: flex; align-items: center; } .rarity { display: flex; align-items: center; font-size: 0.9vmin; letter-spacing: 0.05vmin; font-weight: 600; padding: 0.2vmin 1vmin 0.2vmin 1vmin; border-radius: 1vmin; } .timer-box { margin-left: 2%; border-radius: 0.6vmin; display: flex; align-items: center; width: 33%; height: 70%; } .timer-icon-box { width: 2.2vmin; height: 2.2vmin; margin-left: 2%; border-radius: 0.6vmin; display: flex; align-items: center; justify-content: center; } .timer-icon-box i { font-size: 1.4vmin; } .timer { margin-left: 3%; font-size: 1.2vmin; width: 60%; text-align: center; } .bottom-box { width: 100%; height: 55%; } .bottom-box-1 { width: 75%; height: 35%; } .progress-bg-box { margin-left: 3%; margin-top: 2%; width: 100%; height: 50%; transform: skewx( -30deg); } .progress-input { width: 70%; height: 100%; } .bottom-box-2 { margin-left: 1%; width: 75%; height: 50%; display: flex; } .text-growing { width: 38%; height: 90%; font-style: italic; text-transform: uppercase; font-size: 1.2vmin; display: flex; align-items: center; margin-left: 1%; } .growing-percent { width: 4vmin; height: 100%; margin-left: 5%; padding-left: 5%; padding-right: 5%; border-radius: 0.6vmin; display: flex; align-items: center; justify-content: center; } .text-stage { position: relative; left: 5%; width: 38%; height: 90%; font-style: italic; text-transform: uppercase; font-size: 1.2vmin; display: flex; align-items: center; margin-left: 1%; } .stage { width: 4vmin; height: 100%; margin-left: 5%; padding-left: 5%; padding-right: 5%; border-radius: 0.6vmin; display: flex; align-items: center; justify-content: center; } .btn-submit-box { float: right; position: relative; bottom: 18%; right: 2%; width: 20%; height: 100%; display: flex; align-items: center; justify-content: center; } .action-btn { width: 98%; height: 75%; border-radius: 0.5vmin; opacity: 0.6; } .action-btn:hover { opacity: 1; } .feed { opacity: 0.9; } .success { opacity: 0.9; } .death { opacity: 0.9; } .text-1 { position: relative; bottom: 5%; text-align: center; width: 100%; font-size: 1.4vmin; font-weight: 600; text-transform: uppercase; } .text-2 { position: relative; bottom: 15%; text-align: center; width: 100%; font-size: 1vmin; text-transform: uppercase; opacity: 0.7; } .empty { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 3vmin; opacity: 0.6; } .empty i { margin-right: 3%; } .progress-dead { width: 100%; } .animal-icon-dead { opacity: 0.7; } .middle { margin-left: 1%; width: 2%; height: 100%; opacity: 0.5; } .middle-line { margin-left: auto; margin-right: auto; width: 15%; height: 45%; } .middle-icon { position: relative; top: 2.5%; font-size: 1.4vmin; } .right-box { position: relative; left: 1%; width: 42%; height: 98%; } .reward-header { width: 100%; height: 8%; display: flex; align-items: flex-end; margin-bottom: 2%; } .reward-icon { width: 10%; height: 100%; display: flex; align-items: center; } .reward-icon i { font-size: 2.8vmin; } .reward-header-title { margin-left: 1%; height: 100%; z-index: 2; font-size: 1.7vmin; border-radius: 0.5vmin; text-transform: uppercase; position: relative; bottom: 6%; } .reward-header-title i { margin-right: 4%; font-size: 1.2vmin; } .description-reward { position: relative; bottom: 8%; font-size: 1.1vmin; opacity: 0.6; } .reward-container { /* margin-top: 2%; */ width: 100%; height: 44%; border-radius: 1vmin; display: flex; align-items: center; justify-content: center; } .reward-container-fixed { width: 98%; height: 95%; overflow-x: scroll; } .reward { margin-top: 2%; margin-left: auto; margin-right: auto; width: 95%; height: 20.6%; border-radius: 0.4vmin; display: flex; } .reward-img-box { margin-left: 2%; width: 4vmin; height: 4vmin; display: flex; align-items: center; justify-content: center; } .reward-img-box img { width: 80%; } .reward-item-name-box { margin-left: 2%; width: 40%; height: 100%; } .reward-item-title { position: relative; top: 8%; font-size: 0.9vmin; opacity: 0.8; } .reward-item-name { position: relative; bottom: 1%; font-size: 1.4vmin; } .reward-count-box { width: 43%; height: 100%; display: flex; align-items: center; justify-content: end; } .reward-count { position: relative; right: 5%; padding: 0.1vmin 1.2vmin 0.1vmin 1.2vmin; font-size: 1.4vmin; border-radius: 1vmin; } .required-container { width: 100%; height: 12%; border-radius: 1vmin; display: flex; align-items: center; overflow-x: scroll; } .required-box { width: 4.5vmin; height: 4.5vmin; border-radius: 1vmin; margin-left: 1%; margin-right: 1%; display: flex; align-items: center; justify-content: center; } .required-img-box { width: 4.5vmin; height: 4.5vmin; display: flex; align-items: center; justify-content: center; } .required-img-box img { width: 80%; } .required-count { position: absolute; margin-bottom: 7%; margin-left: 7%; font-size: 1.1vmin; width: 2vmin; text-align: center; } .submit-container { margin-top: 4%; width: 100%; height: 14%; display: flex; } .limit-container { width: 40%; height: 75%; border-radius: 1vmin; display: flex; align-items: center; } .limit-icon { margin-left: 2.5%; width: 3.5vmin; height: 3.5vmin; border-radius: 1vmin; display: flex; align-items: center; justify-content: center; } .limit-icon i { font-size: 2vmin; } .limit-box { width: 70%; height: 100%; } .limit-text { position: relative; top: 6%; width: 100%; font-size: 1.2vmin; text-align: center; opacity: 0.7; } .limit { position: relative; bottom: 5%; width: 100%; text-align: center; font-size: 1.8vmin; } #add-pets-box { margin-left: 3%; width: 55%; height: 90%; border-radius: 0.5vmin; opacity: 0.9; display: flex; align-items: center; justify-content: center; } #add-pets-box:hover { opacity: 1; } #add-pets-box i { font-size: 2.5vmin; margin-right: 2%; } .pets-text-box { width: 50%; height: 100%; } .pets-text-1 { position: relative; top: 6%; font-size: 2vmin; font-weight: 600; text-align: center; } .pets-text-2 { opacity: 0.7; position: relative; bottom: 6%; font-size: 1.3vmin; text-align: center; } .fade-loop { animation: fadeInOut 1s infinite; /* 2s คือระยะเวลาในการทำงานหนึ่งรอบ */ } @keyframes fadeInOut { 0% { color: red; } 50% { color: white; } 100% { color: red; } } .container-minimal { left: 36%; position: absolute; bottom: 0.5%; width: 28%; height: 13%; border-radius: 1vmin; display: none; } .minimal-header { margin-top: 1%; margin-left: auto; margin-right: auto; width: 40%; height: 18%; border-radius: 2vmin; display: flex; align-items: center; justify-content: space-between; font-size: 1.4vmin; font-weight: 600; } .minimal-main { margin-top: 0.7%; width: 97.5%; height: 73%; margin-left: auto; margin-right: auto; display: flex; align-items: center; justify-content: center; border-radius: 1vmin; } .minimal-box { width: 8vmin; height: 8vmin; border-radius: 1vmin; margin-left: 1%; margin-right: 1%; } .minimal-empty { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; opacity: 0.2; font-size: 1.2vmin; } .minimal-empty i { font-size: 2vmin; } .middle-text { width: 80%; display: flex; align-items: center; justify-content: center; } .minimal-dot { width: 0.35vmin; height: 0.35vmin; border-radius: 50%; } .minimal-grade { margin-top: 5%; max-width: 80%; height: 20%; font-size: 0.9vmin; margin-left: auto; margin-right: auto; text-align: center; border-radius: 1vmin; } .minimal-image-box { width: 100%; height: 56%; display: flex; align-items: center; justify-content: center; } .minimal-image { height: 80%; } .minimal-timer { width: 100%; height: 17%; font-size: 1.1vmin; display: flex; align-items: center; justify-content: center; } .confirm-buy-container { position: absolute; width: 15%; height: 15%; top: 30%; left: 42%; border-radius: 8px; } .confirm-header { margin-left: auto; margin-right: auto; margin-top: 2.5%; width: 95%; height: 25%; border-radius: 0.8vmin; display: flex; align-items: center; justify-content: center; } #confirm-price { font-size: 1.3vmin; } .btn-action { margin-left: auto; margin-right: auto; margin-top: 2.5%; width: 95%; height: 50%; display: flex; align-items: center; justify-content: space-around; } .btn-action-confirm { display: flex; align-items: center; justify-content: center; margin-top: 10%; width: 45%; height: 50%; border-radius: 1vmin; } .btn-action-confirm:hover { }