@font-face {
    font-family: 'GenshinFont';
    src: url('assets/font/zh-cn.woff2') format('woff2');
    font-style: normal;
    font-weight: normal;
}

body {
    background-image: url(assets/img/background/lobby-background.webp);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    font-family: 'Inter', sans-serif;
    margin: 0;
}

header {
    position: relative;
}

.cloud-title-background {
    position: absolute;
    top: -55px;
    left: 50%;
    translate: -55%;
    z-index: -1;
    height: 225px;
}

h1 {
    font-size: 3rem;
    background: linear-gradient(-70deg, #ffffff 0%, #000000 65%);
    text-align: center;
    margin-top: 15px;
    white-space: pre-wrap;
    font-family: GenshinFont, sans-serif;
    background-clip: text;
    color: transparent;
}

.context {
    display: flex;
    margin-top: 75px;
    margin-right: auto;
    margin-left: auto;
    align-items: center;
    text-align: center;
    border: rgb(44, 44, 44) 1.5px solid;
    border-radius: 25px;
    width: 400px;
    background: linear-gradient(-45deg, #EBCDB5 0%, #D5EBFC 70%);

    h2 {
        font-size: 17.5px;
        margin: 0;
    }
}

.game-buttons {
    margin-top: 50px;
    display: flex;
    justify-content: space-between;
    max-width: 650px;
    margin-right: auto;
    margin-left: auto;

    a {
        border-radius: 100px;
    }
}

.button {
    height: 150px;
    transition: all 0.2s ease-in-out;
}

.button:hover {
    transform: scale(1.035);
}

.recent-data {
    margin-top: 30px;
}

.recently-added {
    display: flex;
    flex-direction: column;
    align-items: center;
    border: black 1.5px solid;
    width: 175px;
    padding: 2px;
    margin-right: auto;
    margin-left: auto;
    background: linear-gradient(-45deg, #398FD8 0%, #D6ECF8 70%);
    border-radius: 25px;
    font-size: 20px;
}



/* Character card */
.character-card,
.add-character-card,
.previewCharacter-card {
    position: relative;
    width: 220px;
    height: 220px;
    background-color: #ffffff99;
    backdrop-filter: blur(2px);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.element-image {
    position: absolute;
    width: 250px;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 15%;
    opacity: 0.70;
    z-index: 0;
}

/* Character image */
.character-card .character-image,
.previewCharacter-card .character-image {
    position: relative;
    width: auto;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;

}

.character-card:hover .character-image,
.previewCharacter-card:hover .character-image {
    transform: scale(1.08);

}

/* Figure base */
figure {
    margin: 0;
    padding: 0;
    justify-items: center;
}

/* Positionnement de la légende par-dessus l'image */
.character-card figcaption,
.previewCharacter-card figcaption {
    position: absolute;
    transform: translate(-50%, -50%);
    top: 80%;
    left: 50%;
    width: 100%;
    height: 50px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 0.5rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

figcaption h2,
figcaption h3 {
    margin: 0;
}

figcaption h2 {
    font-size: 1.2rem;
}

.rarity-image {
    width: 100px;
}



.result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 30px;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}





footer {
    background: linear-gradient(to bottom, #00000000 0%, #000000ff 20%);
    margin-top: 50px;
    height: 250px;
    display: grid;
    grid-template-columns: 1fr 300px 1fr;
    grid-template-rows: 250px;
    position: relative;
    color: white;
}

.left {
    margin-top: 40px;
    margin-left: 20px;
    grid-column: 1;
    grid-row: 1;
    justify-self: end;

    .designed {
        font-size: 12px;
    }

    .victor {
        font-size: 15px;
        margin-top: 10px;
        color: #ffffff;
    }
}

.victor:hover {
    color: #8e8e8e;
    text-decoration: none;
}

.paimon-footer {
    grid-column: 2;
    grid-row: 1;
    width: 300px;
    position: absolute;
    bottom: 0;
}

.right {
    margin-top: 60px;
    grid-column: 3;
    grid-row: 1;
    display: flex;
    flex-direction: column;


    a,
    p {
        margin-left: 40px;
    }

    a {
        margin-top: 20px;
        margin-bottom: 20px;
        color: #ffffff;
        display: flex;
    }

     a:hover {
        color: #8e8e8e;
        text-decoration: none;
    }
}

.ARR-footer {
    justify-self: end;
    font-size: 10px;
    margin-top: auto;
}

/* === ANIMATION AU SCROLL === */
.fade-in-up-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(1px);
    transition: all 0.8s ease-out;
}

/* Lorsque visible, animation vers l'état normal */
.fade-in-up-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.delay-0 {
    transition-delay: 0s;
}

.delay-1 {
    transition-delay: 0.3s;
}

.delay-2 {
    transition-delay: 0.6s;
}