@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:wght@400;700&display=swap');

@font-face {
    font-family: Hoyoverse;
    src: url("../fonts/zh-cn.ttf") format("truetype");
}

body {
    font-family: 'Comic Neue', cursive;
    position: relative;
    width: 100vw;
    height: 100vh;
    background: url('../assets/bg.webp') no-repeat;
    background-position: center center;
    background-size: cover;
}

#main {
    width: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

h1.page-text {
    font-family: Hoyoverse, Arial, Helvetica, sans-serif;
    font-size: 32px;
    line-height: 1.5;
    text-align: center;
    color: #fff;
    text-shadow: 2px 2px #000;
    margin: 0 0 50px;
}

#uidchecker {
    position: relative;
    width: 800px;
    margin: 0 auto;
}

#uidchecker input[type="text"] {
    font-family: Hoyoverse, Arial, Helvetica, sans-serif;
    background: rgba(255,255,255,0.7);
    width: 100%;
    border: none;
    border-bottom: 3px solid #000;
    outline: none;
    padding: 10px 15px;
    transition: border-color 0.3s;
    font-size: 20px;
    line-height: 1.5;
}

#uidchecker input[type="text"]:focus {
    border-color: #007BFF;
}

#uidchecker input[type="text"]::placeholder {
    font-style: italic;
}

#uidchecker input[type="submit"] {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    padding: 10px 20px;
    border: none;
    background-color: #007BFF;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
    font-family: Hoyoverse, Arial, Helvetica, sans-serif;
    font-size: 20px;
    line-height: 1.5;
}

#uidchecker input[type="submit"]:hover {
    background-color: #0056b3;
}

#account-detail {
    width: 640px;
    margin: 0 auto;
    background: rgba(44, 44, 44, 0.9);
    color: #fff;
    padding: 30px;
    border-radius: 10px;
    max-height: 80vh;
    overflow-y: scroll;
    position: relative;
    top: -25px;
}

.account-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 308px;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    filter: brightness(0.6);
}

.account-info {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
    padding-bottom: 30px;
}

.account-image {
    width: 128px;
    height: 128px;
}

.account-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 100%;
    border: 4px solid #000;
    background: #fff;
}

.account-content {
    width: 420px;
}

.account-content > h2 {
    font-family: Hoyoverse, Arial, Helvetica, sans-serif;
    font-size: 24px;
    line-height: 1.5;
    margin: 0 0 8px;
}

.account-content > p {
    font-size: 16px;
    line-height: 1.5;
    margin: 0 0 12px;
}

.account-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.account-stat label {
    width: 360px;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
}

.account-stat p {
    width: 84px;
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
    text-align: right;
}

.account-characters, .account-namecards {
    margin: 20px 0 0;
}

.account-characters > h3, .account-namecards > h3 {
    font-weight: 700;
    font-size: 24px;
    line-height: 1.5;
    margin: 0 0 15px;
}

.account-characters ul {
    display: flex;
    padding: 0;
    margin: 0;
    list-style: none;
    flex-wrap: wrap;
    row-gap: 40px;
    column-gap: 24px;
    justify-content: start;
}

.account-characters ul li {
    padding: 0;
    margin: 0;
    width: 171px;
}

.account-character-image {
    width: 160px;
    height: 160px;
    margin: 0 auto 10px;
}

.account-character-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 100%;
    background: #fff;
}

.rarity-QUALITY_PURPLE {
    border: 4px solid #c199fd;
}

.rarity-QUALITY_ORANGE {
    border: 4px solid #ffc870;
}

.account-character-info > h4 {
    font-family: Hoyoverse, Arial, Helvetica, sans-serif;
    font-size: 18px;
    line-height: 1.5;
    margin: 0 0 4px;
    text-align: center;
}

.account-character-element-weapon {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 0 8px;
}

.account-character-element-weapon span {
    display: flex;
    justify-content: center;
    align-items: center;
}

.account-character-element-weapon img {
    width: 20px;
    margin: 0 4px 0 0;
}

.account-character-element-weapon p {
    font-weight: 700;
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
}

.account-character-rarity {
    font-size: 16px;
    text-align: center;
    color: #FFD700;
    margin: 0 0 8px;
}

.account-character-stats p {
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
    text-align: center;
}

.account-namecards ul {
    display: flex;
    padding: 0;
    margin: 0;
    list-style: none;
    flex-wrap: wrap;
    row-gap: 16px;
    column-gap: 16px;
    justify-content: start;
}

.account-namecards ul li {
    padding: 0;
    margin: 0;
    width: 128px;
}

.account-namecards ul li img {
    display: block;
    width: 100%;
}

footer {
    font-family: Hoyoverse, Arial, Helvetica, sans-serif;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(255,255,255,0.5);
    padding: 16px;
}

.copyright-text {
    font-size: 16px;
    line-height: 1.5;
    text-align: center;
}

.copyright-text a {
    text-decoration: none;
}

.mobile-split {
    display: none;
}

#loadingScreen {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
	opacity: 1;
    transition: opacity 0.5s ease-out; 
}

#loadingScreen img {
	display: block;
	width: 256px;
}

#notification-update {
    height: 48px;
    overflow: hidden;
    position: relative;
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

#notification-update p {
    position: absolute;
    width: 100%;
    height: 100%;
    margin: 0;
    font-size: 16px;
    line-height: 50px;
    text-align: center;
    transform:translateX(100%);
    animation: scroll-left 30s linear infinite;
}

@keyframes scroll-left {
    0%   {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

@media (max-width: 1023px) and (min-width: 640px) {
    h1.page-text {
        font-size: 3.125vw;
        text-shadow: 0.2vw 0.2vw #000;
        margin: 0 0 4.88vw;
    }

    #uidchecker {
        width: 75vw;
    }
    
    #uidchecker input[type="text"] {
        border-bottom: 0.3vw solid #000;
        padding: 0.98vw 1.46vw;
        font-size: 1.95vw;
    }
        
    #uidchecker input[type="submit"] {
        padding: 0.98vw 1.95vw;
        font-size: 1.95vw;
    }
    
    #account-detail {
        width: 62.5vw;
        padding: 2.93vw;
        border-radius: 0.98vw;
        top: -2.44vw;
    }

    .account-bg {
        height: 30.08vw;
    }

    .account-detail {
        padding-bottom: 2.93vw;
    }
        
    .account-image {
        width: 12.5vw;
        height: 12.5vw;
    }
    
    .account-image img {
        border: 0.39vw solid #000;
    }
    
    .account-content {
        width: 41.02vw;
    }
    
    .account-content > h2 {
        font-size: 2.34vw;
        margin: 0 0 0.78vw;
    }
    
    .account-content > p {
        font-size: 1.56vw;
        margin: 0 0 1.17vw;
    }
        
    .account-stat label {
        width: 35.16vw;
        font-size: 1.56vw;
    }
    
    .account-stat p {
        width: 8.20vw;
        font-size: 1.56vw;
    }
    
    .account-characters, .account-namecards {
        margin: 1.95vw 0 0;
    }
    
    .account-characters > h3, .account-namecards > h3 {
        font-size: 2.34vw;
        margin: 0 0 1.46vw;
    }

    .account-characters ul {
        row-gap: 3.91vw;
        column-gap: 2.34vw;
    }

    .account-characters ul li {
        width: 16.70vw;
    }

    .account-character-image {
        width: 15.625vw;
        height: 15.625vw;
        margin: 0 auto 0.98vw;
    }

    .rarity-QUALITY_PURPLE {
        border: 0.39vw solid #c199fd;
    }

    .rarity-QUALITY_ORANGE {
        border: 0.39vw solid #ffc870;
    }

    .account-character-info > h4 {
        font-size: 1.76vw;
        margin: 0 0 0.39vw;
    }

    .account-character-element-weapon {
        margin: 0 0 0.78vw;
    }

    .account-character-element-weapon img {
        width: 1.95vw;
        margin: 0 0.39vw 0 0;
    }

    .account-character-element-weapon p {
        font-size: 1.56vw;
    }

    .account-character-rarity {
        font-size: 1.56vw;
        margin: 0 0 0.78vw;
    }

    .account-character-stats p {
        font-size: 1.56vw;
    }

    .account-namecards ul {
        row-gap: 1.56vw;
        column-gap: 1.56vw;
    }

    .account-namecards ul li {
        width: 12.5vw;
    }

    footer {
        padding: 1.56vw;
    }
    
    .copyright-text {
        font-size: 1.56vw;
    }

    #loadingScreen img {
        display: block;
        width: 25vw;
    }

    #notification-update {
        height: 4.69vw;
        border: 0.1vw solid #bee5eb;
    }

    #notification-update p {
        font-size: 1.56vw;
        line-height: 4.88vw;
    }

}

@media screen and (max-width: 639px) {
    h1.page-text {
        font-size: 7.2vw;
        text-shadow: 0.8vw 0.8vw #000;
        margin: 0 0 13.6vw;
    }

    #uidchecker {
        width: 84vw;
    }
    
    #uidchecker input[type="text"] {
        border-bottom: 1vw solid #000;
        padding: 2.4vw 4vw;
        font-size: 4.8vw;
    }
        
    #uidchecker input[type="submit"] {
        padding: 2.4vw 5.6vw;
        font-size: 4.8vw;
    }
    
    #account-detail {
        width: 90vw;
        padding: 6vw;
        border-radius: 3vw;
        top: -6vw;
    }

    .account-bg {
        height: 55.2vw;
    }

    .account-detail {
        padding-bottom: 0;
    }
        
    .account-image {
        width: 24vw;
        height: 24vw;
        margin: 0 0 2vw;
    }
    
    .account-image img {
        border: 1vw solid #000;
    }
    
    .account-content {
        width: 100%;
    }
    
    .account-content > h2 {
        font-size: 6vw;
        margin: 0 0 2vw;
    }
    
    .account-content > p {
        font-size: 4vw;
        margin: 0 0 9vw;
    }
    
    .account-stat {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .account-stat label {
        width: 48vw;
        font-size: 4vw;
    }
    
    .account-stat p {
        width: 21.6vw;
        font-size: 4vw;
    }
    
    .account-characters, .account-namecards {
        margin: 6vw 0 0;
    }
    
    .account-characters > h3, .account-namecards > h3 {
        font-size: 6vw;
        margin: 0 0 4vw;
    }

    .account-characters ul {
        row-gap: 8vw;
        column-gap: 6vw;
    }

    .account-characters ul li {
        width: 36vw;
    }

    .account-character-image {
        width: 36vw;
        height: 36vw;
        margin: 0 0 2.8vw;
    }

    .rarity-QUALITY_PURPLE {
        border: 1vw solid #c199fd;
    }

    .rarity-QUALITY_ORANGE {
        border: 1vw solid #ffc870;
    }

    .account-character-info > h4 {
        font-size: 4.27vw;
        margin: 0 0 1.2vw;
    }

    .account-character-element-weapon {
        display: block;
        margin: 0 0 2vw;
    }

    .account-character-element-weapon span:first-child {
        margin: 0 0 1vw;
    }

    .account-character-element-weapon img {
        width: 6vw;
        margin: 0 1vw 0 0;
    }

    .account-character-element-weapon p {
        font-size: 4vw;
    }

    .account-character-rarity {
        font-size: 4vw;
        margin: 0 0 2vw;
    }

    .account-character-stats p {
        font-size: 4vw;
    }

    .account-namecards ul {
        row-gap: 4vw;
        column-gap: 4vw;
    }

    .account-namecards ul li {
        width: 36.8vw;
    }

    footer {
        padding: 2.4vw 0;
    }
    
    .copyright-text {
        font-size: 3.2vw;
    }

    .mobile-split {
        display: block;
    }

    #loadingScreen img {
        display: block;
        width: 64vw;
    }

    #notification-update {
        height: 12.8vw;
        border: 0.27vw solid #bee5eb;
    }

    #notification-update p {
        font-size: 4.27vw;
        line-height: 13.33vw;
        animation: scroll-left 15s linear infinite;
    }

}