/* General */
html{-webkit-text-size-adjust:100%}

.no-mobile{display:none !important}

/* Top bar */
#top-bar{padding-bottom:0}
#top-bar input{width:100%}
#top-bar .links a{flex-basis:20%}

#top-bar .tabs{padding:4px 0;flex-wrap:wrap}
#top-bar .user{min-width:100%;margin-top:16px}

/* Scene */
.sky{top:0}
#footer p{padding:16px;font-size:8pt}

.cloud{display:none}

/* Messages */
.notif,.input-popup{width:calc(100% - 8px);margin:4px}

/* Content */
#container{margin:0;border-radius:0}

body.full #footer{display:none}

.top-buttons{position:relative;flex-direction:column}
.top-buttons #save-buttons{order:2}
.top-buttons .buttons{order:1}

.discord{width:100%}

.achievements .percent-bar.small{width:100%}

.panel{max-width:260px}
.panel input[type=text]{max-width:132px}

.acp-code .code{flex-direction:column}
.acp-code .code > pre{width:100%;height:50%}

/* Forums */
.forum input[type=text],.forum .post{width:100%}
.forum .side{display:none}
.forum .time div{width:auto}
.forum .time i{margin-left:8px}

/* Dex */
.collections .tab:hover img{animation:none}
.dex-forms a,.dex-forms p{min-width:auto;width:40px;padding:0;justify-content:center}
.dex-forms a span,.dex-forms p span,.dex-forms a i,.dex-forms p i{display:none}
.dex-forms img{margin:0;max-width:100%}

#evo-editor div{text-align:center}
#evo-editor input{display:block}
#evo-editor .evo,#evo-editor .evo-method{margin:2px 0}
#evo-editor .evo-extra{margin:0}

.shiny-editor .panel{display:block;width:100%;max-width:none;margin:0}
.shiny-editor .panel:first-child{margin:16px 0}

.collection-types{flex-direction:column}
.collection-types > div:first-child{margin:0 0 16px 0}

/* Region */
.region,.region > div,#region-versions-text,.region #locations{width:100%;min-width:auto}
#region-versions.editing{max-width:100%}

#stat-data > div{min-width:auto}

/* Move Animator */
#me-display .wrapper{margin:0}

/* Show Content */
.show-content{display:block;position:fixed;right:8px;bottom:8px;width:32px;height:32px;background:rgba(0,0,0,0.5);border-radius:16px;padding:8px;z-index:100000}
.show-content div{display:inline-block;position:absolute;left:13px;top:14px;border:solid #fff;border-width:0 1px 1px 0;padding:2px;transform:rotate(45deg)}
.show-content div.up{transform:rotate(-135deg)}

/* Mapbuilder */
#mb,#tf,#tb{overflow-x:auto;scroll-behavior:smooth;scroll-snap-type:x mandatory}
#mb > div,#tf > div,#tb > div{flex:auto;width:100%;min-width:100% !important;scroll-snap-align:start}
#mb-left,#tf-left,#tb-left{margin:0 !important}
#mb-right .light-container,#tb-right .light-container,#tb-trainer .light-container{width:100% !important}

/* Teambuilder */
.tb-section{display:block;width:100%}
.tb-section:nth-child(even){margin:0}
.tb-mon-sprite{display:block;text-align:center;float:none}

/* Simulator */
#sim .team{display:block !important;margin:0 !important}
#sim .light-container > div{width:auto !important}
#sim-widgets{white-space:normal}
#sim .options{width:100% !important}
#battle-container.widget.open{margin:0;padding:0;display:block;width:100%;overflow:hidden;text-align:center;background:0}

#chat{max-width:none;min-width:calc(100% - 8px)}

#sim,#tb-mon2,#tb-trainer{padding:4px}

#battles #home{overflow-x:auto;scroll-behavior:smooth;scroll-snap-type:x mandatory}
#battles #home > div{width:100%;min-width:100% !important;scroll-snap-align:start}

/* Game */
#battle canvas:not(#game-answers){width:100%}

.cookies{padding:16px;left:0;right:0;bottom:0;flex-direction:column}

.new-conversation div.width-80p{width:100%}
.conversation-content{overflow-x:auto;scroll-behavior:smooth;scroll-snap-type:x mandatory}
.conversation-content > div{width:100%;min-width:100% !important;scroll-snap-align:start}
#dm-loading.show,#conversation.show,#new-conversation.show{border:0;padding:0}
.dm{margin:0}
.dm .messages,#conversations-container{padding:0}