html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  background: #202124;
  color: #fff;
}

li {
  list-style-type: none;
}

.row {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 12px;
}

.header {
  margin-top: 36px;
  margin-bottom: 60px;
}

/*INPUT FORM*/
#notes-input {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-bottom: 32px;
}

#notes-input__form {
  display: flex;
  flex-direction: column; 
  align-items: center;
  gap: 36px;
}

#notes-input__form textarea {
  width: 100%;
  max-width: 90vw;
  background: #282c34;
  color: #fff;
  border-radius: 15px;
  border: 1px solid #444;
  padding: 15px;
  font-size: 1rem;
  transition: box-shadow 0.2s ease, border 0.2s ease;
}

#notes-input__form textarea:focus {
  outline: none;
  border-color: #4fc3f7;
  box-shadow: 0 0 10px rgba(79, 195, 247, 0.5);
}

#notes-input__button {
  border-radius: 10px;
  width: 120px;
  background: #4fc3f7;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

#notes-input__button:hover {
  background: #29b6f6;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(79, 195, 247, 0.4);
}



/*FLASHCARD SECTION*/

.flashcard {
  margin-bottom: 30px;
  perspective: 1000px;
  cursor: pointer;
}

.flashcard__list {
  padding-top: 40px;
}

.flashcard__wrapper {
  margin: 0 auto;
  padding: 0;
  border: 1px solid #ccc;
  border-radius: 15px;
  position: relative;
  transform-style: preserve-3d;
  width: 100%;
  height: 180px;
  background: #121212;
  transition: transform 0.6s, box-shadow 0.3s;
}

.flashcard__wrapper:hover {
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
  transform: scale(1.03); /* subtle pop */
}


.flashcard.flipped .flashcard__wrapper {
  transform: rotateX(180deg);
}

.flashcard-answer, .flashcard-question {
  box-sizing: border-box;
  position: absolute;
  backface-visibility: hidden;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 1.2rem;
  padding: 0 16px;
}

.flashcard-answer {
  transform: rotateX(180deg);
}


@media (min-width: 768px) {
  .flashcard-question, .flashcard-answer {
    font-size: 1.5rem;
  }
}

@media (max-width: 500px) {
  #notes-input__form textarea {
    font-size: 0.9rem;
  }
  #notes-input__button {
    width: 100px;
    font-size: 0.9rem;
  }
}