body{
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: system-ui;
    background-color: #F6F6F7;
    box-sizing: border-box;
}

h1{
    margin-bottom: -0.1rem;
}

.subtitle {
    display: inline-block;
    max-width: 500px;
    color: gray;
    font-size: 0.7rem;
    margin-bottom: 0.4rem;
}

.upload:hover {
    border-color: #5A9CF8;
    color: #5A9CF8;
}

.upload.dragging {
    box-sizing: border-box;
    border-width: 2px;
    border-color: #5A9CF8;
    color: #5A9CF8;
    background-color: #e6f0ff;
}

.upload {
    font-size: 0.9rem;
    border: 1px dashed gray;
    border-radius: 6px;
    box-sizing: border-box;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    text-align: center;
    height: 50px;
    margin: 0 1rem;
    color: gray;
    background-color: white;
}

.spacer{
    margin: -0.2rem;
}

.normal_button {
    max-width: 4.65rem;
    min-width: 2rem;
    height: 2rem;
    line-height: 2rem;
    color: white;
    font-size: 1rem;
    font-family: system-ui;
    padding: 0 0.3rem;
    margin: 0.5rem 0;
    border: 0;
    border-radius: 6px;
    display: inline-block;
    position: relative;
    vertical-align: middle;
    flex-grow: 1;
}

.ipt_btn{
    position:absolute;
    left:0;
    top:0;
    width:100%;
    height:100%;
    opacity: 0;
    background-color: #ccc;
}

.tentacles{
    color: black;
    border: 2px solid;
    box-sizing: border-box;
    border-radius: 6px;
    font-size: 0.9rem;
}

.display-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
    border-style: solid;
    padding: 0.5rem;
}

#display-img, #lossless-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.small-button {
    font-size: 0.9rem;
    padding: 0.05rem 0.3rem;
    color: white;
    background-color: #64CBA6;
    border: none;
    border-radius: 4px;
    text-align: center;
    text-decoration: none;
}

@media (prefers-color-scheme: dark) {
    body {
        background-color: #303030;
        color: white;
    }
    .upload, .tentacles {
        background-color: #1E1E1E;
    }
    .upload.dragging {
        background-color: #1b2f53;
    }
}