@import url('https://fonts.googleapis.com/css?family=Open+Sans');

:root {
    --dark-blue: #2E4A5A;
    --light-blue: #0DB5C2;
    --light-green: #6DAC37;
}

.text-dark-blue {
    color: var(--dark-blue)
}

.main-map-marker {
    filter: hue-rotate(100deg);
    z-index: 1000 !important;
}

a {
    /*color: #0DB5C2 !important;*/
    color: inherit !important;
    text-decoration: none !important;
}

.card {
    box-shadow: 3px 4px 8px 0px rgba(0, 0, 0, 0.05);
    border: none !important;
    border-radius: 20px;
}

.card-body {
    padding: 2.0rem !important;
}

body {
    color: #434343 !important;
    font-family: "Open Sans", sans-serif !important;
}

body:has(nav.open) {
    overflow-y: hidden;
}

input[type="submit"] {
    font-weight: 600;
    padding-right: 4.5rem;
    padding-left: 4.5rem;
    height: 42px;
    width: 285px;
}

#page-title {
    margin: 2.5rem;
    color: var(--dark-blue);
    font-weight: 600
}

#page-header {
    margin-top: 2.5rem;
    border-bottom: 1px solid rgba(46, 74, 90, 0.2);
    padding: 0.5rem 1.5rem 0.5rem 1.5rem;
    width: 100%;
}

#page-content {
    padding: 0 2.5rem 2.5rem 2.5rem;
}

#page-content.chat-page {
    padding: 0 0.75rem;
}

#event-list-header {
    border-bottom: 1px solid rgba(46, 74, 90, 0.2);
    width: 100%;
    padding: 0 0 1rem 1.5rem
}

.event-type-selector {
    padding-left: 1rem;
    padding-right: 1rem;
    opacity: 0.5;
}

.event-type-selector.event-type-item {
    padding-left: 1rem;
    padding-right: 1rem;
    opacity: 0.5;
    width: 8rem
}

.event-type-selector img{
    height: 32px;
}

.event-type-selector.active {
    opacity: 1;
}

input[type=text] {
    height: 42px;
    min-width: 130px;
}

div:has(> input.searchinput):after {
    content: "";
    position: absolute;
    right: 10px;
    top: 0;
    bottom: 0;
    width: 32px;
    height: 42px;
    background: url("../img/search.svg") center / contain no-repeat;
    cursor: pointer;
}


#event-list-header button {
    border: 1px solid black;
    height: 42px;
}

#event-list-header .scroll-btn {
    position: sticky;
}

#event-list-header .scroll-btn {
    border: 1px solid black;
    border-radius: 7px;
    padding: 0;
    height: 22px;
    font-size: 20px;
    background-color: white;
    z-index: 10;
}

#event-list-header .scroll-left {
    left: 0;
    margin-right: -22px;
    display: none;
}

#event-list-header .scroll-right {
    right: 0.75rem;
    visibility: hidden;
}

::-webkit-scrollbar {
    width: 0;
    height: 0;
    background: transparent; /* make scrollbar transparent */
}

.bi-arrow-left-short::before, .bi-arrow-right-short::before {
    vertical-align: super !important;
}

#map {
    border-top-left-radius: 20px;
}

.event-card {
    margin-left: 2.5rem;
    box-shadow: 3px 4px 8px 0 #0000000D;
    height: 164px;
    border-radius: 20px;
}

.event-card .img-container {
    max-height:100%;
    overflow:hidden;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
}

.event-card .cover-img {
    width: 100%;
    object-fit: cover;
    object-position: center;
}

.event-card.selected {
    border: 1.5px solid var(--light-blue)
}

.country-select-flag {
    display: none !important;
}


.event-card p {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

#event-card-list-wrapper {
    position: relative;
}

#map-wrapper {
    position: relative;
}

#event-card-list-wrapper, #map-wrapper {
    -webkit-transition-property: width;
    -webkit-transition-duration: 0.5s;
    -webkit-transition-delay: 0s;
    transition-property: width;
    transition-duration: 0.5s;
    transition-delay: 0s;
}

.map-event-card {
    display: none;
}

#map-mobile-btn {
    position: fixed;
    bottom: 10px;
    left: 50%;
    background-color: black;
    transform: translate(-50%, -50%);
    border-radius: 20px;
}

.map-event-card {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translate(-50%, 0);
    z-index: 0;
    width: 90%;
    border-radius: 15px;
}

.map-event-card.active {
    display: block;
    z-index: 1000;
}

input[type=number].no-spinner::-webkit-inner-spin-button,
    input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
     margin: 0;
}

.highlighted-light-blue {
    border-color: #0DB5C2 !important;
    background-color: white !important;
}

.btn.highlighted-light-blue  {
    color: #0DB5C2 !important;
}

.btn.btn-outline-secondary.option:hover {
    border-color: #0DB5C2 !important;
    background-color: white !important;
    color: #0DB5C2 !important;
}

.btn.btn-outline-secondary.option.toggled {
    border-color: #0DB5C2 !important;
    background-color: white !important;
    color: #0DB5C2 !important;
}

/*GROUPS STUFF*/

#group-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 1rem
}

#group-container .group-chat-icon {
    width: 10vw;
    height: 10vw;
    object-fit: cover
}

img.group-chat-icon {
  object-fit: cover;
  width: 100%;
  max-height: 100%;
}

span.group-name {
    font-size: 1.25rem
}

span.joined {
    color: var(--light-green)
}

span.not-joined {
    text-decoration: underline;
    color: var(--light-blue);
    cursor: pointer
}

span.tag {
    margin-right: 0.25rem;
}

.activity-type{
    margin-right: 2rem
}

.activity-type img {
    height: 2rem;
}

.notification .image-container img {
    width: 100%;
    height: 10vw;
    object-fit: cover;
}

.activity-details > * {
    margin-right: 1rem
}


/*DETAILS STUFF*/

.avatar-container img {
    height: 8vw;
}

@media (max-width: 575.98px) {


    #event-card-list-wrapper {
        position: inherit;
        margin-bottom: 70px;
    }

    #event-list-header {
        border-bottom: 0;
        padding-left: 0.5rem;
    }

    #event-type-list {
        overflow-y: hidden !important;
        width: 100%;
        height: 100%;
    }

    .event-type-selector {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .event-card {
        margin-left: 1rem;
        box-shadow: none;
        height: inherit;
        border-radius: 20px;
    }

    .event-card .cover-img {
        border-radius: 20px;
        height: 253px;
    }

    #map-wrapper {
        position: fixed;
        height: 73vh;
        bottom: -100%;
        z-index: 1000;
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;

        -webkit-transition-property: bottom;
        -webkit-transition-duration: 0.5s;
        -webkit-transition-delay: 0s;
        transition-property: bottom;
        transition-duration: 0.5s;
        transition-delay: 0s;

        -webkit-box-shadow: 0px -20px 40px rgba(50, 50, 50, 0.75);
          -moz-box-shadow: 0px -20px 40px rgba(50, 50, 50, 0.75);
          box-shadow: 0px -20px 40px rgba(50, 50, 50, 0.75);
    }

    #map-wrapper.open {
        bottom: 0;
    }

    #map {
        border-top-left-radius: 0;
    }

    #page-other-btns {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    #page-other-btns #div_id_search {
        width: 100%;
    }

    #group-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem
    }

    #group-container .group-chat-icon{
        width: 30vw;
        height: 30vw;
        object-fit: contain;
    }

    #page-content.groups-page {
        flex-direction: column;
        align-items: center
    }

}

.profile-pic-container {
    text-align: center;
    margin-bottom: 1.25rem;
    position: relative;
    min-height: 150px
}

.pic-absolute {
    position: absolute;
    left: 0;
    right: 0;
    margin-inline: auto;
}

#edit-image {
    opacity: 0.7
}

.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    background-color: #2E4A5A;
    font-size: 50px;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.initials {
    background-color: #2E4A5A;
    display: inline-block;
    border-radius: 50%;
    width: 150px;
    height: 150px;
    line-height: 150px;
    text-align: center;
    font-size: 50px;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

.initials-profile {
    background-color: #2E4A5A;
    display: inline-block;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    font-size: 10px;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

.initials-profile-details {
    background-color: #2E4A5A;
    display: inline-block;
    border-radius: 50%;
    width: 8vw;
    height: 8vw;
    line-height: 8vw;
    text-align: center;
    font-size: 4vw;
    color: white;
    font-weight: bold;
    cursor: pointer;
}


.initials-group-details {
    background-color: #2E4A5A;
    display: inline-block;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    line-height: 40px;
    text-align: center;
    font-size: 0.875rem;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

.initials-group-details > div {
    line-height: 50px;
}


input[type="file"] {
    display: none;
}

.card {
    position: relative;
}

.btn-logout {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #0DB5C2 !important;
    border-color: #0DB5C2 !important;
    color: #FFFFFF !important;
    font-weight: bold;

}

#suggest-events-modal .suggested-events-wrapper {
    max-height: 70vh
}

a.external-link {
    color: var(--light-blue) !important
}