body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(to right, #4facfe, #00f2fe);
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    overflow: hidden;
  }
  
  .container {
    text-align: center;
    width: 100%;
    max-width: 500px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
  }
  
  h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #333;
  }
  
  .input-section {
    margin-bottom: 20px;
  }
  
  input[type="text"] {
    width: 90%;
    padding: 15px;
    margin: 10px 0;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    outline: none;
  }
  
  button {
    padding: 12px 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: #00c6ff;
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: bold;
    transition: background-color 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 198, 255, 0.4);
  }
  
  button:hover {
    background-color: #0096d1;
  }
  
  .flashcard-container {
    display: none; 
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }
  
.flashcard {
  width: 400px;
  height: 250px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s ease; 
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.flashcard .front, .flashcard .back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: bold;
  padding: 20px;
  background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
  color: #fff;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.flashcard .front {
  background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
}

.flashcard .back {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  transform: rotateY(180deg);
}

.flashcard.flipped {
  transform: rotateY(180deg);  /* This triggers the flip animation */
}
  
  .navigation {
    display: none; /* Initially hidden */
    justify-content: center;
  }
  
  .navigation button {
    margin: 0 10px;
    width: 120px;
    padding: 10px;
    font-size: 16px;
    background-color: #f093fb;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(240, 147, 251, 0.4);
  }
  
  .navigation button:hover {
    background-color: #f5576c;
  }

.footer {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #333;
}

.footer-text {
    margin-right: 10px;
    font-weight: bold;
}

.footer-heart {
    width: 24px;
    height: 24px;
}
