@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');


/* General Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


body {

  font-family: "Poppins", serif;
  background-color: #f7f7f7;
  margin: 0;
  padding: 20px;
  height: 100vh;
  background: linear-gradient(135deg, #ffecd2, #ee7f59);
  background-attachment: fixed;
  overflow-y: hidden;
}

.poppins-medium {
  font-family: "Poppins", serif;
  font-weight: 500;
  font-style: normal;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: white;
  cursor: pointer;
  padding: 5px;
  background-color: transparent;
}

.nav-links a:hover {
  color: rgba(255, 255, 255, 0.616);
}

.container {

  /* max-width: 600px; */
  width: 100%;
  height: 100%;
  margin: auto;
  /* background: linear-gradient(135deg, #e0f7fa, #80deea); */
  text-align: center;
  display: flex;
  justify-content: space-around;
  align-items: center;

}

.flashcard {

  padding: 20px 60px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 5px;
  text-align: center;
  width: 40%;
  position: relative;

}

#form input,
#form textarea,
button {

  padding: 10px;

  margin: 5px;

  border: 1px solid #ccc;

  border-radius: 5px;

}

#form h2{
 text-shadow: 0px 4px 15px rgba(0, 0, 0, 0.397);
}

textarea {

  resize: none;

  height: 60px;

  width: calc(100% - 22px);

}

button {

  background-color: #007bff;

  color: white;

  border: none;

  cursor: pointer;

}

button:disabled {
  display: none;
}


#edit-btn {
  background-color: white;
  position: absolute;
  top: 0;
  right: 32px;
  padding: 0;

}

#prev-btn {
  background-color: white;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  padding: 0;
}

#next-btn {
  background-color: white;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  padding: 0;
}

#delete{
  background-color: white;
  position: absolute;
  top: 0;
  right: 0;
  padding: 0;

}


button:hover {

  background-color: #0056b3;

}

.flashcard p {

  margin: 10px 0;

}

.flashcard .row{
  display: flex;
  /* align-items: center; */
}

.flashcard .label {
  font-weight: bold;
  width: 80px;
  padding-right: 5px;
  text-align: right;
  /* Adjust as needed */
  /* text-align: left; */
}


.modal {
  display: none;

  position: fixed;

  top: 0;

  left: 0;

  width: 100%;

  height: 100%;

  background: rgba(0, 0, 0, 0.5);

  justify-content: center;

  align-items: center;
}

.modal-content {
  background: linear-gradient(135deg, #ffafbd, #ffc3a0);

  padding: 20px;

  border-radius: 15px;

  width: 90%;

  max-width: 400px;

  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3);

  text-align: center;

  color: #333;
}

.modal-content h2 {
  margin-bottom: 15px;

  font-size: 1.5em;

  color: #fff;
}

.modal-content input,
.modal-content textarea {
  width: 90%;
  margin: 10px auto;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1em;
}

textarea {
  resize: none;
}

.modal-actions {
  margin-top: 20px;
}

.modal-actions button {
  padding: 10px 15px;

  background-color: #333;

  color: white;
}

.modal-actions button:hover {
  background-color: #555;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav {
    /* flex-direction: column; */
    text-align: center;
  }

  .nav-links {
    margin-top: 10px;
  }

  .container {
    flex-direction: column;
    align-items:center;

  }

  .flashcard {
    width: 90%;
    margin-bottom: 20px;
  }

  #form {
    width: 90%;
  }

  #prev-btn,
  #next-btn {
    width: 40px;
    height: 40px;
    padding: 5px;
  }
}

@media (max-width: 480px) {
  .flashcard p {
    font-size: 14px;
  }

  .modal-content {
    width: 95%;
  }
}