@font-face {
    /* This is the name you will use later in your CSS */
    font-family: 'ChicagoFLF Custom';

    /* Look for a local copy first to save bandwidth */
    src: local('ChicagoFLF'),

         /* Load the compressed WOFF2 format first for modern browsers */
         url('./../fonts/ChicagoFLF.woff2') format('woff2'),

         /* Fallback to WOFF for older browsers */
         url('./../fonts/ChicagoFLF.woff') format('woff');

    /* A crucial property: tells the browser to display text using a fallback
       font while the custom font loads, preventing invisible text. */
    font-display: swap;

    font-weight: normal;
    font-style: normal;
}


body {
    font-family: 'ChicagoFLF Custom', sans-serif;
    background: #FFFFFF; /* CHANGED */
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.village .navbar {
    height: 3rem;
    background-color: rgba(244, 244, 244); /* CHANGED */
    border-bottom: 1px solid #bbb;
}

.village .brick-header-title:hover {
    color: #9a9a9a;
}

.village .underbar-left {
    /*background: rgba(100, 100, 100, .1);*/
    text-align: center;
    /*font-size: 70px;*/
    border-top: rgba(55, 55, 55, 0.1) solid 1px; /* CHANGED */
    border-right: rgba(55, 55, 55, 0.1) solid 1px; /* CHANGED */
    border-bottom: rgba(55, 55, 55, 0.1) solid 1px; /* CHANGED */
}
.village .underbar-right {
    /*background: rgba(100, 100, 100, .1);*/
    text-align: center;
    /*font-size: 70px;*/
    border-bottom: rgba(55, 55, 55, 0.1) solid 1px; /* CHANGED */
    border-left: rgba(55, 55, 55, 0.1) solid 1px;  /* CHANGED */
}
.village .underbar-middle {
    /*background: rgba(100, 100, 100, .05);  !* CHANGED *!*/
    border-top: rgba(55, 55, 55, 0.1) solid 1px;  /* CHANGED */
    border-bottom:rgba(55, 55, 55, 0.1) solid 1px;  /* CHANGED */

}
.village .h3, .village h3 {
    font-size: 1.0rem;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.50);
}
.village .h4, .village h4 {
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.50);
}
.village .h5, .village h5 {
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.50);
}
.village .h6, .village h6 {
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.50);
}
.village .h7, .village h7 {
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.50);
}
.village .underbar-middle .title-description {
    /*padding: 1vh 1vh 1vh 0;*/
    font-size: 0.5rem;
}
.village .underbar-middle .title-description p {
    margin: 0;
}
.village .underbar-middle h1 {
    color: #fc4c01;
    text-shadow: #fc4c0144 0 0 20px;
}
.village .underbar-right {
    /*background: rgba(100, 100, 100, .1);*/
    border-top: rgba(55, 55, 55, 0.1) solid 1px;  /* CHANGED */

}

.village .content-left {
    /*background: rgba(14, 14, 14, .1);*/
    border-right: rgba(55, 55, 55, 0.1) solid 1px; /* CHANGED */
}

.village .content-right {
    /*background: rgba(14, 14, 14, .1);*/
    border-left:rgba(55, 55, 55, 0.1) solid 1px; /* CHANGED */
}

.village .breadcrumb {
    font-size: 12px;
    opacity: 0.9;
}

.village .cols, .village .columns {
    margin-left: 0;
    margin-right: 0;
}

.village .column, [class~=col-] {
    padding-left: 0;
    padding-right: 0;
}

.village .panel {
    /*margin-top: 2vh;*/
    /*margin-left: 1vh;*/
    /*margin-right: 1vh;*/
    /*background: rgba(244, 244, 244, 0.97); !* CHANGED *!*/
    border: none;
    border-bottom: rgba(100, 100, 100, .2) solid 1px; /* CHANGED */
    border-radius: 0;
    box-shadow: none;
}

.village .card {
    /*margin-top: 1.3vh;*/
    /*margin-left: 1vh;*/
    /*margin-right: 1vh;*/
    /*background: rgba(248, 248, 248, .8); !* CHANGED *!*/
    border: none;
    border-bottom: rgba(100, 100, 100, .2) solid 1px; /* CHANGED */
    border-radius: 0;
    /*box-shadow: rgba(0, 0, 0, .1) 0px 0px 10px;*/
}

.village .form-input {
    /*background: rgba(15, 15, 15, .1);*/
    border: rgba(135, 135, 135, .2) solid 1px;
    border-radius: 10px;

}

.village .tile-title {
    margin-bottom: 1vh;
}

.village .tile-subtitle {
    opacity: 0.8;
}

.village .avatar.avatar-symbol {
    background-color: unset;
    text-shadow: #fc4c0144 0 0 20px;
}

.village .navbar-section {
    flex: unset;
}

.village .grid-cell {
    transition: all 0.3s ease;
    cursor: pointer;
}

.village .grid-cell .tile-content .chip {
    /*margin-top: 0.8em;*/
    /*color: #fff;*/
    background-color: unset;
}

.village .grid-cell .tile-content .chip .avatar {
    background: none;
}

.village .grid-cell .tile-content h5 {
    line-height: 1.0rem; font-size: .8rem; color: #353535; margin: 0 0 0; /* CHANGED */
}

.village .grid-cell .tile-content h5 a {
    color: #353535; /* CHANGED */
}

.village a.logo img {
    /*filter: drop-shadow(0 0 10px rgba(255, 148, 0, .4));*/
}

/* BLOG */

.village .card, .blog_post_page.panel {
    /*box-shadow: rgba(0, 0, 0, .1) 0px 0px 10px;*/
}

.village .card .card-image:first-child img {
    border-top-left-radius: .5rem;
    border-top-right-radius: 0.5rem;
}

.village .block-hero_large,.village .block-hero_large_center {
    color: #fff;
    /*background-color: #e5e5f7;*/
    /*opacity: 0.95;*/
    background-image: linear-gradient(#8C8C8CFF 1px, transparent 1px), linear-gradient(to right, #8C8C8CFF 1px, #303742 1px);
    background-size: 140px 140px;

}

.village .hero.village-dark {
    /*background: #303742 !important;*/
    opacity: 0.95;
    background: #303742;
    background: linear-gradient(90deg, rgb(34, 34, 34) 24%, rgba(48, 55, 66, 1) 60%);
    /*background: #020024;*/
}
/*.village .hero.village-dark {*/
/*    !*background: #303742 !important;*!*/
/*    background: #303742;*/
/*    !*background: linear-gradient(90deg, rgb(34, 34, 34) 24%, rgba(48, 55, 66, 1) 60%);*!*/
/*    background: linear-gradient(180deg, rgb(255 224 192) 24%, rgba(255, 88, 0, 0.55) 90%);*/
/*    !*background: #020024;*!*/
/*}*/
.village .village-dark .hero p,.village .village-dark .hero h1 {
    opacity: 1;
    text-shadow:
            1px 1px 10px #1d2022;
    /*20px 20px 10px #4c545e,*/
    /*30px 30px 15px #4c545e;*/
    /*40px 40px 20px #4c545e,*/
    /*50px 50px 25px #4c545e,*/
    /*60px 60px 30px #4c545e;*/
}

.village .hero.hero-lg {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.village .hero {
    padding-top: 8rem;
    padding-bottom: 8rem;
}

.village .hero.herosmall {
    padding-top: 1rem;
    padding-bottom: 0;
    background: whitesmoke !important;
    font-style: italic;
}

.village .hero.herobright {
    background: #ffffff;
    background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(191, 191, 191, 1) 100%);
}

.village .link-frame p  {
    margin: 0 0 0.7rem;
}

.village .panel .panel-body.panels {
    overflow-y: unset;
}

.village .popover .popover-container {
    min-width: 420px;
    width: unset;
}

.village .toast.toast-grey {
    background: #f7f8f9;
    border-color: #bfbfbf;
    color: #333;
}

.village .underbar-middle h1 {
    color: #3c3c3c;
    text-shadow: unset;
}

.village .tile.tile-centered {
    margin-bottom: 3vh;
}

.village .table td {
    border-top: .05rem solid #595959;
    border-bottom: none;
}
.village .table th {
    border-bottom: none;
}

.village .reactions {
    display: flex;
    margin-bottom: 4px;
}

.village .chip.reactions-button, .village .brickreaction-button, .village .commentreaction-button {
    color: black;
    padding: 5px 10px;
    border: none;
    background: none;
    cursor: pointer;
}

.village .btn {
    border: .05rem solid #d3d3d3;
}

.village .btn.btn-link {
    background: unset;
    border: unset;
}

.village .chip {
    background: rgba(223, 223, 223, 0.33);
    border: .05rem solid #e6e6e6;
    color: #959595;
}

.village .tile.tile-centered .tile-subtitle, .tile.tile-centered .tile-title {
    text-overflow: unset;
    white-space: unset;
}

.village .panel .panel-body {
    overflow-y: unset;
}

#countdown {
    font-size: 2em;
    padding: 20px;
    border: 2px solid #333;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    text-align: center;
}
.time-unit {
    margin: 0 5px;
}

.village .dropdown .menu {
    width: 350px;
}

.village .table td {
    border-top: .05rem solid #59595933;
    border-bottom: none;
}

.toast {
    background: rgba(236, 236, 236, 0.95);
    /*border-radius: 5%;*/
    color: #0b0b0b;
    border: 1px solid rgba(48, 48, 48, 0.1);
}

.village .table tbody tr.active, .table.table-striped tbody tr.active {
    background: #fc4c01;
}

/*.village .panel {*/
/*    margin-top: 2vh;*/
/*    margin-left: 1vh;*/
/*    margin-right: 1vh;*/
/*     background: unset;*/
/*     border: unset;*/
/*    border-radius: 10px;*/
/*     box-shadow: unset;*/
/*}*/


.curiosity-hook {
    color: #fc4c01;
    font-weight: 700;
}
.stats-highlight {
    background: linear-gradient(45deg, #ffd3c3, #fc4c01);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
}
.goal-form {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.pulse-cta {
    animation: pulse-orange 2s infinite;
}
@keyframes pulse-orange {
    0% { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 107, 53, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0); }
}
.scientific-badge {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
}

.empty-cell {
    cursor: auto;
    /*border: rgba(37, 37, 37, 0.2) dashed 2px;*/
}

/* Add subtle shadows for better depth */
.panel {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Improve button hover states */
.btn:hover {
    transform: translateY(-1px);
    transition: transform 0.2s ease;
}

/* Emoji picker styles */
.emoji-button-inline {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    z-index: 10;
}

.emoji-button-inline:hover {
    background-color: #f5f5f5;
}

.input-group-with-emoji {
    position: relative;
}

.input-group-with-emoji .form-input {
    padding-right: 3rem;
}

emoji-picker {
    --border-radius: 8px;
}





/* comment edit replacing text */
.comment-normal-view, .comment-edit-view {
    transition: opacity 0.2s ease-in-out;
}

.comment-edit-trigger:hover {
    background-color: #f5f5f5;
    border-radius: 4px;
}

.comment-edit-view textarea {
    border: 2px solid #5755d9;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.comment-edit-view .form-group {
    margin-bottom: 0.5rem;
}

.tile-subtitle.comment-edit-trigger:hover {
    background-color: #f8f9fa;
    border-radius: 4px;
    padding: 0.25rem;
    margin: -0.25rem;
}




/* brick edit replacing text */
.brick-normal-view, .brick-edit-view {
    transition: opacity 0.2s ease-in-out;
    width: 100%;
}

.brick-edit-trigger {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.8rem;
}

.brick-edit-trigger:hover {
    color: #5755d9;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.brick-edit-view textarea {
    border: 2px solid #5755d9;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.brick-edit-view .form-group {
    margin-bottom: 1rem;
}

.brick-edit-view .form-label {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #333;
}



/* collapsable comment input styles */
.comment-input-collapsed {
    transition: all 0.2s ease-in-out;
}

.comment-input-collapsed:hover {
    border-color: #ffffff;
}

.comment-input-collapsed-view, .comment-input-expanded-view {
    transition: opacity 0.2s ease-in-out;
}

.comment-input-expanded-view textarea {
    border: 2px solid #5755d9;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.comment-form-container .form-group {
    margin-bottom: 0.5rem;
}

.input-group-addon {
    border: 1px solid #ced4da;
    border-left: none;
    padding: 0.375rem 0.75rem;
    border-radius: 0 0.25rem 0.25rem 0;
}

/*Add CSS for Village Card Hover Effects*/
.village-card:hover {
    /*transform: translateY(-5px) scale(1.02);*/
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    border-width: 4px;
}

.village-card:hover .avatar {
    transform: scale(1.1);
}


/* load-more */
.brick-item {
    transition: all 0.3s ease;
}

.brick-item:hover {
    /*transform: translateY(-2px);*/
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.brick-item.expanded {
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
#load-more-btn {
    transition: all 0.3s ease;
}

#load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

#load-more-btn:disabled {
    opacity: 0.7;
    transform: none;
}

.load-more-spinner .loading {
    border-color: white;
    border-right-color: transparent;
}

.brick-overlay {
    position: relative;
    overflow: hidden;
}

.brick-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 10;
    pointer-events: none;
}

.brick-lock-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 11;
    color: #ffffff;
    font-size: 3rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.brick-locked-content {
    filter: blur(4px);
    opacity: 0.3;
    pointer-events: none;
    user-select: none;
}

/* Alternative styling with gradient overlay */
.brick-overlay-gradient::before {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6));
}

/* Subtle animation for the lock icon */
.brick-lock-icon {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Premium lock styling */
.brick-lock-premium {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 11;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #333;
    padding: 15px;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
    font-size: 2rem;
}

/* Tooltip for locked content */
.brick-overlay[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    white-space: nowrap;
    z-index: 12;
}

.village .add-new-brick-card {
    border-bottom: 1px solid #e3e3e3;
}




/* Cookie Consent Styles */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(248, 249, 250, 0.98);
    border-top: 2px solid #fc4c01;
    padding: 15px 20px;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.cookie-consent p {
    margin: 0;
    font-size: 0.9rem;
    color: #333;
    flex: 1;
    min-width: 250px;
}

.cookie-consent a {
    color: #fc4c01;
    text-decoration: underline;
}

.cookie-consent-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.cookie-consent .btn {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-consent p {
        min-width: auto;
    }
}

.village .badge.avatar::after {
    position: absolute;
    right: -9.36%;
    top: 94.64%;
    transform: translate(50%, -50%);
    z-index: 100;
}

.village .badge[data-badge]::after {
    font-size: .5rem;
    height: .7rem;
    line-height: 1;
    min-width: .9rem;
    padding: .1rem .2rem;
    text-align: center;
    white-space: nowrap;
    background-color: #b4afaf;
}

.village .badge.badge-house::after {
    position: absolute;
    right: 9.36%;
    top: 34.64%;
    transform: translate(50%, -50%);
    z-index: 100;
}

.village .badge.badge-house[data-badge]::after {
    font-size: .5rem;
    height: .7rem;
    line-height: 1;
    min-width: .9rem;
    padding: .1rem .2rem;
    text-align: center;
    white-space: nowrap;
    background-color: #fff8f8;
}

.village .badge.badge-ai[data-badge]::after {
    background-color: rgb(78, 10, 230);
    border: 1px solid rgba(139, 92, 246);
    color: #d6c6ff;
}
