@font-face {
    font-family: 'Motorfest';
    src: url('../fonts/Motorfest.otf');
}

#map {
    height: 100%;
    width: 100%;
    position: absolute;
    background: rgb(70, 70, 70);
}

#left_sidebar {
    height: 100%;
    width: 30%;
    position: absolute;
}

@media only screen and (max-width: 500px) {
    #left_sidebar {
        height: 100%;
        width: 85%;
        position: absolute;
    }
  }

  @media only screen and (min-width: 501px) and (max-width: 900px) {
    #left_sidebar {
        height: 100%;
        width: 60%;
        position: absolute;
    }
  }

#filters_sidebar {
    height: 100%;
    width: 100%;
    position: absolute;
    z-index: 1000;
    background-color: black;
    transition: all 0.5s ease;
    overflow: auto;
    display: flex;
    flex-direction: column;
    outline: 1px solid white;
    outline-offset: -1px;
}

#filters_sidebar.close_filters {
    transform: translate(-100%);
}

#filters_sidebar input[type="checkbox"] {
    accent-color: red;
}

#logo {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#logo img{
    overflow: hidden;
    white-space: nowrap;
}

#logo p{
    white-space: nowrap;
    margin: 0;
    overflow: hidden;
}

.web_logo {
    color: yellow;
    font-family: 'Motorfest';
    margin: 0;
}

.map_settings {
    padding-left: 10px;
    padding-top: 5px;
    padding-bottom: 5px;
    display: flex;
    align-items: center;
}

.map_settings .map_settings_text {
    margin-right: 5px;
}

.hide_btn {
    background: rgb(70, 70, 70);
    border-radius: 6px;
    font-size: 16px;
    color: white;
    padding: 5px;
    margin-right: 10px;
}

.events {
    width: 100%;
}

.header{
    font-size: 20px;
    background-color: rgb(70, 70, 70);
    border: 0;
    color: white;
    font-weight: bold;
    overflow: hidden;
    white-space: nowrap;
}

.header_hover:hover {
    color: red;
}

.event_header {
    display: flex;
    background-color: rgb(70, 70, 70);
    width: 100%;
    height: 40px;
    line-height: 40px;
    text-align: center;
    justify-content: center;
    align-items: center;
}
.event_header input[type='checkbox'] {
    width: 15px;
    height: 15px;
    margin-right: 10px;
}

.event_filters {
    display: grid;
    grid-template-columns: 50% 50%;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    margin-bottom: 5px;
}

.event_filters span {
    text-align: left;
    margin-top: 5px;
    overflow: hidden;
    white-space: normal;
}

.event_filters input[type='checkbox'] {
    margin-top: 7px;
    margin-right: 5px;
}

.event_filters .filter_option:nth-of-type(even) .filter_marker_count{
    padding-right: 5px;
}

#close {
    position: absolute;
    left: 100%;
    top: 50%;
    z-index: 9999;
    transition: all 0.5s ease;
}

#close.move_button {
    left:0%
}

#close_btn {
    width: 30px;
    height: 80px;
    font-size: 30px;
    background-color: black;
    color: white;
    border: none;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    border-style: solid;
    border-width: 1px;
    border-color: white;
}

.filter_option {
    display: flex;
    align-items: flex-start;
    padding-left: 10px;
}

.filter_marker_count {
    margin-left: auto;
    align-self: center;
    font-size: 12px;
    color: silver;
}

.filter_option span:nth-child(even){
    flex: 1 1 0;
}

.hstPopup .leaflet-popup-content-wrapper,
.hstPopup .leaflet-popup-tip {
    background-color: rgb(70, 70, 70);
    color: white;
    border-style: solid;
    border-width: 1px;
}

.hstPopup .leaflet-popup-close-button span{
    color: white;
}

.popup_logo {
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.popup_logo_sth {
    transform: scale(3);
    transform-origin: bottom;
    max-width: 500px;
    max-height: 320px;
}

html, body {
    height: 100%;
    width: 100%;
    padding: 0;
    margin: 0;
    font-family: Arial;
    color: white;
}

.links {
    margin-top: 10px;
    padding-top: 10px;
    padding-left: 10px;
    padding-bottom: 20px;
    background-color: rgb(70, 70, 70);
    width: calc(100% - 10px);
}

a.custom_link:link {
    color: red;
    text-decoration: none;
}

a.custom_link:visited {
    color: red;
    text-decoration: none;
}

a.custom_link:hover {
    color: red;
    text-decoration: none;
}

/* The switch - the box around the slider */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 27px;
    margin-right: 10px;
  }

/* Hide default HTML checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
  }

.slider:before {
    position: absolute;
    content: "";
    height: 21px;
    width: 21px;
    left: 4px;
    bottom: 3px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
  }

input:checked + .slider {
    background-color: #2196F3;
  }

input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
  }

input:checked + .slider:before {
    -webkit-transform: translateX(21px);
    -ms-transform: translateX(21px);
    transform: translateX(21px);
  }

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
  }
  
  .slider.round:before {
    border-radius: 50%;
  }

/* Styling for accordion menu */
.accordion_item {
    width: 100%;
    text-align: center;
}

.accordion_menu {
    font-size: 15px;
    margin-top: 5px;
    margin-bottom: 5px;
    border: 0;
    background-color: inherit;
    color: white;
    font-weight: bold;
    overflow: hidden;
    white-space: nowrap;
}

.accordion_menu:hover {
    color: red;
}

.accordion_menu::after {
    content: "▼"; /* Downward arrow */
    position: absolute;
    right: 5px;
    font-size: 17px;
    transition: transform 0.2s ease;
}

.accordion_menu.active::after {
    transform: rotate(180deg);
}

.accordion_submenu {
    font-size: 15px;
    border: 0;
    background-color: inherit;
    color: white;
    overflow: hidden;
    white-space: nowrap;
    padding-left: 0px;
}

.accordion_submenu:hover {
    color: red;
}

.accordion_submenu_active {
    color: red;
}

.accordion_submenu_active:hover {
    color: rgb(135, 96, 103);
}

.challenges_submenu {
    text-align: left;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
}

.challenges_submenu_item {
    background-color: inherit;
    margin-left: 10px;
}

.challenge_details {
    text-align: left;
    font-size: 12px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
}