body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    margin-top: 20px;
}

#textInput {
    width: 90%;
    max-width: 600px; /* Set a max width for larger screens */
    height: 200px;
    margin-top: 20px;
    margin-bottom: 5px;
}

.info {
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
}

.controls {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

button {
    padding: 10px 20px;
}

#textInfo {
    font-size: 14px;
    color: #444;
    margin-bottom: 10px;
}

#output {
    width: 90%;
    max-width: 600px; /* Set a max width for larger screens */
    margin-bottom: 20px;
}

.chunkTitle {
    font-weight: bold;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

.chunk {
    border: 1px solid #ddd;
    margin-bottom: 10px;
    padding: 10px;
    background-color: #f9f9f9;
    font-size: 14px;
    overflow-y: auto;
}


/* Adjustments for smaller screens */
@media (max-width: 600px) {
    #textInput, #output {
        width: 95%;
    }

    .controls, .chunkTitle {
        flex-direction: column;
        align-items: center;
    }

    .controls input[type="number"], 
    .controls button {
        width: 90%;
        max-width: 300px; /* Prevent the input and button from being too wide on small screens */
    }

    .chunkTitle {
        flex-direction: column;
        align-items: flex-start;
    }
}

#toastContainer {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.toast-message {
  background-color: #333;
  color: white;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 5px;
  opacity: 0.9;
  transition: opacity 0.5s;
}


/* Additional responsive adjustments */
@media (max-width: 400px) {
    .info, #textInfo, .chunk {
        font-size: 10px; /* Smaller font size for very small screens */
    }

    .copyButton, .chunkTitle {
        padding: 3px 6px; /* Smaller padding for buttons and titles */
    }
}

/* 청크 컨테이너 스타일 */
.chunk-container {
  margin-bottom: 10px;
  padding: 5px;
  border: 1px solid #ddd;
  background-color: #f8f9fa;
}

/* 청크 헤더 스타일 */
.chunk-header {
  font-weight: bold;
  margin-bottom: 5px;
}

/* 복사된 후의 버튼 스타일 변경 */
.copied {
  background-color: #4CAF50; /* green */
  color: white;
}

/* 버튼 스타일 추가 */
.copyButton {
  cursor: pointer;
  padding: 5px 10px;
  margin-top: 5px;
  margin-bottom: 5px;
  background-color: #f8f9fa;
  border: 1px solid #ddd;
}

.copyButton:hover {
  background-color: #e2e3e5;
}