* {
  margin: 0;
  padding: 0;
  /* box-sizing: inherit; */
}

html {
  /* box-sizing: border-box; */
  height: 100%;
  width: 100%;
}

body {
  position: relative;
  font-family: sans-serif;
  color: #444;
  line-height: 1.5;
  min-height: 100%;
  min-width: 100%;
  background-image: linear-gradient(to left top, #008494, #00b6be, #12ebe2);
  /* background-size: cover; */
  background-attachment: fixed;
  /* background-repeat: no-repeat; */
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* --- Styling for "Yummy Bites" and Add New Recipe button --------- */

.container {
  width: 100%;
}
.header {
  margin: 0rem 2rem 5rem;
  padding-top: 2rem;
}
.main-heading {
  text-align: center;
  margin-bottom: 2.5rem;
}

.add-recipe-btn-container {
  width: 80%;
  text-align: center;
  margin: 0 auto;
}

.add-btn {
  padding: 0.75rem 1.25rem;
  border-radius: 7rem;
  border: none;
  font-weight: bold;
  font-size: 1rem;
  color: #555;
  text-align: center;
  cursor: pointer;
  background-color: #f8f8f8;
}

/* --- Cards ---------------------------------------------------- */

.card-container {
  width: 80%;
  height: 100%;
  /* text-align: center; */
  margin: 0 auto;
  margin-bottom: 1rem;
  background-color: #f8f8f8;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  border-radius: 0.5rem;
  padding: 1.5rem;
}

.recipe-title {
  margin-bottom: 2rem;
}

.recipe-contents section h3 {
  margin-bottom: 0.5rem;
}

.recipe-contents section p {
  margin-bottom: 1.5rem;
}

.delete-btn {
  cursor: pointer;
  background-color: #3498db;
  border: none;
  color: #fff;
  border-radius: 0.5rem;
  padding: 0.4rem 1rem;
  font-size: 0.95rem;
  letter-spacing: 0.1rem;
}

/* --- Form ---------------------------------------------------- */

.hidden {
  visibility: hidden;
}

/* .form-container {
  pointer-events: none;
} */

.form-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  width: 90%;
  height: 90%;

  display: flex;
  align-items: center;
}

.modal {
  /* pointer-events: auto; */

  position: relative;
  padding: 1rem 1.5rem;
  background-color: #fff;
  width: 100%;
  height: 100%;
  border-radius: 0.5rem;
  overflow-y: auto;
  font-size: 1rem;
}

.modal h2 {
  margin-bottom: 2rem;
  text-align: center;
  font-size: 1.5rem;
}

.modal label {
  display: block;
  margin-bottom: 0.3rem;
}

.modal textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin-bottom: 2rem;
  padding: 0.5rem;
  border: 0.05rem #dadada solid;
}

.modal input {
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin-bottom: 2rem;
  padding: 0.5rem;
  border: 0.05rem #dadada solid;
  /* font-size: 1.25rem; */
}

.modal input:focus,
.modal textarea:focus {
  outline: 0;
  border-color: #bdbdbd;
}

.close-modal {
  position: absolute;
  top: 0;
  right: 0.75rem;
  border: none;
  font-size: 3rem;
  background: none;
  color: #444;
  cursor: pointer;
}

.btn-container {
  width: 100%;
  display: flex;
  justify-content: center;
}

.button {
  cursor: pointer;
  background-color: #3498db;
  border: none;
  color: #fff;
  border-radius: 0.5rem;
  padding: 0.4rem 1rem;
  font-size: 0.95rem;
  letter-spacing: 0.1rem;
  margin: 0.5rem 1rem;
  display: inline-block;
}

.clear {
  background-color: #9ec6e0;
  border: 0.05rem #9ec6e0 solid;
}
/* --- Overlay ------------------------------------------------- */

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(3px);
  z-index: 5;
}

/* --- Validation ---------------------------------------------- */

.form-control {
  position: relative;
}

.form-control small {
  position: absolute;
  bottom: -1.3rem;
  left: 0;
  /* color: #e74c3c; */
  /* visibility: hidden; */
}

input.error + small,
textarea.error + small {
  color: #e74c3c;
}

input.success + small,
textarea.success + small {
  color: #2ecc71;
}

/* .form-control.error small {
  visibility: visible;
} */

input.success,
textarea.success {
  border-color: #2ecc71;
}

input.error,
textarea.error {
  border-color: #e74c3c;
}
