.json_formatter {
    display: flex;
    flex-direction:column;
    justify-items: center;
    align-items: center;
    font-family: 'Courier New', Courier, monospace;
    border: 1px solid var(--form-border-color);
    border-radius: 10px;
}


.json_formatter .code {
    flex: 1;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    width: 100%; /* Ensure the .code container takes up the full width */
    height: 100%; /* Ensure the .code container takes up the full height */
}

.json_formatter .code textarea {
    flex:1;
    padding:20px;
    margin: 0;
    border:0;
    border-radius: 5px;
    background: var(--form-background-color);
    color: var(--form-text-color);
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.2em;
    resize: none;
    min-height:28vh;
    height: 100%; /* Ensure the textarea takes up the full height of the .code container */
}

.json_formatter .code textarea:focus {
    outline: none;
}

.json_formatter .buttons {
    flex: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding:20px;
    border: 0px solid var(--background-color);
    width: calc(100% - 40px);
}

.json_formatter .buttons button {
    margin: 0 5px;
}

#copyButton {
    min-height: calc(28vh - 20px); /* 25vh - 20px padding on top and bottom */
    background-color: var(--accent-color);
    color: var(--accent-font-color);
    padding: 10px;
    display: flex; /* Use Flexbox */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    transition: background 0.3s;
    cursor: pointer;
}

#copyButton:hover {
    background-color: var(--secondary-color);
    color: var(--secondary-font-color);
}

.json_formatter .output #copyButton {
    border-radius: 0 5px 5px 0;
}

.json_formatter .output textarea {
    border-radius: 5px 0 0 5px;
}


.notification {
    display: none;
    position: fixed;
    top: 240px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}