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

.container {
display: flex;
width: 100vw;
height: 100vh;
}



.settings{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-basis: 60%;
    height: 100%;
    background-color: #1b9199;
}

.preview{
    flex-basis: 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#downloadLink{
    display: block;
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 16px;
    text-decoration: none;
    color: white;
    background-color: #1b9199;
    border-radius: 5px;
}

input, button {
    margin: 10px;
    padding: 10px;
    font-size: 16px;
}

#textInput{
    width: 60%;
    border-radius: 10px;
    font-family: 'Atma', sans-serif;
}





.custom-file-upload {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    color: #1b9199;
    background-color: #e2eee5;
    border: 2px solid #1b9199;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    transition: background 0.3s;
}

.custom-file-upload:hover {
    background-color: #1b9199;
    color: white;
    border-color: white;
}

#fileName {
    margin-top: 10px;
    font-size: 14px;
    color: #333;
}


#textInput:focus{
    outline: none;

}

canvas {
    display: block;
    margin-top: 20px;
    max-width: 100%;
    width: 90%;

    aspect-ratio: 8/10;
    border: 2px solid #808080;
}

/* Stylizacja suwaka */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    max-width: 300px;
    height: 8px;
    background: white;
    border-radius: 5px;
    outline: none;
    transition: background 0.3s;
    margin-bottom: 10px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: white;
    border: 3px solid #007bff;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: white;
    border: 3px solid #007bff;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s;
}

input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.2);
}

/* Stylizacja przycisku */
button {
    padding: 12px 24px;
    font-size: 18px;
    font-weight: bold;
    color: white;
    background-color: #007bff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

button:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

button:active {
    background-color: #003f7f;
    transform: scale(0.95);
}

/* Stylizacja tekstu obok suwaka */
#fontSizeRange{
    font-size: 18px;
    color: white;
    font-weight: bold;
    margin-bottom: 10px;
}

#fontSizeLabel {
    font-size: 22px;
    color: white;
    font-weight: bold;
    /* display: block; */
    margin-bottom: 10px;
}

@media screen and (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    

    .settings{
        margin-right: 0;
        width: 100%;
        height: auto;
        padding: 50px 0;
    }

    #textInput{
        width: 80%;
    }

    #downloadLink{
        margin-bottom: 20px;
    }
}