body {
    margin: 0;
    overflow: hidden;
    font-family: "Segoe UI", sans-serif;
    background-color: #000;
}

#credits {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 30px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 12px;
    padding: 16px 20px;
    color: #e0f7ff;
    font-family: "Segoe UI", sans-serif;
    font-size: 14px;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
    max-width: 400px;
    z-index: 10;
}
.mission {
    font-family: "Kalpurush", "Noto Sans Bengali", sans-serif;
    font-size: 18px;
    font-weight: bold;
    color: #00ffcc;
    margin-bottom: 10px;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
    text-align: center;
}
.flag-text {
    display: flex;
    align-items: center;
    gap: 12px;
}

.flag-text .flag {
    width: 40px;
    height: auto;
    border-radius: 3px;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.flag-text .text {
    line-height: 1.4;
}

.flag-text .text a {
    color: #00ffff;
    text-decoration: none;
}

.flag-text .text a:hover {
    text-decoration: underline;
}

#ui,
#coordsPanel,
#simulation-steps {
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 12px;
    padding: 16px;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.15);
}

#simulation-steps {
    position: absolute;
    bottom: 10px;
    left: 10px;
    max-width: 320px;
    width: calc(100% - 40px);
}

#ui {
    position: absolute;
    top: 10px;
    left: 10px;
    max-width: 320px;
    width: calc(100% - 40px);
}

#coordsPanel {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 13px;
    max-height: 400px;
    overflow-y: auto;
    line-height: 1.5;
    width: 250px;
}

button {
    background: rgba(0, 255, 255, 0.1);
    color: #00ffe0;
    border: 1px solid #00ffe0;
    border-radius: 6px;
    padding: 8px 14px;
    margin: 6px 6px 10px 0;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

button:hover {
    background: #00ffe0;
    color: #000;
}

label {
    display: block;
    margin: 8px 0 4px;
    font-size: 14px;
}

.range-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

input[type="range"] {
    -webkit-appearance: none;
    width: 120px;
    height: 6px;
    background: #00ffe0;
    border-radius: 4px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: #000;
    border: 2px solid #00ffe0;
    border-radius: 50%;
    cursor: pointer;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    margin-left: 10px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    background-color: #ccc;
    border-radius: 24px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: 0.4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.4s;
}

.toggle-switch input:checked + .slider {
    background-color: #00ffe0;
}

.toggle-switch input:checked + .slider:before {
    transform: translateX(26px);
}

#stats {
    margin-top: 12px;
    font-weight: bold;
    font-size: 14px;
}

@media (max-width: 600px) {
    #ui,
    #coordsPanel {
        font-size: 14px;
        width: auto;
        max-width: 90%;
    }

    button,
    input[type="range"] {
        width: 100%;
        margin-bottom: 10px;
    }

    .range-container {
        flex-direction: column;
        align-items: flex-start;
    }
}
