/* Base Styles */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background: #fdfdfc;
    color: #111;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .app-container {
    width: 100%;
    position: relative
  }
  /* Top Bar */
  .top-bar {
    width: 100%;
    text-align: center;
    background: #e0f7fa;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    font-size: 0.95rem;
    display: flex;
    justify-content: space-around;
    border-bottom: 1px solid #ccc;
  }
  
  /* Card Frame */
 

  .card-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0rem;
    padding: 1rem;
    width: 100%;
    height: calc(100vh - 100px); /* Leave space for top bar + bottom bar */
    box-sizing: border-box;
  }
  
  .nav-button {
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #888;
    padding: 0 3rem;
  }
  
  .session-intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 80vh;
    text-align: center;
  }
  
  .intro-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #333;
  }
  
  .start-session-btn {
    padding: 0.8rem 2rem;
    font-size: 1.3rem;
    background: #4caf50;
    color: white;
    border: none;
    border-radius: 1rem;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
  }

  .learning-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: white;
    border-radius: 1rem;
    padding-left: 2rem;
    padding-right: 0;
    box-shadow: 0 0 30px rgba(4, 254, 183, 0.317);
    width: 100%;
    max-width: 700px;
    height: 480px;
  }


  .subtopic {
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 1rem;
    margin-left: -1rem;
    font-size: 1.5rem;
    text-decoration: underline;
    color: green
  }

  .card-text {
    width: auto;
    padding-right: 2rem;
  }

  .card-text p {
    line-height: 1.8;  /* Makes reading smoother */
    margin: 0.8rem 0;  /* Adds vertical spacing */
  }


  .key-question {
    font-weight: 600;
    font-size: 1.1rem;
    color: blue
  }
  
  .learning-card p {
    margin: 0.5rem 0;
  }

  .card-bottom {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    margin-right: 2rem;
    text-align: center;
  }



  .key-concept {
    font-weight: 700;
    margin-bottom: 0.4rem;
  }

  .tags {
    color: #555;
    font-style: italic;
  }
  
  .visuals {
    background: #f0f0f0;
    height: 120px;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Sidebar */
  .sidebar {
    position: fixed;
    left: 3rem;
    bottom: 5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .break {
    padding: 1rem;
    border-radius: 0.75rem;
    border: none;
    font-weight: bold;
    cursor: pointer;
  }
  
  .meditation {
    background: #dcedc8;
    color: #33691e;
  }
  
  .happy {
    background: #f3e5f5;
    color: #6a1b9a;
  }
  
  .tiny {
    font-size: 0.7rem;
  }
  
  /* Bottom Bar */
  .bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    padding: 1rem;
    background: #f1f8e9;
    border-top: 1px solid #ccc;
    font-size: 0.85rem;
    height: 2rem;
    
  }
  
  /* Memorization Scale */
  .memorization-scale {
    position: fixed;
    right: 2rem;
    top: 50%;                     /* place the top edge halfway down the screen */
    right: 2rem;                  /* stick to the right edge */
    transform: translateY(-50%);
    background: #fff3e0;
    padding: 1rem;
    border-radius: 1rem;
    font-size: 0.85rem;
    box-shadow: 0px 0px 15px rgba(239, 136, 25, 0.37);
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  
  .scale-title {
    margin-top: 0rem;
    margin-bottom: 1rem;
    font-size: 1.2rem;

  }
  
  
  .mem-scale-form {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
  }
  
  .mem-scale-form label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    cursor: pointer;
  }
  
  .mem-scale-form input[type="radio"] {
    accent-color: #4caf50;
    transform: scale(1.1);
    cursor: pointer;
  }
  

  
  .session-outro {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 1.2rem;
    gap: 1.2rem;
  }
  
  .session-outro button {
    padding: 0.8rem 2rem;
    font-size: 1rem;
    background: #66bb6a;
    color: white;
    border: none;
    border-radius: 1rem;
    cursor: pointer;
  }

  
  /* Responsiveness */
  @media screen and (max-width: 768px) {
    .card-frame {
      flex-direction: column;
    }
  
    .sidebar {
      position: static;
      flex-direction: row;
      justify-content: center;
      margin: 1rem 0;
    }
  
    .memorization-scale {
      display: none;
    }
  }
  