*{
    font-family: 'barlow', sans-serif;
    font-weight: 500;
}
/*top bar*/
.topBar {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    /* smaller left on collapse, adjust if needed */
    align-items: center;
    gap: 12px;
    position: fixed;
    top: 0;
    left: 0;
    height: 60px;
    width: 100%;
    background-color: #070720;
    border-bottom: 1px solid #0d0d28;
    z-index: 10;
    padding: 0 16px;
    box-sizing: border-box;
}

.navLeft {
    grid-column: 1;
    /* first column */
    min-width: 60px;
    /* or 50px if sidebar collapsed */
}

.navCenter {
    grid-column: 2;
    min-width: 0;
    /* allow shrinking */
    justify-self: center;
    display: flex;
    align-items: center;
    overflow: visible;
    max-width: calc(100% - 260px);
    /* reserve space for sidebar + navRight */
}

.navCenter .searchBar {
    width: 100%;
    max-width: 500px;
    min-width: 0;
}


.navRight {
    grid-column: 3;
    display: flex;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
    justify-self: end;
    min-width: 60px;
    z-index: 10;
}

@media (max-width: 600px) {
    .topBar {
        grid-template-columns: 50px 1fr auto;
        /* shrink left panel */
        padding: 0 8px;
    }

    .navCenter .searchBar {
        max-width: 300px;
        /* reduce search bar max-width */
    }

    /* optionally hide search bar on very small */
    @media (max-width: 400px) {
        .navCenter {
            display: none;
            /* hide search bar on very small screens */
        }
    }
}

/* end */

/* Search box */
.navCenter .searchBarContainer {
    width: 100%;
    max-width: 500px;
    /* limit max width */
    min-width: 0;
    /* allow shrinking */
    flex-shrink: 1;
    border-radius: 6px;;
}

.searchBarContainer {
    position: relative;
    display: flex;
    align-items: center;
    background-color: #0d0d28;
    padding: 0.25rem 0.75rem;
    width: fit-content;
}

.clearButton {
    position: absolute;
    right: 35px;
    background: transparent;
    border: none;
    color: #bbc9ea;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    padding: 0;
    user-select: none;
    margin-top: 2px;
}

.clearButton:hover {
    color: #fff;
}

.searchBarContainer input {
    flex: 1;
    font-size: 1.5rem;
    background-color: transparent;
    border: none;
    color: #bbc9ea;
    outline: none;
    min-width: 0;
    /* allow shrinking */
    width: 100%;
    /* make input fill container */
    overflow: hidden;
    /* hide overflow */
    text-overflow: ellipsis;
    /* add ellipsis when text is too long */
    white-space: nowrap;
    /* prevent wrapping */

}

input[type="search"]::-webkit-search-cancel-button {
    display: none;
}

.searchBarContainer input::placeholder {
    color: #bbc9ea;
    font-family: "barlow", sans-serif;
}

.search-icon {
    position: absolute;
    right: 10px;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.championCards {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #070720;
    max-height: 240px;
    overflow-y: auto;
    z-index: 100;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}


.card {
    display: flex;
    align-items: center;
    border: 1px solid black;
    max-height: 38px;
    background-color: #070720;
    color: #bbc9ea;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;

}

.card:hover {
    background-color: white !important;
    color: #070720;
}

.cardImage {
    display: flex;
    margin-left: 5px;

}

.cardBody {
    margin-left: 5px;
    display: inline-block;
    font-size: 2rem;
    white-space: nowrap;
    /* Prevent text wrapping */
    overflow: hidden;
    /* Hide overflowed text */
    text-overflow: ellipsis;
    /* Add ... when text overflows */
    max-width: 200px;
    /* You can adjust this based on layout */
}

.hide {
    display: none;
}

#no-results {
    position: absolute;
    top: 100%;
    /* right below the input */
    left: 0;
    width: 100%;
    /* match the input width */
    background-color: #070720;
    color: #6d6f72;
    font-weight: bold;
    text-align: center;
    padding: 10px 0;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
    z-index: 100;
}

/*end*/

/*language selector*/
.flagContainer {
    background-color: transparent;
    padding: 8px 10px 6px;
    border-radius: 4px;
    cursor: pointer;
}

.flagContainer:hover {
    background-color: rgb(255, 255, 255, 0.1)
}

.flagContainer img {
    transform: translateY(1px)
}

/*end*/

/*contact button*/
.contactMe {
    background-color: transparent;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    transform: translateY(1px)
}

.contactMe:hover {
    background-color: rgb(255, 255, 255, 0.1)
}

.contactMe svg {
    display: block;
    transform: translate(1px, 5px);
}

/*end*/

/* Feedback Box Container */
#popoutBox {
    background-color: rgba(0, 0, 0, 0.6);
    opacity: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: all 0.3s ease-in-out;
    z-index: -1;
    pointer-events: none;

    display: flex;
    align-items: center;
    justify-content: center;
}

#popoutBox.open {
    opacity: 1;
    z-index: 999;
    pointer-events: auto;
}

.feedbackBox {
    display: flex;
    flex-direction: column;

    background-color: #191937;
    color: #bbc9ea;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    border-radius: 4px;

    width: 450px;
    height: auto;
    font-size: 16px;

}

.feedbackBox input, .feedbackBox select, .feedbackBox textarea {
    background-color: #25254b;
    border: none;
    color: #bbc9ea;
    border: 1px solid transparent;
    box-sizing: border-box;

}

.feedbackHeader {
    display: flex;
    box-sizing: border-box;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;

    width: 100%;
    height: 50px;
    padding: 10px;

    border-bottom: #25254b solid 2px;
}

.feedbackHeader>h4 {
    position: relative;
    color: white;
    margin-left: 12px;
    top: 4px;
    /* 👈 adjust until text baseline touches bottom of bar */
    margin-top: 0;
    margin-bottom: 0;
    padding: 0;
    line-height: 1;
}

.feedbackHeader>h4::before {
    content: "";
    position: absolute;
    left: -7px;
    top: -5px;
    /* 👈 start from top of h4 */
    height: 20px;
    width: 2px;
    background-color: #3273fa;
    box-sizing: border-box;
}


.closeBox {
    color: #bbc9ea;
    background-color: transparent;
    border: 0;

    font-size: 17px;
    height: 24px;
    width: 24px;

    box-sizing: border-box;
    cursor: pointer;
}

.closeBox:hover {
    color: white;
}

.feedbackBox>section {
    width: 100%;
}

.presents {
    display: flex;
    flex-direction: row;
    box-sizing: border-box;
    padding: 15px 15px 0 15px;
    gap: 10px;
}

.presents>label {
    display: flex;
    flex-direction: column;
    flex: 1;

}

.contactTopic {
    display: flex;
    flex-direction: row;
    box-sizing: border-box;
    padding: 15px 15px 0 15px;
}

.contactTopic>label {
    display: flex;
    flex-direction: column;
    flex: 1;

}

.contactMessage {
    display: flex;
    flex-direction: row;
    box-sizing: border-box;
    padding: 15px;
}

.contactMessage>label {
    width: 100%;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.presents input {
    padding-left: 5px;
    height: 32px;
    margin-top: 5px;
    border-radius: 4px;
}

.contactTopic select {
    height: 40px;
    margin-top: 5px;
    border-radius: 4px;
}

.contactMessage textarea {
    height: 120px;
    border-radius: 4px;
    margin-top: 5px;
    padding-left: 5px;
}

.presents input:focus, .contactTopic select:focus, .contactMessage textarea:focus {
    outline: none;
    box-shadow: 0 0 0 1px #5c8df6;
    border: 1px solid #5c8df6;
}


.submitFeedback {
    color: white;
    background-color: #3273fa;
    border: none;
    padding: 8px 40px;
    border-radius: 4px;
    margin: 3px 15px 20px;

}

.submitFeedback:hover {
    background-color: white;
    color: #191937;
}

/* end*/

/*Log in button*/
.loginButton {
    color: white;
    background-color: #3273fa;
    border: none;
    padding: 10px;
    border-radius: 4px;
    width: 80px;
    text-align: center;

}

.loginButton:hover {
    background-color: white;
    color: #191937;
}

.topBar a {
    text-decoration: none;
}