/**MOBILE**/
@media (max-width: 520px) {

#menu-button, #account-button {
    width: auto;
}
.main-menu {
    grid-template-columns: repeat(3, 1fr);
}
.top-nav-wrapper {
    width:100%;
}
.top-nav {
    border-radius: 0;
    margin-left: -2px;
}
.stat-nav {
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    margin-left: -2px;
}
.location-icon {
    left: .5rem;
}
.bottom-nav {
    width: 100%;
    border-radius: 0;
    bottom: 0;
}

.top-nav-dropdown, .account-dropdown {
    width: calc(100% - 2.2rem);
    left: 0;
    padding: 1rem;
    align-items: center;
    grid-template-columns: repeat(3, 1fr);
    transform: unset;
}

#modal {
    max-height: 100vh;
    height: 100%;
    min-width: 100%;
}
#modal-content {
    flex-grow: 1;
}
#modal-content.avatar {
    width:auto;
}
#modal-header, #modal-content {
    border-radius: 0;
}

#chatlog {
    width: calc(100vw - 2rem);
}
#chatlog-text {
    width: 95%;
    margin-bottom: 3rem;
}
#chatlog > .parchment {
    bottom: 0;
}

#profile, #avatar-editor-wrapper {
    height: 100%;
    flex-direction: column;
}
#profile-avatar {
    background-size: 175% auto;
    background-position: center -50px;
}
#profile-details {
    max-height: 100%;
}

#avatar-editor {
    height: 100%;
}
#avatar-editor-nav {
    overflow-x: auto;
}
#avatar-editor-avatar-wrapper {
    height:250px;
    max-width: 100%;
    border-radius: 1rem 1rem 0 0;
}
#avatar-editor-items {
    border-radius: 0 0 1rem 1rem;
}


}