.title-container > * {
    margin-top: 0px;
    margin-bottom: 0px;
}

.description {
    display: grid;
    grid-template-columns: 1fr 400px;
    column-gap: 25px;
    overflow-x: hidden;

    margin-bottom: 40px;
}

.ascii-top-preview-container {
    border: 1.5px solid var(--clr-wenge);
    border-radius: 5px;
    background: var(--clr-grey);
    padding: 10px;

    align-self: center;
    justify-self: center;
    font-size: 6px;
}

pre.ascii-top-preview {
    border-radius: 8px;
}

div.pane-title { 
    color: var(--clr-lavender);
    font-size: 12px;
    font-weight: 500;
}

div.ascii-top-preview-title {
    margin-bottom: 4px;
}

div.ascii-top-preview-title > b {
    color: var(--clr-lavender);
    font-weight: 700;
}

div.ascii-top-preview-controls {
    margin-top: 10px;
}

div.ascii-top-preview-primary-controls {
    display: grid;
    grid-template-columns: 80px 80px 1fr;
    column-gap: 10px;
}

div.ascii-top-preview-carousel-controls {
    --h-padding: 8px;
    --v-padding: 5px;

    box-sizing: border-box;
    width: 100%;
    height: 100%;
    padding: var(--v-padding) var(--h-padding);

    display: grid;
    grid-template-columns: auto 1fr auto;
    justify-items: center;
    align-items: center;
    user-select: none;
}

.preview-control-nav {
    width: 25px;
    height: 35px;

    border-radius: 4px;
    border: none !important;
    background: var(--clr-grey);
}


.preview-control-nav > img {
    width: 15px;
    height: 15px;
}

.top-preview-control-nav-forward > img {
    position: relative;
    right: 1px;
}

.top-preview-control-nav-backward > img {
    position: relative;
    left: -1px;
}

.preview-control-nav > img {
    top: 1.5px;
}

.carousel-bubbles {
    width: 100%;
    height: 100%;
    display: flex; 
    justify-content: space-evenly;
    align-items: center;
}

.carousel-bubble {
    --radius: 1.5px;
    --diameter: calc(var(--radius) * 2);
    background: var(--clr-lavender);

    margin: var(--radius);
    width: var(--diameter);
    height: var(--diameter);
    border-radius: var(--radius);
}

.carousel-bubble-active {
    --radius: 3px;

    margin: 0px;
    background: var(--clr-white);
}

.copy-icon {
    position: relative;
    top: 1px;
}

/* <-- Input Options Form --> */

#gen-options-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr auto;
    column-gap: 20px;
    padding: 10px 10px 0px 10px;
}

.options-layout {
    padding: 10px;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    justify-items: start;
    row-gap: 2px;
    column-gap: 20px;
}

.options-layout > select {
    width: 100%;
}

.options-buttons {
    display: flex;
    justify-self: end;
    grid-area: 2 / 2 / 2 / 2;
    gap: 10px;
}

.options-buttons > * {
    padding: 5px 20px;
}

.ascii-generate-button {
    background: #19cd94;
    color: var(--clr-purple);
    border: 1.5px solid var(--clr-grey-secondary);
}

.ascii-generate-button:hover {
    background: #10ad84;
    border: 1.5px solid var(--clr-grey-secondary);
}

.ascii-generate-button:active {
    background: #0a8060;
}

.ascii-generate-button:disabled {
    background: var(--clr-light-grey);
}

/* <-- ascii gen preview --> */

.ascii-gen-container {
    display: flex;
    flex-direction: column;

    background: var(--clr-grey);
    border-radius: 5px;
    border: 1.5px solid var(--clr-wenge);
    padding: 10px;
    gap: 10px;

}

.options-container {
    border: 1.5px solid var(--clr-wenge);
    border-radius: 5px;
    box-sizing: border-box;
    padding: 10px;
    width: 100%;
}

.ascii-gen-preview-container {
    /* background: grey; */
    max-width: 100%;
    min-height: 500px;
    height: max-content;

    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.preview-pane {
    border: 1.5px solid var(--clr-wenge);
    border-radius: 4px;
    padding: 10px;
    display: grid;
    grid-template-rows: 30px 1fr;
}

div.gen-pane-title {
    margin-bottom: 5px;
    font-weight: 700;
}

div.gen-pane-subtitle {
    color: var(--clr-wenge);
    margin-bottom: 5px;
    font-weight: 300;
}

.gen-pane-title::after {
    content: "";
    display: block;
    position: relative;
    top: 2px;
    width: 100%;
    height: 0.5px;
    background: var(--clr-wenge);
    opacity: 0.4;
}

.gen-pane-subtitle::after {
    background: var(--clr-light-grey);
}

.preview-stack {
    width: 100%;
    height: 100%;
    position: relative;
}

.takes-full-stack {
    position: absolute;
    width: 100%;
    height: 100%;
}

.drag-image-top-layer {
    pointer-events: none;
    background: var(--clr-grey-secondary);
    opacity: 0;
    transition: opacity 0.03s ease-in;
    z-index: 10;
}

.drag-image-dragover {
    opacity: 1;
}

.drag-image-drop-zone-hint {
    --width: 250px;
    --height: 250px;

    user-select: none;
    position: absolute;
    z-index: 8; 

    border: 1.5px solid var(--clr-grey-secondary);
    border-radius: 5px;

    padding: 20px 10px;
    left: max(10%, calc(50% - var(--width) / 2));
    right: max(10%, calc(50% - var(--width) / 2));
    top: max(10%, calc(50% - var(--height) / 2));
    bottom: max(10%, calc(50% - var(--height) / 2));
    align-self: center;
    justify-self: center;
    /* max-width: 250px; */
    /* max-height: 250px; */
    aspect-ratio: 1/1;
    user-select: none;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    transition: background 0.05s ease-in;
}

.drag-image-drop-zone-hint:hover {
    background: var(--clr-grey-btn-hover-secondary);
}

.drag-image-drop-zone-hint:active {
    background: var(--clr-grey-btn-pressed-secondary);
}

.drag-image-icon {
    user-select: none;
    z-index: 12;
    padding: 10px;
    box-sizing: border-box;
    align-self: center;
    max-width: 80%;
    flex: 1 1 auto;
}

.drag-image-drop-zone-hint-subtitle {
    width: 90%;
    max-height: 100%;
    text-align: center;
    font-size: 8pt;
    text-overflow: ellipsis;
    align-self: center;
    overflow: hidden;
    flex: 0 0 auto;
}

.drag-image-drop-zone-hint-subtitle > a { 
    cursor: pointer;
    text-decoration: underline;
}

.hide-drop-zone-hint {
    display: none;
}

.drag-image-src {
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drag-image-src > img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.drag-image-src-active {
    z-index: 9;
}

.preview-gen-src {
    width: 100%;
    height: 100%;
    align-content: center;
}

pre.ascii-gen-preview {
    text-align: center;
}

.ascii-gen-copy {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px 5px 5px;
    gap: 5px;

    color: var(--clr-lavender);
    font-weight: 700;
}

@media (width <= 1000px) {
    .description {
        grid-template-columns: 1fr;
    }
}

@media (width <= 800px) {
    .drag-image-drop-zone-hint {
        grid-template-rows: 1fr;
        justify-content: center;
    }

    .drag-image-icon {
        display: none;
    }

    .options-buttons {
        grid-area: 3 / 1 / 3 / 1;
    }

    #gen-options-form {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr auto;
    }

    .ascii-gen-preview-container {
        grid-template-columns: 1fr;
        grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
    }
}

@media (width <= 600px) {
    .options-buttons {
        margin-top: 10px;
        width: 100%;
        flex-direction: column;
    }

    #gen-options-form {
        grid-template-columns: 1fr;
    }
}

@media (width <= 500px) {
    .ascii-top-preview { 
        font-size: 4px;
    }

    div.ascii-top-preview-primary-controls {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
    }

    div.ascii-top-preview-carousel-controls {
        grid-area: 2/1/2/2;
    }

    button.control {
        width: 100%;
    }
}

@media (width <= 400px) {
    .options-layout {
        grid-template-columns: 1fr;
    }
}
