
body {
  margin: 0;
  padding: 0;
  background: #1C1C1C;
  font-family: 'Press Start 2P', cursive;
  height: 100%;
  overflow-x: hidden;
  min-height: 100vh;
  transition: background 0.5s ease;
}

.back-link {
    position: fixed;
    top: 60px;
    left: 1px;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 5px;
    color: #f5f5f5;
    z-index: 10000; 
    transition: color 0.3s;
}

.back-link:hover {
    color: #ff4081;
    background-color: rgba(0, 0, 0, 0.9);
}

.stack-item {
  cursor: url('/img/look.png') 16 16, pointer;
}

.dark-mode {
  background: url('/img/bg1.jpg') center/cover no-repeat fixed, 
              linear-gradient(to bottom, #1a1a2e, #16213e);
  --stack-border: rgba(255, 255, 255, 0.12);
  --stack-shadow: 0 4px 20px rgba(0, 10, 30, 0.4);
  --modal-bg: rgba(15, 25, 35, 0.98);
  --btn-color: rgba(200, 220, 255, 0.8);
  
}

.light-mode {
  background: url('/img/bg3.jpg') center/cover no-repeat fixed,
              linear-gradient(to bottom, #f5f5f5, #e0e0e0);
  --stack-border: rgba(0, 0, 0, 0.1);
  --stack-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  --modal-bg: rgba(245, 240, 235, 0.95);
  --btn-color: #f5f5f5;
}

.sequence-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease;
}

.sequence-item {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
  border-radius: 10px; 
  overflow: hidden; 
}

.sequence-container {
  width: 90vw;
  height: 90vh;
  position: relative;
  overflow: hidden;
}

.stack-container {
  position: relative;
  width: 100%;
  min-height: 100vh;
  height: auto; 
  padding: 40px 20px;
  box-sizing: border-box;
  overflow-y: auto; 
}

.stack-item {
  width: 180px;
  height: 240px;
  background-size: cover;
  background-position: center;
  border: 12px solid var(--stack-border);
  box-shadow: var(--stack-shadow);
  position: absolute;
  transition: all 0.3s ease;
   border-radius: 18px; 
  overflow: hidden; 
}

.stack-item:hover {
  z-index: 100 !important;
  transform: scale(1.05);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.sequence-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  background: transparent;
  z-index: 1000;
  cursor: pointer;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}


.sequence-container {
  cursor: auto; 
  position: relative;
  width: 90vw;
  max-width: 600px;
  height: 90vh;
  border-radius: 12px; 
  overflow: hidden;
  background: transparent;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.nav-btn {
  background: none;
  border: none;
  color: var(--btn-color);
  font-size: 2.5rem;
  font-family: system-ui, sans-serif;
  opacity: 0.7;
  transition: opacity 0.3s;
  z-index: 10;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.nav-btn:hover {
  opacity: 1;
  background: none;
}

.prev-btn { left: 20px; }
.next-btn { right: 20px; }

.theme-toggle {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: var(--btn-color);
  border: none;
  font-size: 20px;
  cursor: pointer;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}

.appreciate-btn {
  position: absolute;
  bottom: 30px;
  right: 30px;
  background: none;
  border: none;
  color: var(--btn-color);
  font-size: 24px;
  cursor: pointer;
  z-index: 11;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.3);
}

.appreciate-btn.active .heart {
  color: #ff4d4d;
  transform: scale(1.2);
}
