body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    background-color: #CEE6F2;
}

.navbar {
    background-color: #962E2A;
    padding: 0.25rem 1rem;
    height: 40px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
    border-radius: 5px;
}

.nav-content {
    font-variant: small-caps;
    letter-spacing: 1px;
}

.navbar-brand {
    color: white;
    font-size: 1rem;
    line-height: 50px;
}

.image-container {
    width: 500px;
    height: 350px;
    overflow: hidden;
    border: 1px solid #070707;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f8f8f8;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

input[type="range"] {
    width: 100%;
    height: 5px;
    background: #ddd;
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: maroon;
    border-radius: 50%;
    cursor: pointer;
}

.code-block textarea {
    width: 90%;
    height: 200px;
    padding: 8px;
    resize: none;
    font-family: monospace;
    font-size: 14px;
    background-color: rgba(248, 248, 248, 0.5);
    border: 1px solid rgba(221, 221, 221, 0.5);
}

.button-row {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 300px;
}

.button-row .reset {
    padding: 12px 10px;
    background-color: maroon;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 200px;
    margin: 0 5px;
    font-size: 14px;
}

.button-row .reset:hover {
    background-color: #962E2A;
}

.nav-content {
    display: flex;
    width: 100%;
    justify-content: space-between;
}

.home-link {
    color: white;
    text-decoration: none;
    font-size: 1rem;
}

.nav-title {
    color: white;
    font-size: 1rem;
    margin-left: auto;
}

.main-container {
    width: 80%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: #d8c1bf;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    /* Enhanced shadow for depth */
    overflow: hidden;
}

.navigation-bar {
    background-color: maroon;
    padding: 10px 20px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.home-link {
    color: white;
    text-decoration: none;
    font-size: 1rem;
}

.nav-title {
    color: white;
    font-size: 1.5rem;
}

.content-wrapper {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.content-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.image-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-container {
    width: 100%;
    height: 300px;
    /* Adjust height as needed */
    border: 1px solid #ccc;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(248, 248, 248, 0);
}

.code-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.code-block textarea {
    padding: 8px;
    resize: none;
    font-family: monospace;
    font-size: 14px;
    background-color: rgba(248, 248, 248, 0);
    border: 1px solid rgba(221, 221, 221, 0.5);
}

.settings {
    padding: 20px;
    width: 100%;
}

.settings-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 15px;
}

.setting-item {
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 8px;
    font-weight: bold;
    color: maroon;
}

.button-row {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
}

.button-row button {
    padding: 8px 20px;
    background-color: #962E2A;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.button-row button:hover {
    background-color: #962E2A;
}

@media screen and (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
    }
    .image-container {
        height: 200px;
        /* Adjust for smaller screens */
    }
    .flex-container {
        flex-direction: column;
    }
}

.flex-container {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.image-upload {
    flex: 1;
    margin-right: 20px;
}

.code-block {
    flex: 1;
}

#uploaded-image {
    display: none;
}

#message {
    display: none;
    color: red;
}