@font-face {
    font-family: 'Minecraft';

    src: url('assets/fonts/Minecrafter.Reg.ttf') format('truetype');
}

* {
    margin: 0;
    padding: 0;

    box-sizing: border-box;
}

/* ---------- BODY ---------- */

body {
    background-image: url("assets/background/minecraftbg.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;

    overflow-x: hidden;

    color: white;

    font-family: 'Minecraft';
}

/* ---------- HEADER ---------- */

header {
    min-height: clamp(80px, 10vh, 140px);
    
    border: 3px solid #8b6b2f;

    box-shadow:
    0 0 0 2px #3a2a12,
    0 0 0 5px #d4af37,
    0 0 25px rgba(0,0,0,0.6);

    position: relative;

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: clamp(12px, 2vw, 40px);

    background-color: darkslateblue;

    font-family: 'Minecraft';

    -webkit-text-stroke: 0.5px black;
}
nav {
    position: absolute;

    right: clamp(20px, 4vw, 50px);

    top: 50%;

    transform: translateY(-50%);

    display: flex;

    align-items: center;

    gap: clamp(12px, 2vw, 24px);
}
.ip-copy {

    position: relative;

    cursor: pointer;

    padding:
        clamp(8px, 1vw, 14px)
        clamp(14px, 1.5vw, 24px);

    background-color: rgba(0,0,0,0.45);

    border: 2px solid #5c4420;

    box-shadow:
        0 0 0 2px #3b2a12,
        0 0 0 5px #d4af37,
        0 0 15px rgba(0,0,0,0.5);

    color: #f5d97a;

    font-size: clamp(0.8rem, 1vw, 1rem);

    text-shadow:
        0px 2px 0 #2b1c0d;
    margin-right: 20px;
}
.copy-tooltip {

    position: absolute;

    left: 50%;

    top: calc(100% + 10px);

    transform: translateX(-50%);

    opacity: 0;

    transition: opacity 0.2s ease;

    pointer-events: none;

    white-space: nowrap;

    font-size: 0.8rem;

    color: white;
}
.ip-copy:hover .copy-tooltip {

    opacity: 1;
}
.discord-button {

    display: flex;

    justify-content: center;
    align-items: center;

    width: 60px;
    height: 60px;

    border-radius: 50%;

    background-color: #5865F2;

    color: white;

    text-decoration: none;

    font-size: 1.8rem;
    border: 1px solid #1c2d66;

    box-shadow:
        inset 0 2px 0 rgba(255,255,255,0.25),
        inset 0 -2px 0 rgba(0,0,0,0.35),

        0 0 0 2px #10204d,
        0 0 0 4px #d4af37,

        0 6px 15px rgba(0,0,0,0.5);
}

/* ---------- MAIN ---------- */

#main {
    margin: clamp(20px, 3vw, 40px) auto;

    padding: clamp(10px, 2vw, 24px);

    width: 90vw;

    height: clamp(400px, 60vh, 700px);

    border: 5px solid #5c4420;

    border-radius: clamp(12px, 2vw, 24px);

    background-image: url("assets/background/spawn.PNG");

    background-color: rgba(0, 0, 0, 0.5);

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    box-shadow:
    0 0 0 2px #3b2a12,
    0 0 0 5px #d4af37,
    0 0 25px rgba(0,0,0,0.65);

    font-family: 'Minecraft';
}

/* ---------- MAIN OVERLAY ---------- */

.overlay {
    background-color: rgba(0, 0, 0, 0.5);

    display: flex;

    flex-direction: column;

    justify-content: center;
    align-items: center;

    text-align: center;

    width: 100%;
    height: 100%;

    padding: clamp(15px, 3vw, 40px);

    border-radius: clamp(12px, 2vw, 24px);

    color: black;

    gap: clamp(10px, 2vw, 20px);
}

/* ---------- MAIN TITLE ---------- */

.overlay .title {
    font-size: clamp(1.2rem, 3vw, 2.8rem);

    color: #fadb70;

    -webkit-text-stroke: 1px #d4af37;

    text-shadow:

    0px 5px 0 #2b1c0d,

    3px 3px 0 #2b1c0d,
   -3px 3px 0 #2b1c0d,
    3px -3px 0 #2b1c0d,
   -3px -3px 0 #2b1c0d,

    0px -2px 0 #fff4c9,

    0 0 15px rgba(212,175,55,0.4);
    

    line-height: 1.1;
}

/* ---------- MAIN PARAGRAPHS ---------- */

.overlay p {
    font-size: clamp(1rem, 2vw, 2rem);

    line-height: 1.4;

    text-align: center;
}

.play-button {

    display: inline-block;

    padding:
        clamp(14px, 1.2vw, 24px)
        clamp(36px, 3vw, 64px);

    font-size:
        clamp(1.1rem, 2vw, 2rem);

    color: white;

    text-decoration: none;

    background:
        linear-gradient(
            to bottom,
            #4d73d4,
            #27408b
        );

    border: 2px solid #1c2d66;

    box-shadow:
        inset 0 3px 0 rgba(255,255,255,0.25),
        inset 0 -3px 0 rgba(0,0,0,0.35),

        0 0 0 2px #10204d,
        0 0 0 5px #d4af37,

        0 6px 15px rgba(0,0,0,0.5);

    text-shadow:
        0 2px 0 rgba(0,0,0,0.4);

    transition:
        transform 0.15s ease,
        filter 0.15s ease;
}
.play-button:hover {

    filter: brightness(1.15);

    transform: translateY(-2px);
}
.play-button:active {

    transform: translateY(2px);

    box-shadow:
        inset 0 2px 0 rgba(255,255,255,0.2),
        inset 0 -2px 0 rgba(0,0,0,0.3),

        0 0 0 2px #10204d,
        0 0 0 5px #d4af37,

        0 2px 6px rgba(0,0,0,0.5);
}
/* ---------- COLORED TEXT ---------- */

.redtext {
    color: red;

    font-weight: bold;

    -webkit-text-stroke: 0.5px black;
}

.greentext {
    color: lightgreen;

    font-weight: bold;

    -webkit-text-stroke: 0.5px black;
}

/* ---------- GALLERY ---------- */

#gallery {
    width: 90vw;

    margin: clamp(20px, 4vw, 50px) auto;

    padding: clamp(20px, 4vw, 50px);

    border-radius: clamp(12px, 2vw, 24px);

    background-color: rgba(0, 0, 0, 0.55);

    overflow: hidden;

    box-shadow: 0 0 clamp(10px, 2vw, 30px) rgba(0, 0, 0, 1);
}

/* ---------- GALLERY TITLE ---------- */

.gallery-title {
    text-align: center;

    font-size: clamp(2rem, 5vw, 4rem);

    color: white;

    margin-bottom: clamp(30px, 5vw, 70px);

    -webkit-text-stroke: 1px black;
}

/* ---------- CAROUSEL ---------- */

.carousel {
    width: 100%;

    height: clamp(250px, 60vw, 600px);

    position: relative;

    perspective: 1200px;
}

/* ---------- SLIDER ---------- */

.slider {
    position: absolute;

    width: clamp(220px, 45vw, 420px);

    aspect-ratio: 16 / 9;

    top: 35%;

    left: 50%;

    transform-style: preserve-3d;

    transform:
        translate(-50%, -50%)
        rotateX(-8deg);

    animation: carouselRotate 40s linear infinite;
}

.slider:hover {
    animation-play-state: paused;
}
.help-button {

    display: inline-block;

    padding:
        clamp(14px, 1.2vw, 24px)
        clamp(36px, 3vw, 64px);

    font-size:
        clamp(1.1rem, 2vw, 2rem);

    color: white;

    text-decoration: none;

    background:
        linear-gradient(
            to bottom,
            #4d73d4,
            #27408b
        );

    border: 2px solid #1c2d66;

    box-shadow:
        inset 0 3px 0 rgba(255,255,255,0.25),
        inset 0 -3px 0 rgba(0,0,0,0.35),

        0 0 0 2px #10204d,
        0 0 0 5px #d4af37,

        0 6px 15px rgba(0,0,0,0.5);

    text-shadow:
        0 2px 0 rgba(0,0,0,0.4);

    transition:
        transform 0.15s ease,
        filter 0.15s ease;
}
footer {

    display: flex;

    justify-content: center;

    padding: 40px 0;
}
/* ---------- ROTATION ---------- */

@keyframes carouselRotate {

    from {
        transform:
            translate(-50%, -50%)
            rotateX(-8deg)
            rotateY(0deg);
    }

    to {
        transform:
            translate(-50%, -50%)
            rotateX(-8deg)
            rotateY(360deg);
    }
}

/* ---------- CARDS ---------- */

.item {
    position: absolute;

    inset: 0;

    border-radius: clamp(10px, 1.5vw, 18px);

    overflow: hidden;

    box-shadow: 0 0 clamp(10px, 2vw, 30px) rgba(0,0,0,0.5);

    transform:
        rotateY(calc((var(--position) - 1) * (360 / var(--quantity)) * 1deg))
        translateZ(600px);
}

/* ---------- CARD IMAGES ---------- */

.item img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: clamp(10px, 1.5vw, 18px);

    transition: transform 0.3s ease;
}

.item img:hover {
    transform: scale(1.05);
}

/* ---------- CONTACT ---------- */

#contact {
    background-color: gray;
}
.mobile-gallery {

    display: none;

    align-items: center;

    justify-content: center;

    gap: 10px;
}
/* ---------- MOBILE OPTIMIZATION ---------- */

@media (max-width: 768px) {

    /* ---------- HEADER ---------- */

    header {

        padding: 14px 18px;
    }

    header h1 {

        font-size: 1.4rem;

        line-height: 1.2;
    }

    /* ---------- NAV ---------- */

    nav {

        display: flex;

        align-items: center;

        gap: 10px;

        flex-wrap: wrap;
    }

    /* ---------- IP ---------- */

    .ip-copy {

        padding: 8px 12px;
    }

    .ip-label {

        font-size: 0.7rem;
    }

    .copy-tooltip {

        font-size: 0.65rem;
    }

    /* ---------- DISCORD ---------- */

    .discord-button {

        width: 46px;
        height: 46px;

        font-size: 1.2rem;
    }

    /* ---------- DESKTOP CAROUSEL ---------- */

    .carousel {

        display: none;
    }

    /* ---------- MOBILE GALLERY ---------- */

    .mobile-gallery {

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 10px;

    width: 100%;
}
.gallery-track {

    position: relative;

    width: 280px;

    height: 180px;
}

.gallery-card {

    border-radius: 12px;

    overflow: hidden;

    position: absolute;

    width: 180px;

    height: 120px;

    object-fit: cover;

     transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}
.changing {

    opacity: 0;

    transform: scale(0.9);
}
.center {

    width: 220px;

    height: 140px;

    left: 50%;

    top: 20px;

    transform: translateX(-50%);

    z-index: 3;

    box-shadow:
        0 8px 20px rgba(0,0,0,0.4);
}
.left {

    width: 160px;

    height: 100px;

    left: 0;

    top: 40px;

    z-index: 1;

    opacity: 0.8;

    box-shadow:
        0 4px 10px rgba(0,0,0,0.25);
}
.right {

    width: 160px;

    height: 100px;

    right: 0;

    top: 40px;

    z-index: 1;

    opacity: 0.8;

    box-shadow:
        0 4px 10px rgba(0,0,0,0.25);
}
.gallery-btn {

    font-family: 'Inter', sans-serif;
    width: 56px;
    height: 56px;

    display: flex;

    justify-content: center;
    align-items: center;

    cursor: pointer;

    border: 2px solid #1c2d66;

    background:
        linear-gradient(
            to bottom,
            #4d73d4,
            #27408b
        );

    color: white;

    font-size: 2rem;

    font-family: 'Inter', sans-serif;

    box-shadow:
        inset 0 3px 0 rgba(255,255,255,0.25),
        inset 0 -3px 0 rgba(0,0,0,0.35),

        0 0 0 2px #10204d,
        0 0 0 4px #d4af37,

        0 6px 15px rgba(0,0,0,0.4);

    transition:
        transform 0.15s ease,
        filter 0.15s ease;

    user-select: none;
}
.gallery-btn:hover {
    transform: translateY(-2px);

    filter: brightness(1.1);
}
.gallery-btn:active {

    transform: translateY(2px);
}

}
@media (max-width: 768px) and (orientation: portrait) {

    .desktop-title {

        display: none;
    }  
    .gallery-track {

        transform: scale(0.8);
    }
     .center {

        width: 170px;
        height: 105px;
    }

    .left {

        width: 110px;
        height: 70px;

        left: -10px;
    }

    .right {

        width: 110px;
        height: 70px;

        right: -10px;
    }
}