html {
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
}

body {
    background-color: #F7F7FF;
    font-family: Helvetica, Arial, sans-serif;
    color: #1c2f5a;
    margin: 0;
    user-select: none;
    overflow: hidden;
}

ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

select {
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    font-size: 1rem;
    color: #666;
    cursor: pointer;
    display: block;
    width: 100%;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 30px;
}

select:focus-visible, #search:focus-visible {
    outline: none;
}

#header {
    position: fixed;
    display: flex;
    top: 0;
    background: #fff;
    height: 100px;
    width: 100%;
    z-index: 999;
    padding-top: 40px;
}

#title {
    margin: 0px 20px;
    font-weight: bold;
    font-size: 24px;
    flex: 1;
}
#homePage{
    cursor: pointer;
}
#type {
    display: flex;
}

#type a {
    color: inherit;
    display: block;
    position: relative;
    margin-right: 40px;
    cursor: pointer;
    text-decoration: none;
}

#type a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #1c2f5a;
    transform: scaleX(0);
    transform-origin: left;
    transition: 0.3s ease-in-out;
}

#type a:hover::after, .selectType::after {
    transform: scaleX(1) !important;
}

#search {
    margin-right: 20px;
    height: 24px;
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    color: #666;
    cursor: pointer;
    display: block;
    padding: 0px 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 30px;
}

#container {
    display: flex;
    justify-content: center;
    min-width: 1080px;
}
#imageUser {
    position: absolute;
    background-color: #222222;
    z-index: -1;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
    transition: all 0.3s ease-in-out 0s;
}
#imagePreview {
    height: 100%;
}

.left-box, .right-box, .mid-box {
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 500px;
    height: calc(100vh - 280px);
    margin-top: 140px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 500px;
}

.left-box {
    box-shadow: none;
    background-color: #fff0;
    align-items: center;
    width: calc(85vw - 600px);
    min-width: 500px;
    position: relative;
}
.mid-box{
    width: 80px;
    min-width: 80px;
    box-shadow: none;
    background-color: #fff0;
}
#download-image{
    width: 40px;
    height: 40px;
    padding: 5px;
    cursor: pointer;
}
#download-image:hover{
    border: 1px solid #1c2f5a42;
    border-radius: 10px;
}
.mid-box img{
    opacity: 1 !important;
    user-select: none;
    cursor: pointer;
}
h2 {
    margin-top: 0;
}

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

img {
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: 0.3s ease-in-out;
    object-position: center center;
    object-fit: scale-down;
}

#style {
    overflow: auto;
}

.style {
    display: flex;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 5px;
    cursor: pointer;
    margin: 0px 10px 10px;
}

.style:hover, .styleChoose {
    background-color: #F4F4F4;
}

.style div {
    flex: 1;
    display: flex;
    align-items: center;
}

.style img {
    width: 100px;
    height: 100px;
    margin-right: 10px;
}

.up {
    position: absolute;
    display: flex;
    top: 0;
    left: 0;
    background-color: #F7F7FF;
    height: 100vh;
    padding: 140px 20px 40px;
    overflow: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: flex-start;
}
.homePage{
    position: absolute;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    padding: 130px 0px 0px;
}
#showHome{
    height: calc(100vh - 130px);
    width: 100%;
    display: flex;
    flex-direction: column;
}
.searchBolck {
    width: 350px;
    background-color: #fff;
}
.showHomeImg{
    display: flex;
    overflow: hidden;
}
.showHomeImg>div{
    display: flex;
}
#showHome .showHomeImg:nth-of-type(odd)>div{
    animation: ShowImgs1 300s linear infinite alternate;
}
#showHome .showHomeImg:nth-of-type(even)>div{
    animation: ShowImgs2 300s linear infinite alternate;
}
@keyframes ShowImgs1 {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-400vh + 100vw));
    }
}
@keyframes ShowImgs2 {
    0% {
        transform: translateX(calc(-400vh + 100vw));
    }
    100% {
        transform: translateX(0);
    }
}
#bottom {
    display: flex;
    height: 120px;
    justify-content: center;
    padding: 10px 0px;
    min-width: 1080px;
}

#merge-choose {
    min-width: 1080px;
    width: 85vw;
    display: flex;
}

#merge-image {
    height: 100px;
    width: 100px;
    cursor: pointer;
    border-radius: 20px;
    border: 1px #4d4d9e dashed;
    background-color: #a3a3ffc2;
    color: white;
    margin-right: 10px;
}

#merge-image:hover {
    background-color: #7d7dffc2;
}

#img-block {
    display: flex;
    flex: 1;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.button {
    display: inline-block;
    width: 25px;
    border: 1px solid #1c2f5a42;
    background-color: #fff;
    position: relative;
    height: 100px;
    cursor: pointer;
}
.button:hover {
    background-color: #f1f1f1;
}
.button::before {
    content: "";
    position: absolute;
    top: 50%;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    transform: translateY(-50%);
}

#button-l {
    border-radius: 10px 0px 0px 10px;
}

#button-r {
    border-radius: 0px 10px 10px 0px;
}

#button-l::before {
    left: 8px;
    border-right: 10px solid #ccc;
}

#button-r::before {
    right: 8px;
    border-left: 10px solid #ccc;
}

#user-img {
    flex: 1;
    border: 1px solid #1c2f5a42;
    background-color: #fff;
    display: flex;
    overflow: hidden;
    width: 10px;
}
.userImg{
    margin: 5px 15px 5px 5px;
    width: 90px;
    height: 90px;
    border-radius: 5px;
    background-color: #f1f1f1;
    flex-shrink: 0;
    cursor: pointer;
    transition:transform 0.3s ease-in-out;
    position: relative;
}
.userImg>img:hover{
    border: 1px solid #1c2f5a42;
}
.onclickUserImg{
    border: 1px solid #1c2f5a42;
    background-color: #f7f7ff;
}
.deleteUserImg{
    position: absolute;
    top: -3px;
    right: -10px;
    background-color: #ff4848;
    width: 25px;
    height: 25px;
    border-radius: 30px;
}
.deleteUserImg:hover{
    transform: scale(1.1);
}
.deleteUserImg::after{
    content: 'X';
    position: absolute;
    display: flex;
    width: 25px;
    height: 25px;
    color: white;
    justify-content: center;
    align-items: center;
    font-weight: bolder;
}
.fromTag{
    flex: 1;
    padding: 20px;
    background-color: rgb(224 228 255 / 50%);
    border-radius: 50px 50px 0px 0px;
}
.fromTag li{
    margin: 0px 0px 0px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.fromTag p{
    font-weight: bolder;
    margin: 10px 0px;
}
.fromTag li a{
    font-size: 14px;
    border: 1px solid darkblue;
    padding: 6px 12px;
    border-radius: 4px;
    margin-right: 10px;
    text-decoration: none;
    color: darkblue;
}
.fromTag li a:hover{
    color: #fff;
    background-color: darkblue;
}
#ethan777{
    position: absolute;
    bottom: 20px;
    right: 20px;
    opacity: 0.6;
}
#ethan777 a{
    color: #1c2f5a;
}