:root {
    --max-width: 800px;
    --primary-color: #00206D;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

#main {
        display: flex;
        margin: 0;
        justify-content: space-evenly;
}            

.flex-item {
        display: block;
        text-align: center;
        width: 100%;
        height: 100%;
        padding: 0;
        margin: 0.5rem;
}

#heading {
    background: var(--primary-color);
    color: white;
    margin: 0;
    margin-bottom: 1rem;
    border-radius: 10px;
}

#heading h1 {
    margin: 0;
    padding: 1rem;
}

#editor {
    border: 3px solid var(--primary-color);
    width: 100%;
    margin: 0;
}

@media only screen and (max-width: 800px) {        

    #main {
        display: block;
        width: 100%;
        margin: 0;
        padding: 0;
        text-align: center;

    }

    #heading {
        border-radius: 0;
    }

    .flex-item {
        display: block;
        padding: 0;
        margin: 0;
        width: 100vw;
        height: 100%;
        text-align: center;
    }
    #editor {
        border: white;
        margin: 0;
        padding: 0;
    }

}

button {
    background: white;
    border: solid var(--primary-color);
    padding: 5px;
    color: var(--primary-color);
    font-weight: bold;
    font-size: medium;
}

input[type="radio"] {
    display: none;
}

textarea {
    max-lines: 3;
    width: 30%;
    resize: none;
    text-align: center;
    border-bottom: solid var(--primary-color) 2px;
    border-top: none;
    border-left: none;
    border-right: none;
}

.slider {
    -webkit-appearance: none;
    width: 60%;
    height: 10px;
    border-radius: 10px;
    background: white;
    border: solid var(--primary-color);
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
}

.slidecontainer{
    color: var(--primary-color);
}

.toggle>label {
    display: inline-block;
    min-width: 20px;
    padding: 5px;
    text-align: center;
    color: var(--primary-color);
    cursor: pointer;
    background: white;
    border: solid var(--primary-color);
    transition: 100ms;
}

.toggle>label:first-of-type {
    border-bottom-left-radius: 10px;
    border-top-left-radius: 10px;
}

.toggle>label:last-of-type {
    border-bottom-right-radius: 10px;
    border-top-right-radius: 10px;
}

input[type="radio"]:checked+label {
    background: var(--primary-color);
    color: white;
}


input[type="checkbox"]:checked +label {
    color: white;
    background: var(--primary-color);
    border: solid var(--primary-color);
    border-radius: 10px;
}

#filedialog label {
    border: solid var(--primary-color);
    padding: 5px;
    border-radius: 10px;
    color: var(--primary-color);
    font-weight: bold;
}

#filedialog input {
    display: none;
}
