html {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #f0f4f8;
  color: #333;
}

#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

@media (min-width: 769px) {
  #app {
    display: none !important;
  }

  #notAllowed {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
  }
}

@media (max-width: 768px) {
  #app {
    display: flex;
  }

  #notAllowed {
    display: none;
  }
}

#notAllowed {
  background-color: #f5f5f5;
  color: #5d5d5d;
  text-align: center;
  padding: 2rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",
    "Noto Color Emoji";
  text-shadow: 0px 1px 1px rgba(255, 255, 255, 0.75);
  display: none;
}

#notAllowed h1 {
  font-size: 2.45em;
  font-weight: 700;
  color: #5d5d5d;
  letter-spacing: -0.02em;
  margin: 30px 0;
}

#notAllowed .description-text {
  color: #707070;
  letter-spacing: -0.01em;
  font-size: 1.25em;
  line-height: 20px;
}

#notAllowed .icon-large {
  height: 132px;
  width: 132px;
  animation: iconBounce 1.2s infinite ease-in-out;
}

@keyframes iconBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.animate__animated {
  animation-duration: 1s;
  animation-fill-mode: both;
}

.animate__fadeIn {
  animation-name: fadeIn;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.nav-top {
  background: linear-gradient(90deg, #111827, #1f2937);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo img {
  height: 80px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: #f9fafb;
  text-decoration: none;
  font-weight: bold;
  text-transform: uppercase;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  width: 30px;
  height: 25px;
  justify-content: space-between;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: 0.3s ease;
}

.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background: #1f2937;
    position: absolute;
    top: 100%;
    right: 2rem;
    padding: 1rem;
    border-radius: 8px;
  }

  .nav-links.active {
    display: flex;
  }
}

.section {
  padding: 2rem;
  display: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.section.active {
  display: block;
  opacity: 1;
  pointer-events: all;
}

.section:not(#home) {
  height: 457px;
  overflow-y: auto;
}

#home {
  position: relative;
  height: 457px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

#home .background-video {
  position: absolute;
  top: 0;
  left: 0;
  height: 96vh;
  width: 100%;
  object-fit: cover;
  z-index: -2;
}

#home .background-wave {
  position: absolute;
  top: 0;
  width: 100%;
  z-index: -1;
  pointer-events: none;
}

#home .home-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
  text-align: center;
  padding: 5rem 1rem 3rem;
  position: relative;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  border-radius: 0 0 30px 30px;
  z-index: 1;
}

#home .home-hero .avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 3px solid #f9fafb;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
}

#home .home-hero h1 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: #f3f4f6;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

#home .home-hero .subtitle {
  font-size: 1rem;
  color: #d1d5db;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  margin-bottom: 1.2rem;
}

#home .btn.small {
  font-size: 0.85rem;
  padding: 0.6rem 1.1rem;
  background: linear-gradient(to right, #6366f1, #8b5cf6);
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
  transition: all 0.3s ease;
  margin-bottom: 1rem;
}

#home .btn.small:hover {
  transform: scale(1.05);
  background: linear-gradient(to right, #4f46e5, #7c3aed);
  box-shadow: 0 6px 14px rgba(139, 92, 246, 0.6);
}

#home .quote-card {
  background: rgba(255, 255, 255, 0.1);
  color: #f3f4f6;
  border-left: 4px solid #60a5fa;
  font-style: italic;
  box-shadow: none;
  padding: 1rem;
  margin-top: 1rem;
  border-radius: 8px;
  max-width: 90%;
}
/*
.upload-prompt {
  text-align: center;
  font-size: 0.9rem;
  margin-top: 1rem;
  color: #6b7280;
}
*/
.art-actions {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: flex;
  gap: 0.5rem;
  z-index: 4;
}

.like-btn,
.share-btn {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}

/*@keyframes pulseLike {
  0%, 100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
}*/

.like-btn {
  color: red;
  transform: rotate(-10deg) scale(1.2);
}

.like-btn i{
  animation: pulseLike 2s infinite;
}

@keyframes pulseLike {
  0%, 100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
}

.share-btn {
  color: #4b5563;
  transform: scale(1.2);
}

.like-btn:hover,
.share-btn:hover {
  transform: scale(1.15);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.like-btn:active,
.share-btn:active {
  transform: scale(0.95);
}

.uploader-overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 6px;
  pointer-events: none;
  font-weight: 500;
  z-index: 3;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  justify-items: center;
  padding: 1rem 1rem 2rem;
}

.image-card {
  position: relative;
  width: 100%;
  max-width: unset;
  min-height: 200px;
  background: #ffffff;
  border-radius: 12px;
  padding: 0.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.6s ease;
  opacity: 0;
  transform: translateY(30px);
  overflow: hidden; 
  box-sizing: border-box;
  z-index: 1;
}

.image-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.canvas-loader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200px;
  border-radius: 8px;
  background: linear-gradient(-45deg, #e0e0e0 25%, #f9f9f9 50%, #e0e0e0 75%);
  background-size: 400% 400%;
  animation: shimmer 1.5s infinite;
  z-index: 0;
  box-sizing: border-box;
}

.image-card canvas.watermarked {
  width: 100%;
  height: 200px;
  border-radius: 8px;
  background: #f3f4f6;
  z-index: 1;
  position: relative;
  display: block;
  box-sizing: border-box;
}

.lightbox {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#lightbox-canvas {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  background-color: #000;
  box-shadow: 0 0 20px rgba(255,255,255,0.15);
  cursor: pointer;
  user-select: none;
  -webkit-user-drag: none;
}

.contact-card {
  background: white;
  border: 1px solid #e5e7eb;
  padding: 2rem 1.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-align: center;
  max-width: 90%;
  margin: 0 auto;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.contact-card:hover {
  transform: translateY(-4px);
}

.contact-btn {
  margin-top: 1rem;
  display: inline-block;
  background-color: #111827;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s;
}

.contact-btn:hover {
  background-color: #1f2937;
}

.game-avatar img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #3b82f6;
  margin-bottom: 0.5rem;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.game-details h3 {
  font-size: 1.1rem;
  margin: 0;
  color: #1f2937;
}

.game-details p {
  margin: 2px 0;
  font-size: 0.9rem;
  color: #4b5563;
}

.footer {
  background: #111827;
  color: white;
  text-align: center;
  padding: 1rem;
}