@import "main.css";
@import "nav.css";
@import "game-grid-style.css";
@import "form-control.css";
@import "chat.css";

main {
    display: flex;
}
#container {
    width: 70%;
    background: var(--ui-fg-color);
    border-radius: 1rem;
    border-left: 3px solid var(--ui-fg-color);
    border-bottom: 3px solid var(--ui-fg-color);
    display: flex;
    justify-content: space-between;
    max-height: 85dvh;
    margin: auto;
    position: relative;
    max-width: 1865px;
}
#container .left {
    min-width: 25%;
    height: 85dvh;
    padding: 1rem;
    box-sizing: border-box;
}
#container .left, #container .left header {
    display: flex;
    flex-direction: column;
    align-items: center;
}
#container .left.collapsed {
    min-width: 7rem;
    width: 7rem;
    transition: min-width 0.5s;
}
#container .left.collapsed  #logo {
    width: 3rem;
    transition: width 0.5s;
    margin-bottom: 4rem;
}
#container .left.collapsed h1 {
    display: none;
}
#container .left.collapsed nav {
    align-items: center;
}
#container .left.collapsed .nav-item {
    width: fit-content;
    margin-top: 0;
}
#container .left.collapsed span {
    display: none;
}
#container .right {
    flex-grow: 1;
    background: var(--ui-control-item);
    padding: 2rem;
    border-radius: 1rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
#container .right h4 {
    margin: 0;
}
#container .right header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
#filter, #container .right {
    position: relative;
}
#filter, #account, .list-item {
    -ms-user-select: none;
    -webkit-user-select: none;
    user-select: none;
}
#filter h4, #account {
    display: flex;
    align-items: center;
    column-gap: 0.25rem;
    cursor: pointer;
}
#filter h4::before {
    content: "filter_alt";
    font-family: "Material Icons";
    font-size: 1.5rem;
}
.filter-options {
    position: absolute;
    top: calc(100% + 18px);
    left: 0.75rem;
    background: white;
    width: fit-content;
    padding: 1rem 1.5rem;
    border-radius: 0 10px 10px 10px;
    border-bottom: 2px solid var(--ui-fg-color);
    border-right: 2px solid var(--ui-fg-color);
    display: flex;
    column-gap: 1.5rem;
    z-index: 1;
}
.filter-options::before {
    position: absolute;
    top: -20px;
    left: 0;
    content: "";
    width: 0;
    height: 0;
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
    border-left: 20px solid white;
}
.filter-options .col {
    display: flex;
    flex-direction: column;
    row-gap: 0.25rem;
}
.filter-options .col strong {
    margin-bottom: 0.33rem;
}
.filter-options .col label {
    color: var(--ui-fg-color);
    cursor: pointer;
}
#account {
    column-gap: 0.5rem;
    color: var(--ui-bg-color);
    text-decoration: none;
}
#container .left h1 {
    color: white;
    font-weight: normal;
    font-variant: small-caps;
    font-family: "Chalkduster", sans-serif;
}
#logo {
    width: 5rem;
}
#faq, #logout {
    margin-top: auto;
}
nav {
    width: 85%;
    height: 100%;
    display: flex;
    flex-direction: column;
    row-gap: 1rem;
}
#content {
    margin: 2rem 0;
    height: 100%;
    overflow: auto;
    position: relative;
}
#menu-switch {
    background-color: var(--ui-bg-color);
    border: 2px solid rgba(255,255,255,0.33);
    width: 1rem;
    height: 1rem;
    border-radius: 1rem;
    padding: 0.33rem;
    font-size: 1.2rem;
    color: var(--ui-fg-color);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}
#menu-switch::after {
    content: "keyboard_double_arrow_left";
    font-family: "Material Icons";
    color: white;
}
#menu-switch.active::after {
    content: "keyboard_double_arrow_right";
}
.copyright {
    margin-top: auto;
    display: flex;
    align-items: center;
}
.copyright * {
    margin-right: auto;
}


@media (min-width: 1750px) {
	#container .list {
        grid-template-columns: 1fr 1fr 1fr; 
    }
}

@media (min-width: 1133px) {
    #container {
        min-width: 1050px;
    }
    
}

@media (max-width: 1133px) or (max-height: 680px) {
    #container {
        max-height: none;
        width: 100vw;
        height: 100dvh;
        border-radius: 0;
        border: none;
    }

    #container section.right {
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }
}

@media (max-width: 880px) or (max-height: 515px) {
    #container {
        flex-direction: column;
        border: none;
    }

    #menu-switch {
        display: none;
    }
    .copyright * {
        margin-left: auto;
    }

    #container nav {
        height: auto;
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
    }

    #container section.left {
        height: auto;
    }

    #container section.right {
        border-radius: 0;
    }

    #container .nav-item span {
        display: none;
    }

    #logout{
        display: none;
    }

    #logo {
        width: 4rem;
    }
}

@media (max-width: 600px) {
    #container .list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    #container .filter-options {
        box-sizing: border-box;
       left: -2rem;
       width: 100vw;
       border-right: none;
    }

    #container .filter-options::before {
        border-left: 20px solid transparent;
        border-right: 20px solid transparent;
        border-bottom: 20px solid white;
        border-top: none;
        left: 1.55rem;
    }
}

@media (max-width: 490px) {
    #container .filter-options {
       column-gap: 1rem;
    }
    
}

@media (max-width: 470px) {
    #container .filter-options {
       flex-direction: column;
       gap: 1rem;
    }
}

@media (max-width: 420px) {
    #container section.right header h4:nth-child(2) {
        display: none;

    }
}

@media (min-width: 880px) and (max-height: 575px) {
    #content {
        height: auto;
        overflow: unset;
    }

    #content::after {
        display: none;
    }

    section.right {
        overflow-y: scroll;
    }
}

@media (max-height: 515px) and (min-width: 770px) {
    .text-shadow {
        margin-left: 3rem;
    }

    #container section.left {
        flex-direction: row;
    }

    #container .left header {
        flex-direction: row;
    }

    #logo {
        width: 3rem;
    }
}