.list {
    padding: 0;
    break-inside: avoid;
}


.left {
    float: left;
}



.group,
.list,
.output-container,
.history-container,
.text-container,
.button-container {
    box-shadow: 0px 0px 5px .3px #b5b5b5;
    margin: 0;
    padding: 2px 10px;
    background-color: #e6e6e6;
}

.group {
    margin-bottom: 10px;
}

.text-container {
    display: flex;
    padding: 10px 0;
}

.button-container {
    column-span: all;

    background: none;
    box-shadow: none;
    padding: 0;
}

.button-container button {
    padding: 5px 15px;
}

.title-bar {
    display: flex;
}

.items {
    margin-bottom: 10px;
    margin-left: 13px;
}

.hidden {
    display: none;
}

.title-bar-text {
    flex: content;
}

.output-module {
    border: 1px solid #666;
    margin: 5px;
    padding: 5px;
    background-color: #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: grab;
    transition: background-color 0.3s, transform 0.2s ease;
    user-select: none;
    /* Disable text selection */
}



.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.over {
    background-color: #c0c0c0;
    transform: scale(1.05);
}



input:focus-visible,
textarea:focus-visible {
    background: #f4f4f4;
    outline: none;
}

.item {
    display: flex;
}

.history-item {
    margin: 5px 0;
    padding: 5px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}






.del {
    background: red;
}

.del:hover {
    background: rgb(146, 0, 0);
}

.del:active {
    background: rgb(255, 136, 0);
}

.add {
    background: green;
}

.add:hover {
    background: rgb(0, 99, 0);
}

.add:active {
    background: rgb(111, 180, 0);
}

.def {
    background: gray;
}

.def:hover {
    background: rgb(75, 75, 75);
}

.def:active {
    background: rgb(150, 150, 150);
}





.pagination {
    margin: auto auto;
}

/* Pagination links */
.pagination a {
    color: black;
    float: left;
    padding: 8px 16px;
    text-decoration: none;
    transition: background-color .3s;
}

/* Style the active/current link */
.pagination a.active {
    background-color: dodgerblue;
    color: white;
}

/* Add a grey background color on mouse-over */
.pagination a:hover:not(.active) {
    background-color: #ddd;
}


/* The Modal (background) */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 1000;
    /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgb(0, 0, 0);
    /* Fallback color */
    background-color: rgba(0, 0, 0, 0.4);
    /* Black w/ opacity */
}

/* Modal Content/Box */
.modal-content {
    position: relative;
    background-color: #ffdcb8;
    margin: 50px auto auto;
    /* 15% from the top and centered */
    padding: 20px;
    border-radius: var(--border-radius);
    border: 1px solid #888;

    max-width: 650px;

    /* Could be more or less, depending on screen size */
}

/* The Close Button */
.close {
    position: absolute;
    right: 15px;
    top: 15px;
    color: #fff;
    float: right;
    font-size: 28px;
    font-weight: bold;
    padding: 8px;
    background: #d54118;
    line-height: 1rem;
    border-radius: var(--border-radius);
}

.close:hover,
.close:focus {

    background: var(--c-error);
    text-decoration: none;
    cursor: pointer;
}


/* tabs*/

/* Style the tab content */
.tabcontent {
    display: none;
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-top: none;
}


.card-like {
    overflow-wrap: break-word;
}





.card-social {
    display: flex;
}

.card-col {}



.icon-text {
    display: flex;
}

img.icon,
.upload {
    /* height: 150px; */
    width: 100px;
    object-fit: contain;
}

img {
    height: -webkit-fill-available;

    max-height: 300px;
    max-width: 300px;
    object-fit: contain;
}

img.miniIcon {
    position: absolute;
    height: 50px;
}

.icon-text i {
    margin: auto;
    text-align: right;
}


.icon-text div {
    text-align: left;
    padding: 0px 5px;
    margin: auto;
}

.inventory {
    flex: 10;
    padding: 10px;
    border-radius: 8px;
    overflow-y: auto;
    overflow-x: hidden;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    scrollbar-color: #666 #444;
    scrollbar-width: thin;
}

.inventory #BadgeMove {
    height: 150px;
}

.inventoryWrap>div {
    flex: 1;
    display: flex;
    flex-flow: column;
}

.inventoryWrap {
    display: flex;
    height: 330px;
}

.card-tags {
    display: flex;
}

.tag {
    border: solid gray 1px;
    border-radius: 5px;
    margin-right: 2px;
    padding: 2px 7px;
}


/* Stars */
.star-rating.extinct {
    pointer-events: none;
    /* disables ALL hover on container */
}

.star-rating {
    padding: 0;
    display: inline-flex;
    flex-direction: row-reverse;
    /* Stars are 5,4,3,2,1 in DOM */
    font-size: 2rem;
    cursor: pointer;
}

.star {
    line-height: 1;
    color: #ddd;
    /* Empty star color */
    transition: color 0.2s;
}

.star-rating:hover .star {
    color: #ddd;
}

.star-rating .star:hover,
.star-rating .star:hover~.star {
    color: gold;
}

.star.active {
    color: gold;
}




/* captcha */


.captcha-container {
    display: flex;

}

.canvas-wrapper {
    position: relative;
    width: 300px;
    height: 200px;
    border-radius: 0.5rem;
    overflow: hidden;
    background: #0f172a;
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.6);
    border: 1px solid #334155;
    /* Flex center to hold loading text if needed */
    display: flex;
    justify-content: center;
    align-items: center;
}

.captcha-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    user-select: none;
}

#bgImage {
    z-index: 1;
}

#pieceImage {
    z-index: 2;
    transition: transform 0.05s linear;
    /* Smooth but fast */
}

.slider-container {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
}

.slider-container input[type="range"] {
    width: 100%;
}

.status {
    height: 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.status.success {
    color: #4ade80;
    opacity: 1;
}

.status.error {
    color: #f87171;
    opacity: 1;
}

.status.loading {
    color: #94a3b8;
    opacity: 1;
}




/* --- FOOTER --- */
.site-footer {
    margin-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);

    background-color: #F2EBDF80;

    width: 100%;
}

.site-footer a,
.site-footer button, .site-footer p, .site-footer h4 {
    color: black;
    padding: 3px 15px;
    margin: 0;
    box-shadow: none;
}

.footer-content {
    max-width: 800px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    flex-flow: column;
}

.footer-col {
    gap: 0;
    flex: 1;
    display: flex;
    flex-flow: wrap;
    align-items: center;
    justify-content: center;
}

.site-header {
    display: flex;
    flex-flow: column;
}

.footer-col h4,
.footer-col p {
    background-color: unset;
    margin: 0;
}

.footer-col a {
    color: black;
    border: none;
    background-color: transparent;
    display: block;

    opacity: 0.7;
    font-size: 0.9rem;
}

.footer-col a:hover {
    opacity: 1;
    background-color: transparent;
}



/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .header-content {
        flex-direction: column;
        gap: 15px;
        padding: 15px 0;
    }



    .main-nav ul {
        gap: 1rem;
    }
}

p {
    margin: 0;
    padding: 0;
}