* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: black;
  color: white;
  text-align: center;
  overflow: hidden;
}

h1 {
  margin: 1rem 0;
  letter-spacing: 4px;
}

.emotion-row {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 80vh;
}


/* EMOTION BLOCK */


.emotion {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  position: relative;

  perspective: 800px;
}


/* 3D FLIP */


.flip {
  width: 50px;
  height: 50px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s;
}

.emotion:hover .flip {
  transform: rotateY(180deg);
}

.face {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  backface-visibility: hidden;

  display: flex;
  justify-content: center;
  align-items: center;
}

.front {
  background: white;
}

.back {
  background: lightgray;
  transform: rotateY(180deg);
}

/* image support */
.face img,
.face svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* LABEL */
figcaption {
  font-size: 0.8rem;
}


/* ORIGINAL ANIMATIONS */


.anger {
  background: red;
  animation: angerMove 0.4s infinite alternate;
}

@keyframes angerMove {
  from { transform: translateY(0); }
  to { transform: translateY(-15px); }
}

.calm {
  background: #3498db;
  animation: calmFloat 4s infinite ease-in-out;
}

@keyframes calmFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.sadness {
  background: #555;
  animation: sadnessShake 0.6s infinite;
}

@keyframes sadnessShake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-2px); }
  50% { transform: translateX(2px); }
  75% { transform: translateX(-2px); }
  100% { transform: translateX(0); }
}

.energy {
  background: #f1c40f;
  animation: energyPulse 1s infinite;
}

@keyframes energyPulse {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.nostalgia {
  background: #8e6e53;
  animation: nostalgiaFade 3s infinite;
}

@keyframes nostalgiaFade {
  0%,100% { opacity: 1; }
  50% { opacity: 0.6; }
}


/* EXPERIENCE */


#experience {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: black;

  display: flex;
  justify-content: center;
  align-items: center;

  transform: scale(0);
  opacity: 0;
  transition: all 0.6s ease;
}

#experience.active {
  transform: scale(1);
  opacity: 1;
}

#expContent {
  width: 300px;
  height: 300px;
  background: white;
}

.exp-image {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.exp-image img,
.exp-image svg {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

#closeBtn {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

.emotion-row {
  flex-wrap: wrap;
  gap: 1rem;
}

.emotion {
  width: 20vw;
  height: 20vw;
  max-width: 120px;
  max-height: 120px;
}

#expContent {
  width: 80vw;
  height: 80vw;
  max-width: 300px;
  max-height: 300px;
}

@media (max-width: 600px) {
  .emotion-row {
    justify-content: center;
  }
}