/* DESKTOP */
html, body {
    font-family: Arial, sans-serif;
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: #1a2e42;
    color: #e6eef6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}


header {
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    align-content: flex-start;
    flex-direction: row;
    background-color: transparent;
    padding: 0;
    width: 100%;
    height: auto;
    text-align: center;
}

.logo a {
    display: inline-block;
}

.logo img {
    width: 5rem;
    height: 5rem;
    padding: 8px;
    cursor: pointer;
    display: block;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5% 5%;
    text-align: center;
    width: auto;
    margin: 2% auto;
    margin-top: 0;
    border-radius: 0.4rem 0.4rem 1.4rem 1.4rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
    backdrop-filter: blur(8px) saturate(120%);
    box-shadow: 0 0.6rem 1.8rem rgba(10,20,30,0.35);
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 5%;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
}

nav ul li {
    display: inline;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
}

nav ul li a:hover {
    color: #a5d0e8;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1 {
    color: #ee7878;
    font-size: 22px;
    font-weight: 400;
    margin: 0;
}

h2 {
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

p {
    color: #fff;
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
}

.Join img, .about img, footer img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.social-icons {
    display: flex;
    margin: 1%;
    gap: 0.6rem;
    align-items: center;
    justify-content: flex-end;
}

.social-icons img {
    
    max-width: none;
    max-height: none;
    width: 2.0rem;
    height: 2.0rem;
    padding: 0.45rem;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 0.25rem 0.6rem rgba(0,0,0,0.25);
    object-fit: contain;
    transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
    cursor: pointer;
}

.social-icons img:hover,
.social-icons img:focus {
    transform: translateY(-3px) scale(1.05);
    background: rgba(255,255,255,0.12);
    box-shadow: 0 0.4rem 1rem rgba(0,0,0,0.35);
}

footer {
    background-image: url(../assets/images/banners/mountains-banner.png);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    align-content: flex-end;
    flex-direction: row;
    background-color: transparent;
    padding: 0;
    width: 100%;
    min-height: 35vh;
    text-align: center;
    background-color: transparent;
    background-size: 100%;
    background-position: center bottom;
    background-repeat: no-repeat;
}

footer p {
    color: #a5d0e8;
    padding: 8px;
    border-radius: 8px;
}

.command {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin:5% auto;
    padding: 2%;
    max-width: 1200px;
}

.command-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 1rem;
}

.command-header h1 {
    font-size: 40px;
    color: #fff;
    font-weight: 800;
}

.command-list {
    display: flex;
    flex-direction: row;
    gap: 4rem;
    justify-content: center;
    width: 100%;
}

.command-item {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255, 255, 255, 0.74);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
    backdrop-filter: blur(8px) saturate(120%);
    box-shadow: 0 0.6rem 1.8rem rgba(10,20,30,0.35);
    border-radius: 1rem;
    width: 30%;
    height: auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.command-text {
    padding: 0rem 1rem 1rem 1rem;
}

.command-item img {
    box-sizing: border-box;
    padding: 1rem 1rem 0 1rem;
    width: 100%;
    height: auto;
    border-radius: 20px 20px 0 0;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

.command-item:nth-child(2) {
    transform: translateY(40px)
}

.command-item:nth-child(3) {
    transform: translateY(40px)
}

.command-item:nth-child(1) {order: 2;}
.command-item:nth-child(2) {order: 1;}
.command-item:nth-child(3) {order: 3;}

.gz, .dh, .dsh, .dw, .functions {
    display: none;
}

.gz.active, .dh.active, .dsh.active, .dw.active, .functions.active {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 5% auto;
}

.functions.active{
    flex-direction: row;
}

.druz-przyb, .druz-zast {
    display: flex;
    flex-direction: row;
    gap: 4rem;
    justify-content: center;
    width: 100%;
}

.gz-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(160, 78, 253, 0.671);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
    backdrop-filter: blur(8px) saturate(120%);
    box-shadow: 0 0.6rem 1.8rem rgba(10,20,30,0.35);
    border-radius: 1rem;
    width: 30%;
    text-align: center;
}

.dh-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255, 217, 113, 0.842);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
    backdrop-filter: blur(8px) saturate(120%);
    box-shadow: 0 0.6rem 1.8rem rgba(10,20,30,0.35);
    border-radius: 1rem;
    width: 30%;
    text-align: center;
}

.dsh-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(107, 183, 253, 0.726);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
    backdrop-filter: blur(8px) saturate(120%);
    box-shadow: 0 0.6rem 1.8rem rgba(10,20,30,0.35);
    border-radius: 1rem;
    width: 30%;
    text-align: center;
}

.dw-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(215, 215, 215, 0.705);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
    backdrop-filter: blur(8px) saturate(120%);
    box-shadow: 0 0.6rem 1.8rem rgba(10,20,30,0.35);
    border-radius: 1rem;
    width: 30%;
    text-align: center;
}

.functions-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255, 255, 255, 0.74);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
    backdrop-filter: blur(8px) saturate(120%);
    box-shadow: 0 0.6rem 1.8rem rgba(10,20,30,0.35);
    border-radius: 1rem;
    width: 30%;
    text-align: center;
}

.gz-text, .dh-text, .dsh-text, .dw-text, .functions-text {
    padding: 0 1rem 1rem 1rem;
    width: 100%;
}

.gz-item img, .dh-item img, .dsh-item img, .dw-item img, .functions-item img {
    box-sizing: border-box;
    padding: 1rem 1rem 0 1rem;
    width: 100%;
    height: auto;
    border-radius: 20px 20px 0 0;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

.przyboczni, .zastepowi {
    display: flex;
    flex-direction: row;
    gap: 4rem;
    justify-content: center;
    width: 100%;
}

.command-item,
.gz-item,
.dh-item,
.dsh-item,
.dw-item,
.functions-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-width: 250px;
    max-width: 320px;
    flex-grow: 1;
}

.buttons-list {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    width: 100%;
    margin: 0 auto;
}

.structure-button {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 1%;
    min-width: 12%;
    height: auto;
    margin: 0 auto;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(73, 73, 73, 0.671);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
    backdrop-filter: blur(8px) saturate(120%);
    box-shadow: 0 0.6rem 1.8rem rgba(10,20,30,0.35);
    border-radius: 1rem;
    transition: border 0.3s ease-in-out, color 0.3s ease, transform 0.3s ease-in-out;
    cursor: pointer;
}

#gz:hover {
    color: rgba(160, 78, 253, 0.671);
    border: 1px solid rgba(160, 78, 253, 0.671);
}

#dh:hover {
    color: rgba(255, 217, 113, 0.842);
    border: 1px solid rgba(255, 217, 113, 0.842);
}

#dsh:hover {
    color: rgba(107, 183, 253, 0.726);
    border: 1px solid rgba(107, 183, 253, 0.726);
}

#dw:hover {
    color: rgba(215, 215, 215, 0.705);
    border: 1px solid rgba(215, 215, 215, 0.705);
}

#f:hover {
    color: #ffffff;
    border: 1px solid #ffffff;
}

.gz-item:nth-child(2) {
    transform: translateY(40px)
}

.gz-item:nth-child(3) {
    transform: translateY(40px)
}

/* .gz-item:nth-child(1) {order: 2;}
.gz-item:nth-child(2) {order: 1;}
.gz-item:nth-child(3) {order: 3;} */

.druz-przyb .dh-item:nth-child(2) {
    transform: translateY(40px)
}

.zastepowi {
    transform: translateY(80px)
}

.dh.active{
    margin-bottom: 10%;
}

.dsh-item:nth-child(2) {
    transform: translateY(40px)
}

.dsh-item:nth-child(3) {
    transform: translateY(40px)
}

.dsh-item:nth-child(1) {order: 2;}
.dsh-item:nth-child(2) {order: 1;}
.dsh-item:nth-child(3) {order: 3;}

.dw-item:nth-child(2) {
    transform: translateY(40px)
}

.dw-item:nth-child(3) {
    transform: translateY(40px)
}

.dw-item:nth-child(1) {order: 2;}
.dw-item:nth-child(2) {order: 1;}
.dw-item:nth-child(3) {order: 3;}






@media (max-width: 1500px) {
}







/* TABLET */
@media (max-width: 1024px) {
    h1 {
        font-size: 18px;
    }

    h2 {
        font-size: 16px;
    }

    p {
        font-size: 14px;
    }

    .command-item, .gz-item, .dh-item, .dsh-item, .dw-item, .functions-item {
        max-width: 15%;
    }
}






/* MOBILE */
@media (max-width: 768px) {
        nav {
        font-size: clamp(8px, 3vw, 16px);
    }

    .logo img {
        width: 3rem;
        height: 3rem;
    }

        .social-icons img {
        width: 1.5rem;
        height: 1.5rem;
    }

    .about-text {
        padding-top: 0;
    }

    h1 {
        font-size: 16px;
    }

    h2 {
        font-size: 14px;
    }

    p {
        font-size: 12px;
    }

    .buttons-list {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .structure-button {
        text-wrap: nowrap;
    }

    .command-list, .druz-przyb, .zastepowi, .functions.active {
        flex-direction: column;
        gap: 2rem;
        justify-content: center;
        align-items: center;
    }

    .gz-item:nth-child(2) {
    transform: translateY(0)
}

.gz-item:nth-child(3) {
    transform: translateY(0)
}

.command-item:nth-child(1) {order: 1;}
.command-item:nth-child(2) {order: 2;}
.command-item:nth-child(3) {order: 3;}

.command-item:nth-child(2) {
    transform: translateY(0)
}

.command-item:nth-child(3) {
    transform: translateY(0)
}

.gz-item:nth-child(1) {order: 1;}
.gz-item:nth-child(2) {order: 2;}
.gz-item:nth-child(3) {order: 3;}

.druz-przyb .dh-item:nth-child(2) {
    transform: translateY(0)
}

.zastepowi {
    transform: translateY(0)
}

.dh.active{
    margin-bottom: 10%;
}

.dsh-item:nth-child(2) {
    transform: translateY(0)
}

.dsh-item:nth-child(3) {
    transform: translateY(0)
}

.dsh-item:nth-child(1) {order: 1;}
.dsh-item:nth-child(2) {order: 2;}
.dsh-item:nth-child(3) {order: 3;}

.dw-item:nth-child(2) {
    transform: translateY(0)
}

.dw-item:nth-child(3) {
    transform: translateY(0)
}

.dw-item:nth-child(1) {order: 1;}
.dw-item:nth-child(2) {order: 2;}
.dw-item:nth-child(3) {order: 3;}

    footer {
        min-height: 10vh;
    }
}



/* MOBILE BUT SMOL */
@media (max-width: 450px) {
        header {
        min-height: 0;
    }

    nav {
        font-size: clamp(8px, 3vw, 14px);
    }

    .logo img {
        width: 2.5rem;
        height: 2.5rem;
    }

        .social-icons img {
        width: 1.0rem;
        height: 1.0rem;
    }

    .buttons-list {
        flex-direction: column;
    }

    .command-header {
        text-align: center;
    }

    footer {
        min-height: 10vh;
    }
}