/* Variables */
/* dark mode colors*/
:root {
    --background-color: #2c2a29;
    --secondary-background-color: #201f1d;
    --tertiary-background-color: #1b1b18;
    --text-color: #ffffff;
    --card-background-color: #3a3a3a;
}

/* light mode colors 
:root {
    --background-color: #ececec;
    --secondary-background-color: #F0F6FF;
    --tertiary-background-color: #f5f5f5;
    --text-color: #000000;
    --card-background-color: #ffffff;
}
*/
@font-face {
    font-family: "Minecraft";
    src: url(../fonts/Minecraft.otf);
}

@font-face {
    font-family: "Pixeloid Sans";
    src: url(../fonts/pixeloid_sans/PixeloidSans.ttf);
}

html {
    scroll-behavior: smooth;
    font-family: "Inter", sans-serif;
    background-color: #131313;
}

body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
    touch-action: manipulation;
}

/* Extendable Nav */
#extendable-nav {
    display: block;
    flex-direction: row;
    position: fixed;
    top: 10px;
    border-radius: 40px;
    z-index: 1000;
    transition: width .3s;
    min-height: 60px;
    max-height: 80px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.185);
}

.expand-nav {
    min-width: 60px;
    width: 92%;
    right: 4%;
}

.collapse-nav {
    min-width: 60px;
    width: min(10vh, 80px);
    right: 4%;
}

#nav-bar {
    display: flex;
    flex-direction: row;
    justify-content: end;
    align-items: center;
    height: min(10vh, 80px);
    min-height: 60px;
    background-color: #ececec;    
    border-radius: 40px;

    z-index: 1000;
}
.expanded {
    display: flex;
    flex-direction: row;
    justify-content: end;
    align-items: center;
    width: 100%;
    height: 100%;
    opacity: 1;
    transition: all .3s;
}

.collapsed {
    width: 0;
    opacity: 0;
}

.collapsed * a {
    display: none !important;
    width: 0;
    opacity: 0 !important;
}

#nav-links {
    margin-left: auto;
    height: 100%;
    z-index: 10;
}

#nav-links ul {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    height: 100%;
    list-style-type: none;
    padding: 0;
    margin-right: -15px;
    
}

#nav-links ul li {
    height: 100%;
    border-left: #9696964d solid 1px;
}

#nav-links ul li a {
    font-family: 'Inter', sans-serif;
    font-weight: 650;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    white-space: nowrap;

    text-transform: uppercase;
    text-decoration: none;
    color: black;
    opacity: 1;
    padding-left: max(10px, 2vw);
    padding-right: max(10px, 2vw);
    transition: background-color, opacity .2s;
}

#nav-links ul li a:hover {
    background-color: #b1b1b14d;
}

#nav-links ul li a img {
    margin-left: 2px;
}

.expanded-arrow {
    rotate: 180deg;
}

.collapsed-arrow {
    rotate: 0deg;
}

#svg-button {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    cursor: pointer;
    border-radius: 0;
    background: none;
    border: none;
    width: min(10vh, 80px);
    padding: 0;
    flex-shrink: 0;
    z-index: 9;
    min-width: 60px;
}

.button-collapsed {
    width: min(10vh, 80px);
    padding: 0;
}

#extend-svg {
    flex-shrink: 0;
    transition: width .5s;
    transition: rotate .3s;
}

#logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: auto;
    flex-shrink: 0;
    width: 10vh;
    min-width: 60px;
    margin-left: 20px;
    
}

#logo a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 90%;
    text-decoration: none;
    opacity: 1;
    transition: opacity .2s;
}

.collapsed * a img {
    opacity: 0 !important;
}

#logo a img {
    max-width: 100%;
    opacity: 1;
    transition: opacity .2s;
}

@media (max-width: 750px) {
    .expand-nav * #logo {
        opacity: 1;
    }
    .collapse-nav * #logo {
        opacity: 0;
        width: 100%;
    }
    #logo {
        margin: 0;
        height: 10%;
        min-height: min(10vh, 80px);
        width: 100%;
        transition: opacity .3s ease-in;
    }
    #logo a img {
        max-height: 70%;
    }
    .expanded {
        flex-direction: column;
    }
    .expand-nav #nav-bar {
        height: 60svh;
    }
    #extendable-nav {
        box-shadow: none;
        max-height: fit-content;
    }
    #nav-bar {
        align-items: start;
        transition: width, height .3s;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.185);
    }
    #control-expand {
        margin-right: min(-80px);
    }
    #nav-links {
        justify-content: start;
    }
    #nav-links ul {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 100%;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    #nav-links ul li {
        width: 100%;
        border-left: none;
        border-top: #9696964d solid 1px;
    }
    #nav-links ul li a {
        font-size: 1.25em;
    }
    #nav-links ul li a img {
        height: 1.4em;
    }
    #svg-button {
        height: min(10vh, 80px);
        -webkit-tap-highlight-color: transparent;
    }
}

/* End Nav */

/* Video Banner */

#video-banner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    height: 100svh;
    overflow: hidden;
    background-color: rgb(26, 26, 26);
}

#video-banner video {
    object-fit: cover;
    object-position: center;
    min-height: 100%;
    width: 100%;
    pointer-events: none;
}
video::-webkit-media-controls-panel {
    display: none !important;
    opacity: 1 !important;
}

#scroll-down-indicator {
    position: absolute;
    cursor: pointer;
    bottom: 10px;
    width: 40px;
    opacity: .8;
    animation: infinite bounce 2s;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-2px);
    }
}

@media screen and (max-width: 750px) {
    #video-banner video {
        height: 100%;
        width: auto;
    }
    
}

/* Online players section */

#online {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    width: 100%;
    height: fit-content;
    background-color: var(--secondary-background-color);
    padding-top: calc(10vh + 10px);
    padding-bottom: calc(10vh);
    color: var(--text-color);
}

h1 { 
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    padding: 0;
    margin-bottom: 40px;
    font-family: "Minecraft";
}
table {
    border-collapse: collapse;
    width: min(90%, 1200px);
    min-width: 340px;
    background-color: #3a3a3a;
    color: white;
    font-size: 1.05em;
    font-weight: 500;
    font-family: "Minecraft";
}

th, td {
    max-height: 20px;
    padding: 10px 24px 10px 24px;
    text-align: center;
    border: 2px solid #707070;
}
#online td {
    vertical-align: middle;
    padding: 0;
    max-height: none;
    height: auto;
}
#online th {
    padding: 12px 20px;
    max-height: none;
    height: auto;
}
.faces {
    width: 40px;
    min-width: 40px;
    max-height: 40px;
    height: 40px;
    object-fit: cover;
}

.player-cell {
    padding: 0;
}

tr:nth-child(even) {
    background-color: #3a3a3a;
}

.action-cell {
    text-align: center;
    vertical-align: middle;
    padding: 0;
}

#online .player-cell-content {
    display: grid;
    grid-template-columns: 40px auto;
    align-items: center;
    gap: 12px;
    justify-items: center;
    text-align: center;
    padding: 12px 20px;
    height: 100%;
}

#online .action-cell-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    height: 100%;
}

#online .social-button {
    margin: 0 auto;
    justify-content: center;
}

/* Members section */

/* Server Members Section Styles */
.server-members {
    padding: 40px 20px;
    font-family: 'Poppins', sans-serif;
    background-color: var(--tertiary-background-color);
    color: var(--text-color);
}

.server-members h2 {
    font-family: 'Minecraft', sans-serif;
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5em;
    font-weight: 600;
}

.members-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.member-card {
    background-color: var(--card-background-color);
    color: var(--text-color);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    position: relative;
    overflow: hidden;
    outline: #4f4b4b solid 3px;
}

.member-card:hover {
    box-shadow: 0 12px 24px rgba(0,0,0,0.2);
}

.member-logo {
    width: 160px;
    height: 160px;
    min-width: 160px;
    min-height: 160px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #ffffff;
    transition: transform 0.2s;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    background-color: #ffffff;
}

.logo-wrapper {
    position: relative;
    width: 180px;
    margin: auto;
}

.live-status {
    display: none;
    position: absolute;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    top: 0;
    right: 0;
    background-color: #fe3c3c;
    padding: 5px 8px;
    box-shadow: 0 0 6px rgba(0,0,0,0.3);
}

.member-card:hover .member-logo {
    transform: scale(1.02);
}

.member-name {
    font-size: 1.5em;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    margin-bottom: 15px;
    transition: color 0.3s;
}

.social-links {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.social-button {
    display: flex;
    font-family: "Minecraft", sans-serif;
    font-weight: 500;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: #ffffff;
    font-size: 1em;
    text-decoration: none;
    text-shadow: 0 0px 6px rgb(0, 0, 0);
    transition: background 0.3s, transform 0.3s;
}

.social-img {
    width: 20px;
    height: 20px;
}

.social-button i {
    font-size: 1.2em;
}

.social-button.youtube {
    background-color: #FF0000;
}

.social-button.twitch {
    background-color: #6441A5;
}

.social-button:hover {
    transform: scale(1.03);
}

@media (max-width: 570px) {
    .member-card {
        padding: 15px;
    }

    .member-name {
        font-size: 1.3em;
    }

    .social-button {
        font-size: 0.9em;
        padding: 6px 10px;
    }

    .social-button i {
        font-size: 1em;
    }
}

/* Footer */

footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100px;
    background-color: var(--secondary-background-color);
    color: var(--text-color);
    font-size: .9em;
    font-family: 'Pixeloid Sans', 'Inter', sans-serif;
    text-align: center;
}
