@font-face {
    font-family: 'pixel';
    font-style: normal;
    font-display: swap;
    src: url(./pixel.ttf) format('truetype')
}

@font-face {
    font-family: 'art';
    font-style: normal;
    font-display: swap;
    src: url(./art.ttf) format('truetype')
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'pixel', sans-serif;
    scroll-behavior: smooth
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    background: #31180D
}

header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 13;
    font-family: 'pixel', sans-serif
}

header .logo {
    color: #FFF;
    font-weight: 400;
    text-decoration: none;
    font-size: 3em;
    text-transform: uppercase;
    letter-spacing: 2px
}

header ul {
    display: flex;
    justify-content: center;
    align-items: center
}

header ul li {
    list-style: none;
    margin-left: 20px
}

header ul li a {
    text-decoration: none;
    padding: 6px 15px;
    color: #FFF;
    border-radius: 20px
}

header ul li a:hover,
header ul li a.active {
    background: #000;
    color: #FF9000
}

#btn {
    color: #ffeb3b;
    text-decoration: none;
    font-size: 2.5em;
    letter-spacing: 2px;
    z-index: 9;
    font-family: 'pixel', sans-serif;
    transform: translateY(100px);
    position: relative;
    text-shadow: 0 0 10px #ff8c3b, 0 0 160px #ff8c3b, 0 0 240px #ff8c3b
}

section {
    position: relative;
    width: 100%;
    height: 100vh;
    padding: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden
}

section::before {
    content: '';
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, #31180D, transparent);
    z-index: 12
}

section img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    object-fit: cover;
    pointer-events: none
}

section img#moon {
    mix-blend-mode: screen
}

#fog {
    mix-blend-mode: screen;
    z-index: 11
}

.sec {
    position: relative;
    padding: 100px;
    background: #31180D;
    z-index: 15
}

.sec-title {
    font-family: 'art', serif;
    font-size: 5rem;
    font-weight: 200;
    color: #c9a145;
    text-align: center;
    margin: 50px 0 40px;
    position: relative
}

.sec-title:after {
    content: '';
    position: absolute;
    width: 150px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #c9a145, transparent);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%)
}

.cloth {
    position: absolute;
    left: 0%;
    top: 0%;
    margin: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 17;
    background: transparent !important;
    background-color: transparent !important;
    -webkit-background-clip: text
}

.cloth canvas {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    pointer-events: none !important;
    touch-action: pan-y;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    opacity: 1 !important;
    mix-blend-mode: normal !important;
    background-color: rgba(0, 0, 0, 0) !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
    border: none !important;
    outline: none !important
}

.stream {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 50vw;
    min-height: auto;
    z-index: 15;
    padding: 0;
    margin: 0;
    background: #050704;
    margin: 0 auto;
    overflow: hidden
}

.stream_side {
    position: absolute;
    filter: url(#water);
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("./images/stream_side.png") no-repeat center center;
    background-size: cover;
    pointer-events: none;
    z-index: 26;
    transform: translateY(0)
}

.stream_bottom {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("./images/stream_bottom.png") no-repeat center center;
    background-size: cover;
    pointer-events: none;
    z-index: 16;
    transform: translateY(0)
}

.stream_front {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("./images/stream_top.png") no-repeat center center;
    background-size: cover;
    pointer-events: none;
    z-index: 19;
    transform: translateY(0)
}

.bd {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 50vw;
    min-height: auto;
    z-index: 14;
    padding: 0;
    margin: 0;
    background: #050704;
    margin: 0 auto
}

.bd-parallax-1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("./images/fog_mid.png") no-repeat center center;
    background-size: cover;
    pointer-events: none;
    z-index: 4;
    transform: translateY(0);
    mix-blend-mode: screen
}

.bd-parallax-2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("./images/cave.png") no-repeat center center;
    background-size: cover;
    pointer-events: none;
    z-index: 1;
    transform: translateY(0)
}

.bd-parallax-2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(to top, #050704, transparent);
    z-index: 2
}

.bd-parallax-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("./images/pl_top.png") no-repeat center center;
    background-size: cover;
    pointer-events: none;
    z-index: 5
}

.container {
    position: relative;
    z-index: 99;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    column-gap: 20px;
    width: 800px;
    height: 250px;
    transition: 0.5s;
    margin: 0 auto
}

.container .image-wrap {
    position: relative;
    background: var(--img);
    background-position: center;
    background-size: cover;
    transition: .5s;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(0) brightness(1.15)
}

.container:hover .image-wrap {
    filter: grayscale(1)
}

.container .image-wrap:hover {
    filter: grayscale(0) brightness(1.15)
}

.container:has(.image-wrap:nth-child(1):hover) {
    grid-template-columns: 3fr 1fr 1fr 1fr 1fr
}

.container:has(.image-wrap:nth-child(2):hover) {
    grid-template-columns: 1fr 3fr 1fr 1fr 1fr
}

.container:has(.image-wrap:nth-child(3):hover) {
    grid-template-columns: 1fr 1fr 3fr 1fr 1fr
}

.container:has(.image-wrap:nth-child(4):hover) {
    grid-template-columns: 1fr 1fr 1fr 3fr 1fr
}

.container:has(.image-wrap:nth-child(5):hover) {
    grid-template-columns: 1fr 1fr 1fr 1fr 3fr
}

.container .image-wrap::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(#31180D, transparent, transparent, transparent, #31180D)
}

.container .image-wrap:nth-child(even) {
    transform: translateY(30px)
}

.container .image-wrap:nth-child(odd) {
    transform: translateY(-30px)
}

.container .image-wrap::after {
    content: attr(data-text);
    position: absolute;
    bottom: -100px;
    color: #FF9800;
    font-size: 16px;
    border: 1px solid rgba(255, 255, 0, 0.4);
    font-weight: 600;
    padding: 5px 10px;
    letter-spacing: 0.1em;
    white-space: nowrap;
    background: rgba(255, 255, 0, 0.4);
    border-color: rgba(255, 255, 0, 0.4);
    box-shadow: 0 18.75px 18.75px rgba(0, 0, 0, 0.25), 0 0 20px 5px rgba(255, 204, 0, 1);
    min-width: 100px;
    border-radius: 20px;
    text-align: center;
    opacity: 0;
    transition: .5s;
    transition-delay: 0.1s
}

.container .image-wrap:hover::after {
    bottom: -50px;
    opacity: 1;
    transition-delay: .25s
}

.card-section {
    position: relative;
    padding: 80px 0;
    background: #31180D;
    background-image: url("./images/bg_card.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    z-index: 15
}

svg {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden
}

.card-title {
    filter: url(#fire);
    font-size: 4em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 100px;
    padding: 0 20px;
    color: #ffeb3b;
    text-shadow: 0 0 10px #ff8c3b, 0 0 20px #ff8c3b, 0 0 30px #ff8c3b, 0 0 40px #ff8c3b
}

.card-main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
    padding: 0 20px;
    margin: 0 auto
}

.card-row {
    display: flex;
    justify-content: center;
    gap: 60px;
    width: 100%;
    max-width: 600px
}

.card-wrap {
    margin: 0 !important;
    perspective: 800px;
    transform-style: preserve-3d;
    cursor: pointer
}

.card-wrap:hover .card-info {
    transform: translateY(0)
}

.card-wrap:hover .card-info p {
    opacity: 1
}

.card-wrap:hover .card-info,
.card-wrap:hover .card-info p {
    transition: 0.6s cubic-bezier(0.23, 1, 0.32, 1)
}

.card-wrap:hover .card-bg {
    transition: 0.6s cubic-bezier(0.23, 1, 0.32, 1), opacity 5s cubic-bezier(0.23, 1, 0.32, 1);
    opacity: 0.8
}

.card-wrap:hover .card {
    transition: 0.6s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 2s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: rgba(255, 144, 0, 0.7) 0 0 90px 25px, #FF9000 0 0 0 2px, rgba(0, 0, 0, 0.8) 0 30px 80px 0, inset #333 0 0 0 5px, inset #FF9000 0 0 0 6px
}

.card {
    position: relative;
    width: 240px;
    height: 320px;
    background-color: #333;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 1) 0 30px 60px 0, inset #333 0 0 0 5px, inset rgba(255, 144, 0, 0.3) 0 0 0 6px;
    transition: 1s cubic-bezier(0.445, 0.05, 0.55, 0.95);
    transform-style: preserve-3d;
    backface-visibility: hidden
}

.card-bg {
    opacity: 0.5;
    position: absolute;
    width: 120%;
    height: 120%;
    left: -10%;
    top: -10%;
    padding: 0;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    transition: 1s cubic-bezier(0.445, 0.05, 0.55, 0.95), opacity 5s 1s cubic-bezier(0.445, 0.05, 0.55, 0.95);
    pointer-events: none
}

.card-info {
    padding: 20px;
    position: absolute;
    bottom: 0;
    color: #fff;
    transform: translateY(40%);
    transition: 0.6s 1.6s cubic-bezier(0.215, 0.61, 0.355, 1)
}

.card-info p {
    opacity: 0;
    text-shadow: black 0 2px 3px;
    transition: 0.6s 1.6s cubic-bezier(0.215, 0.61, 0.355, 1);
    font-size: 14px
}

.card-info * {
    position: relative;
    z-index: 1
}

.card-info:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    background-blend-mode: overlay;
    opacity: 0;
    transform: translateY(100%);
    transition: 5s 1s cubic-bezier(0.445, 0.05, 0.55, 0.95)
}

.card-info h1 {
    font-size: 36px;
    font-weight: 700;
    text-shadow: rgba(0, 0, 0, 0.7) 0 10px 10px;
    margin-bottom: 10px
}

.leaves {
    position: absolute;
    width: 100%;
    height: 140vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    pointer-events: none
}

.leaves .set {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    pointer-events: none
}

.leaves .set div {
    position: absolute;
    display: block
}

.leaves .set div:nth-child(1) {
    left: 20%;
    animation: animate 20s linear infinite
}

.leaves .set div:nth-child(2) {
    left: 50%;
    animation: animate 14s linear infinite
}

.leaves .set div:nth-child(3) {
    left: 70%;
    animation: animate 12s linear infinite
}

.leaves .set div:nth-child(4) {
    left: 5%;
    animation: animate 15s linear infinite
}

.leaves .set div:nth-child(5) {
    left: 85%;
    animation: animate 18s linear infinite
}

.leaves .set div:nth-child(6) {
    left: 90%;
    animation: animate 12s linear infinite
}

.leaves .set div:nth-child(7) {
    left: 15%;
    animation: animate 14s linear infinite
}

.leaves .set div:nth-child(8) {
    left: 60%;
    animation: animate 15s linear infinite
}

@keyframes animate {
    0% {
        opacity: 0;
        top: -10%;
        transform: translateX(20px) rotate(0deg)
    }

    10% {
        opacity: 0
    }

    20% {
        opacity: 1;
        transform: translateX(-20px) rotate(45deg)
    }

    40% {
        opacity: 1;
        transform: translateX(-20px) rotate(90deg)
    }

    60% {
        opacity: 1;
        transform: translateX(20px) rotate(180deg)
    }

    80% {
        opacity: 0.5;
        transform: translateX(-20px) rotate(45deg)
    }

    90% {
        opacity: 0;
        transform: translateX(0) rotate(180deg)
    }

    100% {
        opacity: 0;
        top: 110%;
        transform: translateX(20px) rotate(225deg)
    }
}

#join {
    color: #FFFAE3;
    font-size: 1.1rem;
    background: transparent !important;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    border-bottom: 1px solid #FFFAE3;
    font-family: inherit;
    line-height: normal;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    display: inline
}

#join,
#join:active,
#join:focus,
#join:hover {
    background: transparent !important
}

#join:active,
#join:focus {
    outline: none;
    box-shadow: none
}

#join:hover {
    color: #ffeb3b;
    text-shadow: 0 0 10px #ff8c3b, 0 0 20px #ff8c3b
}

.server-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    overflow: hidden;
    gap: 30px;
    margin: 20px auto;
    width: 60%;
    background-color: rgba(20, 18, 16, 0.7);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #5d4c2e
}

.info-item {
    text-align: center;
    min-width: 200px
}

.info-item h3 {
    color: #c9a050;
    margin-bottom: 10px;
    font-size: 1.3rem
}

.info-item p {
    color: #FFFAE3;
    font-size: 1.1rem
}

.profile {
    position: relative;
    width: 350px;
    height: 190px;
    background: #1a1a1a;
    transition: 0.8s ease;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4)
}

.profile:hover {
    height: 500px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6)
}

.profile .lines {
    position: absolute;
    inset: 0;
    background: #0f0f0f;
    overflow: hidden;
    border-radius: 16px
}

.profile .lines::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 120px;
    background: linear-gradient(transparent, #d4af37, #f4e4a6, #d4af37, transparent);
    animation: animate1 8s linear infinite;
    opacity: 0.5
}

@keyframes animate1 {
    0% {
        transform: translate(-50%, -50%) rotate(0deg)
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg)
    }
}

.profile .lines::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: #1a1a1a;
    border-radius: 14px
}

.profile:hover .imgBx {
    width: 220px;
    height: 220px;
    top: -60px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3)
}

.profile .imgBx {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 150px;
    background: #0f0f0f;
    transition: 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
    overflow: hidden;
    border-radius: 50%;
    border: 3px solid rgba(212, 175, 55, 0.2)
}

.profile .imgBx::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 500px;
    height: 150px;
    transform: translate(-50%, -50%);
    background: linear-gradient(transparent, #d4af37, #f4e4a6, #d4af37, transparent);
    animation: animate2 12s linear infinite;
    opacity: 0.5
}

@keyframes animate2 {
    0% {
        transform: translate(-50%, -50%) rotate(360deg)
    }

    100% {
        transform: translate(-50%, -50%) rotate(0deg)
    }
}

.profile .imgBx::after {
    content: '';
    position: absolute;
    inset: 4px;
    background: #1a1a1a;
    border-radius: 50%
}

.profile .imgBx img {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    border-radius: 50%;
    object-fit: cover;
    filter: sepia(0.3) brightness(1.1)
}

.profile .content {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    overflow: hidden
}

.profile .content .details {
    padding: 40px 30px 30px;
    text-align: center;
    width: 100%;
    transition: 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateY(180px)
}

.profile:hover .content .details {
    transform: translateY(0px)
}

.profile .content .details h2 {
    font-size: 1.6em;
    font-weight: 600;
    color: #f4e4a6;
    line-height: 1.3em;
    letter-spacing: 0.5px;
    margin-bottom: 5px
}

.profile .content .details h2 span {
    font-size: 0.75em;
    font-weight: 400;
    opacity: 0.8;
    color: #d4af37;
    display: block;
    margin-top: 8px;
    font-style: italic
}

.profile .content .details .data {
    display: flex;
    justify-content: space-between;
    margin: 25px 0;
    padding: 0 15px
}

.profile .content .details .data h3 {
    font-size: 1.1em;
    color: #f4e4a6;
    line-height: 1.4em;
    font-weight: 500;
    position: relative;
    padding-bottom: 5px
}

.profile .content .details .data h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent)
}

.profile .content .details .data h3 span {
    font-size: 0.85em;
    font-weight: 400;
    opacity: 0.7;
    color: #e6d8a6;
    display: block;
    margin-top: 8px
}

.profile .content .details .actionBtn {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px
}

.profile .content .details .actionBtn a {
    padding: 12px 32px;
    border-radius: 50px;
    border: none;
    outline: none;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s ease;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden
}

.profile .content .details .actionBtn a:first-child {
    background: linear-gradient(135deg, #d4af37 0%, #f4e4a6 100%);
    color: #2d2d2d;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3)
}

.profile .content .details .actionBtn a:first-child:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4)
}

.profile .content .details .actionBtn a:first-child:active {
    transform: translateY(0)
}

.profile .content .details .actionBtn a:nth-child(2) {
    background: transparent;
    color: #f4e4a6;
    border: 1.5px solid #d4af37;
    position: relative
}

.profile .content .details .actionBtn a:nth-child(2):before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: 0.5s
}

.profile .content .details .actionBtn a:nth-child(2):hover {
    background: rgba(212, 175, 55, 0.1)
}

.profile .content .details .actionBtn a:nth-child(2):hover:before {
    left: 100%
}

.profile:before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 12px;
    pointer-events: none;
    opacity: 0;
    transition: 0.5s;
    z-index: 1
}

.profile:hover:before {
    opacity: 1
}

.profile:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.05), transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: 0.8s
}

.profile:hover:after {
    opacity: 1
}

.footer-medieval-dark {
    position: relative;
    width: 100%;
    background: linear-gradient(to bottom, #31180D, #000);
    color: #d4b272;
    padding: 90px 0 50px;
    overflow: hidden
}

.footer-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 50% 50%, rgba(212, 178, 114, 0.03) 0%, transparent 60%);
    opacity: 0.15;
    pointer-events: none
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    padding: 0 20px;
    position: relative;
    z-index: 2
}

.footer-logo {
    font-size: 28px;
    letter-spacing: 3px;
    color: #f0d39e;
    font-family: 'art', sans-serif;
    text-shadow: 0 0 12px rgba(212, 178, 114, 0.25)
}

.footer-links {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    justify-content: center
}

.footer-links a {
    color: rgba(212, 178, 114, 0.6);
    text-decoration: none;
    font-size: 15px;
    transition: all 0.35s ease
}

.footer-links a:hover {
    color: #f5d79e;
    text-shadow: 0 0 8px rgba(212, 178, 114, 0.4);
    transform: translateY(-2px)
}

.footer-copyright {
    color: rgba(212, 178, 114, 0.3);
    font-size: 13px;
    margin-top: 10px
}

.profile_container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh
}