.square { position: relative; display: flex; justify-content: center; align-items: center; } @media (max-width: 400px) { .square { position: relative; width: 100%; max-width: 550px; border-radius: 15px; overflow: hidden; box-shadow: 0 4px 20px rgb(0, 0, 0); transition: box-shadow 0.3s ease; } } .square i { position: absolute; inset: 0; border: 2px solid #fff; transition: 0.5s; } .square i:nth-child(1) { border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%; animation: animate 6s linear infinite; } .square i:nth-child(2) { border-radius: 41% 44% 56% 59%/38% 62% 63% 37%; animation: animate 4s linear infinite; } .square i:nth-child(3) { border-radius: 41% 44% 56% 59%/38% 62% 63% 37%; animation: animate2 10s linear infinite; } .square:hover i { border: 6px solid var(--clr); filter: drop-shadow(0 0 20px var(--clr)); } @keyframes animate { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } @keyframes animate2 { 0% { transform: rotate(360deg); } 100% { transform: rotate(0deg); } } * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Mali', sans-serif } @font-face { font-family: 'Kanit Rounded'; src: url('path-to-font-file/Kanit-Rounded.ttf') format('truetype'); } body { margin: 0; height: 100vh; background: url('../image/fg.webp') no-repeat center center fixed; background-size: cover; display: flex; justify-content: center; align-items: center; overflow: hidden; } @media (max-width: 400px) { body { padding-top: 20px; padding-bottom: 50px; top: 10px; overflow: auto; justify-content: flex-start; align-items: flex-start; overflow: hidden; overflow-y: auto; } } body::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(10px); z-index: -1; } .snowflake { position: absolute; color: #fff; font-size: 14px; pointer-events: none; animation: fadeOut 1.5s ease-out forwards; } @keyframes fadeOut { 100% { opacity: 0; transform: translateY(-15px) scale(0.8); } } .profile-container { position: relative; background: linear-gradient(135deg, #200000, #000000); width: 100%; max-width: 550px; border-radius: 15px; overflow: hidden; box-shadow: 0 4px 20px rgb(0, 0, 0); border: 2px solid #cccccc; transition: box-shadow 0.3s ease; } .profile-container:hover { box-shadow: 0 4px 50px rgba(255, 255, 0, 0.753), } .banner { height: 150px; background-image: url('../image/banner.gif'); background-size: cover; background-position: center; } .profile-info { text-align: center; padding: 20px; position: relative; } .profile-pic { width: 120px; height: 120px; border-radius: 50%; border: 4px solid rgb(255, 255, 255); background-image: url('../image/d.webp'); background-size: cover; background-position: center; position: absolute; top: -60px; left: 50%; transform: translateX(-50%); } .profile-frame { width: 155px; height: 130px; background-image: url('../image/profile.png'); background-size: cover; background-position: center; position: absolute; top: -64px; left: 50%; transform: translateX(-50%); } .profile-frame-banner { width: 569px; height: 240%; background-image: url('../image/intro.png'); background-size: cover; background-position: center; position: absolute; top: -153px; left: 50%; border-radius: 15px; transform: translateX(-50%); z-index: 9999; opacity: 0; transition: opacity 2s ease-in-out; display: none; } .profile-name { color: #ffffff; font-size: 24px; font-weight: bold; margin-top: 70px; } .profile-description { font-size: 16px; margin-top: 5px; color: rgb(242, 101, 255); font-size: 24px; } .social-icons { margin-top: 15px; } .card-container { display: flex; justify-content: space-between; margin-top: px; padding: 0 20px; } .card-container { display: flex; gap: 15px; } .card { display: flex; align-items: center; background-color: #1c1c1c; border-radius: 10px; padding: 10px 15px; color: #ffffff; text-decoration: none; width: 250%; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); } .card img { width: 30px; height: 30px; margin-right: 10px; } .card .content { display: flex; flex-direction: column; } .card .title { font-size: 14px; font-weight: bold; } .card .link { color: #bbbbbb; text-decoration: none; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; /* ไม่ให้มีเส้นลิงค์ */ } .card .link:hover { text-decoration: none; /* ป้องกันเส้นใต้เมื่อเม้าส์ชี้ไป */ } .card::after { content: '→'; margin-left: auto; font-size: 16px; color: #888888; } .card { background-color: #120d08; width: 48%; padding: 15px; color: white; border-radius: 10px; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); text-align: center; transition: transform 0.3s ease, box-shadow 0.3s ease; border: 1px solid #ffffff; } .card .title, .card .link { font-size: 14px; font-weight: bold; text-align: left; width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: width 0.3s ease; } .profile-bor { content: ''; position: absolute; bottom: 0; left: 0px; position: absolute; width: 100%; height: 2px; top: 0px; background-color: white; } .card:hover { transform: perspective(600px) rotateX(10deg) rotateY(10deg); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); } .favorite-songs { text-align: center; font-size: 18px; color: #ffffff; margin-top: 20px; padding-bottom: 20px; } .card-song { display: flex; align-items: center; justify-content: center; height: 50px; width: 100%; border: 1px solid #ffffff; border-radius: 10px; background-color: #120d08; } @media screen and (max-width: 600px) { .card-container { flex-direction: column; align-items: center; } .card { width: 100%; } } .player-container { display: flex; flex-direction: column; align-items: center; background: #333; padding: 20px; border-radius: 10px; width: 80%; max-width: 500px; margin: auto; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); } iframe { position: absolute; top: -9999px; /* ซ่อน iframe */ } .controls { display: flex; gap: 10px; margin-top: 10px; } button { background-color: #ff4444; color: white; border: none; padding: 10px 15px; border-radius: 5px; cursor: pointer; font-size: 16px; } button:hover { background-color: #cc0000; } #progressBar { width: 100%; height: 10px; background: linear-gradient(135deg, #000000, #999); border-radius: 5px; overflow: hidden; } #progress { height: 100%; background: linear-gradient(135deg, #eeff00, #33ff00); width: 0%; transition: width 0.1s; } .volume-container { display: flex; align-items: center; gap: 5px; margin-top: 10px; } .volume-container span { font-size: 14px; } .progress-container { width: 95%; background: #555; height: 10px; border-radius: 5px; overflow: hidden; margin-top: 8px; } .time-container { display: flex; align-items: center; justify-content: center; margin-top: 6px; color: white; } .card-progress { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 70px; width: 100%; border: 1px solid #ffffff; border-radius: 10px; background-color: #120d08; } #playPauseBtn { position: absolute; top: 3%; left: 5px; background: none; color: #120d08; border: none; padding: 0px 2px; border-radius: 5px; cursor: pointer; } .volume-buttons { position: absolute; top: 5px; right: 5px; } .volume-buttons button { background: none; color: #120d08; border: none; padding: 5px 0px; border-radius: 5px; cursor: pointer; margin-left: 5px; } .favorite-songs { font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; max-width: 400px; min-width: 100px; text-align: center; color: white; transition: max-width 0.5s ease; } .social-icons a { text-decoration: none; margin: 0 10px; font-size: 24px; color: #666; } .icon-item { position: relative; display: inline-block; } .icon-item img { display: block; width: 30px; height: 30px; cursor: pointer; } .tooltip { visibility: hidden; background-color: rgba(0, 0, 0, 0.7); color: #fff; text-align: center; border-radius: 5px; padding: 5px; position: absolute; bottom: 120%; left: 50%; transform: translateX(-50%); white-space: nowrap; z-index: 1; font-size: 12px; } .tooltip::after { content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border-width: 5px; border-style: solid; border-color: rgba(0, 0, 0, 0.7) transparent transparent transparent; } .icon-item:hover .tooltip { visibility: visible; } .bor { content: ''; position: absolute; top: 231px; left: 10px; width: 97%; height: 2px; background-color: white; } .card-container-song { position: relative; } .bor-ste { content: ''; position: absolute; top: -22px; left: 10px; width: 97%; height: 2px; background-color: white; z-index: 9999; } .card-container-song { display: flex; justify-content: space-between; margin-top: px; padding: 0 20px; } .card-ste { position: relative; display: flex; flex-direction: row; align-items: center; justify-content: flex-start; height: 100px; width: 100%; border: 1px solid #ffffff; border-radius: 10px; background-color: #120d08; } .image-ste { width: 93px; height: 93px; color: rgb(18, 13, 8); cursor: pointer; background: none; border-width: initial; border-style: none; border-color: initial; border-image: initial; padding: 0px 2px; border-radius: 13px; object-fit: cover; object-position: center; } .content-ste { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 2px 10px; margin-left: 0px; } .name-ste { font-size: 13px; font-weight: bold; color: #ffffff; margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ste-buttons { position: absolute; top: 5px; right: 5px; display: flex; flex-direction: column; } .ste-buttons button { background: linear-gradient(135deg, #000000, #999); color: #ffffff; border: none; top: 10px; padding: 5px 10px; border-radius: 5px; cursor: pointer; margin-top: 7px; margin-bottom: 5px; } .profile-name { font-size: 25px; width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; /* ป้องกันการตัดข้อความในบรรทัดเดียว */ display: inline-block; /* หรือ flex ขึ้นอยู่กับการจัดเรียง */ } @media (max-width: 600px) { .name-ste { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; } .content-ste { max-width: 45%; } .animated-text { font-size: 20px; } .favorite-songs{ font-size: 15px; } }