/* ===== About Me (Level 2) ===== */

.char-box {
  min-height: 800px;
  border: 3px solid var(--border);
  border-radius: 6px;
  background: url('https://i.pinimg.com/1200x/41/f4/65/41f465b0644eea5bac620e29c54ae556.jpg') center/cover no-repeat;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 0px;  
}

.char-box.full img {
  max-height: 100%;
  image-rendering: pixelated;
}

.char-box-2 {
  min-height: 800px;
  border: 3px solid var(--border);
  border-radius: 6px;
  background: url('https://i.pinimg.com/1200x/04/e0/86/04e0862591548efcf44f73411b5de9db.jpg') center/cover no-repeat;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 0px;  
}

.char-box-2.full img {
  max-height: 100%;
  image-rendering: pixelated;
}

#mainAvatar {
  transform: translateX(-100px); /* adjust value as needed */
}


/* Dialogue */
.dialog, .dialog-big { 
  margin-top: 20px; 
  margin-bottom: 200px;
  padding: 14px; 
  border: 3px solid var(--border); 
  background: #fff; 
  position: relative; } 
  
.dialog .nameplate, .dialog-big .nameplate { 
  position: absolute; 
  top: -14px; 
  left: 16px; 
  padding: 6px 10px; 
  background: var(--pink); 
  border: 3px solid var(--border); 
  font-family: "Press Start 2P", monospace; 
  font-size: 12px; 
}
    
.dialog, .dialog-big p { 
  min-height: 60px; 
  font-size:22px; 
  line-height:1.25; 
  margin:6px 0 10px;
} 


#transition-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease; 
}

/* Narrator (mini avatar + speech) */
.narrator { 
  display: grid; 
  grid-template-columns: 120px 1fr; 
  gap: 14px; 
  margin-top: 150px;
  margin-bottom: 20px; } 
  
.narrator .mini { 
  width: 120px; 
  height: 120px; 
  margin-top: 20px;
  border: 3px solid var(--border); 
  border-radius: 8px; 
  display: flex; 
  align-items: center; 
  justify-content: center;
}

.narrator .mini img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; /* keeps proportions */
  image-rendering: pixelated;
}


.char-box, .dialog, .polaroid {
  box-shadow: 4px 4px 0 var(--border);
}


/* Polaroid */ 
.polaroid { 
  background: #fff; 
  border: 3px solid var(--border); 
  border-radius: 8px; 
  padding: 12px; 
  margin-top: 20px;
  width: fit-content;
  height: fit-content;
  text-align: center; } 
  
.polaroid img { 
  width: 98%; 
  height: 80%;
  border: 3px solid var(--pink); 
  border-radius: 6px; } 
  
.polaroid .cap { 
  margin-top: 8px; 
  font-size: 14px; 
  color: #555; } 
  
  /* Grid layout */ 
.grid-2 { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 20px; 
}

.grid-2.align-center {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch; 
}

.polaroid {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;           
}

.dialog-big {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%; 
  width: 120%;   
  left: -150px;       
}
  
@media(max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } }


/* Skills */ 

.skill-groups { 
  display: grid; 
  grid-template-columns: repeat(2, minmax(240px, 1fr)); 
  gap: 20px; } 
  
.group { 
  border: 3px solid var(--border); 
  border-radius: 8px; 
  background: #fff; 
  padding: 12px; } 
  
.group h3 { 
  margin: 0 0 10px; 
  background: var(--green); 
  border: 3px solid var(--border); 
  border-radius: 8px; 
  padding: 6px 10px; 
  font-weight: bold; } 
  
.skill { 
  display: flex; 
  justify-content: space-between; 
  border: 2px dashed #ccc; 
  border-radius: 8px; 
  padding: 6px 8px; 
  margin: 8px 0; } 
  
.hearts {
  color: rgb(241, 36, 115);
  font-size: 20px;
}
.hearts .empty {
  color: rgb(255, 204, 204);
}

.scene {
  display: none;
}

#about-scene-1 {
  display: block;
}

/*============mini-game=============*/
.memory-grid {
  display: grid;
  grid-template-columns: repeat(4, 70px);
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
  padding-bottom: 100px;
}

.memory-card {
  width: 70px;
  height: 70px;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  perspective: 600px;
  transition: transform 0.3s;
}

.memory-card span {
  position: absolute;
  width: 100%;
  height: 100%;
  line-height: 70px;
  text-align: center;
  backface-visibility: hidden;
}

.memory-card .front {
  background: #f8f0ff;
  color: #333;
}

.memory-card .back {
  background: #fff;
  transform: rotateY(180deg);
}

.memory-card.flipped .front {
  transform: rotateY(180deg);
}

.memory-card.flipped .back {
  transform: rotateY(0deg);
}

