.container {
    background: #abe;
    padding: 0;
    border-radius: 10px;
    box-shadow: 2px 2px 3px 1px rgba(0, 0, 0, 0.2);
    width: 100%;
    margin: 5px 0;
    border: 1px solid #555;
    box-sizing: border-box;
    overflow-x: hidden;
    transition: height 0.5s ease;
}
.tabs {
    display: flex;
    gap: 0;
    background-color: white;
}
.tab-btn {
    padding: 8px 16px;
    cursor: pointer;
    width: 50%;
    margin:0;
    border: 1px solid;
    border-radius: 10px 10px 0 0;
}
.tab-content {
    min-height: 10rem;
    border: 1px solid #ccc;
    padding: 16px;
    margin:0;
    border-top: 0;
    background-color: #abe;   
}
.tab-content button{
    border: 1px solid #333;
    border-radius: 3px;
    box-shadow: 1px 2px 4px rgba(0,0,0, 0.3);
    background-color: #fefefe;
}
.tab-content button:hover{
    border-color: #aaa;
    background-color: #aaa;
}
.tab-content button:active{
    border-color: #555;
    background-color: #777;
    box-shadow: none;
}

.center-items{
    display:flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin:5px;
}
.file-input-field{
    text-align: center;
    width: 90%;
    height: auto;
    min-height: 6rem;
    border-radius: 5px;
    background-color: #333;
    border: 2px solid #aaa;
    color: white;
    padding: 5px;
}
.file-input-field.dragover {
    background-color: #eee;
    border-color: #333;
}
.file-input-field.hover {
    background-color: #bbb;
    border-color: #555;
}
.img-input{
    display: none;
}
#image-view{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 5px;
    padding: 5px;
}
.preview-image{
    width:150px;
    height:auto;
    border-radius: 3px;
    
}
.image-item{
    display: flex;
    border:1px solid whitesmoke;
    border-radius: 3px;
    position: relative;
}
.image-item.hover{
    border:3px solid #333;
    box-shadow: 0 0 5px 5px rgba(202, 200, 200, 0.8);
}
.image-name{
    display: none;
    text-align: left;
    width: 144px;
    position:absolute;
    font-size: 12px;
    background-color: #333;
    border-radius: 3px;
    color:#eee;
    padding: 3px;
}
.remove-btn{
    display: none;
    text-align: center;
    width: 150px;
    position:absolute;
    font-size: 12px;
    background-color: #f13;
    border-radius: 3px;
    color:#eee;
    bottom: 0;
    top:auto;
}
.read-output > pre{
    background-color: #fafafa;
    height: auto;
    min-height: 1rem;
    min-width: 100%;
    border: 1px solid black;
    margin-top: 0;
    padding: 5px;
    resize: vertical;
    overflow-y: auto;
}

#status{
    transition: opacity 0.4s ease;
    opacity: 1;
}
#status.fade{
    opacity: 0;
}
.write-set{
    display: flex;
    text-align: left;
    flex-wrap: wrap;
    flex-direction: column;
    border: 1px solid #333;
    border-radius: 3px;
    gap:5px;
    padding: 5px;
    margin: 5px;
}

.group{
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    width: 100%;
}
.group span{
    white-space: nowrap;
    width: 8rem;
    box-sizing: border-box;
}
.group select{
    flex: 1;
    min-width: 5rem;
    padding: 3px;
    box-sizing: border-box;
}
.group input{
    flex: 1;
    min-width: 5rem;
    box-sizing: border-box;
}
.write-set textarea{
    min-height: 3rem;
    resize:vertical;
    height:auto;
    width: 100%;
    box-sizing: border-box;
}

.write-set > span{
    flex: 0;
}
.write-page{
    display: flex;
    align-items: stretch;
    flex-direction: column;
}
.button-position{
    display: flex;
    justify-content: center;
}
.type-group{
    border: 1px solid #333;
    border-radius: 3px;
    padding: 5px;
    margin: 5px;
}
.buttons{
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: flex-start;
    width: 100%;
    gap: 5px;
}
.buttons > button{
    flex:0;
}
.write-datas{
    display: flex;
    flex:1;
    min-width: 10px;
    flex-wrap: nowrap;
    gap: 5px;
    padding:2px;
    border: 1px solid #333;
    background-color: #555;
    overflow-y: hidden;
    overflow-x: auto;
}

.buttons svg{
    color: #333;
    aspect-ratio: 1 / 1;
}
.write-remove-btn{
    display: block;
    width: auto;
    aspect-ratio: 1 / 1;
}
.select-write-datas{
    display:flex;
    flex-wrap: nowrap;
    max-width: 100%;
}
.buttons button:disabled{
    cursor: not-allowed;
    background-color: #888;
}