body {
    font-family: 'Roboto', sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}
h1 {
    color: #d32f2f;
    margin-top: 20px;
    margin-bottom: 0px;
    display: block;
    font-size: 2em;
    font-weight: bold;
    unicode-bidi: isolate;
}
h2{
    color: #d32f2f;
    margin: 0;
    display: block;
    font-size: 1.5em;
    font-weight: 200;
    unicode-bidi: isolate; 
}
.logo {
    float: left;
    width: 80px;
}
form.socialmediaform {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 800px;
    margin: 20px 0 50px 0;
    box-sizing: border-box;
}
.context-container{
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 800px;
    margin: 20px 0 50px 0;
    box-sizing: border-box;
}
label {
    display: block;
    margin-top: 10px;
}
select, input[type="text"], textarea, input[type="time"], input[type="date"], input[type="file"] {
    width: 100%; 
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}
button {
    background-color: #d32f2f;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 20px;
}
button:hover {
    background-color: #c62828;
}
button#deactivated, button#deactivated:hover{
    background-color: #888;
}
#canvas-container {
    position: relative;
    width: 100%;
    max-width: 1080px;
    margin: 20px 0;
}
#canvas {
    border: 1px solid black;
    width: 100%;
    height: auto;
}
#overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.button-container {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}
.button-container button {
    margin: 0 5px;
}
.header-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 12px;
    padding-bottom: 20px;
}
.header-container .text-container {
    flex: 1 1 auto;
    text-align: center;
}
#post-text{
    height: 500px;
}
.container{
    max-width: 1080px;
}

/* Modal styles */
    .start-modal {
        display: none;
        position: fixed;
        z-index: 1;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: auto;
        background-color: rgb(0, 0, 0);
        background-color: rgba(0, 0, 0, 0.4);
        padding-top: 60px;
    }

    .start-modal-content {
        background-color: #fefefe;
        margin: 5% auto;
        padding: 20px;
        border: 1px solid #888;
        width: 10%;
        border-radius: 10px;
    }

    .close {
        color: #aaa;
        float: right;
        font-size: 28px;
        font-weight: bold;
    }

    .close:hover,
    .close:focus {
        color: black;
        text-decoration: none;
        cursor: pointer;
    }
    .modal {
        backdrop-filter: blur(10px);
    }

/* Footer */
    .footer{
        position: fixed;
        left: 0;
        bottom: 0;
        width: 100%;
        font-size: 10px;
        text-align: center;
        box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.1);
        background-color: white;
    }

    .coppyright{
        padding: 10px 0 10px 0;
        color: darkgray;
    }

@media (max-width: 600px) {
    .header-container {
        flex-direction: column;
        align-items: center;
    }
    .button-container {
        flex-direction: column;
    }
    .button-container button {
        width: 100%;
        margin: 5px 0;
    }
    .container{
        max-width: 100%;
    }
    #post-text{
        max-width: 100%;
    }
    img#result-image{
        max-width: 100%;
    }
    .modal-content{
        width: 70%;
    }
}
