/* Full-screen layout */
body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  overflow: hidden;
}

.container-fluid {
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0;
}

#flashcard-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f8f9fa;
  overflow: hidden;
  min-height: 0; /* Allows flex item to shrink */
}

#flashcard-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  width: auto;
  height: auto;
}

#next-btn {
  margin: 20px auto;
  padding: 15px 40px;
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  font-size: 1.2rem;
  font-weight: bold;
  border-radius: 8px;
}

/* Settings form styling */
#settings-form {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: 20px;
}

/* Loading indicator */
#loading {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Desktop adjustments */
@media (min-width: 768px) {
  #flashcard-container {
    height: 90vh;
  }
  
  #flashcard-img {
    max-height: 80vh;
  }
}
