﻿/* MAIN WRAPPER - side by side */
.main-alliance-wrapper {
    display: flex; /* left + right side by side */
    gap: 20px; /* space between columns */
    align-items: flex-start;
}

/* LEFT COLUMN */
.alliance-left-column {
    width: 700px;
}

/* NUMBER BUTTONS TOP LEFT */
.alliance-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

    .alliance-buttons button {
        width: 165px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        font-weight: bold;
        cursor: pointer;
        border-radius: 8px;
        border: 1px solid #878787;
        background-color: #b7b7b7;
        color: white;
    }

        .alliance-buttons button:hover {
            background-color: #555;
        }

/* SCROLLABLE ALLIANCE LIST */
.alliance-scroll-wrapper {
    width: 700px;
    overflow-y: auto;
    padding-right: 6px;
}
    /* Webkit browsers */
    .alliance-scroll-wrapper::-webkit-scrollbar {
        width: 10px;
    }

    .alliance-scroll-wrapper::-webkit-scrollbar-track {
        background-color: #e8e8e8; /* track */
        border-radius: 5px;
    }

    .alliance-scroll-wrapper::-webkit-scrollbar-thumb {
        background-color: #b2b2b2; /* draggable bar */
        border-radius: 5px;
    }

    .alliance-scroll-wrapper::-webkit-scrollbar-button {
        background-color: #e8e8e8; /* up/down arrows background */
        display: block; /* ensures they appear */
    }
/* Firefox */
.alliance-scroll-wrapper {
    scrollbar-width: thin;
    scrollbar-color: #b2b2b2 #e8e8e8; /* thumb | track */
}


/* ALLIANCE RECORDS */
.alliance-wrapper {
    padding: 10px;
    border-radius: 10px;
    border: 1px dashed #878787;
    margin-bottom: 10px;
    cursor: pointer;
}
/* Rarity backgrounds */
.rarity-ancient {
    background: linear-gradient(to top, #ab3446 0%, #ab3446 20%, #0c2e39 76%, #0c2e39 100%);
}

.rarity-leg {
    background: linear-gradient(to top, #f9a502 0%, #f9a502 20%, #3a2b0c 76%, #3a2b0c 100%);
}

.rarity-epic {
    background: linear-gradient(to top, #7b4fa3 0%, #7b4fa3 20%, #2b1c3d 76%, #2b1c3d 100%);
}

.rarity-rare {
    background: linear-gradient(to top, #3a8bc2 0%, #3a8bc2 20%, #0c2439 76%, #0c2439 100%);
}

.alliance-header {
    display: block;
    text-align: center;
    padding: 0px 5px 5px 5px;
    border-radius: 5px;
    border: 1px dashed #bebebe;
    color: #ef8900;
    width: 100%;
}

.alliance-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    padding-top: 10px;
}

.alliance-description {
    color: white;
    padding: 20px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
}

/* RIGHT COLUMN */
.alliance-right-column {
    width: 450px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* RARITY BUTTONS (horizontal) */
.alliance-rarity-div {
    display: flex;
    justify-content: center;
    gap: 10px;
}

    .alliance-rarity-div button {
        width: 100px;
        height: 50px;
        border-radius: 6px;
        font-weight: bold;
        cursor: pointer;
        color: white;
    }

/* COLORS FOR EACH BUTTON */
.alliance-rarity-btn-rare {
    background-color: #3a8bc2;
    border: 1px solid #3e8e41;
}

.alliance-rarity-btn-epic {
    background-color: #9b59b6;
    border: 1px solid #7d3c98;
}

.alliance-rarity-btn-legendary {
    background-color: #e67e22;
    border: 1px solid #d35400;
}

.alliance-rarity-btn-ancient {
    background-color: #c0392b;
    border: 1px solid #96281b;
}

/* RIGHT PANEL */
.talent-wrapper {
    width: 450px;
    background-color: #d1d1d1;
    padding: 0px 10px 10px 10px;
    border-radius: 10px;
    border: 1px dashed #878787;
}

.alliance-buttons button:focus,
.alliance-rarity-div button:focus {
    outline: none;
}

/* Style for selected button */
button.selected {
    background-color: #3f3f3f !important; /* gold highlight */
    color: white;
    border: 2px solid; /* optional strong border */
}



/* One talent record */
.talent-item {
    background-color: #4b4b4b;
    border: 1px dashed #878787;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
}

/* Top row: image left, text right */
.talent-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Talent image */
.talent-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Text next to image */
.talent-text {
    display: flex;
    flex-direction: column;
}

.talent-title {
    font-weight: bold;
    color: #ffffff;
    font-size: 15px;
}

.talent-sub {
    font-size: 12px;
    color: #d0d0d0;
}

/* Description row */
.talent-description {
    margin-top: 8px;
    font-size: 13px;
    color: #f0f0f0;
    line-height: 1.4;
}


.throne-wrapper {
    display: flex;
    justify-content: left;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px dashed #878787;
    background-color: #e8e8e8;
    width: 99%;
    margin-bottom: 10px;
    margin-left: 5px;
}
.talent-loader {
    display: flex;
    justify-content: center;
    align-items: center; 
    width: 100%;
}