/* ============================
   1. Font-face (optional)
   ============================ */
   @font-face {
    font-family: 'GochiHand';
    src: url('../assets/fonts/GochiHand-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
  }
  @font-face {
    font-family: 'FredokaOne';
    src: url('../assets/fonts/FredokaOne-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
  }
  @font-face {
    font-family: 'Comfortaa';
    src: url('../assets/fonts/Comfortaa-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
  }
  
  /* ============================
     2. Global Reset & Body
     ============================ */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  /* Let html & body fill the browser height */
  html, body {
    height: 100%;
  }
  
  /* 
     Make body a flex container, column direction 
     so the footer can stay at the bottom.
  */
  body {
    display: flex;
    flex-direction: column;
    background-color: #F7E7CE;
  }
  
  /* 
     If you want to center the main heading horizontally, 
     you can keep text-align: center or use a container approach. 
     But we remove "align-items: center;" to prevent everything from centering 
     horizontally in the entire page.
  */
  
  /* ============================
     3. Main Heading
     ============================ */
  .main-heading {
    font-family: 'GochiHand', cursive;
    font-size: 64px;
    color: #2B1E13;
    text-align: center;
    margin-top: 100px;
    margin-bottom: 40px;
  }
  
  /* ============================
     4. Page Layout (3 columns)
     ============================ */
  /* 
     Let .page-layout expand to fill the space above the footer 
     by giving it flex: 1 0 auto. 
  */
  .page-layout {
    flex: 1 0 auto;
    width: 90%;
    max-width: 1200px;
  
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: center;
    margin: 0 auto; /* center it horizontally in the page */
  }
  
  /* ============================
     5. Left Column (Discord)
     ============================ */
  .left-column {
    display: flex;
    justify-content: center;
  }
  
  .join-discord {
    font-family: 'FredokaOne', sans-serif;
    font-size: 48px;
    color: #2A1D12;
    text-align: center;
    line-height: 1.2;
  }
  
  /* ============================
     6. Center Column (Flip-Card)
     ============================ */
  .center-column {
    display: flex;
    justify-content: center;
  }
  
  /* Flip container with 3D perspective */
  .flip-container {
    perspective: 1000px;
    cursor: pointer; /* so user sees clickable */
  }
  
  .flashcard-inner {
    position: relative;
    width: 500px;
    height: 300px;
    transform-style: preserve-3d;
    transition: transform 0.8s;
  }
  
  .flashcard-inner.is-flipped {
    transform: rotateY(180deg);
  }
  
  /* Each face: front/back */
  .flashcard-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    background-color: #FFFDF9;
    overflow: visible;
    top: 0;
    left: 0;
  }
  
  /* The back side rotated 180 */
  .flashcard-back {
    transform: rotateY(180deg);
  }
  
  /* Back text example styling */
  .back-text {
    font-family: 'Comfortaa', sans-serif;
    font-size: 32px;
    color: #C49C6E;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  
  /* Front text styling */
  .flashcard-text {
    font-family: 'Comfortaa', sans-serif;
    font-size: 32px;
    color: #C49C6E;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  
  /* ============================
     7. Flashcard Buttons
     ============================ */
  .flashcard-button {
    position: absolute;
    width: 48px;
    height: 48px;
    padding: 8px;
    border: 1px solid #2A1D12;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
  
    background-color: #FFFDF9;
    transform-origin: center center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  
  /* Distinct background colors */
  .button-lightbulb {
    background-color: #FFFCBE;
  }
  .button-book {
    background-color: #C6DBFF;
  }
  .button-speaker {
    background-color: #F8C5D0;
  }
  .button-arrow {
    background-color: #E5FFE4;
  }
  
  /* Corner positions */
  .top-left {
    top: 16px;
    left: 16px;
  }
  .top-center {
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
  }
  .top-right {
    top: 16px;
    right: 16px;
  }
  .bottom-left {
    bottom: 16px;
    left: 16px;
  }
  .bottom-right {
    bottom: 16px;
    right: 16px;
  }
  
  /* Hover effect */
  .flashcard-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  }
  .top-center:hover {
    transform: translateX(-50%) scale(1.05);
  }
  
  /* Icon inside */
  .flashcard-button img {
    width: 32px;
    height: 32px;
    object-fit: contain;
  }
  
  /* ============================
     8. Right Column (More Cards)
     ============================ */
  .right-column {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .more-cards {
    font-family: 'FredokaOne', sans-serif;
    font-size: 32px;
    color: #2A1D12;
    margin-bottom: 24px;
  }
  
  .mini-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 120px);
    grid-auto-rows: 120px;
    gap: 20px;
  }
  
  .mini-card {
    width: 120px;
    height: 120px;
    background-color: #FFFDF9;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .coming-soon {
    font-family: 'Comfortaa', sans-serif;
    font-size: 16px;
    color: #C49C6E;
    text-align: center;
    line-height: 1.3;
  }
  
  /* ============================
     9. Wrapper + Counter
     ============================ */
  .flashcard-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .card-counter {
    margin-top: 32px;
    font-family: 'GochiHand', cursive;
    font-size: 32px;
    color: #2B1E13;
    text-align: center;
  }
  
  /* ============================
     10. Footer
     ============================ */
  .site-footer {
    flex-shrink: 0;        /* keep footer at bottom */
    width: 100%;           /* full width */
    background-color: #3E2C1C; 
    color: #fff;
    padding: 20px;
    text-align: center;
    margin-top: 40px; /* spacing above footer if content is short */
  }
  
  .footer-text {
    margin: 0;
    font-family: 'Comfortaa', sans-serif;
    font-size: 16px;
    margin-bottom: 8px;
  }
  
  .footer-links {
    display: inline-block;
  }
  
  .footer-links a {
    margin: 0 10px;
    color: #fff;
    text-decoration: none;
    font-family: 'Comfortaa', sans-serif;
  }
  
  .footer-links a:hover {
    text-decoration: underline;
  }
  
  /* ============================
     11. Mobile Media Queries
     ============================ */
     @media screen and (max-width: 768px) {
  
      /* Hide "Join the Discord!" */
      .left-column {
        display: none;
      }
    
      /* Single-column layout */
      .page-layout {
        grid-template-columns: 1fr; /* only one column now */
        grid-row-gap: 30px;
      }
    
      /* Scale down entire flip-container */
      .flip-container {
        transform: scale(0.75);
        transform-origin: top center;
        margin: 0 auto;
      }
    
      /* If you want more or less scaling, adjust 0.85 to 0.8 or 0.9, etc. */
    
      /* Avoid horizontal overflow */
      .center-column {
        overflow: hidden; }
      }
    

