:root {
  --bg-light: #c0c0c0;
  --text-light: #333;
  --card-light: #fff;

  --bg-dark: #121212;
  --text-dark: #eee;
  --card-dark: #1e1e1e;

  --primary: #007bff;

  --snowflake-color-light: #bbb;
  --snowflake-color-dark: #fff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: var(--bg-light);
  background-image: url("../backgroud/x4hnwsvps4h91.gif");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  font-family: "Space Mono", monospace !important;
  color: var(--text-light);
  transition: background-color 0.3s ease, color 0.3s ease,
    background-image 0.3s ease;
  word-wrap: break-word;
  overflow-x: hidden;
}

body.dark {
  background-color: var(--bg-dark);
  background-image: url("../backgroud/bpxxqqvps4h91.gif");
  color: var(--text-dark);
}

.toggle-theme {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  color: var(--text-light);
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 24px;
  -webkit-tap-highlight-color: transparent;
}

.toggle-theme:focus {
  outline: none;
}

body.dark .toggle-theme {
  color: var(--text-dark);
}

.image-kmsdev {
  text-align: center;
  margin-top: 100px;
}

.profile-container {
  max-width: 1000px;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
  overflow-x: hidden;
}

.info {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  text-align: center;
}

.info svg {
  width: 24px;
  height: 24px;
  position: relative;
  top: 4px;
}

.info h1 {
  font-size: 2rem;
  margin: 10px 0;
}

.profile-kmsdev {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #ddd;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
  display: block;
  margin: 0 auto;
  transition: transform 0.3s ease;
}

.profile-kmsdev:hover {
  transform: scale(1.05);
}

.social-kmsdev {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

.social-kmsdev a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 100px;
  max-width: 150px;
  padding: 8px;
  font-size: 16px;
  text-decoration: none;
  color: inherit;

  background: transparent;
  border-radius: 6px;
  box-shadow: none;

  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-kmsdev a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.social-kmsdev a i {
  margin-right: 6px;
}

.social-kmsdev a.facebook i {
  color: #1877f2;
}

.social-kmsdev a.github i {
  color: #333;
}

.social-kmsdev a.telegram i {
  color: #0088cc;
}

body.dark .social-kmsdev a {
  background: transparent;
  color: inherit;
}

body.dark .social-kmsdev a:hover {
  background: transparent;
  box-shadow: none;
}

body.dark .social-kmsdev a.github i {
  color: #fff;
}

.contact-kmsdev {
  margin-top: 20px;
  text-align: center;
}

.contact-kmsdev p {
  margin: 6px 0;
  font-size: 1rem;
}

.contact-kmsdev a {
  color: inherit;
  text-decoration: none;
}

.contact-kmsdev i {
  margin-right: 6px;
}

.profile-section {
  background: var(--card-light);
  color: var(--text-light);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin: 24px 0;
  padding: 24px;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  transition: all 0.3s ease;
}

body.dark .profile-section {
  background: var(--card-dark);
  color: var(--text-dark);
}

.profile-section h2 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
  display: inline-block;
  padding-bottom: 4px;
}

.profile-section li {
  line-height: 1.6;
  font-size: 1rem;
  margin-bottom: 8px;
}

.profile-section ul {
  list-style: none;
  padding-left: 0;
}

.profile-section ul li {
  position: relative;
  padding-left: 24px;
}

.profile-section ul li::before {
  content: "\f058";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--primary);
  position: absolute;
  left: 0;
  top: 0;
}

.profile-section .job {
  margin-bottom: 16px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.02);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
}

body.dark .profile-section .job {
  background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 600px) {
  .profile-kmsdev {
    width: 100px;
    height: 100px;
  }

  .info h1 {
    font-size: 1.5rem;
  }

  .profile-section {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .profile-container {
    padding: 8px;
  }

  .info h1 {
    font-size: 1.25rem;
  }

  .profile-section {
    margin: 10px auto;
    padding: 12px;
    max-width: 95%;
  }

  .profile-section h2 {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  .profile-container {
    padding: 15px;
  }

  .info h1 {
    font-size: 1.75rem;
  }

  .profile-section {
    margin: 16px auto;
    padding: 16px;
    max-width: 98%;
  }

  .profile-section h2 {
    font-size: 1.5rem;
  }
}

@keyframes spin {
  0% {
    transform: rotate(0);
  }

  100% {
    transform: rotate(360deg);
  }
}

#backToTop {
  position: fixed;
  bottom: 40px;
  right: 30px;
  width: 40px;
  height: 40px;
  background-color: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: opacity 0.3s ease;
}

#backToTop:hover {
  opacity: 0.8;
}

::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-thumb {
  background: #888;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

#qrModalImg {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 20px auto 0 auto;
}

.swal2-cancel.kmsdev-cancel-btn {
  border: none !important;
  box-shadow: none !important;
}

.hidden-text {
  color: transparent;
  background-color: #000;
  border-radius: 4px;
  padding: 0 2px;
  display: inline-block;
  line-height: 1.2;
  transition: color 0.3s ease, background-color 0.3s ease;
}

.hidden-text:hover {
  color: inherit;
  background-color: transparent;
}

.snowflake {
  position: fixed;
  top: -10px;
  color: var(--snowflake-color-light);
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.2);
  font-size: 8px;
  opacity: 0.8;
  pointer-events: none;
  animation-name: fall;
  animation-timing-function: linear;
}
body.dark .snowflake {
  color: var(--snowflake-color-dark);
  text-shadow: 0 0 4px rgba(255, 255, 255, 0.4);
}

@keyframes fall {
  0% {
    transform: translateX(0) rotate(0deg);
  }
  100% {
    transform: translateX(100px) rotate(360deg);
    top: 100vh;
  }
}

.modal-dialog.qr-modal {
  max-width: 500px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.modal-dialog.qr-modal .modal-content {
  padding: 10px;
}

@media (max-width: 1024px) {
  .modal-dialog.qr-modal {
    max-width: 480px;
  }
}

@media (max-width: 600px) {
  .modal-dialog.qr-modal {
    max-width: 420px;
  }
}

@media (max-width: 480px) {
  .modal-dialog.qr-modal {
    max-width: 375px;
  }
}

.modal-content.animate-pop {
  animation: popUp 0.4s ease forwards;
}

@keyframes popUp {
  0% {
    transform: scale(0.7);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

#musicConsent {
  max-width: 500px;
  margin: 20px auto;
  background: var(--card-light);
  color: var(--text-light);
  border: 2px solid var(--primary);
  border-radius: 8px;
  padding: 20px;
  z-index: 10000;
}

body.dark #musicConsent {
  background: var(--card-dark);
  color: var(--text-dark);
}

#musicConsent button {
  padding: 8px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

#allowMusic {
  background: var(--primary);
  color: #fff;
}

#denyMusic {
  background: #ccc;
  color: #333;
}

.black-text {
  color: black !important;
}

#backToTop span {
  display: inline;
  font-weight: bold;
  font-size: 12px;
}

#backToTop i {
  display: none;
  font-size: 16px;
  line-height: 40px;
}

#backToTop:hover span {
  display: none;
}

#backToTop:hover i {
  display: inline;
}

* {
  user-select: none !important;
  -webkit-user-drag: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
}

img {
  pointer-events: none;
}

#cinemaIntro {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-family: "Space Mono", monospace;
  background: url("../backgroud/8406708.gif") no-repeat center center;
  background-size: cover;
  animation: fadeOut 2s ease-out 3s forwards;
  overflow: hidden;
}

#cinemaIntro::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.65);
  z-index: 1;
}

#cinemaIntro .intro-content {
  position: relative;
  z-index: 2;
  text-align: center;
  opacity: 0;
  animation: fadeInZoom 2s ease-in-out 0.5s forwards;
  color: #fff;
}

#cinemaIntro .logo-kmsdev {
  z-index: 2;
  position: relative;
}
.logo-kmsdev {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  animation: fadeIn 1.5s ease-in-out;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

.intro-content {
  text-align: center;
  opacity: 0;
  animation: fadeInZoom 2s ease-in-out 0.5s forwards;
}

.studio-name {
  font-size: 3rem;
  letter-spacing: 6px;
  font-weight: bold;
  margin: 0;
  color: #f5c518;
}

.tagline {
  font-size: 1.2rem;
  margin-top: 10px;
  opacity: 0.8;
}

@keyframes fadeInZoom {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}
