#input {
    padding: 20px;
    margin: 20;
    margin-bottom: 50px;
}

#input,
#output {
    margin-bottom: auto;
}

#input label,
#output label,
button {
    font-size: 16px;
}

body {
    font-family: 'Roboto', serif;
    color: white;
    margin: 0;
    padding: 0;

}

main {
    padding: 0px;
}

#input {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 6px;
}

select,
input[type="text"],
input[type="number"],
input[type="range"],
fieldset {
    margin-bottom: 18px;
}

legend {
    font-size: 16px;
}

button {
    margin-top: 15px;
}

#output-canvas img {
    max-width: 100%;
    height: auto;
}

#text-1,
#text-2 {
    margin-top: 15px;
}

.popupCover {
    height: auto;
    width: auto;

}

@media screen and (max-width:800px) {
    main section {
        visibility: hidden;
    }

    #popup,
    #popupCover {
        visibility: hidden;
    }

    #openPopup {
        display: none;
    }

    main::before {
        content: "This page only works on viewports wider than 800px";
        width: 100vw;
        text-align: center;
        position: absolute;
        top: 50%;
    }
}

html {
    margin: 0;
    padding: 0;
    max-height: 100vh;
    max-width: 100vw;
    overflow-y: hidden;
    overflow-x: hidden;
    font-family: 'Times New Roman', Times, serif;
}

body {
    overflow: hidden;
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
}

* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

p {
    margin: 0;
    padding: 0;
}

h1 {
    font-weight: normal;
    margin: 0;
    padding: 0;
    font-size: 15px;
}

h2 {
    font-weight: normal;
    margin: 0;
    padding: 0;
    font-size: 15px;
}

header {
    width: 100%;
    height: 30px;
    padding: 5px;
    border-bottom: 0.5px solid black;
    display: flex;
    gap: 10px;
    background-color: #222;
    position: relative;
    z-index: 20;
}

main {
    margin: 0;
    padding: 0;
    height: calc(100vh - 30px);
    width: 100%;
    display: flex;
    flex-direction: row;
}

#input {
    width: 20%;
    min-height: 100%;
    background-color: #353A47;
    border-right: 0.5px solid black;
    overflow-y: scroll;
    padding: 10px;
}

#output {
    width: 80%;
    min-height: 100%;
    background-color: #37393A;
    display: flex;
    align-items: center;
    justify-content: center;
}

#output-canvas {
    width: 600px;
    height: 600px;
    background-image: url(img.jpg);
    position: relative;
}

#output-canvas>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

#save-img {
    position: fixed;
    left: 0;
    bottom: 0;
    border-radius: 0;
    border: 0.5px solid black;
    background-color: white;
    color: black;
    width: 20%;
    height: 25px;
}

#save-img:hover {
    transition: 0.3s;
    background-color: rgb(98, 228, 98);
}

#text-1 {
    width: 100%;
    position: absolute;
    text-align: center;
    top: 20px;
    z-index: 2;
}

#text-2 {
    width: 100%;
    position: absolute;
    text-align: center;
    bottom: 20px;
    z-index: 2;
}

main {
    font-weight: 500;
    font-size: 6px;
}

select {
    padding: 4px;
    border-radius: 4px;
    font-weight: bold;
}

.slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 15px;
    background: #636060;
    outline: none;
    opacity: 1;
    -webkit-transition: .2s;
    transition: opacity .2s;
    border-radius: 2px;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    background: #eea4d3;
    cursor: pointer;
    border-radius: 2px;
}

.slider::-webkit-slider-thumb:hover {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    background: #c774a8;
    cursor: pointer;
    border-radius: 2px;
    transition: 0.3s;
}

.slider::-moz-range-thumb {
    width: 25px;
    height: 25px;
    background: #eea4d3;
    cursor: pointer;
    border-radius: 2px;
}

