/* Most of this was wrote by ChatGPT 4o. css is just pain. */

body {
    margin: 0;
    padding: 0;
    font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
    background-color: black;
    color: white;
    touch-action: pan-x pan-y;
}

body.settings-open {
    overflow: hidden;
}

body.settings-open #bottom-status-bar,
body.settings-open .leaflet-control-attribution,
body.settings-open #radar-colorbar {
    display: none !important;
}

/* Radar colorbar legend */
#radar-colorbar {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 68px;
    z-index: 1001;
    width: clamp(220px, 50vw, 500px);
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    border-radius: 6px;
    padding: 6px 10px 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#colorbar-canvas {
    display: block;
    width: 100%;
    height: 14px;
    border-radius: 3px;
    cursor: crosshair;
}

#colorbar-labels {
    position: relative;
    height: 14px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 2px;
    user-select: none;
}

#colorbar-labels span {
    position: absolute;
    transform: translateX(-50%);
    white-space: nowrap;
}

#colorbar-tooltip {
    position: absolute;
    top: -26px;
    padding: 3px 8px;
    background: rgba(0, 0, 0, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    font-size: 11px;
    color: white;
    white-space: nowrap;
    pointer-events: none;
    transform: translateX(-50%);
}

.radar {
    /* background-color: black; */
    width: 40px;
    height: 20px;
    border-radius: 20%;
    box-sizing: border-box;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    margin: 0;
}

.radar.selected-radar {
    background-color: rgba(0, 255, 255, 0.28);
    outline: 1px solid rgba(0, 255, 255, 0.9);
}

.user-marker {
    width: 14px;
    height: 20px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    margin: 0;
}

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

#bottom-status-bar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 1002;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bottom-status-left {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.bottom-status-controls {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.icon-control {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
}

.icon-control i {
    font-size: 15px;
}

.bottom-status-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    text-align: right;
    max-width: 100%;
}

#radar-runtime-status,
#radar-runtime-timer {
    white-space: nowrap;
    overflow: visible;
    text-overflow: ellipsis;
    max-width: 100%;
    font-variant-numeric: tabular-nums;
}

#radar-runtime-status {
    max-width: min(62vw, 760px);
}

#status-product-switch {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    padding: 1px 4px;
    font-size: 12px;
    cursor: pointer;
    outline: none;
    font-family: inherit;
    vertical-align: middle;
}
#status-product-switch:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.4);
}
#status-product-switch:focus {
    border-color: rgba(100, 160, 255, 0.7);
    box-shadow: 0 0 0 1px rgba(100, 160, 255, 0.3);
}
#status-product-switch option {
    background: #1a1a2e;
    color: #fff;
}

.status-level-badge {
    display: inline-block;
    background: rgba(100, 160, 255, 0.25);
    color: rgba(200, 220, 255, 0.95);
    border: 1px solid rgba(100, 160, 255, 0.4);
    border-radius: 3px;
    padding: 0 4px;
    font-size: 11px;
    font-weight: 600;
    vertical-align: middle;
    letter-spacing: 0.5px;
}

#loading-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 1.5em;
    z-index: 1005;
    flex-direction: column;
}

.spinner {
    border: 8px solid rgba(255, 255, 255, 0.3);
    border-top: 8px solid white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.taskbar {
    padding: 10px;
    background-color: transparent;
    color: white;
    font-size: 14px;
    border-radius: 5px;
    width: 100%;
    
}

#settings-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    max-width: 90vw;
    backdrop-filter: blur(10px);
    z-index: 1008;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.settings-container {
    display: flex;
    flex-direction: column;
    max-height: min(86vh, 900px);
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(0, 0, 0, 0.3);
}

.settings-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: white;
    flex: 1;
}

.close-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
    margin: 0;
    flex-shrink: 0;
}

.close-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.settings-body {
    padding: 24px 28px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.settings-body::-webkit-scrollbar {
    width: 8px;
}

.settings-body::-webkit-scrollbar-track {
    background: transparent;
}

.settings-body::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.settings-body::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.settings-section {
    margin-bottom: 20px;
}

.settings-section:last-child {
    margin-bottom: 0;
}

.settings-section h3 {
    margin: 0 0 12px 0;
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 8px;
}

.settings-section h3 i {
    color: #007BFF;
}

.setting-item {
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.setting-item:last-child {
    margin-bottom: 0;
}

.setting-item label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.info-icon {
    color: rgba(255, 255, 255, 0.4);
    cursor: help;
    font-size: 14px;
    transition: color 0.2s ease;
}

.info-icon:hover {
    color: #007BFF;
}

.input-group {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 90px;
}

.setting-item input[type="number"] {
    width: 70px;
    padding: 8px 12px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: white;
    font-size: 14px;
    transition: all 0.2s ease;
}

.setting-item input[type="text"] {
    width: 250px;
    padding: 8px 12px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: white;
    font-size: 14px;
    box-sizing: border-box;
    margin-left: auto;
    transition: all 0.2s ease;
}

.setting-item input[type="number"]:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.08);
}

.setting-item input[type="text"]:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.08);
}

.setting-item input[type="number"]:focus {
    outline: none;
    border-color: #007BFF;
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.setting-item input[type="text"]:focus {
    outline: none;
    border-color: #007BFF;
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.setting-item select {
    min-width: 250px;
    padding: 8px 12px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.setting-item select:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.08);
}

.setting-item select:focus {
    outline: none;
    border-color: #007BFF;
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.setting-item select option {
    background-color: #1a1a1a;
    color: white;
}

/* Colormap controls row */
.cmap-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 250px;
}

.cmap-controls select {
    flex: 1;
    min-width: 0;
}

.cmap-action-btn {
    width: 34px;
    height: 34px;
    min-width: 34px;
    padding: 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
}

.cmap-action-btn:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background-color: rgba(255, 255, 255, 0.12);
    color: white;
}

.cmap-delete-btn:hover {
    border-color: rgba(255, 80, 80, 0.6);
    background-color: rgba(255, 80, 80, 0.15);
    color: #ff6666;
}

.unit {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.settings-footer {
    padding: 20px 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(0, 0, 0, 0.3);
}

#version-info {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.version-item {
    margin-bottom: 4px;
    display: flex;
    gap: 8px;
}

.version-item:last-child {
    margin-bottom: 0;
}

.version-item strong {
    color: rgba(255, 255, 255, 0.8);
    min-width: 110px;
    font-size: 12px;
}

.version-item span {
    color: rgba(255, 255, 255, 0.6);
}

/* Mobile responsive adjustments */
@media (max-width: 600px) {
    #settings-panel {
        left: 8px;
        right: 8px;
        top: calc(env(safe-area-inset-top, 0px) + 8px);
        bottom: calc(env(safe-area-inset-bottom, 0px) + 8px);
        transform: none;
        width: auto;
        height: auto;
        max-width: none;
        border-radius: 12px;
    }

    .settings-container {
        height: 100%;
        max-height: none;
    }

    .settings-header {
        padding: 12px 14px;
    }

    .settings-header h2 {
        font-size: 18px;
    }

    .settings-body {
        padding: 12px 14px;
    }

    .setting-item {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .setting-item label {
        white-space: normal;
    }

    .input-group {
        width: 100%;
        min-width: 0;
    }

    .setting-item input[type="number"],
    .setting-item input[type="text"],
    .setting-item select {
        width: 100%;
        min-width: 0;
    }

    .cmap-controls {
        min-width: 0;
        width: 100%;
    }

    .cmap-controls select {
        width: 100%;
        min-width: 0;
    }

    .settings-footer {
        padding: 10px 14px;
    }

    .version-item {
        flex-direction: column;
        gap: 2px;
    }

    .version-item strong {
        min-width: auto;
    }
}

button {
    padding: 10px 20px;
    background-color: #0056b3; /* No background */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: color 0.3s ease, background-color 0.3s ease;
    margin: 5px 0; /* Reduced margin */
}

button:hover {
    color: #007bff96; /* Change text color on hover */
    background-color: #0056b3;
}

button:focus {
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

input {
    padding: 5px; /* Reduced padding */
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px; /* Reduced font size */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    margin-right: 5px; /* Reduced margin */
    margin: 5px 0; /* Reduced margin */
}

input:focus {
    border-color: #007BFF;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.349);
    outline: none;
}

#alert-text-model {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Prevent scrolling on the entire map */
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
}
#alert-text-model-content {
    margin: 10% auto; /* Adjust top margin to position higher */
    padding: 20px;
    width: 60%; /* Default width */
    border: 1px solid #888;
    border-radius: 10px;
    height: 60%; /* Adjust height as needed */
    overflow-y: auto; /* Add scroll if content overflows */
    scrollbar-width: none; /* Hide scrollbar for Firefox */
    -ms-overflow-style: none; /* Hide scrollbar for Internet Explorer and Edge */
}

/* Hide scrollbar for WebKit browsers (Chrome, Safari) */
#alert-text-model-content::-webkit-scrollbar {
    display: none;
}

/* Media query for larger screens */
@media (min-width: 1200px) {
    #alert-text-model-content {
        width: 35%; /* Adjust width for larger screens */
    }
}

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

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

/* Style the custom attribution control */
.leaflet-control-attribution {
    background: rgba(255, 255, 255, 0.7); /* Semi-transparent background */
    padding: 5px;
    font-size: 12px;
    border-radius: 5px;
    position: fixed;
    right: 12px;
    bottom: 62px;
    z-index: 1004;
}

@media (max-width: 600px) {
    #radar-colorbar {
        width: calc(100vw - 24px);
        bottom: 68px;
    }

    #colorbar-labels {
        font-size: 9px;
    }

    .bottom-status-controls {
        gap: 8px;
    }

    .icon-control {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }

    .bottom-status-right {
        gap: 6px;
    }

    #radar-runtime-status {
        max-width: 56vw;
        font-size: 12px;
    }

    .leaflet-control-attribution {
        font-size: 10px; /* Smaller font size on mobile */
        padding: 3px;
        bottom: 102px;
    }
}

/* ── Marker dialog overlay ── */
#marker-dialog-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10001;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}

#marker-dialog {
    background: #1e1e1e;
    color: #eee;
    border-radius: 10px;
    padding: 20px 24px;
    width: 320px;
    max-width: 92vw;
    box-shadow: 0 8px 32px rgba(0,0,0,0.6);
    font-family: inherit;
}

#marker-dialog-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 12px;
    text-align: center;
}

.marker-dialog-label {
    display: block;
    font-size: 12px;
    color: #aaa;
    margin: 8px 0 4px;
}

#marker-dialog-name {
    width: 100%;
    box-sizing: border-box;
    padding: 6px 10px;
    border: 1px solid #555;
    border-radius: 5px;
    background: #2a2a2a;
    color: #fff;
    font-size: 14px;
}

#marker-dialog-name:focus {
    border-color: #4488ff;
    outline: none;
}

#marker-dialog-icons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin: 4px 0;
}

.marker-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    border: 2px solid transparent;
    background: #2a2a2a;
    color: #ccc;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s, background 0.15s;
}

.marker-icon-btn:hover {
    background: #333;
}

.marker-icon-btn.selected {
    border-color: #4488ff;
    background: #293a52;
    color: #fff;
}

#marker-dialog-colors {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin: 4px 0;
}

.marker-color-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.15s, transform 0.15s;
}

.marker-color-btn:hover {
    transform: scale(1.15);
}

.marker-color-btn.selected {
    border-color: #fff;
    box-shadow: 0 0 6px rgba(255,255,255,0.5);
}

#marker-dialog-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
}

#marker-dialog-buttons button {
    padding: 6px 18px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 13px;
}

#marker-dialog-cancel {
    background: #444;
    color: #ccc;
}

#marker-dialog-cancel:hover {
    background: #555;
}

#marker-dialog-ok {
    background: #4488ff;
    color: #fff;
}

#marker-dialog-ok:hover {
    background: #3366dd;
}

/* ── Rename dialog overlay ── */
#rename-dialog-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10001;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}

#rename-dialog {
    background: #1e1e1e;
    color: #eee;
    border-radius: 10px;
    padding: 20px 24px;
    width: 320px;
    max-width: 92vw;
    box-shadow: 0 8px 32px rgba(0,0,0,0.6);
    font-family: inherit;
}

#rename-dialog-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 12px;
    text-align: center;
}

.rename-dialog-label {
    display: block;
    font-size: 12px;
    color: #aaa;
    margin: 8px 0 4px;
}

#rename-dialog-input {
    width: 100%;
    box-sizing: border-box;
    padding: 6px 10px;
    border: 1px solid #555;
    border-radius: 5px;
    background: #2a2a2a;
    color: #fff;
    font-size: 14px;
}

#rename-dialog-input:focus {
    border-color: #4488ff;
    outline: none;
}

#rename-dialog-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
}

#rename-dialog-buttons button {
    padding: 6px 18px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 13px;
}

#rename-dialog-cancel {
    background: #444;
    color: #ccc;
}

#rename-dialog-cancel:hover {
    background: #555;
}

#rename-dialog-ok {
    background: #4488ff;
    color: #fff;
}

#rename-dialog-ok:hover {
    background: #3366dd;
}

/* ── Confirm dialog overlay ── */
#confirm-dialog-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10001;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}

#confirm-dialog {
    background: #1e1e1e;
    color: #eee;
    border-radius: 10px;
    padding: 20px 24px;
    width: 320px;
    max-width: 92vw;
    box-shadow: 0 8px 32px rgba(0,0,0,0.6);
    font-family: inherit;
}

#confirm-dialog-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 12px;
    text-align: center;
}

#confirm-dialog-message {
    font-size: 14px;
    color: #ccc;
    text-align: center;
    margin: 12px 0 16px;
}

#confirm-dialog-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
}

#confirm-dialog-buttons button {
    padding: 6px 18px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 13px;
}

#confirm-dialog-cancel {
    background: #444;
    color: #ccc;
}

#confirm-dialog-cancel:hover {
    background: #555;
}

#confirm-dialog-ok {
    background: #e04040;
    color: #fff;
}

#confirm-dialog-ok:hover {
    background: #c03030;
}

#notification-container {
    position: fixed;
    bottom: 70px;
    right: 16px;
    z-index: 10002;
    display: flex;
    flex-direction: column-reverse;
    gap: 8px;
    pointer-events: none;
}

.notification-toast {
    pointer-events: auto;
    min-width: 240px;
    max-width: 360px;
    padding: 10px 36px 10px 14px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(10px);
    border-left: 4px solid var(--toast-color, #fff);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 13px;
    line-height: 1.4;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
    animation: toast-in 0.3s ease forwards;
    transition: opacity 0.3s ease, transform 0.3s ease;
    position: relative;
}

.notification-toast-close {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.8);
    border-radius: 4px;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.notification-toast-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.notification-toast.toast-out {
    opacity: 0;
    transform: translateX(30px);
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}