@charset "utf-8";
/* CSS Document */

@import "https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700";


body {
    font-family: 'Poppins', sans-serif;
    background: #fafafa;
}

p {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2em;
    font-weight: 300;
    line-height: 1.7em;
    color: #383838;
}

details {
    border: #1798D2;
    border-style: solid;
    border-width: 2px;
    font-size: medium;
    padding-left: 5px;
    margin-bottom: 5px;
}

summary {
    background-color: #92bdd1;
}

.search-accordion {
    border-color: #1798D2;
}

.search-accordion summary {
    background-color: #92bdd1;
}

.action-accordion {
    border-color: #7a9b39;
}

.action-accordion summary {
    background-color: #cfe3a5;
}

.search-accordion-block {
    margin-bottom: 16px;
}

.search-accordion-block:last-of-type {
    margin-bottom: 0;
}

a, a:hover, a:focus {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s;
}

/* ---------------------------------------------------
    NAVIGATION
----------------------------------------------------- */
.navbar {
    padding: 15px 10px;
    background: #fff;
    border: none;
    border-radius: 0;
    margin-bottom: 40px;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.navbar-btn {
    box-shadow: none;
    outline: none !important;
    border: none;
}

.line {
    width: 100%;
    height: 1px;
    border-bottom: 1px dashed #ddd;
    margin: 40px 0;
}

i, span {
    display: inline-block;
}

/* ---------------------------------------------------
    REGISTER FORM STYLE
----------------------------------------------------- */

#register-form {
    display: none;
}

/* ---------------------------------------------------
    SIDEBAR STYLE
----------------------------------------------------- */
.wrapper {
    display: flex;
    align-items: stretch;
}

#sidebar {
    min-width: 250px;
    max-width: 250px;
    background: #31b0d5;
    color: #fff;
    transition: all 0.3s;
    padding-top: 70px;/*because navbar fixed-top*/
}

#sidebar.active {
    min-width: 80px;
    max-width: 80px;
    text-align: center;
}

#sidebar.active .sidebar-header h3, #sidebar.active .CTAs {
    display: none;/*hide text when navbar small*/
}

#sidebar.active .sidebar-header strong {
    display: block;
}

#sidebar ul li a {
    text-align: left;
}

#sidebar.active ul li a {
    padding: 20px 10px;
    text-align: center;
    font-size: 0.85em;
}

#sidebar.active ul li a i {
    margin-right:  0;
    display: block;
    font-size: 1.8em;
    margin-bottom: 5px;
}

#sidebar.active ul ul a {
    padding: 10px !important;
}

#sidebar.active a[aria-expanded="false"]::before, #sidebar.active a[aria-expanded="true"]::before {
    top: auto;
    bottom: 5px;
    right: 50%;
    -webkit-transform: translateX(50%);
    -ms-transform: translateX(50%);
    transform: translateX(50%);
}

#sidebar .sidebar-header {
    padding: 40px 20px 0px 20px;
    background: #31b0d5;
}

#sidebar .sidebar-header strong {
    display: none;
    font-size: 1.8em;
}

#sidebar ul.components {
    padding: 20px 0;
    border-bottom: 1px solid #47748b;
}

#sidebar ul li a {
    padding: 10px;
    font-size: 1.1em;
    display: block;
}
#sidebar ul li a:hover {
    color: #31b0d5;
    background: #fff;
}
#sidebar ul li a i {
    margin-right: 10px;
}

#sidebar ul li.active > a, a[aria-expanded="true"] {
    color: #fff;
    background: #269dc1;
}


a[data-toggle="collapse"] {
    position: relative;
}

a[aria-expanded="false"]::before, a[aria-expanded="true"]::before {
    content: '\e259';
    display: block;
    position: absolute;
    right: 20px;
    font-family: 'Glyphicons Halflings';
    font-size: 0.6em;
}
a[aria-expanded="true"]::before {
    content: '\e260';
}


ul ul a {
    font-size: 0.9em !important;
    padding-left: 30px !important;
    background: #269dc1;
}

ul.CTAs {
    padding: 20px;
}

ul.CTAs a {
    text-align: center;
    font-size: 0.9em !important;
    display: block;
    border-radius: 5px;
    margin-bottom: 5px;
}

a.btn1 {
    background: #fff;
    color: #31b0d5;
}

a.btn2, a.btn2:hover {
    background: #269dc1 !important;
    color: #fff !important;
}



/* ---------------------------------------------------
    CONTENT STYLE
----------------------------------------------------- */
#content {
    padding: 0px 20px 0px; 
    min-height: 100vh;
    min-width: 70%;
    transition: all 0.3s;
    width:100%;
    padding-top: 100px;/*BECAUSE OF NAVBAR*/
	padding-bottom: 20px;/*Distant to bottom for mobile users*/
}

/* ---------------------------------------------------
    MODAL WINDOWS CUSTOM STYLE
----------------------------------------------------- */

.show {
    opacity: 1;/*Unknown bug in Bootstrap, making modal visible*/
}

.modal{
    padding-top: 150px;/*BECAUSE OF NAVBAR*/
}

/* ---------------------------------------------------
    MEDIAQUERIES
----------------------------------------------------- */
@media (max-width: 768px) {
    #sidebar {
        min-width: 80px;
        max-width: 80px;
        text-align: center;
        margin-left: -80px !important ;
    }
    a[aria-expanded="false"]::before, a[aria-expanded="true"]::before {
        top: auto;
        bottom: 5px;
        right: 50%;
        -webkit-transform: translateX(50%);
        -ms-transform: translateX(50%);
        transform: translateX(50%);
    }
    #sidebar.active {
        margin-left: 0 !important;
    }

    #sidebar .sidebar-header h3, #sidebar .CTAs {
        display: none;
    }

    #sidebar .sidebar-header strong {
        display: block;
    }

    #sidebar ul li a {
        padding: 20px 10px;
    }

    #sidebar ul li a span {
        font-size: 0.85em;
    }
    #sidebar ul li a i {
        margin-right:  0;
        display: block;
    }

    #sidebar ul ul a {
        padding: 10px !important;
    }

    #sidebar ul li a i {
        font-size: 1.3em;
    }
    #sidebar {
        margin-left: 0;
    }
    #sidebarCollapse span {
        display: none;
    }
}

/* ---------------------------------------------------
    MEMORY GAME
----------------------------------------------------- */
.memory-board {
    display: grid;
    gap: 10px;
    justify-content: center;
}

.memory-card {
    width: 120px;
    height: 120px;
    perspective: 1000px;
    cursor: pointer;
}

.memory-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.3s;
    transform-style: preserve-3d;
}

.memory-card.is-flipped .memory-card-inner,
.memory-card.matched .memory-card-inner {
    transform: rotateY(180deg);
}

.memory-card-front,
.memory-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    padding: 6px;
    text-align: center;
}

.memory-card-front {
    background: #31b0d5;
    color: #fff;
    font-size: 24px;
    font-weight: 600;
}

.memory-card-back {
    transform: rotateY(180deg);
}

.memory-card-back img {
    max-width: 100%;
    max-height: 100%;
}

.memory-text {
    font-size: 16px;
    font-weight: 600;
}

.memory-card.matched {
    cursor: default;
    opacity: 0.85;
}

/* ---------------------------------------------------
    STICKY FILTER STYLE
----------------------------------------------------- */
.filters-container {
    position: sticky;
    top: 120px;
    z-index: 50;
    background: #fff;
    padding: 0;
    overflow-y: auto;
    max-height: calc(100vh - 140px);
    border-right: 1px solid #e0e0e0;
}

@media (max-width: 991px) {
    .filters-container {
        position: static;
        top: auto;
        z-index: auto;
        overflow-y: visible;
        max-height: none;
        border-right: none;
    }
}

/* Active Checkboxes - darker background */
input[type="checkbox"]:checked + label,
input[type="checkbox"]:checked + label input[type="checkbox"] {
    background-color: #e8f4f8 !important;
}

.details-content label {
    padding: 4px 8px;
    border-radius: 2px;
    transition: background-color 0.2s ease;
    display: block;
    margin: 4px 0;
}

.details-content label:hover {
    background-color: #f5f5f5;
}

.details-content label input[type="checkbox"]:checked + label,
.details-content input[type="checkbox"]:checked + label {
    background-color: #e8f4f8;
    font-weight: 500;
}

/* Active Filter Tags Container */
#active-filters-container {
    margin-top: 20px;
    padding: 15px;
    background: #f0f7fa;
    border: 2px solid #1798D2;
    border-radius: 4px;
    display: none;
}

#active-filters-container.has-filters {
    display: block;
}

#active-filters-label {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
    display: block;
}

#active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    background: #1798D2;
    color: white;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    animation: slideIn 0.2s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filter-tag-remove {
    margin-left: 6px;
    cursor: pointer;
    font-weight: bold;
    border: none;
    background: none;
    color: white;
    padding: 0 4px;
    font-size: 16px;
    line-height: 1;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.filter-tag-remove:hover {
    transform: scale(1.2);
    opacity: 0.8;
}

#clear-all-filters {
    width: 100%;
    margin-top: 10px;
}