@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

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

body {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  background-color: aliceblue;
  overflow-x: hidden;
}

.container {
  width: calc(100% - 2rem);
  max-width: 1100px;
  margin-inline: auto;
}

header {
  padding-block: 1.8rem;
  background: rgb(51, 182, 131);
}

.invisible {
  display: none;
}

.headerContainer {
  display: flex;
  justify-content: space-between;
}

h1 {
  text-align: left;
  font-size: 1.8rem;
  font-weight: 700;
  color: aliceblue;
}

.addBtn {
  font-family: "Montserrat", sans-serif;
  padding: 0.6rem 1.2rem;
  font-weight: 600;
  font-size: 1.2rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: color ease-in-out 200ms;
  background: aliceblue;
}

.addBtn:hover {
  color: orangered;
  background: aliceblue;
}

.emtyMsgBox {
  text-align: center;
  padding-block: 80px;
  border: 1px solid gray;
  margin-top: 5%;
  border-radius: 10px;
  color: gray;
}

.itemContainer {
}

.item {
  display: flex;
  padding: 1rem;
  background: #fff;
  border-radius: 10px;
  margin-top: 1rem;
}

.item > div:nth-child(1) {
  width: 100px;
}

.item > div:nth-child(2) {
  padding-left: 1.6rem;
}

.item > div:nth-child(2) > h3 {
  margin-top: 22px;
}
.item > div:nth-child(2) > p {
  margin-top: 10px;
}

.contentFillContainer {
  background: #fff;
  padding: 3rem;
  padding-bottom: 1rem;
  width: fit-content;
  margin: 5% auto;
  position: relative;
}

.contentFillContainer > h3 {
  text-align: center;
  font-size: 1.4rem;
  margin-bottom: 32px;
  color: rgb(51, 182, 131);
}

.contentFillContainer > div {
  margin-block: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contentFillContainer > div:nth-last-child {
  margin: 0;
}

label {
  font-size: 1rem;
}

input {
  font-family: "Montserrat", sans-serif;
  padding: 8px 16px;
  font-size: 1rem;
  width: 700px;
  margin-left: 2rem;
  border: none;
  outline: 0.1px rgb(199, 199, 199) solid;
}

.buttonContainer {
  justify-content: right !important;
}

.formBtn {
  margin-left: 1rem;
  padding: 8px 16px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  background: rgb(51, 182, 131);
  border: none;
  border-radius: 10px;
  font-family: "Montserrat", sans-serif;
  cursor: pointer;
  transition: all ease-in-out 300ms;
  outline: 1px rgb(51, 182, 131) solid;
}

.formBtn:nth-child(1) {
  color: #fff;
  outline: 1px rgb(226, 107, 107) solid;
  background: rgb(226, 107, 107);
}

.formBtn:hover {
  background: #fff;
  color: rgb(51, 182, 131);
}

.formBtn:nth-child(1):hover {
  background: #fff;
  color: rgb(226, 107, 107);
}

.backDrop {
  width: 100vw;
  height: 100vh;
  background: black;
  opacity: 0.4;
  position: absolute;
  top: 0;
}

@media screen and (max-width: 600px) {
  .headerContainer {
    flex-direction: column;
    row-gap: 2rem;
    justify-content: center;
    align-items: center;    
  }

  .contentFillContainer > div {
    display: flex;
    flex-direction: column;
  }

  .contentFillContainer label {
    width: 100%;
  }

  .contentFillContainer input {
    width: 100%;
    margin: 0;
    margin-top: 10px;
  }

  .buttonContainer {
    display: flex;
    row-gap: 1rem;
  }

  .buttonContainer > button {
    width: 100%;
  }

  .contentFillContainer {
    width: calc(100% - 2rem);
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
   margin: 0;
   z-index: 10;
   padding: 1rem;
  }
}
