body,
* {
    margin: 0;
    padding: 0;
}

#map {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
}

#zoom-level-right {
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    padding: 4px 8px;
    font-family: sans-serif;
    font-size: 14px;
    border-radius: 4px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.25);
    z-index: 999;
}

.context-menu {
    top: 2rem;
    position: absolute;
    font-size: 0.75rem;
    font-family: "Poppins", sans-serif;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #ccc;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: none;
}

.context-menu ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.context-menu ul li {
    padding: 10px;
    cursor: pointer;
}

.context-menu ul li:hover {
    background: #e7ebf2;
}

.logo-container {
    position: absolute;
    top: 2rem;
    left: 2rem;
    width: 20rem;
    height: 3.5rem;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.85),
        rgba(255, 255, 255, 0.55)
    );
    padding: 10px;
    border-radius: 5px;
    font-size: 0.875rem;
    font-family: "Poppins", sans-serif;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.logo-image {
    width: 90%;
    max-width: 17.5rem;
    display: block;
    margin: 0 auto;
}

.input-container {
    display: hidden;
    position: absolute;
    top: 8rem;
    left: 2rem;
    width: 20rem;
    height: 27.5rem;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.85),
        rgba(255, 255, 255, 0.55)
    );
    padding: 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-family: "Poppins", sans-serif;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.input-roundtrip {
    position: absolute;
    top: 8rem;
    left: 2rem;
    width: 20rem;
    height: 27.5rem;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.85),
        rgba(255, 255, 255, 0.55)
    );
    padding: 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-family: "Poppins", sans-serif;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.input-container label {
    display: block;
    margin-bottom: 5px;
}

.tandwiel-image {
    width: 1.25rem;
    height: 1.25rem;
    float: right;
    cursor: pointer;
}

.input-container input {
    width: 100%;
    padding: 5px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

input[type="text"],
textarea {
    width: calc(100% - 40px);
    margin-left: 20px;
    padding: 4px;
    font-size: 0.8rem;
    font-family: "Poppins", sans-serif;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border: 1.5px solid #ccc;
    transition: border-color 0.3s ease;
}

input::placeholder,
textarea::placeholder {
    font-family: "Inconsolata", sans-serif;
    font-size: 0.8rem;
    color: #999;
}

input[type="text"]:focus,
textarea:focus {
    border: 1.5px solid #003366;
    box-shadow: 0 0 8px rgba(0, 51, 102, 0.5);
    outline: none;
}

input[readonly],
textarea[readonly] {
    background-color: #f5f5f5;
    cursor: not-allowed;
    color: #666;
}

textarea {
    height: 5rem;
    resize: none;
    overflow-y: auto;
}

.input-container label[for="end-input"] {
    margin-top: 0.4rem;
    display: block;
}

.input-container label[for="route"] {
    margin-top: 0.4rem;
    display: block;
}

.button-container {
    margin-top: 0.4rem;
    margin-left: 20px;
    display: flex;
    width: 18rem;
    justify-content: space-between;
    padding: 0;
    gap: 0; /* Geen vaste gap */
}

.route-button {
    width: 4rem; /* calc(100% / 4);  */
    background-color: #f5f5f5;
    color: #336699;
    padding: 6px 10px;
    border: 1.5px solid #ccc;
    border-radius: 5px;
    font-size: 0.7rem;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: border-color 0.3s ease;
    flex: unset;
}
.route-button:hover {
    background-color: #336699;
    color: white;
    box-shadow: 0 0 8px rgba(51, 102, 153, 0.5);
}

.route-button.active {
    background-color: #336699;
    color: white;
    box-shadow: 0 0 8px rgba(51, 102, 153, 0.5);
}

.start-button {
    width: 100%;
    background-color: #336699;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-size: 0.8rem;
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.start-button:hover {
    background-color: #2a5286;
}

.reset-button {
    width: 100%;
    background-color: #f5f5f5;
    color: #336699;
    padding: 8.5px;
    border: 1.5px solid #ccc;
    border-radius: 5px;
    font-size: 0.8rem;
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.reset-button:hover {
    background-color: #999999;
    color: white;
    box-shadow: 0 0 8px rgba(51, 102, 153, 0.5);
}

/*
		.leaflet-top.leaflet-right {
		    top: 5vh;
		    right: 2vw;
		}

		.leaflet-bottom.leaflet-left {
		    display: none;
		}
		*/

.via-icon {
    width: 21px;
    height: 21px;
    background-color: #669966;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Poppins", sans-serif;
    color: white;
    font-size: 12px;
    font-weight: bold;
    border: 2px solid white;
}

.via-number {
    color: white;
    font-size: 0.8rem;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    margin-top: 0.15vh;
}

.export-container {
    position: absolute;
    top: 38rem;
    left: 2rem;
    width: 20rem;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.85),
        rgba(255, 255, 255, 0.55)
    );
    padding: 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-family: "Poppins", sans-serif;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.export-container-block {
    display: flex;
    gap: 15px;
    margin-top: 5px;
    margin-bottom: 5px;
}

.export-button {
    flex: 1;
    background-color: #f5f5f5;
    color: #336699;
    padding: 6px 10px;
    border: 1.5px solid #ccc;
    border-radius: 5px;
    font-size: 0.8rem;
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: border-color 0.3s ease;
}

.export-button:hover {
    background-color: #336699;
    color: white;
    box-shadow: 0 0 8px rgba(51, 102, 153, 0.5);
}

.export-submenu {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(255, 255, 255, 0.95);
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.hidden {
    display: none;
}

#settingsModal {
    display: none;
    position: fixed;
    z-index: 1100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
}

#settingsModal .settings-modal-content {
    margin: 12% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 22%;
    min-height: 30%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    font-size: 0.7rem;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.85),
        rgba(255, 255, 255, 0.55)
    );
    font-family: "Poppins", sans-serif;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
}

.settings-modal-content {
    margin: 12% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 30%;
    min-height: 35%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    font-size: 0.7rem;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.85),
        rgba(255, 255, 255, 0.55)
    );
    font-family: "Poppins", sans-serif;
}

h2 {
    font-size: 0.9rem;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    color: #336699;
}

hr {
    margin-top: 1vh;
    margin-bottom: 1vh;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #cc0000;
    text-decoration: none;
    cursor: pointer;
}

.export-modal {
    display: none;
    position: fixed;
    z-index: 2500;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    overflow: auto;
    animation: fadeIn 0.3s ease-out;
}

.export-modal-content {
    position: relative;
    margin: 12% auto;
    padding: 20px;
    width: 25rem;
    max-width: 90%;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.85),
        rgba(255, 255, 255, 0.95)
    );
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.export-modal-content .close {
    position: absolute;
    top: 15px;
    bottom: -30px;
    right: 20px;
    color: #aaa;
    font-size: 1.8rem;
    font-weight: bold;
    transition: color 0.2s;
}

.export-modal-content .close:hover {
    color: #cc0000;
    cursor: pointer;
}

.import-modal {
    display: none;
    position: fixed;
    z-index: 2500;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    overflow: auto;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.import-modal-content {
    position: relative;
    margin: 12% auto;
    padding: 20px;
    width: 25rem;
    max-width: 90%;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.85),
        rgba(255, 255, 255, 0.95)
    );
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.import-modal-content .close {
    position: absolute;
    top: 15px;
    bottom: -30px;
    right: 20px;
    color: #aaa;
    font-size: 1.8rem;
    font-weight: bold;
    transition: color 0.2s;
}

.import-modal-content .close:hover {
    color: #cc0000;
    cursor: pointer;
}

.file-input-container {
    position: relative;
    margin-bottom: 20px;
    font-family: "Poppins", sans-serif;
    font-size: 0.9rem;
}

.file-input-label {
    font-family: "Poppins", sans-serif;
    font-size: 0.9rem;
    display: block;
    padding: 15px;
    background: #f5f5f5;
    border: 2px dashed #ccc;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.file-input-label:hover {
    background: #e9e9e9;
    border-color: #336699;
}

.file-input-label i {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: #336699;
}

.file-input-label span {
    color: #555;
    font-size: 1.2rem;
}

#file-input {
    position: absolute;
    left: -9999px;
}

.radio-group {
    margin: 20px 0;
}

.radio-option {
    display: block;
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 1.2rem;
    color: #555;
    user-select: none;
}

.radio-option input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #f5f5f5;
    border: 2px solid #ccc;
    border-radius: 50%;
    transition: all 0.2s;
}

.radio-option:hover input ~ .radio-checkmark {
    border-color: #336699;
}

.radio-option input:checked ~ .radio-checkmark {
    background-color: #336699;
    border-color: #336699;
}

.radio-checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.radio-option input:checked ~ .radio-checkmark:after {
    display: block;
}

.radio-option .radio-checkmark:after {
    top: 4px;
    left: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}

#import-button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(to right, #336699, #2a5286);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 8px rgba(51, 102, 153, 0.3);
    margin-top: 10px;
}

#import-button:hover {
    background: linear-gradient(to right, #2a5286, #1e3d6b);
    box-shadow: 0 6px 12px rgba(51, 102, 153, 0.4);
}

#import-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

/* Status message */
.import-status {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    text-align: center;
    display: none;
}

.import-status.success {
    background-color: #e6f7e6;
    color: #2e7d32;
    display: block;
}

.import-status.error {
    background-color: #ffebee;
    color: #c62828;
    display: block;
}

.floating-bar {
    position: absolute;
    cursor: move;
    user-select: none;
    bottom: 2rem;
    top: auto;
    left: calc(50% - 16.5%);
    min-width: 33%;
    width: auto;
    height: auto;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.85),
        rgba(255, 255, 255, 0.55)
    );
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    z-index: 2000;
    padding: 10px;
}

.floating-bar-content {
    width: 90%;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    font-size: 0.775rem;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    color: #003366;
    text-align: center;
    position: relative;
}

.close-floating-bar {
    color: #aaa;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    margin-top: -2rem;
    right: -1.5rem;
}

.close-floating-bar:hover {
    color: #cc0000;
}

.input-container,
.input-roundtrip {
    transition: transform 0.5s ease-in-out;
}

.slide-out {
    transform: translateX(-100%);
}

.slide-in {
    transform: translateX(100%);
}

.compass {
    position: relative;
    width: 80px;
    height: 80px;
    margin-top: 12px;
    margin-right: auto;
    margin-bottom: 12px;
    margin-left: auto;
    border: 1.5px solid #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.compass-arrow {
    width: 2px;
    height: 30px;
    background: red;
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform-origin: bottom center;
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}

.slider-headline {
    margin-top: 0.875rem;
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-size: 0.8rem;
}

.slider-insert {
    width: 17.5vw;
    margin-top: 0.4vh;
}

.slider-output {
    font-family: "Poppins", sans-serif;
    margin-right: 0px;
    font-weight: 400;
    width: 16.5vw;
    font-size: 0.8rem;
    margin-left: 20px;
    margin-top: -0.5vh;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.button-group {
    margin: 20px 0;
}

.export-option-button {
    width: 100%;
    height: 10vh;
    padding: 15px;
    margin-bottom: 15px;
    background: #f5f5f5;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 15px;
}

.export-option-button:hover {
    background: #e9e9e9;
    border-color: #336699;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.export-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.export-label {
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    color: #336699;
    font-size: 1.6vh;
    margin-bottom: 0px;
}

.export-description {
    font-family: "Poppins", sans-serif;
    color: #666;
    font-size: 1.4vh;
    clear: both;
    padding-top: 2px;
}

.export-icon img {
    width: 40px;
    height: 40px;
}

.sub-headers {
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-size: 2.2vh;
    margin-bottom: 1.5vh;
    text-align: center;
    color: #336699;
}

.import-label-head {
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    color: #336699;
    font-size: 1.6vh;
    margin-bottom: 9px;
}

.import-label {
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    color: rgb(96, 96, 96);
    font-size: 0.825rem;
    margin-top: 6px;
    padding-top: 4px;
}

.right-floating-bar {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 3.6rem;
    min-height: 9rem;
    height: auto;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.85),
        rgba(255, 255, 255, 0.55)
    );
    border-radius: 8px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
    font-family: "Poppins", sans-serif;
    font-size: 0.7rem;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    cursor: move;
    user-select: none;
    padding-top: 0.8vh;
}

.right-floating-bar-buttons {
    width: 90%;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.sidebar-btn {
    width: 2.1rem;
    height: 2.1rem;
    background-color: #f5f5f5;
    color: #336699;
    border: 2px solid #bbb;
    border-radius: 5px;
    font-weight: 600;
    padding: 4px;
    cursor: pointer;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    font-size: 0.875rem;
}

.sidebar-btn:hover {
    background-color: #336699;
    color: white;
}

.right-floating-bar-header {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 2px;
}

.close-right-floating-bar {
    color: #aaa;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: -4px;
}

.close-right-floating-bar:hover {
    color: #cc0000;
}

.zoom-display {
    font-family: "Poppins", sans-serif;
    font-size: 0.95vh;
    font-weight: 600;
    color: #003366;
    margin-bottom: 2px;
    text-align: center;
}

.btn-icon {
    width: 80%;
    height: 80%;
    object-fit: contain;
    pointer-events: none;
}

.icon-btn {
    background-repeat: no-repeat;
    background-position: center;
    background-size: 70%;
    transition: background-image 0.2s ease-in-out;
}

.icon-1 {
    background-image: url("../symbols/icon1-blue.svg");
}
.icon-1:hover {
    background-image: url("../symbols/icon1-white.svg");
}
.icon-2 {
    background-image: url("../symbols/icon2-blue.svg");
}
.icon-2:hover {
    background-image: url("../symbols/icon2-white.svg");
}
.icon-3 {
    background-image: url("../symbols/icon3v3-blue.svg");
}
.icon-3:hover {
    background-image: url("../symbols/icon3v3-white.svg");
}
.icon-4 {
    background-image: url("../symbols/icon4v1-blue.svg");
}
.icon-4:hover {
    background-image: url("../symbols/icon4v1-white.svg");
}
.icon-4-2d {
    background-image: url("../symbols/icon4v2-blue.svg");
}
.icon-4-2d:hover {
    background-image: url("../symbols/icon4v2-white.svg");
}
.icon-4-inactive {
    background-image: url("../symbols/icon4v2-gray.svg");
}
.icon-4-inactive:hover {
    background-image: url("../symbols/icon4v2-gray.svg");
}

.spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 5px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.simple-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-blocks {
    display: flex;
    gap: 8px;
}

.block {
    width: 12px;
    height: 12px;
    background-color: #fff;
    opacity: 0.3;
    animation: pulse 1.5s infinite ease-in-out;
}

.block:nth-child(1) {
    animation-delay: 0s;
}
.block:nth-child(2) {
    animation-delay: 0.2s;
}
.block:nth-child(3) {
    animation-delay: 0.4s;
}
.block:nth-child(4) {
    animation-delay: 0.6s;
}
.block:nth-child(5) {
    animation-delay: 0.8s;
}

@keyframes pulse {
    0%,
    100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.color-head {
    font-family: "Poppins", sans-serif;
    font-size: 0.775rem;
    font-weight: 600;
    color: #336699;
}

.color-choice {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 95%;
    background: rgba(240, 240, 240, 0.9);
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    padding: 10px;
    margin-top: 5px;
    margin-left: auto;
    margin-right: auto;
}

.color-choice input[type="radio"] {
    display: none;
}

.color-choice label {
    position: relative;
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    border: 1px solid transparent;
    transition: border 0.3s ease;
}

.color-choice input[type="radio"]:checked + label::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.4rem;
    font-weight: bold;
    pointer-events: none;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

#bearingPitchControl {
    position: absolute;
    top: 18.5rem;
    right: 1rem;
    transform: translateY(-50%);
    z-index: 999;
    width: 6rem;
    height: 6rem;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.85),
        rgba(255, 255, 255, 0.55)
    );
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

#bearingPitchControl .readout {
    margin-top: 0px;
    font-size: 13px;
    color: #222;
}

#compass3D {
    width: 100%;
    height: 100%;
}

#bearingPitchControl {
    display: none;
}

#bearingPitchControl,
#bearingPitchControl * {
    user-select: none;
}

@media screen and (max-width: 1400px) {
    .logo-container,
    .input-container,
    .input-roundtrip,
    .export-container {
        width: 18rem;
        left: 1rem;
    }

    .logo-container {
        top: 1rem;
        left: 1rem;
        height: 2.5rem;
    }

    .input-container,
    .input-roundtrip {
        top: 6.5rem;
        left: 1rem;
        height: 30.5rem;
    }

    .export-container {
        top: 40rem;
        left: 1rem;
    }

    body,
    * {
        font-size: 0.7rem;
    }

    .context-menu {
        font-size: 0.65rem;
    }

    .button-container {
        width: 14rem;
        margin-left: 10px;
        display: flex;
        gap: 1rem;
    }

    .route-button {
        flex: 1;
        min-width: 25%;
        padding: 6px 2px;
        border: 1.5px solid #ccc;
        border-radius: 4px;
        font-size: 0.7rem;
        cursor: pointer;
        transition: all 0.3s ease;
        margin-bottom: 0.75rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .route-button:hover {
        background-color: #336699;
        color: white;
        box-shadow: 0 0 8px rgba(51, 102, 153, 0.5);
    }

    .route-button.active {
        background-color: #336699;
        color: white;
        box-shadow: 0 0 8px rgba(51, 102, 153, 0.5);
    }

    input[type="text"],
    textarea {
        width: calc(100% - 20px);
        margin-left: 10px;
        font-size: 0.7rem;
    }

    #settingsModal .settings-modal-content,
    .settings-modal-content {
        width: 50%;
        margin: 8% auto;
    }

    .start-button {
        margin-top: -0.4rem;
    }

    .floating-bar {
        left: calc(50% - 25%);
        min-width: 28%;
        width: auto;
    }

    .right-floating-bar {
        right: 1rem;
        width: 3rem;
    }

    .sidebar-btn {
        width: 1.8rem;
        height: 1.8rem;
    }

    .logo-image {
        max-width: 14rem;
    }

    .slider-insert {
        width: 14vw;
    }

    .slider-output {
        width: 13vw;
        margin-left: 10px;
    }
}

@media screen and (max-width: 1200px) {
    .logo-container,
    .input-container,
    .input-roundtrip,
    .export-container {
        width: 18rem;
    }

    .logo-container {
        top: 1rem;
        left: 2rem;
        height: 2.5rem;
    }

    .input-container,
    .input-roundtrip {
        top: 6rem;
        left: 2rem;
        height: 32rem;
    }

    .button-container {
        margin-top: 0.4rem;
        margin-left: 10px;
        display: flex;
        width: 95%;
        justify-content: space-between;
        padding: 0;
        gap: 0.2rem;
    }

    .route-button {
        flex: 1;
        min-width: 0;
        padding: 6px 2px;
        border: 1.5px solid #ccc;
        border-radius: 4px;
        font-size: 0.7rem;
        cursor: pointer;
        transition: all 0.3s ease;
        margin: 0 0.1rem;
        margin-bottom: 1rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .route-button:hover {
        background-color: #336699;
        color: white;
        box-shadow: 0 0 8px rgba(51, 102, 153, 0.5);
    }

    .route-button.active {
        background-color: #336699;
        color: white;
        box-shadow: 0 0 8px rgba(51, 102, 153, 0.5);
    }

    .start-button {
        margin-top: -0.8rem;
    }

    .export-container {
        top: 40.5rem;
        left: 2rem;
    }

    .logo-image {
        max-width: 14rem;
    }

    .floating-bar {
        left: calc(50% - 16.5%);
        min-width: 33%;
        width: auto;
    }

    .right-floating-bar {
        right: 2rem;
        width: 4rem;
    }

    .sidebar-btn {
        width: 2.8rem;
        height: 2.8rem;
    }

    #bearingPitchControl {
        position: absolute;
        top: 22.5rem;
        right: 1rem;
        z-index: 999;
        width: 6rem;
        height: 6rem;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
    }

    .context-menu ul li {
        padding: 15px 10px;
        font-size: 1rem;
    }
}

@media screen and (max-width: 768px) {
    .floating-bar {
        left: calc(50% - 25%);
        min-width: 50%;
        width: auto;
        bottom: 5rem;
    }
}
