html {
  cursor: url('assets/cursor/mao.png'), auto;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Comic Neue', cursive;
  overflow: hidden;
  background-color: black;
}

.custom-cursor {
  cursor: url('./assets/cursor/pointer.png'), auto !important;
}

#terminal {
  position: fixed;
  top: 50px;
  left: 50px;
  width: 600px;
  height: 500px;
  background-color: #1e1e1e;
  color: #ffffff;
  border-radius: 10px;
  z-index: 1000;
  border: 2px solid #4d4d4d;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

@media screen and (max-width: 600px) {
  #terminal {
      max-width: 90%;
  }
}

#terminal-header {
  background-color: #2d2d2d;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  padding: 10px;
  display: flex;
  justify-content: flex-start;
  transition: background-color 0.3s;
}

#terminal-header:hover {
  background-color: #333333;
}

#terminal-buttons {
  display: flex;
  gap: 10px;
}

.terminal-button {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s;
}

.terminal-button:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

#close-button {
  background-color: #FF5F57;
}

#minimize-button {
  background-color: #FFBD2E;
}

#maximize-button {
  background-color: #28CA42;
}

#terminal-content {
  padding: 20px;
  height: calc(100% - 40px);
  overflow-y: auto;
  user-select: none;
}

#terminal-text {
  margin: 0;
  padding: 0;
  font-size: 14px;
  line-height: 1.5;
  overflow: hidden;
  white-space: pre-line;
}

#video-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
}

#video-background::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 0, rgba(255, 255, 255, 0.05) 1px, transparent 1px, transparent 2px);
  z-index: 1;
  pointer-events: none;
}

#myVideo {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -1;
}


.top-left {
  top: 0;
  left: 0;
}

.top-right {
  top: 0;
  right: 0;
}

.bottom-left {
  bottom: 0;
  left: 0;
}

.bottom-right {
  bottom: 0;
  right: 0;
}

#blurred-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) perspective(1000px);
  width: 500px; 
  height: 670px;
  background-color: rgba(0, 0, 0, 0.377);
  border-radius: 20px;
  border: 2px solid rgba(150, 150, 150, 0.137);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.486);
  backdrop-filter: blur(5px);
  z-index: 999;
  display: none;
  padding: 20px;
  text-align: center;
  transform-style: preserve-3d;
}

#blurred-box:hover {
  background-color: rgba(0, 0, 0, 0.377);
}

#blurred-box img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin-bottom: 10px;
}

#profile-picture {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 3px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

#profile-picture:hover {
  transform: scale(1.05);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.profile-picture-container {
  position: relative;
  display: inline-block;
}

.sync-indicator {
  position: absolute;
  bottom: 5px;
  right: 5px;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #5865f2 0%, #3b49df 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s ease;
}

.sync-indicator.active {
  opacity: 1;
  transform: scale(1);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.links {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  z-index: 1001;
  width: 100%;
}

.links a {
  display: flex;
  align-items: center;
  margin: 0 10px;
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s;
  transition: transform 0.3s ease;
}

.links a:hover {
  color: #67cfff;
  text-decoration: underline;
  transform: translateY(-5px) scale(1.1);
}

.links a i {
  margin-right: 5px;
  font-size: 24px;
}

.user-description {
  position: absolute;
  bottom: 150px; 
  left: 50%;
  transform: translateX(-50%);
  z-index: 1001;
  text-align: center;
  width: 450px; 
}

.user-description p {
  color: white;
  background-color: rgba(0, 0, 0, 0.3);
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 18px;
  margin: 0;
  transition: transform 0.3s;
}

#avatar-frame {
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.2);
  width: 160px;
  height: 160px;
  z-index: 1000;
  pointer-events: none;
  display: none;
  border-radius: 0 !important;
}

#typing-cursor {
  display: inline-block;
  animation: blink 1s infinite;
  color: white;
  font-weight: normal;
  font-size: 32px;
}

@keyframes blink {
  0% { opacity: 1; }
  50% { opacity: 0; }
  100% { opacity: 1; }
}

#username {
  color: white;
}

#username-container {
  position: absolute;
  top: 110px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1001;
  padding: 5px 15px;
  text-align: center;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
  border-radius: 20px;
  pointer-events: auto;
  white-space: nowrap;
  font-size: 24px;
  font-weight: bold;
  min-height: 50px;
  display: flex;
  align-items: center;
}

.discord-widget {
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px;
  border-radius: 12px;
  padding: 12px;
  margin: 15px auto;
  margin-top: 85px !important;
  width: 90%;
  max-width: 360px;
  backdrop-filter: blur(10px);
  color: #fff;
  font-family: 'Inter', sans-serif;
  display: block;
  box-sizing: border-box;
}

.discord-content {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.discord-icon img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin-right: 16px;
  background-color: #222;
  border: 0px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.discord-meta b {
  font-size: 20px;
  display: block;
  font-weight: 600;
  position: relative;
  bottom: -7px;
}

.discord-meta span, .discord-meta div {
  font-size: 15px;
  display: inline-block;
  color: #ccc;
}

#discord-status-text {
  display: none !important;
}

#discord-status-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
  margin-left: -93px;
  margin-bottom: 3px;
  margin-top: 10px;  
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

.status-online { background-color: #3ba55d; }
.status-idle { background-color: #faa81a; }
.status-dnd { background-color: #ed4245; }
.status-offline { background-color: #747f8d; }

.discord-activity {
  position: relative;
  display: flex;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.3);
  padding: 12px;
  border-radius: 13px;
  font-style: italic;
  font-size: 14px;
  color: #ccc;
  min-height: 80px;
  overflow: hidden;
}

#discord-activity-info, #discord-no-activity {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px;
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
  display: flex;
  align-items: center;
}

#discord-activity-info.hidden, #discord-no-activity.hidden {
  opacity: 0;
  pointer-events: none;
}

#discord-album-art {
  width: 80px;
  height: 80px;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  margin-right: 16px;
  flex-shrink: 0;
  background-color: #333;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.discord-activity-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

#discord-activity-name {
  font-weight: bold;
  font-style: normal;
  font-size: 16px;
  margin-bottom: 4px;
  color: white;
}

#discord-activity-state, #discord-activity-details {
  font-size: 14px;
  font-style: italic;
  color: #ccc;
  margin-bottom: 2px;
}

.discord-widget .discord-icon img {
  width: 52px !important;
  height: 52px !important;
  margin-right: 14px !important;
}

.badges-container {
  position: absolute;
  top: 185px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  gap: 10px;
  width: 90%;
  z-index: 1001;
  margin-top: 20px;
  flex-wrap: wrap;
}

.badges-container img {
  width: 20px !important;
  height: 20px !important;
  border-radius: 0 !important;
  object-fit: contain;
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}


.music-controls {
  position: absolute;
  bottom: 63px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  width: 90%;
  max-width: 380px;
  z-index: 1001;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 25px;
  padding: 12px 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.music-btn {
  width: 45px;
  height: 45px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.music-btn:hover {
  background: linear-gradient(135deg, #7c94ff 0%, #8a5cb8 100%);
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.music-btn:active {
  transform: scale(0.95);
}

#randomBtn {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
}

#randomBtn:hover {
  background: linear-gradient(135deg, #ff7979 0%, #ff6b6b 100%);
}

.volume-container {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 100px;
}

.volume-slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.2);
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
  background: linear-gradient(135deg, #7c94ff 0%, #8a5cb8 100%);
  transform: scale(1.2);
}

.volume-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

#video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  opacity: 1;
  transition: opacity 0.5s ease, backdrop-filter 0.5s ease;
}

body.video-normal #video-overlay {
  opacity: 0;
  backdrop-filter: blur(0);
  pointer-events: none;
}

#ip-info-container {
  position: fixed;
  bottom: 10px;
  right: 0px;
  background: rgba(0,0,0,0.5);
  color: white;
  padding: 10px 15px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  z-index: 0; /* Cũng đặt thấp hơn terminal */
  pointer-events: none;
}

#rainbow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, red, orange, yellow, green, cyan, blue, violet);
  background-size: 400% 400%;
  z-index: 9999;
  animation: rainbow-animate 8s linear infinite;
}

@keyframes rainbow-animate {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

.kill-feed {
  position: absolute;
  top: 23px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  height: 50px;
}

.kill-item {
  padding: 1px 2px;
  margin-bottom: 17px;
  border: 2px #ea0300 solid;
  font-size: 15px;
  font-weight: normal;
  text-align: right;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  animation: fadeInOut 3s ease-in-out forwards;
}

.kill-item span {
  vertical-align: middle;
}

.kill-item .weapons img {
  margin: 0 2px;
  vertical-align: middle;
}

.kill-item .player {
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  font-weight: bold;
  margin: 0 2px;
}

.kill-item .player.ct {
  color: #80a7e0;
  padding-left: 2px;
}

.kill-item .player.t {
  color: #ebc273;
  padding-right: 4px;
}

@keyframes fadeInOut {
  0% { opacity: 0; transform: translateY(10px); }
  10% { opacity: 1; transform: translateY(0); }
  80% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-10px); }
}

#blur-overlay {
  position: fixed;
  inset: 0;
  backdrop-filter: blur(5px);
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9999;
}

  @media (max-width: 768px) {
    #blurred-box {
      width: 90%;
      padding: 10px;
      font-size: 14px;
    }

    .profile-picture-container img {
      width: 80px;
      height: 80px;
    }

    .badges-container img {
      width: 24px;
      height: 24px;
      margin: 2px;
    }

    .music-controls {
      flex-direction: column;
      align-items: center;
      gap: 6px;
    }

    .volume-container {
      width: 80%;
    }


    .discord-widget {
      flex-direction: column;
      align-items: center;
      text-align: center;
    }

    .kill-feed {
      font-size: 10px;
      right: 5px;
    }

    #ip-info-container {
      font-size: 12px;
      padding: 6px;
      width: 90%;
      right: 5%;
    }

    #username-container {
      font-size: 20px !important;
    }

    .links a {
      font-size: 20px;
      margin: 0 5px;
    }
  }

  #video-background video {
    object-fit: cover;
    width: 100vw;
    height: 100vh;
  }

.kill-item {
  display: flex;
  align-items: center;
  margin-bottom: 4px;
  gap: 12px; /* Khoảng cách giữa các span */
}

.kill-section {
  display: flex;
  align-items: center;
  gap: 6px; /* Khoảng cách giữa hình ảnh và text/icon */
}

#page {
  display: inline-block;
  position: relative;
  text-align: center;
  align-items: center;
  top: 10em;
  vertical-align: middle;
  width: 100%;
}

#scroll-container {
  position: fixed;       /* Cố định ở một vị trí */
  bottom: 45px;             /* Gắn vào cạnh dưới */
  left: 50%;             /* Căn giữa theo chiều ngang */
  transform: translateX(-50%);
  text-align: center;
  border: 1px solid rgb(255, 255, 255);
  border-radius: 5px;
  border-top: 0px;
  border-bottom: 0px;
  display: inline-block;
  cursor: default;
  align-items: center;
  vertical-align: middle;
  height: auto;          /* Không cần % */
  width: 25%;
  overflow: hidden;
  z-index: 9999;         /* Đảm bảo nằm trên cùng */
  display: none; /* Ẩn ban đầu */
}

marquee {
  position: relative;
  font-size: 20px;
  display: inline-block;
}

a {
  font-size: 16px;
  text-transform: lowercase;
  text-decoration: none;
  text-align: center;
  font-family: 'consolas', sans-serif;
  animation: colorRotate 0.5s linear 0s infinite;
  display: inline-block;
  margin: 0 10px;
}

a:hover {
  color: #a8a8a8;
}

@keyframes colorRotate {
  from {
    color: #000000;
  }

  10% {
    color: #ffffff;
  }

  50% {
    color: #000000;
  }

  75% {
    color: #ffffff;
  }

  100% {
    color: #000000;
  }
}

.faceit {
  position: fixed;
  top: 15px;
  left: 13px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  padding: 4px 8px;
  border-radius: 16px;
  box-shadow: 0 0 8px rgba(0,0,0,0.4);
  z-index: 9999;
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  gap: 6px;
}

.faceit span {
  display: inline-flex;       /* Để ảnh và text căn giữa theo chiều dọc */
  align-items: center;
  gap: 2px;                   /* Khoảng cách giữa icon và text */
  white-space: nowrap;
}

.faceit-icon {
  width: 23px;                /* Kích thước icon */
  height: auto;
  object-fit: contain;
}

.faceit-flag {
  width: 20px;          /* giữ kích thước mong muốn */
  height: auto;
  border-radius: 4px;   /* 👈 bo góc 4px, chỉnh theo ý bạn */
}

.valorant {
  position: fixed;
  top: 50px;
  left: 13px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  padding: 4px 8px;
  border-radius: 16px;
  box-shadow: 0 0 8px rgba(0,0,0,0.4);
  z-index: 9999;
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  gap: 6px;
}

.valorant span {
  display: inline-flex;       /* Để ảnh và text căn giữa theo chiều dọc */
  align-items: center;
  gap: 2px;                   /* Khoảng cách giữa icon và text */
  white-space: nowrap;
}

.valorant-icon {
  width: 23px;                /* Kích thước icon */
  height: auto;
  object-fit: contain;
}

.csgo {
  position: fixed;
  top: 85px;
  left: 13px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  padding: 4px 8px;              /* giữ giống faceit, valorant */
  border-radius: 16px;
  box-shadow: 0 0 8px rgba(0,0,0,0.4);
  z-index: 9999;
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;              /* 👈 cho chiều cao khung đồng bộ */
}

.csgo-icon {
  width: 35px;                   /* 👈 giảm xuống cùng size faceit/valorant */
  height: auto;
  object-fit: contain;
}

.cs2rating.sm {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 35px;               /* 👈 tăng width để chữ không bị chật */
  height: 20px;                  /* 👈 cao hơn (bằng .faceit/.valorant) */
  padding: 0 8px 0 14px;
  font-size: 17px;               /* 👈 đồng bộ với text khác */
  font-weight: bold;
  line-height: 1;
  background-size: cover;
  background-position: left center;
  background-repeat: no-repeat;
  color: #EB4B4B;
}

.cs2rating.sm small {
  font-size: 12px;
  font-weight: normal;
  opacity: 0.9;
}

footer {
  font-size: 0.8rem;
  color: #666;
  text-align: center;
  padding: 10px 0;
}

.credit-line {
    position: absolute;
    bottom: 0.4rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    text-align: center;
    font-family: 'Saira', sans-serif;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    padding: 0rem 0;
    z-index: 100;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0s linear 0.5s;
}

.credit-line.credit-visible {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease;
}

#media-toggle-buttons {
  display: none; /* Ẩn hoàn toàn ban đầu */
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9999;
}

#media-toggle-buttons i {
  font-size: 42px;
  color: white;
  cursor: pointer;
  transition: transform 0.2s ease;
}

#media-toggle-buttons i:hover {
  transform: scale(1.1);
}

#clock-date {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Roboto Mono', monospace;
    font-size: 15px;
    color: white;
    background: rgba(0, 0, 0, 0.3);
    padding: 6px 12px;
    border-radius: 4px;
    z-index: 9999;
    white-space: nowrap;
  }

  #particles-js {
      position: absolute;
      width: 100%;
      height: 100%;
      z-index: 0;
    }

    body.shimeji-pinned iframe {
        pointer-events: none;
      }
    body.shimeji-select-ie {
        cursor: cell !important;
      }
    #shimeji-contextMenu::-webkit-scrollbar {
        width: 6px;
      }
    #shimeji-contextMenu::-webkit-scrollbar-thumb {
        background-color: rgba(30,30,30,0.6);
        border-radius: 3px;
      }
    #shimeji-contextMenu::-webkit-scrollbar-thumb:hover {
        background: #555;
      }