.ck.ck-toolbar {
    /* border: 1px solid var(--alpha-30) !important; */
    border-bottom-width: 0 !important;
}

.ck.ck-sticky-panel .ck-sticky-panel__content_sticky {
    position: absolute !important;
}

.ck-widget__type-around__button::after,
.ck-widget__type-around__button_before,
.ck-widget__type-around__button_after {
    width: 48px !important;
    height: 48px !important;
}


article.write form>div {
    width: 100%;
}

article.write h1 {
    font-size: 1.25rem; /* 1104 수정 */

}

article .wrap {
    display: flex;
    justify-content: center;
}

article .subContainer {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

article .subContainer>.mainMinorSubject {
    display: flex;
    flex-direction: row;
    gap: 10px;
    justify-content: space-between;
}

article select {
    box-sizing: border-box;
    width: 100%;
    padding: 12px 32px 12px 12px;
    font-size: 0.875rem;
    color: var(--default-anchor-color);
    cursor: pointer;
    background: var(--alpha-5) url(../../img/ver2/icon_selectbox_select.svg) right 12px center no-repeat;
    border: 0;
    border-radius: 8px;
    appearance: none;
}

article select:disabled {
    color: var(--alpha-20); /* 1004 수정 */
    background: var(--default-background-color) url(../../img/ver2/icon_selectbox_select_disabled.svg) right 12px center no-repeat;
    border: var(--alpha-5) 1px solid;
}

article select:focus,
article input[type="text"]:focus {
    color: var(--default-font-color);
    background-color: var(--default-background-color);
    outline: solid var(--point-color) 1px;
    box-shadow: 0 0 6px rgb(28 168 175 / 70%) !important;
    box-shadow: 0 0 6px rgb(28 168 175 / 70%) !important;
    appearance: none !important;
}

article .boardContainer {
    width: 50%;
}

article .categoryContainer {
    width: 50%;
}

article .checkBox {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: flex-start;
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
}

.checkBoxItem {
  box-sizing: border-box;
  flex: 0 0 auto;                     /* Prevent items from shrinking */
  scroll-snap-align: start;           /* Optional: align snapping at start */
}

article .noticeCheckBoxShow,
article .commentCheckBoxShow {
    display: flex;
    flex-direction: row;
}

article .noticeCheckBoxShow label,
article .commentCheckBoxShow label {
    cursor: pointer;
}

article .noticeCheckBoxShow input,
article .commentCheckBoxShow input {
    margin-right: 8px;
    cursor: pointer;
}

article .checkBoxPrimaryNotice,
article .checkBoxNotice,
article .checkBoxUseBest,
article .checkBoxCloseComment,
article .checkBoxStopComment,
article .checkBoxIsRealTime {
    display: flex;
    flex-direction: row;
    gap: 4px;
    align-items: center;
    font-size: 0.875rem;
    color: var(--default-anchor-color);
}

article .checkBoxNotice,
article .checkBoxUseBest,
article .checkBoxStopComment,
article .checkBoxIsRealTime  {
    margin-left: 4px;
}

.noticeCommentStatus {
    padding: 12px;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.3125rem;
    color: var(--warning-color);
    text-align: center;
    word-break: keep-all;
    background-color: var(--warning-color-10);
    border: 0;
    border: 1px solid var(--warning-color-10);
    border-radius: 4px;
}

article.write .title {
    display: flex;
    width: 100%;
}

article.write form {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0 16px;
}

article.write input[type="text"],
article.write input[type="password"],
article.write .files {
    box-sizing: border-box;
    flex: 1;
    width: 100%;
    padding: 12px;
    font-size: 0.875rem;
    background-color: var(--alpha-5);
    border: 0;
    border-radius: 8px;
}


article.write .files>span {
    display: flex;
    align-items: center;
}

article.write .files input[type="text"],
article.write .files input[type="file"] {
    min-width: 210px;
    height: auto;
    padding: 0;
    color: var(--default-font-color);
    text-overflow: ellipsis;
    background-color: transparent;
    border: 0;
}

article.write .files .remove {
    margin-left: 4px;
    cursor: pointer;
}

article.write .files.new {
    display: none;
}

article.write .files.new.active {
    display: flex;
}

article.write .files.new .remove {
    display: none;
}

article.write .files.new .remove.active {
    display: block;
}

article.write .files .inputs {
    display: flex;
    justify-content: start;
}

article.write .files .insert {
    display: none;
    padding: 4px;
    color: #000;
    cursor: pointer;
    background-color: #eee;
    border: solid 1px #767676;
    border-radius: 3px;
}

article.write .files .insert.active {
    display: block;
}

article.write .hint {
    margin: 8px 0;
    font-size: 0.75rem;
    color: var(--alpha-50);
}

article.write .button {
    flex: 1;
}

/* article button 클래스 삭제 필요 */

article.write .content {
    color: var(--default-font-color);
    background-color: var(--alpha-5);
    border-radius: 8px;
}

article.write .content .textareaContainer {
    width: 100%;
}

article.write .content .textareaContainer textarea,
article.write .content .textareaContainer .ck-content {
    background-color: transparent !important;
}

article.write .content .textareaContainer .wordCount {
    display: flex;
    align-items: center;
    justify-content: end;
    padding: 12px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--alpha-50);
}

article.write .content a {
    color: var(--point-background-color);
    text-decoration: underline;
}

article.write .customFieldContainer {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

article.write .html {
    padding: 0;
    border-radius: 8px;
}

article.write .html textarea,
.CodeMirror {
    width: 100%;
    height: 500px;
    font-size: 0.875rem;
    border: 1px solid var(--alpha-30);
}


.ck-editor__editable {
    width: 100%;
}

.ce-header {
    padding: 0;
    margin: 0;
    line-height: 1.6rem;
}

.ce-paragraph {
    padding: 0;
    margin: 0;
    line-height: 1.6rem;
}

li {
    padding: 0;
    margin: 0;
}


@media only screen and (min-width: 1200px) {
    article.write h1 {
        font-size: 1.5rem !important; /* 1104 수정 */
    }

    article.write form {
        padding: 0;
    }
}

.voteContainer {
    display: flex;
    flex-direction: column; /* Arrange children in a column */
    gap: 20px; /* Optional: Add space between the elements */
    padding: 20px; /* Add padding inside the container */
    margin-top: 10px; /* Add margin to the top of the buttons */
    margin-bottom: 10px; /* Add margin to the bottom of the buttons */
  }

  .voteHeader {
    display: flex;
    gap: 20px; /* Optional: Add space between the elements */
    align-items: center; /* Align items vertically centered */
  }

  #voteTitle {
    flex: 1; /* Allow the input to grow and fill available space */
  }

  .dateContainer {
    display: flex;
    gap: 10px; /* Optional: Add space between label and select */
    align-items: center;
    padding-top: 2px;
    padding-bottom: 2px;
    overflow-x: auto;
  }

  .dateContainer label {
    /* font-weight: bold; */
    white-space: nowrap; /* Prevent label text from wrapping */
  }

  .dateContainer select {
    width: auto; /* Adjust width to fit content */
    max-width: 100px; /* Optional: Set a maximum width */
    padding: 5px;
    font-size: 1rem;
  }

  .voteOptions .vote-option {
    display: flex;
    flex-direction: column; /* Arrange elements vertically */

    /* align-items: center; */
    margin-bottom: 10px; /* Add margin between vote-option elements */
  }

  .voteOptions .vote-option div {
    display: flex;
    flex-direction: row; /* Arrange elements vertically */
  }

  .voteOptions .vote-option:last-child {
    margin-bottom: 0; /* Remove margin from the last vote-option element */
  }

  .small-select {
    width: auto; /* Adjust width to fit content */
    max-width: 100px; /* Optional: Set a maximum width */
    padding: 2px 5px; /* Reduce padding */
    font-size: 0.7rem !important;
    background: none; /* Remove background */
    border: 1px solid var(--alpha-10); /* Add a border */
    border-radius: 10px; /* Rounded corners */
  }

  .optionButtons {
    display: flex;
    gap: 10px; /* Add space between the buttons */
    justify-content: center; /* Center align the buttons */
    margin-top: 10px; /* Add margin to the top of the buttons */
  }

  .optionButtons button {
    padding: 5px 10px;
    font-size: 1rem;
  }

  .hidden {
    display: none;
  }

  .voteView  {
    width: 100%;
    margin-bottom: 12px; /* Add margin to the bottom to create a gap between voteView elements */
  }

  .addVoteView {
    width: 100%;
    margin-bottom: 12px; /* Add margin to the bottom to create a gap between voteView elements */
  }

  #addVoteViewContainer {
    margin-bottom: 0;
  }

  .voteView:last-child {
    margin-bottom: 0; /* Remove margin from the last voteView element */
  }

  #addVoteViewContainerButton {
    border-radius: 10px !important;
  }

  .voteView .configVote {
    box-sizing: border-box; /* Ensure padding and border are included in the element's total width and height */
    display: inline-block;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
  }



  .voteView .addVote {
    box-sizing: border-box; /* Ensure padding and border are included in the element's total width and height */
    display: inline-block;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .voteViewsContainer .voteView {
    border: 1px solid var(--alpha-5);
    border-radius: 10px;
  }

  /* Buttons Styling */
  .preview-button,
 .delete-button {
    margin-left : 3px;
    font-size: 14px;

    /* margin-left: 10px; */
    white-space: nowrap;
    cursor: pointer;
    background-color: none;
    border : 0;
    border-radius: 0 !important;
  }

  .voteView button {
    border-radius: 10px;
  }

  .border-top {
    width: 100%;
    height: 1px;
    background-color: var(--alpha-5);
  }

  .button-container {
    display: flex;
    gap: 10px; /* Optional: Add space between the buttons */
  }

  .quitVote {
    width: 15%;
    margin-left: 0;
    font-weight: bold;
    color: var(--point-color);
    cursor: pointer;
    background-color: var(--alpha-5);
    border: 1px solid var(--alpha-5);
    border-radius: 0 !important;
    outline: none !important;
  }

  .deleteVote {
    width: 15%;
    margin-left: 0;
    font-weight: bold;
    color: var(--point-color);
    cursor: pointer;
    background-color: var(--alpha-5);
    border: 1px solid var(--alpha-5);
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    outline: none !important;
  }

  .button-container .quitVote:disabled {
    color: var(--point-background-color-20);
    cursor: not-allowed; /* Change cursor to indicate the button is disabled */
  }

  .image-upload-container {
    margin-top: 10px;
  }

  .image-upload-input {
    display: none;
    width: 100%;
  }

  .image-upload-label:hover {
    opacity: 0.8;
  }

  /* Image Preview */
  #image-preview {
    border-radius: 10px;

    /* box-shadow: 0 0 10px rgb(0 0 0 / 20%); */
  }

  .file-name-input {
    display: block;
    width: 100%;
    max-width: 100%;
    margin-top: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
    white-space: nowrap;
  }
