
/* file menu */
#drop-area {
    width: 100%;
    padding: 10px;
    border: 2px dashed #ccc;
    text-align: center;
    box-sizing: border-box;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
}
#drop-area:hover {
    border-color: #000;
}

.file-list {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    padding: 0px;
}

.file-list div {
    padding: 5px;
    background: #eee;
    border-radius: 5px;
    margin-bottom: 5px;
    width: 100%;
    box-sizing: border-box;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    align-items: center;
    transition: all 0.2s;
}

.file-list .placeName {
    display: flex;
    flex-direction: column;
    text-align: left;
    align-items: flex-start;
    margin-bottom: 0px;
}

.file-list .placeName .bold_address {
    font-weight: 600;
}

/* complete sidebar container */
#container {
    width: 500px;
    left: 0px;
    position: fixed;
    top: 0px;
    height: 100vh;
    padding: 30px;
    background: #fff;
    overflow-y: scroll;
    display: none;
}

@media only screen and (max-width: 768px) {
    #container {
        width: 100%;
        border-radius: 10px 10px 0 0;
        top: 50vh;
        height: 50vh;
        padding-bottom: 70px;
    }
}

.file-color-dot {
    height: 9px;
    width: 9px;
    border-radius: 100%;
    display: block;
    background: #233456;
    margin: 7px;
    flex-shrink: 0;
}

#file-list .file-name {
    flex-grow: 1;
    margin-bottom: 0px;
    display: flex;
    flex-direction: column;
    align-items:flex-start;
}
#file-list .file-name .file-name-headline {
    font-weight: 600;
}
#file-list .file-name .file-name-text {
    margin-top: 5px;
    color: #555;
}

/* Marker for uploaded files */
.marker-dataset {
    color: #fff;
    font-size: 12px;
    height: 20px;
    width: 20px;
    border-radius: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    border:2px solid white;
    box-sizing: border-box;
}

/* marker for track creation */
.marker-drag {
    width: 15px;
    height: 15px;
    background: #fff;
    border-radius: 200px;
    border: 2px solid black;
    transition: 0.2s background-color;
    text-align: center;
}

.marker-drag:hover {
    background: #555;
}

.gpxProfileSelector {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

/* .option {
    text-align: center;
    margin: 5px;
    border-radius: 100px;
    font-size: 1rem;
    border: 2px solid #cae1ff;
    background: #cae1ff;
    display: block;
    padding: 10px;
}

.option.selected {
    background-color: #233456;
    color: white;
    border-color: #233456;
} */

#container .option {
    flex: 1;
    padding: 10px;
    cursor: pointer;
    background-color: #cae1ff;
    text-align: center;
    margin: 3px;
    border-radius: 10px;
}

#container .option.selected {
    background-color: #233456;
    color: white;
    border-color: #233456;
}


#track-creation-controls {
    display: none;
}


#container button {
    padding: 10px 15px;
    margin: 10px;
    background: #cae1ff;
    border: 0px;
    cursor: pointer;
    border-radius: 100px;
    transition: all 0.2s;
}

#container button:hover:enabled {
    background: #233456;
    color: #fff;
}

#container button:disabled {
    cursor: default;
}

#container button i {
    margin-right: 10px;
}

#container button.no-text i {
    margin-right: 0px;
}

#container .button-nostyle {
    font-size: 1.2em;
    background: #fff;
    padding: 7px;
    border: 0px solid white;
    border-radius: 300px;
    transition: 0.2s all;
}

#container .button-nostyle:hover:enabled {
    background: #ddd
}

.line-with-text {
    width: 100%;
    text-align: center;
    border-bottom: 2px solid #aaa;
    line-height: 0.1em;
    margin: 30px 0 30px;
}

.line-with-text span {
    background: #f1f1f1;
    padding: 0 10px;
}

.box {
    background: #f1f1f1;
    border-radius: 10px;
    padding: 20px;
}

#container .green_background {
    background: #2c7243;
    color: #fff;
}

#container .green_background:disabled {
    color: #a7c9b2;
}

#track_name {
    border: 0px solid black;
    font-size: 1.2em;
    font-weight: 600;
}

#gpx_edit_name {
    cursor: pointer;
    padding: 20px;
}

.center-horizontal {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}


.no_margin {
    margin: 0px;
}


.small-list {
    max-height: 300px;
    overflow: scroll;
}

#container .back_element {
    margin: 20px 0;
    cursor: pointer;
}


/* information about live track */
#track_creation_info {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    border-radius: 10px;
    background: #eee;

}

.info_item {
    width: 50%;
    padding: 10px;
    box-sizing: border-box;
    font-size: 1.3em;
}

.info_item div {
    color: #555;
    font-size: 0.8rem;
    display: block;
    margin-bottom: -10px;
}

.info_item i {
    margin-right: 10px;
    font-size: 1em;
    color: #555;
}


/* default ui components */
.info-box {
    background: #f0dada;
    color: #802020;
    padding: 6px 9px;
    text-align: center;
    border-radius: 100px;
    margin: 5px;
}

.text-lite {
    font-size: 0.8rem;
    color: #555;
}

.hidden {
    display: none;
}

#container .vertical_flex {
    display: flex; flex-direction: column; align-items: center;
}

.menu-button {
    background-color: #007cbf;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    position: relative;
}
.menu-button:focus {
    outline: none;
}
.menu-content {
    display: none;
    position: absolute;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
    transform: translateY(10px);

    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    border-radius: 10px;
    padding: 5px;
    flex-direction: column;
}

.menu-content span {
    padding: 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}
.menu-content span:hover {
    background: #eee;
}
.menu-content span i {
    margin-right: 15px;
}
.menu-content a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: black;
}
.menu-content a:hover {
    background-color: #f1f1f1;
}
.menu-content.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* POPUP ===================== */
.popup-background {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

#dataset-edit-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    max-width: 600px;
}
@media only screen and (max-width: 768px) {
    #dataset-edit-popup {
        width: 95%;
    }
}

#dataset-edit-popup h2 {
    margin-top: 0;
}
#dataset-edit-popup input[type=text] {
    border-radius: 5px;
    border: 0px solid #222;
    padding: 9px;
    background: #eee;
    width: 90%;
}

#dataset-edit-popup .color-list {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

#dataset-edit-popup .color-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    box-sizing: border-box;
}

#dataset-edit-popup .color-circle.selected {
    border: 2px solid black;
}

#dataset-edit-popup .buttons {
    display: flex;
    justify-content: space-between;
}

#dataset-edit-popup button#dataset-cancel-button {
    background-color: #f44336;
    color: white;
}

#dataset-edit-popup button#dataset-save-button {
    color: white;
}