/* =========================
   === Unlimited Terrain === 
   ========================= */

.bw-ut-main {
    display: flex;
    flex-direction: column;
}

.bw-ut-controls {
    flex: 1;
    display: flex;
}

.bw-ut-controls > div {
    display: flex;
    flex-direction: column;
}

.bw-ut-controls > div > div {
    display: flex;
    justify-content: center;
    height: var(--input-height);
    line-height: var(--input-height);
    margin-bottom: 5px;
}

.bw-ut-main button, .bw-ut-main input, .bw-ut-main label {
    flex: 0 0 58px;
    margin: 5px
}

.bw-ut-main .middle {
    flex: 1;
    display: flex;
}

.bw-ut-main .left {
    flex: 0.5;
    display: flex;
}

.bw-ut-main .right {
    flex: 0.5;
    display: flex;
    margin-left: 10px;
}

.bw-ut-footer {
    display: flex;
    justify-content: space-evenly;
    margin-top: 10px;
}

.bw-ut-footer button {
    flex: 1;
}

.bw-ut-footer > .middle {
    display: flex;
    justify-content: space-evenly;
}

/* ====================
   === Image Picker === 
   ==================== */

.bw-ip-main {
    height: 100%;
}

.bw-ip-main .image-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    min-height: 200px;
}

.bw-ip-main .image-container img {
    border-width: 1px;
    border-radius: 15px;
    aspect-ratio: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    margin: auto;
    padding: 2px;
}

.bw-ip-main .image-container img.selected {
    border: solid 2px orange;
    /* border-width: 2px;
    border-color: orange;
    border-style: solid; */
}

.bw-ip-main .header {
    display: flex;
    margin-bottom: 10px;
    gap: 5px;
}


.bw-ip-main .header > * {
    flex: 1;
}

/* ====================
   ======= Tab ======== 
   ==================== */

/* Tab */

.bw-tab {
    overflow: hidden;
}

.bw-tab.active {
    padding: 1rem;
}

.bw-tab section {
    gap: 0.5rem;
}

.bw-tab .divider {
    margin-bottom: 0;
    margin-top: 1em;
}

#baileywiki-popout .divider {
    margin-top: 0;
}

/* Info */

.bw-tab .info {
    font-size: var(--font-size-13);
}

.bw-tab .info .title {
    margin: 0;
    font-size: var(--font-size-32);
    text-align: center;
    letter-spacing: -0.3px;
}

.bw-tab .info .subtitle {
    margin: -0.5rem 0 0;
    color: var(--color-text-subtle);
    text-align: center;
}

.bw-tab .info > div {
    display: flex;
    justify-content: space-between;
}

.bw-tab .modules {
    flex-direction: column;
    max-height: 100px;
    overflow-y: auto;
    user-select: text;
}

.bw-tab .module {
    display: flex;
    justify-content: space-between;
}

.bw-tab .module .label {
    color: var(--color-text-emphatic);
}

.bw-tab .module .version {
    color: var(--color-text-secondary);
}

/* Browsers */

.bw-tab .browsers > * {
    display: flex;
    gap: 5px;
}

.bw-tab .browsers button {
    flex: 0.5;
}

/* Utilities */

.bw-tab .utilities {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.bw-tab .utilities .macros {
    overflow: hidden auto;
}

.bw-tab .utilities .macro {
    position: relative;
    border-top: var(--sidebar-separator, 1px solid var(--color-dark-1));
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bw-tab .utilities .macro img {
    flex: 0 0 var(--sidebar-item-height);
    height: var(--sidebar-item-height);
    width: var(--sidebar-item-height);
    object-fit: cover;
    object-position: 50% 0;
    border: none;
}

.bw-tab .utilities summary {
    border-bottom: 1px solid var(--color-light-6);
    margin-bottom: 3px;
    height: 1.5em;  
    color: var(--color-text-emphatic)
}

.bw-tab .utilities details[open] > summary::marker {
    color: darkorange
}

.bw-tab .utilities .folder {
    margin-top: 5px;
}

/* Tutorials */

.bw-tab .tutorials {
    display: flex;
    flex-direction: column;
    max-height: 400px;
    overflow-y: auto;
}

.bw-tab .tutorials .category h4 {
    border-bottom: 1px solid gray;
    margin-top: 8px;
}

.bw-tab .tutorials .tutorial {
    border: 1px solid black;
    background: lightgray;
    border-radius: 10px;
    color: black;
    display: flex;
    min-height: 55px;
    flex-wrap: wrap;
    align-content: center;
    cursor: pointer;
}

.bw-tab .tutorials .tutorial:hover {
    border: 2px solid darkorange;
    box-shadow: 10px 10px 20px rgba(36, 36, 36, 0.5);
}

.bw-tab .tutorials .tutorial .name {
    flex: 1;
    padding-left: 10px;
    display: flex;
    align-items: center;
}

.bw-tab .tutorials .tutorial .name:hover {
    text-shadow: none;
}

.bw-tab .tutorials .tutorial .hide {
    flex: 0 0 35px;
    height: 35px;
    margin-right: 10px;
    align-content: center;
    font-size: large;
    color: gray;
}

.bw-tab .tutorials .category-toggle {
    float: right;
    padding-right: 25px;
}

/* ====================
   ===== BW Icons ===== 
   ==================== */

@font-face {
    font-family: 'BWFont';
    src: url('../assets/fonts/BWFont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
[class*='icon-bw-']:before{
	display: inline-block;
   font-family: 'BWFont';
   font-style: normal;
   font-weight: normal;
   line-height: 1;
    font-size: x-large;
   -webkit-font-smoothing: antialiased;
   -moz-osx-font-smoothing: grayscale
}
.icon-bw-logo:before{content:'\0041';}
.icon-bw-logo2:before{content:'\0042';}