/* General styling for the body */
body {
    background-color: #1e293b; /* Dark background for better contrast */
    color: white;
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

/* Styling for the header */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    padding: 1rem;
    background-color: #1B2E3C;
    border-bottom: 2px solid #3bf6ae;
}

/* Button styling */
#export {
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background 0.3s;
}

#export:hover {
    background: #2563eb;
}

/* Container styling */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    padding: 2rem;
}

/* Styling for the form container */
.memeForm {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 500px;
    padding: 1rem;
    background-color: #273244;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Box styling for form elements */
.box {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

/* Form element spacing */
.box div {
    margin-bottom: 20px;
}

/* Styling for text input containers */
.text_input {
    display: flex;
    align-items: center;
    height: 50px;
    background-color: #353b48;
    border-radius: 30px;
    padding: 0 20px;
}

/* Styling for input fields */
.input {
    flex-grow: 1;
    color: white;
    border: 0;
    outline: 0;
    background: none;
    width: 250px;
    line-height: 30px;
    transition: width 0.4s linear;
    padding: 0 10px;
    border: 1px solid #3b82f6;
    border-radius: 50px;
}

/* Slider container styling */
.sliderContainer {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
}

/* Styling for sliders */
#textSizeTop,
#textSizeBottom {
    -webkit-appearance: none;
    appearance: none;
    height: 18px;
    width: 100%;
    border-radius: 10em;
    background-color: deepskyblue;
    outline: none;
    margin-bottom: 14px;
}

/* Slider thumb styling */
#textSizeBottom::-webkit-slider-thumb,
#textSizeTop::-webkit-slider-thumb,
#textSizeBottom::-moz-range-thumb,
#textSizeTop::-moz-range-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
    border: 3px solid #f4f4f4;
}

/* Checkbox styling */
input[type="checkbox"] {
    display: none;
}

/* Checkbox label styling */
input[type="checkbox"] + label {
    display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 20px;
    font: 14px/20px "Open Sans", Arial, sans-serif;
    color: #ddd;
    cursor: pointer;
    user-select: none;
}

/* Checkbox label before styling */
input[type="checkbox"] + label:before {
    content: "";
    display: block;
    width: 20px;
    height: 20px;
    border: 2px solid #6cc0e5;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0.6;
    transition: all 0.12s, border-color 0.08s;
}

/* Checkbox checked state styling */
input[type="checkbox"]:checked + label:before {
    width: 10px;
    top: -5px;
    left: 5px;
    border-radius: 0;
    opacity: 1;
    border-top-color: transparent;
    border-left-color: transparent;
    transform: rotate(45deg);
}

/* Fullwidth canvas styling */
.fullwidth {
    width: 100%;
    min-width: 400px;
    max-height: 800px;
    margin-top: 20px;
}

/* Canvas wrapper styling */
#canvasWrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    padding: 1rem;
    background-color: #1e293b;
}
