* {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
.main {
  width: 100%;
  height: 100dvh;
}
.main__section {
  padding: 1rem 2rem;

  width: inherit;
  height: inherit;
  
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}
.section__h1 {
  font-weight: bold;
  font-style: italic;
  font-size: 3.5em;
}
.section__textarea {
  padding: 10px;
  
  width: 100%;
  min-height: 50%;
  max-height: 90%;
  
  margin-top: 0.5rem;

  field-sizing: content;

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

  border-radius: 0.5rem;
  border: 1px solid black;
}
.section__div--buttons {
  width: inherit;
  
  display: flex;
  justify-content: flex-end;

  margin-top: 1rem;
  gap: 1.5rem;
}
.div__button--reset,
.div__button--submit,
.div__button-viewPosts {
  width: 11.5rem;
  padding: 0.5rem 2rem;
  border-radius: 1rem;
  
  color: black;

  z-index: 1;
  position: relative;

  font-weight: 1000;
  font-size: 1.1em;

  box-shadow: 4px 8px 19px -3px rgba(0,0,0,0.27);

  transition: all 250ms;
  overflow: hidden;
  
  &::before,
  &::before,
  &::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    z-index: -1;
    transition: all 250ms;
  }

  &:hover::before,
  &:hover::before,
  &:hover::before {
    width: 100%;
  }

  &:hover {
    transform: scale(1.05);
  }

  &:active {
    transform: scale(.95);
  }
}
.div__button--reset {
  background-color: #da2c38c5;
  border: 5px solid #da2c3800;
  
  &::before {
    background-color: white;
  }
}
.div__button--submit {
  background-color: #4ad66d;
  border: 5px solid #4ad66d00;
  
  &::before {
    background-color: white;
    color: black;
  }
}
.div__button-viewPosts {
  background-color: #219ebc;
  border: 5px solid #4ad66d00;

  &::before{
    background-color: white;
    color: black;
  }
}

/* Modal */
.warring {
  width: 2rem;
}
.modal-dialog {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding: 0;
  width: 100%;
  height: 100dvh;

  display: flex;
  justify-content: center;
  align-items: center;
}
.check-img {
  width: 5.5rem;
}
.modalcheckContent {
  gap: 1rem !important;
}
.modalcheckTitle {
  font-size: 2em;
  font-weight: bolder;
}
.button__OtherPost,
.button__ViewPost {
  width: 9rem;
  padding: 0.5rem 1rem;
  background-color: transparent;
  border-radius: 0.5rem;
  border: 2px solid var(--color);
  transition: 0.5s;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  z-index: 1;
  font-size: 1.1em;
  font-weight: 500;
  color: var(--color);

  &::before,
  &::after {
    content: '';
    display: block;
    height: 100%;
    width: 100%;
    transform: skew(90deg) translate(-50%, -50%);
    position: absolute;
    inset: 53.5%;
    left: 53.5%;
    z-index: -1;
    transition: 0.5s ease-out;
    background-color: var(--color);
  }
  &::before {
    inset: -53.5%;
    left: -53.5%;
    transform: skew(90deg) rotate(180deg) translate(-50%, -50%);
  }
  &:hover::before {
    transform: skew(45deg) rotate(180deg) translate(-50%, -50%);
  }
  &:hover::after {
    transform: skew(45deg) translate(-50%, -50%);
  }
  &:hover {
    color: var(--color2);
  }
  &:active {
    filter: brightness(0.7);
    transform: scale(0.98);
  }
}

.button__OtherPost {
  --color: #6c757d;
  --color2: #ffffff;
}
.button__ViewPost {
  --color: #219ebc;
  --color2: #000000;
}

@media screen and (width <= 768px) {
  .section__div--buttons {
    justify-content: space-evenly;
    flex-wrap: wrap-reverse;
  }
}

@media screen and (width <= 425px) {
  .section__div--buttons {
    justify-content: center;
  }
  .div__button-viewPosts,
  .div__button--reset,
  .div__button--submit {
    text-align: center;
    width: 100%;
  }

  .section__h1 {
    font-size: 12vw;
    text-align: center;
  }
}