body {
    font-family: 'Nunito', sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
    color: #fff;
  }
  
  h1, h2 {
    color: #fff;
  }
  

  .row {
    display: flex;
    flex-wrap: wrap;
  }
  
  .col-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 10px;
    box-sizing: border-box;
  }
  
  @media (max-width: 768px) {
    .col-6 {
      flex: 0 0 100%;
      max-width: 100%;
    }
  }
  
.flashcard {
  border: 2px solid rgba(47, 110, 76, 0.5);
  border-radius: 35px;
  background: rgba(47, 110, 76, 0.25);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  padding: 25px 20px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.25),
              inset 0 1px 2px rgba(255,255,255,0.3),
              0 0 18px rgba(47, 110, 76, 0.35);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.flashcard:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 36px rgba(0,0,0,0.35),
              0 0 25px rgba(47, 110, 76, 0.55);
}


canvas {
  width: 100%;
  height: 300px;
  border: 2px solid rgba(47, 110, 76, 0.5);
  background: rgba(47, 110, 76, 0.2);
  border-radius: 35px;
  box-shadow: 0 6px 22px rgba(0,0,0,0.25),
              inset 0 1px 2px rgba(255,255,255,0.25),
              0 0 15px rgba(47, 110, 76, 0.35);
  touch-action: none;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

canvas:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 28px rgba(0,0,0,0.35),
              0 0 22px rgba(47, 110, 76, 0.55);
}


  
  #aksaraDisplay {
    font-size: 80px;
    margin-bottom: 5px;
  }
  
  #latinDisplay {
    font-size: 28px;
    margin-top: -20px;

  }
  
  .audio-button {
    margin-top: 10px;
    margin-bottom: 15px;
  }
  
  button {
    padding: 10px 18px;
    margin: 5px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 35px;
    border: none;
    background-color: #4e4949;
    color: white;
    transition: background 0.3s;
    font-family: 'Nunito', sans-serif;
  }
  
  button i {
    margin-right: 6px;
  }
  
  button:hover {
    background-color: #2F6E4C;
  }
  

  

  
  footer {
    text-align: center;
    padding: 25px 10px;
    font-size: 14px;
    color: #f1f1f1;
    background: none;
  }
  
  
  @media (max-width: 600px) {
    #aksaraDisplay {
      font-size: 60px;
    }
  
    #latinDisplay {
      font-size: 22px;
    }
  
    canvas {
      height: 220px;
    }
  
    button {
      font-size: 14px;
      padding: 8px 14px;
    }
  
    .container {
      padding-top: 80px;
    }
  }
  #aksaraDisplay {
    font-family: 'Noto Sans Bugis', serif;
  }


  .grid7.firstcol {
  border: 2px solid rgba(47, 110, 76, 0.5);
  border-radius: 25px;
  background: rgba(47, 110, 76, 0.2);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 6px 22px rgba(0,0,0,0.25),
              inset 0 1px 2px rgba(255,255,255,0.25),
              0 0 12px rgba(47, 110, 76, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid7.firstcol:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.3),
              0 0 18px rgba(47, 110, 76, 0.5);
}

.grid7.firstcol p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  nav ul {
    text-align: left !important;
    justify-content: flex-start !important;
  }

  nav li {
    text-align: left !important;
  }

  nav li a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left !important;
    gap: 6px;
  }
}
