:root {
    --club-primary: #1b459c;
    --club-secondary: #99d6ea;
    --club-highlight: #bb16a3;
    --club-error: #e42313;
    --club-success: #1eb702;
    --club-link: #1b459c;
    --club-text-strong: #1a263d;
    --club-text-weak: #59647a;
    --club-stroke-strong: #808ca6;
    --club-stroke-weak: #e4e8f0;
    --club-fill: #f5f7fa;
    --club-text: #243147;

    --club-avatar-size: 130px;
}

/* .club-home {
  position: relative;
  left: 50%;
  margin-left: calc(-50vw);
  top: 50%;
  margin-top: calc(-50vh);
  width: 100vw;
} */

#club-home-break {
    max-width: 1760px;
    width: 90%;
    margin: 0 auto;
}

.club-home h2 {
    color: var(--club-text) !important;
    font-size: 32px !important;
    line-height: 1.15;
    margin-bottom: 0px !important;
    font-weight: 700 !important;
}

.club-home h3 {
    color: var(--club-text) !important;
    font-size: 20px !important;
    line-height: 1.15;
    margin-bottom: 0px !important;
    font-weight: 700 !important;
}

.club-home h4 {
    color: var(--club-text) !important;
    font-size: 16px !important;
    line-height: 1.15;
    margin-bottom: 0px !important;
    font-weight: 700 !important;
}

.club-home p {
    line-height: 1.5;
    color: var(--club-text);
    font-size: 16px;
    margin-bottom: 0 !important;
}

.club-home select:focus {
    box-shadow: none;
}

/* =================== GLOBAL STYLES ================= */
/* use these for all pages within in the club home for consistent design */

/* PARAGRAPH TEXT */
.club-home .club-p-s p {
    font-size: 14px;
}
.club-home p.club-p-s {
    font-size: 14px;
}

.club-home .club-p-xs p {
    font-size: 12px;
}

.club-home p.club-p-xs {
    font-size: 12px;
}

.club-home .club-p-bold p {
    font-weight: 700;
}

.club-home p.club-p-bold {
    font-weight: 700;
}

/* TAGS */
p.club-tag {
    border-radius: 3px;
    padding: 1px 2px;
    font-weight: 700;
    display: inline-block;
    background-color: var(--club-fill);
    color: var(--club-stroke-strong);
    min-width: 60px;
    text-align: center;
}

p.club-tag.club-tag-blue {
    background-color: var(--club-secondary);
    color: #1a6882;
}
/* extend with more colors if needed */

/* TEXT WITH ICON */
.club-icon-text {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

/* NONE TEXT */
/* style for placeholder text for empty containers */
p.club-none-text {
    margin-bottom: 0 !important;
    color: var(--club-text) !important;
    font-weight: 700 !important;
    margin: 0 auto;
    text-align: center;
}

/* BUTTONS */
/* 
includes:
- primary
- secondary
- transparent
- icons: has settings such as dark, bg. extend if needed
*/

button {
    min-height: auto !important;
}

/* club-tooltip varaibles are controlled by javascript */
button.club-tooltip {
    cursor: help;
    position: relative;
    contain: none;

    --tooltip-width: fit-content;
    --tooltip-max-width: 450px;
    --tooltip-font-size: 14px;
    --tooltip-line-height: 1.5;
    --tooltip-padding: 6px 10px;
}

button.club-tooltip::before {
    content: attr(data-info);
    width: var(--tooltip-width);
    max-width: var(--tooltip-max-width);
    font-size: var(--tooltip-font-size);
    line-height: var(--tooltip-line-height);
    text-align: left;

    position: fixed;
    top: var(--tooltip-top, auto);
    left: var(--tooltip-left, auto);
    right: var(--tooltip-right, auto);
    bottom: var(--tooltip-bottom, auto);
    z-index: 9999;
    white-space: normal;

    background-color: var(--club-stroke-weak);
    color: var(--club-text);
    padding: var(--tooltip-padding);
    border-radius: 3px;

    opacity: var(--tooltip-opacity, 0);
    transition: opacity 0.3s ease;
    pointer-events: none;
}

button.club-button-primary {
    padding: 8px 16px !important;
    background-color: var(--club-primary) !important;
    color: white !important;
    border: 1px solid var(--club-primary) !important;
    border-radius: 100px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
    outline: none !important;
    box-shadow: none !important;
    font-weight: 700 !important;
}

button.club-button-primary:hover {
    color: var(--club-primary) !important;
    background-color: rgba(0, 0, 0, 0) !important;
}

button.club-button-secondary {
    padding: 8px 16px !important;
    background-color: rgba(0, 0, 0, 0) !important;
    color: var(--club-primary) !important;
    border: 1px solid var(--club-primary) !important;
    border-radius: 100px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
    outline: none !important;
    box-shadow: none !important;
    font-weight: 700 !important;
}

button.club-button-secondary:hover {
    background-color: var(--club-primary) !important;
    color: white !important;
}

button.club-button-transparent {
    padding: 0 !important;
    background-color: rgba(0, 0, 0, 0) !important;
    color: var(--club-primary) !important;
    cursor: pointer !important;
    font-size: 16px !important;
    transition: all 0.3s ease !important;
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
    font-weight: 700 !important;
}

button.club-button-transparent.xs {
    font-size: 12px !important;
}

button.club-button-transparent:hover {
    filter: brightness(1.5);
}

button.club-button-icon {
    padding: 3px !important;
    background-color: transparent !important;
    color: var(--club-fill) !important;
    border: none !important;
    border-radius: 100px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    aspect-ratio: 1/1 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

button.club-button-icon.dark:hover * {
    transition: all 0.3s ease !important;
}

button.club-button-icon:hover {
    color: var(--club-stroke-strong) !important;
}

button.club-button-icon.dark {
    color: var(--club-stroke-strong) !important;
}

button.club-button-icon.bg {
    background-color: var(--club-stroke-weak) !important;
}

button.club-button-icon.dark:hover * {
    filter: brightness(1.2);
}

.club-buttons-toggle-container {
    display: flex;
    gap: 10px;
}

button.club-button-toggle {
    background-color: var(--club-stroke-weak) !important;
    color: var(--club-text-strong) !important;
    border-radius: 100px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    transition: background-color 0.3s ease !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 6px 12px !important;
    border: none !important;
    transition: all 0.3s ease !important;
    min-width: 80px;
}

button.club-button-toggle.selected {
    background-color: var(--club-primary) !important;
    color: white !important;
}

button.club-button-toggle:hover {
    filter: brightness(0.9);
}

button.club-button-toggle.selected:hover {
    filter: brightness(1.2);
}

button.club-button-secondary:focus,
button.club-button-primary:focus,
button.club-button-icon:focus,
button.club-button-toggle:focus,
button.club-button-transparent:focus {
    outline: none !important;
    box-shadow: none !important;
}

button.club-button-secondary:disabled,
button.club-button-primary:disabled {
    background-color: var(--club-stroke-strong) !important;
    color: var(--club-stroke-weak) !important;
    border: var(--club-stroke-strong) !important;
}

/* ========== CONTAINERS =============== */

.club-titlebox {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.club-titlebox-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.club-box {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 3px 3px 0 rgba(0, 0, 0, 0.25);
    padding: 15px;
    overflow: hidden;
    min-height: 310px;
}

.club-box-buttons {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
}

.club-mid-container {
    display: grid;
    grid-template-columns: 4fr 1fr;
    gap: 25px;
}

.club-low-container {
    display: grid;
    grid-template-columns: 4fr 1fr;
    gap: 25px;
    /* height: 400px; */
}

.club-container {
    margin: 0 40px;
    padding: 0 calc(var(--club-avatar-size) / 2);
    margin-bottom: 25px;
}

/* ========= HEADER ========== */

.club-header-container {
    /* margin-bottom: 15px; */
    position: relative;
}

.club-banner {
    height: 125px;
    border-radius: 0px 0px 36px 36px;
    overflow: hidden;
    background-color: #555;
}

.club-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.club-avatar {
    margin-left: 40px;
    width: var(--club-avatar-size);
    aspect-ratio: 1/1;
    border-radius: 50%;
    border: 2px solid white;

    position: absolute;
    transform: translateY(-50%);
}

.club-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========= club info ============ */

.club-info-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.club-info-title {
    margin-left: calc(var(--club-avatar-size) / 2);
    padding-left: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: calc(var(--club-avatar-size) / 2);
}

.club-info-title-button {
    display: flex;
    gap: 10px;
}

.club-info-about p {
    margin-bottom: 0px;
}

/* =========== OVERVIEW SECTION ================ */

.club-overview {
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 100%;
}

.club-overview-dropdown {
    border: none;
    outline: none;
    box-shadow: none;
}

.club-overview-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
}

.club-overview-graph-container {
    flex-grow: 1;
    align-self: stretch;
}

select.club-overview-dropdown {
    line-height: 1.5;
    color: var(--club-text);
    font-size: 14px;
    font-weight: 700;
    height: auto;
    background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBmaWxsPSJjdXJyZW50Q29sb3IiIGQ9Ik0xMS4xNzggMTkuNTY5YS45OTguOTk4IDAgMCAwIDEuNjQ0IDBsOS0xM0EuOTk5Ljk5OSAwIDAgMCAyMSA1SDNhMS4wMDIgMS4wMDIgMCAwIDAtLjgyMiAxLjU2OXoiLz48L3N2Zz4=);
    background-size: 12px 12px;
    padding-left: 0;
}

/* ========= MEMBERS SECTION ========== */

.club-membership-box {
    height: 100%;
}

/* ======== EVENTS SECTION ========= */

.club-events {
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 100%;
}

.club-events-empty {
    justify-content: center;
    align-items: center;
}

#main-club-events-empty {
    display: none;
    height: 100%;
}

.club-events-body {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-grow: 1;
}

.club-events-card-container {
    display: flex;
    overflow-y: hidden;
    align-items: center;
    gap: 15px;
    padding: 0 7px;
    padding-bottom: 15px;
    flex-grow: 1;
}

.club-garrage-box {
    height: 100%;
}

/* ========== POPUP MODALS =============== */
.club-popup-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.999;
}

.club-popup-content {
    background: var(--club-fill);
    max-width: 800px;
    width: 80%;
    margin: 50px auto;
    padding: 20px 30px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.club-popup-content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.club-popup-content-body {
    max-height: 70dvh;
    overflow: scroll;
}

/* KEO: currently inactive (member count and activity section) */
/*
.profile-side-section {
  max-width: 200px;
  justify-self: end;
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.members-section {
  display: flex;
  flex-direction: column;
}

.member-title {
  text-align: left;
  color: black;
  display: flex;
  justify-content: space-between;
}

.members-count {
}

.activity-buttons {
  display: flex;
  gap: 10px;
  flex-direction: row;
}

.stats {
  display: flex;
  justify-content: space-between;
}

.status {
  font-size: 12px;
}

.activities {
  display: flex;
  flex-direction: column;
  gap: 10px;
} */

/* button style gets overrided */
/* button.activity-buttons {
  margin-left: auto !important;
  margin: 5px 0px !important;
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: left !important; 
  gap: 0px !important; 
}

button.toggle-btn {
  padding: 6px 12px !important;
  background: #aaa !important;
  color: white !important;
  border: none !important;
  border-radius: 12px !important;
  font-size: 12px !important;
  cursor: pointer !important;
  margin-right: 5px !important;
}

button.tag-btn {
  background-color: color-mix(in srgb, var(--base-color) 20%, white) !important;
  color: var(--base-color) !important;
  padding: 10px 15px !important;
  border: none !important;
  border-radius: 15px !important;
  cursor: pointer !important;
  font-size: 11px !important;
  transition: background-color 0.3s ease !important;
}

button.tag-btn:hover {
  background-color: color-mix(in srgb, var(--base-color) 40%, white) !important;
} */

/* ========== KEO: what does this do? =========== */
body.button {
    padding: 10px 20px !important;
    background-color: #4caf50 !important;
    color: white !important;
    border: none !important;
    border-radius: 5px !important;
    cursor: pointer !important;
}
.btn:hover {
    background-color: #45a049 !important;
}
/* ================ */

.car-description {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: black;
}

.car-description-header {
    display: flex;
    gap: 10px;
    align-items: center;
}

.my-cars {
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgb(220, 220, 228);
    background-color: white;
    border-radius: 10px;
    height: 180px;
}

/* button element style gets overrided */
button.toggle-btn {
    padding: 7.24px 11.24px !important;
    background-color: rgb(157, 157, 157) !important;
    color: white !important;
    color: white !important;
    border: none !important;
    border-radius: 5px !important;
    cursor: pointer !important;
    font-size: 11px !important;
    transition: 0.3s ease !important;
}

body.toggle-btn:hover {
    background-color: rgb(28, 58, 172);
}

.events-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.events-description {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.events-description-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.events {
    /* margin: 10px; */
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgb(220, 220, 228);
    background-color: white;
    border-radius: 10px;
    height: 200px;
}

.icon-border {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 15px; /* Adjust size as needed */
    height: 15px; /* Adjust size as needed */
    border: 1px solid #515151;
    border-radius: 4px; /* Square with slight rounding */
    font-size: 8px;
}

.fa-solid {
    font-weight: bold;
    color: #515151;
}

.fa-arrows-rotate {
    font-size: 12px;
    margin-left: 12px;
}

body .status.active:before,
body .status.inactive:before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
    vertical-align: middle;
}

body .status.active:before {
    background-color: green;
}

body .status.inactive:before {
    background-color: red;
}
