/* body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background-color: #f0f0f0
} */

@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap');

body {
  font-family: "Source Sans 3", sans-serif;
  font-optical-sizing: auto;
  font-weight: 14;
  font-style: normal;
  /* display: grid; */
  place-content: center;
  min-height: 95vh;
  /* hide y axis overflow */
  /* overflow-y: hidden; */
}

.post-box {
    
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow:  0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    padding: 20px;
  }

  .header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
  }

  .profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
  }

  .name {
    font-weight: bold;
    margin-right: 10px;
  }

  .privacy {
    color: #666;
  }

  .input-area {
    padding-right: 20px;
  }
  textarea {
    width: 100%;
    height: 250px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    font-family: inherit;
    font-size: 16px;
  }

  .actions {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
  }

  .actionButton {
    display: flex;
  }

  /* .actionButton button {
    margin-right: 2px;
  } */

  .button-group button:last-child {
    margin-right: 0;
  }

  .actions button {
    margin-left: 10px;
    padding: 8px 16px;
    background-color: #f2f2f2;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
  }

  #post-btn {
    background-color: #0a66c2;
    color: #fff;
  }

  #post-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
  }



  .checkbox-con {
    margin: 10px;
    display: flex;
    align-items: center;
    color: white;
    
   }
   
   .checkbox-con input[type="checkbox"] {
    appearance: none;
    width: 48px;
    height: 27px;
    border: 2px solid #ff0000;
    border-radius: 20px;
    background: #f1e1e1;
    position: relative;
    box-sizing: border-box;
   }
   
   .checkbox-con input[type="checkbox"]::before {
    content: "";
    width: 14px;
    height: 14px;
    background: rgba(234, 7, 7, 0.5);
    border: 2px solid #ea0707;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
    transform: translate(13%, 15%);
    transition: all 0.3s ease-in-out;
   }
   
   .checkbox-con input[type="checkbox"]::after {
    content: url("data:image/svg+xml,%3Csvg xmlns='://www.w3.org/2000/svg' width='23' height='23' viewBox='0 0 23 23' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M6.55021 5.84315L17.1568 16.4498L16.4497 17.1569L5.84311 6.55026L6.55021 5.84315Z' fill='%23EA0707' fill-opacity='0.89'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M17.1567 6.55021L6.55012 17.1568L5.84302 16.4497L16.4496 5.84311L17.1567 6.55021Z' fill='%23EA0707' fill-opacity='0.89'/%3E%3C/svg%3E");
    position: absolute;
    top: 0;
    left: 20px;
   }
   
   .checkbox-con input[type="checkbox"]:checked {
    border: 2px solid #02c202;
    background: #e2f1e1;
   }
   
   .checkbox-con input[type="checkbox"]:checked::before {
    background: rgba(2, 194, 2, 0.5);
    border: 2px solid #02c202;
    transform: translate(133%, 13%);
    transition: all 0.3s ease-in-out;
   }
   
   .checkbox-con input[type="checkbox"]:checked::after {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='13' viewBox='0 0 15 13' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M14.8185 0.114533C15.0314 0.290403 15.0614 0.605559 14.8855 0.818454L5.00187 12.5L0.113036 6.81663C-0.0618274 6.60291 -0.0303263 6.2879 0.183396 6.11304C0.397119 5.93817 0.71213 5.96967 0.886994 6.18339L5.00187 11L14.1145 0.181573C14.2904 -0.0313222 14.6056 -0.0613371 14.8185 0.114533Z' fill='%2302C202' fill-opacity='0.9'/%3E%3C/svg%3E");
    position: absolute;
    top: 5px;
    left: 5px;
   }
   
   .checkbox-con label {
    margin-left: 10px;
    cursor: pointer;
    user-select: none;
   }
   
   #doc-btn {
    /* width: 35%; */
    /* height: 100%; */
    display: flex;
    align-items: center;
    justify-content: center;
    /* color: rgb(233, 11, 11); */
    /* background-color: rgb(0, 0, 0); */
  }

  .spinner-border {
    width: 1rem;
    height: 1rem;
    border-width: 0.2em;
  }

  #spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    border-top-color: #f2f2f2;
    animation: spin 1s ease-in-out infinite;
  }
  
  @keyframes spin {
    to { transform: rotate(360deg); }
  }

  #rewrite-btn {
    color: #f2f2f2;
    background: rgb(255, 77, 77);
    position: relative;
    overflow: hidden;
  }
  
  #rewrite-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(-45deg, transparent 40%, rgba(255, 255, 255, 0.5) 50%, transparent 60%);
    transform: translateX(-100%);
    transition: transform 0.5s;
  }
  
  #rewrite-btn:hover::after {
    transform: translateX(100%);
  }



  .toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ea0707;
    color: #ffffff;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    width: fit-content;
    margin: 0 auto;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
  }
  
  .toast.show {
    opacity: 1;
  }

  .blog-content {
    max-width: 800px;
    margin: 30px auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    padding: 20px;
    line-height: 1.6;
    text-align: center; /* Align the text to the center */
    font-weight: 400;
  }
  
  .blog-content h2 {
    font-size: 2em;
    color: #333;
    margin-bottom: 0.75em;
  }
  
  .blog-content p {
    font-size: 1em;
    color: #000000; /* Make the text darker */
    margin-bottom: 1.5em;
  }
  
  .blog-content ol {
    margin-left: 1.5em;
    text-align: left; /* Keep the list items left-aligned */
  }
  
  .blog-content ol li {
    margin-bottom: 1em;
  }
  
  .blog-content section {
    margin-bottom: 2em;
  }
  
  .blog-content section:last-child {
    margin-bottom: 0;
  }

@media (max-width: 768px) {
  .actions{
    flex-direction: column;
    align-items: center;
  }

}