@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-info {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.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: 40px;
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
    text-align: center;
}

.account-support, .account-companion {
    margin: 20px 0 0;
}

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

.character-info {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin: 0 0 20px;
}

.character-info:last-child {
    margin: 0;
}

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

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

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

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

.character-content {
    width: 420px;
}

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

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

.character-path-element {
    display: flex;
    align-items: center;
    margin: 0 0 8px;
}

.character-path-element span {
    display: flex;
    align-items: center;
    width: 50%;
}

.character-path-element img {
    width: 24px;
    margin: 0 10px 0 0;
}

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

.character-rarity {
    font-size: 16px;
    color: #FFD700;
    margin: 0 0 12px;
}

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

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

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

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-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: 3.91vw;
        font-size: 1.56vw;
    }
    
    .account-support, .account-companion {
        margin: 1.95vw 0 0;
    }
    
    .account-support > h3, .account-companion > h3 {
        font-size: 2.34vw;
        margin: 0 0 1.46vw;
    }
    
    .character-info {
        margin: 0 0 1.95vw;
    }
        
    .character-image {
        width: 12.5vw;
        height: 12.5vw;
    }
        
    .rarity-4 {
        border: 0.39vw solid #c199fd;
    }
    
    .rarity-5 {
        border: 0.39vw solid #ffc870;
    }
    
    .character-content {
        width: 41.02vw;
    }
    
    .character-content > h4 {
        font-size: 2.34vw;
        margin: 0 0 0.78vw;
    }
    
    .character-content > p {
        font-size: 1.56vw;
        margin: 0 0 1.17vw;
    }
    
    .character-path-element {
        margin: 0 0 0.78vw;
    }
        
    .character-path-element img {
        width: 2.34vw;
        margin: 0 0.98vw 0 0;
    }
    
    .character-path-element p {
        font-size: 1.56vw;
    }
    
    .character-rarity {
        font-size: 1.56vw;
        margin: 0 0 1.17vw;
    }    
        
    .character-stat label {
        width: 35.16vw;
        font-size: 1.56vw;
    }
    
    .character-stat p {
        width: 3.91vw;
        font-size: 1.56vw;
    }

    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-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 3vw;
    }
    
    .account-stat {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .account-stat label {
        width: 32vw;
        font-size: 4vw;
    }
    
    .account-stat p {
        width: 8vw;
        font-size: 4vw;
    }
    
    .account-support, .account-companion {
        margin: 6vw 0 0;
    }
    
    .account-support > h3, .account-companion > h3 {
        font-size: 6vw;
        margin: 0 0 4vw;
    }
    
    .character-info {
        margin: 0 0 4vw;
    }
        
    .character-image {
        width: 24vw;
        height: 24vw;
        margin: 0 0 2vw;
    }
        
    .rarity-4 {
        border: 1vw solid #c199fd;
    }
    
    .rarity-5 {
        border: 1vw solid #ffc870;
    }
    
    .character-content {
        width: 100%;
    }
    
    .character-content > h4 {
        font-size: 6vw;
        margin: 0 0 2vw;
    }
    
    .character-content > p {
        font-size: 4vw;
        margin: 0 0 3vw;
    }
    
    .character-path-element {
        margin: 0 0 2vw;
    }
        
    .character-path-element img {
        width: 6vw;
        margin: 0 2vw 0 0;
    }
    
    .character-path-element p {
        font-size: 4vw;
    }
    
    .character-rarity {
        font-size: 4vw;
        margin: 0 0 3vw;
    }
        
    .character-stat label {
        width: 32vw;
        font-size: 4vw;
    }
    
    .character-stat p {
        width: 8vw;
        font-size: 4vw;
    }

    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;
    }

}