body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.container {
    text-align: center;
    background: white;
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    width: 60%; /* Controls the width of the entire container */
}

h1 {
    color: #333;
}

input[type="file"], button {
    margin: 20px 0;
}

button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 5px;
}

#resultContainer {
    background-color: #e0e0e0;
    border-radius: 5px;
    padding: 10px;
    width: 80%; /* Controls the width of the results container */
    margin: 0 auto; /* Centers it on the page */
    max-height: 300px; /* Maximum height */
    overflow-y: auto; /* Adds a scrollbar */
}

#resultText {
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 0;
}

#copyButton {
    display: block;
    width: 100%;
    margin-top: 10px;
}

.json-key {
    color: #a52a2a; /* Color for keys */
    font-weight: bold;
}

.json-value {
    color: #00008b; /* Color for values */
}

.json-string {
    color: #008000; /* Color for string values */
}
