@import "./base.css";
@import "./scrollbar.css";
@import "./loading.css";

#dragbox {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 5;
    display: none;
    background-color: rgba(0, 0, 0, .7);
    border: 10px dashed #36cfc9;
}

#progressbar {
    top: 0;
    position: fixed;
    height: 7px;
    width: 0;
    background-color: #777;
    z-index: 5;
}

#uploadbox {
    color: #f3f4f5;
    padding: 1.5rem 4rem;
    background-color: rgba(0, 0, 0, .1);
    backdrop-filter: blur(10px);
    box-shadow: 0 0px 10px rgba(0, 0, 0, .5);
    border: 5px dashed #2a2b2c;
    /* border-radius: 12px; */
    width: fit-content;
    margin: auto;
    top: 50%;
    transform: translateY(-50%);
    position: relative;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;

    transition: .2s background-color;
    -webkit-transition: .2s background-color;
}

#uploadbox:hover {
    background-color: rgba(0, 0, 0, .9);
}

#uploadbox > .icon {
    width: 30px;
    height: 30px;
    margin: auto;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    pointer-events: none;
}

#uploadbox > .tip {
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
}

.image-viewer {
    position: relative;
    margin: auto;
    max-width: 54rem;
    background-color: #202020;
    z-index: 2;
    display: none;
}

.image-viewer > .container {
    position: relative;
    margin: auto;
    max-width: 50rem;
    text-align: center;
}

.content-img {
    width: 50rem;
    display: block;
    pointer-events: none;
    user-select: none;
    margin: 0;
    padding: 0;
}

.container > .page-spacing {
    width: 100%;
    padding: 2px 0;
    user-select: none;
}

.page-spacing > .ll {
    height: 1px;
    width: 45%;
    float: left;
    top: 9px;
    position: relative;
    background-color: #848381;
}

.page-spacing > .lr {
    height: 1px;
    width: 45%;
    float: right;
    top: 9px;
    position: relative;
    background-color: #848381;
}

.page-spacing > span {
    display: block;
    color: #ccc;
    font-weight: bold;
    font-family: Arial, Helvetica, sans-serif;
    z-index: 3;
    font-size: 16px;
}

.titlebox {
    position: fixed;
    opacity: .7;
    margin: auto;
    max-width: 50rem;
    height: 4rem;
    top: 0;
    left:0;
    right:0;
    z-index: 4;
    border-bottom: #848381 2px solid;
    background-color: #2b2b2b;
    transform: translateY(-6rem);
    transition: transform .2s;
    padding: 1rem .5rem;
}

.titlebox > .title {
    color: #ccc;
    word-break: break-all;
    overflow: hidden;
    display: block;
    height: 2.5rem;
}

.toolbox {
    position: fixed;
    opacity: .7;
    margin: auto;
    max-width: 50rem;
    height: 4rem;
    bottom: 0;
    left:0;
    right:0;
    z-index: 4;
    border-top: #848381 2px solid;
    background-color: #2b2b2b;
    transform: translateY(6rem);
    transition: transform .2s;
    padding: 0 .8rem;
    user-select: none;
}

.toolbox > div {
    height: 100%;
    padding: .5rem;
    cursor: pointer;
    float: left;
    margin-right: 10px;
}

.toolbox > div:hover {
    background-color: #fff;
    opacity: .7;
}

.toolbox img {
    opacity: 1;
    width: 2rem;
    height: 2rem;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

.hidden {
    display: none;
}

.info {
    position: fixed;
    left: 0;
    bottom: 0;
    color: #ccc;
    background-color: #202020;
    opacity: .8;
    z-index: 4;
    padding: 0 5px;
    user-select: none;
}

.info > .totalpage {
    margin-left: 3px;
}


@media screen and (max-width: 50rem) {
    .content-img {
        max-width: 100%;
    }

    #uploadbox {
        width: 100%;
    }
}