@import url('https://fonts.googleapis.com/css2?family=Inter:wght@500;700&display=swap');

/* Ensure no default margins interfere and allow full height */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Inter', sans-serif;
}

/* Full page background wrapper with padding */
.page-wrapper {
  min-height: 100vh;
  width: 100%;
  background: url("../assets/other/Blackboard.png") no-repeat center center;
  background-size: cover;
  background-attachment: fixed; /* Optional for parallax effect */
  padding: 64px; /* updated from 40px */
  box-sizing: border-box;
  padding-left: 40px;
}

  /* Header layout with back arrow and logo spaced apart */
  header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
  }
  .nav-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .logo img {
    height: 40px;
    width: auto;
  }
  
  .back-arrow img {
    height: 30px;
    width: auto;
  }
  /* Main content area: 3 parts horizontally (definition, emotion, mascot) */
  .main-content {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Changed from flex-start to center for vertical alignment */
    gap: 32px; /* reduced from 64px */
    margin-top: 100px;
  }
  
  /* Left side definition box styling */
  .definition-box {
    background-color: #f3f3f3;
    padding: 20px;
    border: 2px solid #666;
    border-radius: 12px;
    width: 260px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.5;
    align-self: center; /* Add this to align with emotion image */
    margin-left: 60px; /* reduced from 100px */
  }
  
  /* Middle section: emotion label, icon, prompt, and button */
  .emotion-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    flex-grow: 1;
    font-family: 'Inter', sans-serif;
    margin-top: 0;
  }
  
  /* Prompt-style speech bubble */
  .speech-bubble {
    background-color: #222;
    color: white;
    display: inline-block;
    padding: 14px 20px; /* increased padding */
    border-radius: 10px;
    margin-bottom: 32px;
    position: relative;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
  }
  
  .speech-bubble::after {
    content: '';
    position: absolute;
    right: 24px;
    top: 100%;
    border-width: 8px;
    border-style: solid;
    border-color: #222 transparent transparent transparent;
  }
  
  /* Button for journaling reflection */
  button {
    margin-top: 24px; /* increased from 20px */
    padding: 12px 28px; /* slightly larger button */
    border: 2px solid #333;
    border-radius: 24px;
    font-weight: 600;
    background: white;
    cursor: pointer;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.2px;
  }
  
  button:hover {
    background-color: #f5f5f5;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  }
  
  /* Right-aligned mascot container */
  .mascot-box {
    width: 200px;
    align-self: center; /* Add this to align with emotion image */
    margin-right: 20px; /* reduced from 40px */
  }
  
  /* Mascot image inside right box */
  .mascot-image {
    width: 100%;
  }
@media (max-width: 768px) {
  .main-content {
    flex-direction: column;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
  }

  .presenter-section {
    order: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #fefefe;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 0 6px rgba(0,0,0,0.1);
    gap: 12px;
    width: 90%;
    max-width: 480px;
  }

  .speech-bubble {
    order: -2;
    text-align: center;
    margin: 0 auto;
    max-width: 90%;
    font-size: 14px;
  }

  .speech-bubble::after {
    right: 50%;
    transform: translateX(50%);
  }

  .mascot-box {
    width: 160px;
    margin: 0 auto;
    order: -1;
  }

  .definition-box {
    order: 0;
    width: 100%;
    margin-left: 0;
    text-align: center;
  }

  .emotion-section {
    order: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 90%;
    max-width: 480px;
  }

  .emotion-content {
    display: contents;
  }

  button {
    width: 100%;
    font-size: 16px;
  }
}