	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;
    border-radius: 5px;
    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.90),
        rgba(245, 245, 245, 0.70)
    );
    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.90),
        rgba(245, 245, 245, 0.70)
    );
    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.90),
        rgba(245, 245, 245, 0.70)
    );
    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;
}

.button-container {
    display: flex;
}

.mobile-logo-container{
  display: none;
}

.mobile-button-container {
    display: none;
}

.toggle-circle {
	display: none;
}

.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;
}

.route-button {
    width: 4rem;
    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);
}

.play-button-group {
    width: 100%;
}

.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);
}

.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.90),
        rgba(245, 245, 245, 0.70)
    );
    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.9);
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

#route-title-input-modal {
    width: 60%;
    min-width: 200px;
    max-width: 400px;
    display: block;
    margin: 0 auto 20px auto;
    padding: 8px;
    /* ...andere gewenste stijl... */
}

#saveRouteModal.export-modal {
    display: none;
    position: fixed;
    z-index: 2500;
    left: 0; top: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    overflow: auto;
    animation: fadeIn 0.3s ease-out;
}
#saveRouteModal .export-modal-content {
    position: relative;
    margin: 12% auto;
    padding: 24px 24px 30px 24px;
    width: 25rem;
    max-width: 90vw;
    background: linear-gradient(
        135deg,
        rgba(255,255,255,0.90),
        rgba(245,245,245,0.70)
    );
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.18);
    border: 1px solid rgba(255,255,255,0.25);
    font-family: 'Poppins', Arial, sans-serif;
}
#saveRouteModal .close {
    position: absolute;
    top: 14px; right: 20px;
    color: #aaa;
    font-size: 1.7rem;
    font-weight: bold;
    transition: color 0.2s;
    cursor: pointer;
}
#saveRouteModal .close:hover { color: #cc0000; }
#saveRouteModal .sub-headers {
    font-size: 1.25em;
    font-weight: 600;
    text-align: center;
    margin-bottom: 22px;
    letter-spacing: 0.01em;
    color: #224266;
    font-family: 'Poppins', Arial, sans-serif;
}
#save-route-form-modal input[type="text"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 16px;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 1.05em;
    border: 1.5px solid #ccd4dd;
    border-radius: 5px;
    box-sizing: border-box;
    background: #f7fafd;
    color: #222;
    transition: border 0.2s;
}
#save-route-form-modal input[type="text"]:focus {
    border: 1.5px solid #336699;
    outline: none;
    background: #fff;
}
#confirm-save-route-modal {
    width: 10vw;
    min-width: 80px;
    max-width: 180px;
    margin: 0 auto 0 auto;
    display: block;
    border: none;
    border-radius: 5px;
    background: #336699;
    color: #fff;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 1rem;
    padding: 8px 0 8px 0;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(51, 102, 153, 0.18);
    transition: background 0.2s, box-shadow 0.2s;
}
#confirm-save-route-modal:hover,
#confirm-save-route-modal:focus {
    background: #285180;
    box-shadow: 0 4px 12px rgba(51, 102, 153, 0.25);
    outline: none;
}
#confirm-save-route-modal .export-label {
    color: #fff !important;
    font-family: 'Poppins', Arial, sans-serif;
    font-weight: 500;
    letter-spacing: 0.02em;
}
#save-route-result-modal {
    margin-top: 15px;
    font-weight: bold;
    color: #2fa457;
    text-align: center;
    min-height: 24px;
    font-size: 1em;
}
#klaar-block {
    text-align: center;
    margin-top: 32px;
}

#save-route-klaar {
    width: 10vw;
	height: 5vh;
    min-width: 80px;
    max-width: 180px;
    margin: 0 auto 0 auto;
	margin-top: 3vh;
    display: block;
    border: none;
    border-radius: 5px;
    background: #336699;
    color: #fff;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 1rem;
    padding: 8px 0 8px 0;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(51, 102, 153, 0.18);
    transition: background 0.2s, box-shadow 0.2s;
}
#save-route-klaar:hover,
#save-route-klaar:focus {
    background: #285180;
    box-shadow: 0 4px 12px rgba(51, 102, 153, 0.25);
    outline: none;
}

#save-route-klaar .export-label {
    color: #fff !important;
    font-family: 'Poppins', Arial, sans-serif;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.import-db-route-container {
    width: 100%;
    margin-top: 15px;
    flex-direction: column;
    align-items: center;
}

.import-db-input-row {
    flex-direction: row;
    margin-bottom: 0.5rem; 
}

#route-name-input {
    width: 10vw;
    height: 4.5vh;
    border: 1px solid #b3c1d1;
    border-radius: 5px;
    padding: 2px;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 0.7rem;
    color: #285180;
    background: #f6f8fa;
	text-align: center;
    box-shadow: 0 2px 8px rgba(51, 102, 153, 0.07);
    transition: border 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

#route-name-input:focus {
    border: 1.5px solid #336699;
    box-shadow: 0 4px 12px rgba(51, 102, 153, 0.18);
    outline: none;
}

#import-db-route-btn {
    width: 8vw;
    height: 4vh;
    border: none;
    border-radius: 5px;
    background: #336699;
    color: #fff;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 0.7rem;
    cursor: pointer;
	margin-left: 0.5rem;
    box-shadow: 0 2px 8px rgba(51, 102, 153, 0.18);
    transition: background 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

#import-db-route-btn:hover,
#import-db-route-btn:focus {
    background: #285180;
    box-shadow: 0 4px 12px rgba(51, 102, 153, 0.25);
    outline: none;
}

.import-status {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #285180;
    font-family: 'Poppins', Arial, sans-serif;
}

.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.90),
        rgba(245, 245, 245, 0.70)
    );
    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.90),
        rgba(245, 245, 245, 0.70)
    );
    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.90),
        rgba(245, 245, 245, 0.70)
    );
    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.90),
        rgba(245, 245, 245, 0.70)
    );
    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;
}

.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.90),
        rgba(245, 245, 245, 0.70)
    );
    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.90),
        rgba(245, 245, 245, 0.70)
    );
    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.90),
        rgba(245, 245, 245, 0.70)
    );
    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% - 22.5%);
		min-width: 45%;
		width: auto;
	}

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

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

	#bearingPitchControl {
		display: none !important;
	}

	.context-menu ul li {
		padding: 15px 10px;
		font-size: 0.95rem;
		line-height: 1.2;
	}
	}

	@media screen and (max-width: 600px) and (orientation: portrait) {
	.floating-bar {
		display: none !important;
	}

	.logo-container {
		display: none;
	}

	.mobile-logo-container {
		display: block;
	}

	.mc_logo-image {
		width: 50%;
		position: absolute;
		top: 10px;
	}

	.input-container {
		position: relative;
		margin-top: 1rem;
		top: 5%;
		left: 50%;
		transform: translateX(-50%);
		width: 86%;
		min-height: 15%;
		height: auto;
		background: linear-gradient(
			135deg,
			rgba(255, 255, 255, 0.90),
			rgba(245, 245, 245, 0.70)
		);
		padding: auto;
		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;
		padding-bottom: 20px;
	}

	.tandwiel-image {
		display: none;
	}

	.input-roundtrip {
		position: relative;
		margin-top: 1rem;
		top: 5%;
		left: 50%;
		transform: translateX(-50%);
		width: 86%;
		min-height: 15%;
		height: auto;
		background: linear-gradient(
		135deg,
			rgba(255, 255, 255, 0.90),
			rgba(245, 245, 245, 0.70)
		);
		padding: auto;
		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;
		padding-bottom: 20px;
	}

	.slider-insert {
		width: 100%;
	}

	.slider-output {
		width: 100%;
		margin-left: 10px;
	}


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

	#via-input,
	label[for="via-input"] {
		display: none;
	}

	.export-container {
		display: none;
	}

	.right-floating-bar {
		display: none;
	}

	.play-button-group {
		display: flex;
		flex-direction: row;
		width: 90%;
		margin: 0 auto;
	}

	.play-button-group .start-button,
	.play-button-group .reset-button {
		flex: 1 1 0;
		width: 95%;
		margin-top: 10px;
	}

	input[type="text"].no-zoom,
	textarea.no-zoom {
		width: calc(100% - 40px);
		margin-left: 20px;
		font-size: 16px;
		padding: 5px;
	}

	.start-button,
	.reset-button {
		margin-top: 1rem;
		height: 2.85rem;
	}

	.start-button {
		width: 47.5%;
		padding: 7px;
		border: none;
		font-size: 0.8rem;
		font-family: "Poppins", sans-serif;
		font-weight: 600;
		cursor: pointer;
		margin-right: 2.5%;
	}

	.reset-button {
		width: 47.5%;
		padding: 6px;
		border: 1px solid #ccc;
		font-size: 0.8rem;
		font-family: "Poppins", sans-serif;
		font-weight: 600;
		cursor: pointer;
		margin-right: 1%;
	}

	.hamburger-menu {
		position: absolute;
		top: 12px;
		right: 10px;
		z-index: 1000;
		background: rgba(255, 255, 255, 0.85);
		background: #336699;
		border-radius: 5px;
		padding: 8px;
		box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
	}

	.hamburger-icon {
		width: 1.2rem;
		height: 1.2rem;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		cursor: pointer;
	}

	.hamburger-icon span {
		display: block;
		height: 3px;
		width: 100%;
		background-color: #ffffff;
		border-radius: 2px;
	}

	.mobile-button-container {
		display: none;
		position: fixed;
		top: 60px;
		right: 10px;
		background-color: rgba(245, 245, 245, 0.85);
		border: 1px solid #ccc;
		border-radius: 5px;
		padding: 0.7rem;
		flex-direction: column;
		gap: 0.5rem;
		box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
	}

	.mobile-button-container.show {
		display: flex;
	}

	.mobile-button-container .route-button {
		width: 100%;
	}

	.route-button {
		flex: 1;
		width: auto;
		padding: 3px 6px;
		border: none;
		border-radius: 5px;
		font-size: 0.8rem;
		font-family: "Poppins", sans-serif;
		font-weight: 600;
		cursor: pointer;
		transition: all 0.2s ease-in-out;
		margin: 0 0.15rem 0.4rem 0.15rem;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
	}

	.route-button {
		background-color: #e4f9f8;
		color: #004466;
	}

	.route-button:hover,
	.route-button.active {
		background-color: #2277aa;
		color: white;
		box-shadow: 0 2px 6px rgba(34, 119, 170, 0.3);
	}

	.button-container {
		display: none;
	}

	label[for="start-input"] {
		margin-top: 2.5rem;
	}

	label[for="button-container"] {
		display: none;
	}

	#topBlock {
		transition: all 0.3s ease;
		overflow: hidden;
	}

	#topBlock.collapsed {
		height: 0;
		opacity: 0;
		margin-bottom: 0;
		padding: 0;
	}

	.toggle-circle {
		position: absolute;
		bottom: 10px;
		left: 50%;
		transform: translateX(-50%);
		width: 32px;
		height: 32px;
		background: #fff;
		border-radius: 50%;
		box-shadow: 0 2px 8px rgba(0,0,0,0.1);
		display: flex;
		align-items: center;
		justify-content: center;
		font-weight: 600;
		font-size: 1.15rem;
		color: #336699;
		cursor: pointer;
		user-select: none;
		transition: box-shadow 0.18s;
		z-index: 1001;
		bottom: -40px;
	}

	.toggle-circle:hover {
		box-shadow: 0 3px 10px rgba(0,0,0,0.14);
	}

	.import-modal-content {
		position: relative;
		margin: 12% auto;
		padding: 20px;
		width: 80%;
		max-width: 90%;
		background: linear-gradient(
			135deg,
			rgba(255, 255, 255, 0.90),
			rgba(245, 245, 245, 0.70)
		);
		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: 2.8rem;
		font-weight: bold;
		transition: color 0.2s;
	}

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

	.file-input-container {
		display: none;
	}

	.file-input-label {
		display: none;
	}

	.file-input-label i {
		display: none;
	}

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

	.radio-option {
		display: none;
	}

	.radio-checkmark {
		display: none;
	}

	#import-button {
		display: none;
	}

	.import-status {
		display: none;
	}

	.import-db-route-container {
		width: 100%;
		margin-top: 15px;
		flex-direction: column;
		align-items: center;
	}

	.import-db-input-row {
		flex-direction: row;
		margin-bottom: 0.5rem; 
	}

	#route-name-input {
		width: 42.5%;
		height: 4.5vh;
		font-size: 16px !important;
	}

	#route-name-input:focus {
		border: 1.5px solid #336699;
		box-shadow: 0 4px 12px rgba(51, 102, 153, 0.18);
		outline: none;
	}

	#import-db-route-btn {
		width: 42.5%;
		height: 4vh;
		margin-left: 2.5%;
		font-size: 0.9rem;
	}

	.import-status {
		margin-top: 0.5rem;
		font-size: 0.8rem;
		color: #285180;
		font-family: 'Poppins', Arial, sans-serif;
	}

	#import-db-route-input {
		text-size-adjust: 100%;
		-webkit-text-size-adjust: 100%;
		-moz-text-size-adjust: 100%;
		-ms-text-size-adjust: 100%;
	}
}