:root {
    --dark_blue: #002f86;
    --dark_blue_light_shade: rgba(0, 47, 134, 0.8);
    --light_blue: #809ac5;
    --light_blue_light_shade: rgba(128, 154, 197, 0.3);
    --red: #d01231;
    --red_light_shade: rgba(208, 18, 49, 0.8);
    --dark_grey: #333333;
    --light_grey: #cccccc;
    --background: #f0f0f2;
    --scale_factor: 2;
    --pixel_to_cm_ratio: calc(320 / 49.2);
}

body {
    margin: 0;
    padding: 1rem 2vw;
    font-family: 'Lato', Helvetica, Arial, sans-serif;
    background: var(--light_blue_light_shade);
    width: 100%;
    min-height: 100vh;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
}

body.fade-in-from-bottom {
    animation: fadeInFromBottom 0.2s ease-out;
}

body.slide-in-left {
    animation: slideInFromLeft 0.2s ease-out;
}

body.slide-in-right {
    animation: slideInFromRight 0.2s ease-out;
}

body.page-transition-out-left {
    animation: slideOutToLeft 0.2s ease-in forwards;
}

body.page-transition-out-right {
    animation: slideOutToRight 0.2s ease-in forwards;
}

body.page-transition-out-top {
    animation: fadeOutToTop 0.2s ease-in forwards;
}

body.page-transition-out-bottom {
    animation: fadeOutToBottom 0.2s ease-in forwards;
}

body.slide-in-from-top {
    animation: fadeInFromTop 0.2s ease-out;
}

.splash-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.6s ease;
}

.splash-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.splash-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.splash-row {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.splash-typewriter {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 8px;
    font-family: 'Lato', Helvetica, Arial, sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: black;
    white-space: nowrap;
    border-right: 2px solid transparent;
    line-height: 1.2em;
}

.splash-typewriter.typing {
    border-right-color: black;
}

.splash-typewriter.done {
    border-right-color: transparent;
}

.splash-drop-container.no-ripples::before,
.splash-drop-container.no-ripples::after {
    display: none;
}

.splash-drop-container {
    position: relative;
    width: 18vw;
    min-width: 300px;
    max-width: 360px;
    transform: translateY(-25%);
}

.splash-overlay.active .splash-drop-container {
    animation: splash-drop 1s linear forwards;
}

.splash-triangle {
    display: block;
    width: 100%;
    height: auto;
}

.splash-logo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
}

.splash-overlay.active .splash-logo {
    animation: splash-appear 2s 2.5s forwards;
}

.splash-drop-container::before,
.splash-drop-container::after {
    content: '';
    position: absolute;
    z-index: -1;
    top: 100%;
    left: 47%;
    transform: translate(-50%, -50%) rotateX(75deg);
    border-radius: 100%;
    opacity: 0;
    width: 0;
    height: 0;
    border: 4px solid var(--light_blue);
    pointer-events: none;
}

.splash-overlay.active .splash-drop-container::before {
    animation: splash-ripple 2s ease-out 1s;
}

.splash-overlay.active .splash-drop-container::after {
    animation: splash-ripple 2s ease-out 1.7s;
}

@keyframes splash-drop {
    0% {
        transform: translateY(-85%);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes splash-ripple {
    0% {
        width: 0px;
        height: 0px;
        opacity: 0;
    }

    25% {
        opacity: 1;
    }

    100% {
        width: 500px;
        height: 500px;
        opacity: 0;
    }
}

@keyframes splash-appear {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(100vw);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-100vw);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutToLeft {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(-100vw);
    }
}

@keyframes slideOutToRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(100vw);
    }
}

@keyframes fadeInFromBottom {
    from {
        opacity: 0;
        transform: translateY(100vh);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOutToTop {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-100vh);
        background-color: white;
    }
}

@keyframes fadeInFromTop {
    from {
        opacity: 0;
        transform: translateY(-100vh);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOutToBottom {
    from {
        opacity: 1;
        transform: translateY(0);
        background-color: var(--light_blue_light_shade);
    }

    to {
        opacity: 0;
        transform: translateY(100vh);
    }
}

@keyframes langFadeOut {
    from {
        opacity: 1;
        filter: blur(0);
        scale: 1;

    }

    to {
        opacity: 0.2;
        filter: blur(4px);
        scale: 0.95;
    }
}

@keyframes langFadeIn {
    from {
        opacity: 0.2;
        filter: blur(4px);
        scale: 0.95;
    }

    to {
        opacity: 1;
        filter: blur(0);
        scale: 1;
    }
}

body.lang-transition-out {
    animation: langFadeOut 0.2s ease-in forwards;
}

body.lang-transition-in {
    animation: langFadeIn 0.2s ease-out;
}

body.login-page {
    margin: 0;
    padding: 0;
    background: url(images/background.jpg) no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-screen {
    position: relative;
    width: 100%;
    max-width: 30rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
    margin: 0.5rem;
}

.login-panel {
    position: relative;
    width: 100%;
    max-width: 30rem;
    background: linear-gradient(to bottom, rgba(200, 200, 200, 0.15), rgba(0, 0, 0, 0.5));
    border-radius: 12px;
    overflow: hidden;
    transition: opacity 0.3s, transform 0.3s cubic-bezier(0.17, -0.65, 0.665, 1.25);
    transform: scale(1);
}

.login-panel.inactive {
    opacity: 0;
    transform: scale(1.1);
}

.login-panel__form {
    padding: 3rem 2.5rem 2rem;
    text-align: center;
}

.login-panel__logo {
    display: block;
    max-width: 90%;
    height: auto;
    margin: 0 auto 1.5rem;
}

.login-panel__row {
    height: 3rem;
    padding-top: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
}

.login-panel__icon {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    margin-right: 0.5rem;
    flex-shrink: 0;
    overflow: visible;
    cursor: pointer;
}

.login-panel__icon path {
    stroke: rgba(255, 255, 255, 0.9);
    fill: none;
    stroke-width: 1;
}

.login-panel__icon--name path {
    stroke-dasharray: 73.5;
    stroke-dashoffset: 73.5;
    animation: loginAnimatePath 2s 0.5s forwards;
}

.login-panel__icon--pass path {
    stroke-dasharray: 92.1;
    stroke-dashoffset: 92.1;
    animation: loginAnimatePath 2s 0.5s forwards;
}

.login-panel__input {
    display: inline-block;
    width: 100%;
    height: 100%;
    padding-left: 1rem;
    font-size: 1rem;
    background: transparent;
    color: white;
    border: none;
    outline: none;
    font-family: 'Lato', Helvetica, Arial, sans-serif;
}

.login-panel__input::placeholder {
    color: white;
}

.login-panel__input:-webkit-autofill,
.login-panel__input:-webkit-autofill:hover,
.login-panel__input:-webkit-autofill:focus,
.login-panel__input:-webkit-autofill:active {
    -webkit-text-fill-color: white;
    -webkit-box-shadow: 0 0 0px 9999px #0a1628 inset;
    caret-color: white;
}

.login-panel__input::-ms-reveal {
    filter: invert(1);
}

.login-panel__input::-webkit-reveal {
    filter: invert(1);
}

.login-panel__input::reveal {
    filter: invert(1);
}

.login-panel__submit {
    position: relative;
    width: 100%;
    height: 3rem;
    margin: 2.5rem 0 1.5rem;
    color: white;
    background: var(--red_light_shade);
    font-size: 1.2rem;
    font-weight: bold;
    font-family: 'Lato', Helvetica, Arial, sans-serif;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    overflow: hidden;
    transition: width 0.3s 0.15s, font-size 0.1s 0.15s, background-color 0.2s;
}

.login-panel__submit::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -1rem;
    margin-top: -1rem;
    width: 2rem;
    height: 2rem;
    border: 2px dotted #fff;
    border-radius: 50%;
    border-left: none;
    border-bottom: none;
    transition: opacity 0.1s 0.4s;
    opacity: 0;
}

.login-panel__submit.processing {
    width: 3.5rem;
    font-size: 0;
}

.login-panel__submit.processing::after {
    opacity: 1;
    animation: loginRotate 0.5s 0.4s infinite linear;
}

.login-panel__submit.success {
    transition: opacity 0.2s 0.1s;
    opacity: 0;
}

.login-panel__submit.success::after {
    transition: opacity 0.1s 0s;
    opacity: 0;
    animation: none;
}

.login-panel__error {
    color: rgba(255, 120, 130, 0.9);
    margin-top: 0.5rem;
    font-size: 0.9rem;
    display: none;
}

.login-ripple-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    pointer-events: none;
    overflow: hidden;
}

.login-ripple-overlay .ripple-circle {
    position: absolute;
    border-radius: 50%;
    background: white;
    transform: scale(0);
    animation: loginRippleExpand 0.6s ease-out forwards;
}

.login-lang-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.login-page {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 4px 8px;
    transition: background 0.2s;
}

.login-footer {
    padding: 1rem 0 0;
    text-align: center;
}

.login-impressum-btn {
    color: rgba(255, 255, 255, 0.6);
}

.login-impressum-btn:hover {
    color: rgba(255, 255, 255, 0.9);
}

@keyframes loginAnimatePath {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes loginRotate {
    to {
        transform: rotate(360deg);
    }
}

@keyframes loginRippleExpand {
    0% {
        transform: scale(0);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.logout-ripple-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    pointer-events: none;
    background: url(images/background.jpg) no-repeat center center fixed;
    background-size: cover;
    clip-path: circle(0px at 50% 50%);
}

.login-container {
    background: white;
    padding: 2rem 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    min-width: 260px;
    text-align: center;
    margin: 2vh auto;
}

.login-container h2 {
    margin-bottom: 1.5rem;
    color: var(--dark_grey);
}

.login-form {
    display: flex;
    flex-direction: column;
}

.login-form input {
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--light_blue_light_shade);
    border-radius: 4px;
    font-size: 1rem;
}

.login-form button {
    padding: 0.75rem;
    background-color: var(--dark_blue_light_shade);
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    height: 44px;
    transition: background-color 0.2s ease-in-out;
}

.error-message {
    color: var(--red_light_shade);
    margin-top: 1rem;
    font-size: 0.9rem;
}

.home-container {
    width: 95%;
    padding: 1rem 2vw;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    min-height: calc(100vh - 2rem);
    display: flex;
    flex-direction: column;
}

.tables-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    flex: 1;
}

.no-device-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 500;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.no-device-card {
    background: white;
    border-radius: 12px;
    padding: 2rem 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 450px;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.SVGRepo_iconCarrier {
    color: var(--dark_blue);
    margin-bottom: 1.5rem;
    opacity: 0.8;
}


.usb-plug {
    animation: plugMoveRight 2.5s ease-in-out infinite;
    transform-origin: center;
}

.usb-receiver {
    animation: plugMoveLeft 2.5s ease-in-out infinite;
    transform-origin: center;
}

@keyframes plugMoveRight {

    0%,
    100% {
        transform: translateY(-15px);
    }

    50% {
        transform: translateY(15px);
    }
}

@keyframes plugMoveLeft {

    0%,
    100% {
        transform: translateY(15px);
    }

    50% {
        transform: translateY(15px);
    }
}

.no-device-icon svg .disconnect-line {
    stroke: var(--red_light_shade);
    animation: lineFlash 2.5s ease-in-out infinite;
}

@keyframes lineFlash {

    0%,
    100% {
        stroke: var(--red_light_shade);
        stroke-width: 25;
    }

    50% {
        stroke: var(--red);
        stroke-width: 28;
    }
}

.no-device-card h2 {
    color: var(--dark_blue);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.no-device-card p {
    color: black;
    font-size: 1rem;
    line-height: 1.5;
}

.info-section {
    margin: 1rem 0;
    flex: 1 1 30%;
    min-width: 450px;
    background-color: var(--light_blue_light_shade);
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid var(--light_blue);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 1rem;
    box-sizing: border-box;
}

.info-section h2 {
    color: var(--dark_blue);
    margin-bottom: 0.5rem;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.info-table td {
    padding: 0.75rem 1rem;
    max-width: 100%;
    border-top: 1px solid var(--light_grey);
    overflow: hidden;
}



.error-list-table th:nth-child(1),
.error-list-table td:nth-child(1) {
    width: 2rem;
    white-space: nowrap;
}

.error-list-table th:nth-child(2),
.error-list-table td:nth-child(2) {
    white-space: nowrap;
}

.error-list-table th {
    padding: 0.75rem 1rem;
    text-align: center;
    font-weight: bold;
    color: var(--dark_grey);
    border-bottom: 2px solid var(--light_grey);
}

.info-table td:first-child {
    font-weight: bold;
    color: var(--dark_grey);
    max-width: 100%;
    width: 40%;
}

.info-table td:last-child {
    text-align: right;
}

.error-list-table td {
    text-align: center;
}

.error-list-table td:last-child {
    text-align: center;
}

.info-table input[type="checkbox"] {
    width: 25px;
    height: 25px;
    align-self: center;
    margin: 5;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    border-radius: 3px;
    background-color: var(--light_blue_light_shade);
    position: relative;
}

.info-table input[type="checkbox"]:checked {
    background-color: white;
}

.info-table input[type="checkbox"]:checked::after {
    content: '✓';
    color: black;
    font-size: 1rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.info-table input[type="checkbox"]:disabled {
    cursor: default;
    background-color: var(--light_grey);
}

.info-table input[type="checkbox"]:disabled:checked {
    background-color: var(--light_grey);
}

.toggle-switch-input {
    display: none;
}

.toggle-switch {
    position: relative;
    display: inline-flex;
    flex: 1;
    width: 100%;
    height: 35px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    user-select: none;
    align-self: center;
}

.toggle-switch-bg {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: var(--light_grey);
    color: var(--dark_grey);
    display: flex;
}

.toggle-switch-active {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: var(--dark_blue);
    color: white;
    clip-path: inset(0 50% 0 0);
    transition: clip-path .3s cubic-bezier(0, 0, 0, 1);
    display: flex;
}

.toggle-switch-input:checked+.toggle-switch .toggle-switch-active {
    clip-path: inset(0 0 0 50%);
}

.toggle-option {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    white-space: nowrap;
    padding: 0 4px;
    box-sizing: border-box;
}

.toggle-switch-disabled {
    cursor: default;
    pointer-events: none;
    opacity: 0.5;
}

.field-inactive-hint {
    margin-left: 0.25rem;
    font-style: italic;
    opacity: 0.6;
}

.info-table tr:first-child td {
    border-top: none;
}

#live-view-info tr:last-child td {
    border-bottom: 1px solid var(--light_grey);
}

.config-subheader:first-child td {
    border-top: none;
}

.config-subheader-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.config-subheader h3 {
    color: var(--dark_blue);
    margin: 0.3rem 1rem 0.3rem 0.3rem;
    text-align: left;
}

.config-subheader-arrow {
    display: inline-block;
    width: 0.7em;
    height: 0.7em;
    vertical-align: middle;
    transition: transform 0.2s ease;
    user-select: none;
}

.config-subheader-arrow.collapsed {
    transform: rotate(-90deg);
}

.gear-dropdown-logout {
    color: var(--red_light_shade);
}

.gear-dropdown-logout img {
    filter: invert(27%) sepia(51%) saturate(2878%) hue-rotate(346deg) brightness(104%) contrast(97%);
}

.gear-dropdown-logout:hover {
    background: var(--red_light_shade);
    color: var(--red_light_shade);
}

.logo {
    width: 18vw;
    min-width: 300px;
    max-width: 360px;
    height: auto;
    padding: 1rem 1.5vw 0 1.5vw;
}

.header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: stretch;
    box-sizing: border-box;
    margin: -1rem -2vw 0 -2vw;
    width: calc(100% + 4vw);
    z-index: 501;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 1rem;
    text-align: center;
}

.header-right {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin-left: auto;
}

.header-nav {
    display: flex;
    gap: 0;
    align-items: stretch;
}

.nav-btn {
    background-color: white;
    color: var(--dark_grey);
    border: none;
    border-radius: 0px;
    padding: 10px 1rem;
    font-family: 'Lato', Helvetica, Arial, sans-serif;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
    max-width: 120px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 5vh;
}

.nav-btn:hover {
    background-color: var(--light_blue_light_shade);
    border-bottom: 3px solid var(--light_blue);
}

.nav-btn-active {
    background-color: var(--light_blue_light_shade);
    border-bottom: 3px solid var(--light_blue);
}

.language-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    padding: 10px 2vw 10px 1rem;
}

.language_button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.language_button img {
    width: 20px;
    height: auto;
    padding: 4px;
}

.information-header {
    margin: 1rem 0 0.5rem 0;
}

.information-text {
    margin: 0.5rem;
}

.stream-btn,
.standard-btn,
.logout-btn {
    background-color: var(--dark_blue);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    margin: 0;
    white-space: nowrap;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;

    font-size: clamp(0.85rem, 1.4vw, 1rem);
    padding: clamp(0.35rem, 0.8vw, 0.75rem) clamp(0.6rem, 1.4vw, 1.5rem);
}

.driver-download-btn {
    background-color: var(--dark_blue);
    color: white !important;
    text-decoration: none !important;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    margin: 0;
    white-space: nowrap;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;

    font-size: clamp(0.85rem, 1.4vw, 1rem);
    padding: clamp(0.35rem, 0.8vw, 0.75rem) clamp(0.6rem, 1.4vw, 1.5rem);
}

.standard-btn img {
    filter: brightness(0) invert(1);
}

.standard-btn:disabled img {
    filter: none;
}

.logout-btn {
    background-color: var(--red_light_shade);
}

.get-value-btn,
.save-row-btn {
    display: block;
    margin: 0;
    background-color: var(--dark_blue);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    width: 35px;
    height: 35px;
    transition: background-color 0.3s ease;
}

.save-row-btn.saving {
    background-color: var(--dark_blue);
    cursor: wait;
}

.save-row-btn.save-ok {
    background-color: green;
}

.save-row-btn.save-error {
    background-color: var(--red);
}

.btn-spinner {
    display: inline-block;
    width: 1em;
    height: 1em;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
}

.btn-status-icon {
    font-size: 1.1em;
    font-weight: bold;
    line-height: 1;
    vertical-align: middle;
}

.btn-icon {
    width: 1em;
    height: 1em;
    vertical-align: middle;
}

.field-status {
    align-self: center;
}

.input-label {
    margin: 2rem auto 0;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
}

.live-view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.standard-btn:disabled {
    background-color: var(--light_grey);
    color: var(--dark_grey);
    cursor: not-allowed;
}

.info-table input[type="text"] {
    flex: 1;
    border: none;
    background-color: white;
    padding: 8px;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    width: 100%;
    color: var(--dark_grey);
    border-radius: 4px;
}

.custom-alert-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1500;
}

.logging-config-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
}

.custom-alert {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 8px;
    padding: 2rem 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 2001;
    text-align: center;
    box-sizing: border-box;
}

#customAlert {
    width: 380px;
    z-index: 3001;
}

#zeroPointPopup,
#exportPdfPopup {
    width: 500px;
    text-align: left;
}

#zeroPointPopup h3,
#exportPdfPopup h3 {
    text-align: center;
    margin-bottom: 0.5rem;
}

.pdf-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1rem 0;
}

.pdf-form-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pdf-form-row label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark_grey);
}

.pdf-form-input {
    width: 100%;
    padding: 8px 10px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.pdf-form-input:focus {
    outline: none;
    border-color: var(--light_blue);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.15);
}

.error-codes-popup,
#aboutPopup,
#contactPopup,
#settingsPopup {
    width: 400px;
    z-index: 1501;
}

#settingsPopup {
    max-height: 80vh;
    overflow-y: auto;
}

.custom-alert p {
    text-align: left;
    margin: 1rem 0;
    line-height: 1.5;
}

.language_button,
.help-dropdown-container,
.gear-dropdown-container {
    position: relative;
    display: inline-block;
    margin: 4px;
}

.help-btn,
.gear-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    vertical-align: middle;
    font-family: 'Lato', Helvetica, Arial, sans-serif;
}

.language_button:hover,
.impressum-btn:hover,
.help-btn:hover,
.gear-btn:hover {
    transform: translateY(-2px);
}

.help-dropdown,
.gear-dropdown {
    position: absolute;
    right: 0;
    top: 32px;
    border: 1px solid var(--light_grey);
    background: white;
    border-radius: 0 0 8px 8px;
    min-width: 120px;
    max-width: 90vw;
    box-sizing: border-box;
    z-index: 20;
}

.gear-dropdown-item,
.help-dropdown-item {
    display: block;
    width: 100%;
    padding: 10px 18px;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    font-size: 1em;
    box-sizing: border-box;
    font-family: 'Lato', Helvetica, Arial, sans-serif;
}

.help-dropdown-item:hover,
.serial-dropdown-item:hover,
.gear-dropdown-item:hover {
    background: var(--light_blue_light_shade);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

#modalOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: auto;
}

.serial-ports-list {
    max-height: 40vh;
    overflow-y: auto;
    margin-top: 8px;
}

.serial-ports-list .port-item {
    display: block;
    width: 100%;
    text-align: center;
    padding: 8px 12px;
    margin: 4px 0;
    border: 1px solid var(--light_grey);
    border-radius: 4px;
    background: var(--light_blue);
    cursor: pointer;
}

.serial-ports-list .port-item:hover {
    background: var(--dark_blue_light_shade);
}

.serial-dropdown-btn {
    padding: 6px 12px;
    border: 1px solid var(--dark_blue);
    border-radius: 4px;
    background: white;
    cursor: pointer;
}

.serial-port-picker-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.serial-port-current {
    width: 100%;
    margin-top: 6px;
    color: var(--dark_grey);
}

.serial-port-current-inline {
    margin-left: 6px;
    color: var(--dark_blue);
}

.standard-btn-div {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(6px, 1vw, 8px);
    width: 100%;
    flex-wrap: nowrap;
    margin: 1rem 0;
}

.driver-wizard-btn-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0;
}

.dfu-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(6px, 1vw, 12px);
    width: 100%;
    flex-wrap: nowrap;
}

.firmware-select-container {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}


.config-selector-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.config-selector-container label {
    white-space: nowrap;
    font-weight: 500;
}

.config-selector-container .config-select {
    width: auto;
    min-width: 4rem;
    flex: 0;
    padding: 4px 6px;
}

.dropdown-menu,
.firmware-select {
    font: inherit;
    color: var(--dark_grey);
    background-color: white;
    border: 1px solid white;
    border-radius: 4px;
    padding: 6px 36px 6px 10px;
    line-height: 1.2;
    box-sizing: border-box;
    width: 50%;
    flex: 1;
    height: 40px;


    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background-image: url("images/down-arrow.png");
    background-repeat: no-repeat;
    background-position: right 12px center;

    transition: background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
    cursor: pointer;
}

.dropdown-menu {
    height: 35px;
}

.dropdown-menu:hover,
.firmware-select:hover {
    border-color: var(--dark_blue);
    background-color: white;
}

.dropdown-menu:focus-visible,
.firmware-select:focus-visible {
    outline: none;
    outline-offset: 2px;
}

#download:focus-visible,
#bridgeDownload:focus-visible,
#dfuConfirmOkBtn:focus-visible {
    outline-offset: 2px;
}

.dropdown-menu:disabled,
.firmware-select:disabled {
    background-color: var(--light_grey);
    color: var(--dark_grey);
    cursor: not-allowed;
}

.select-date {
    flex: 1;
    font: inherit;
    color: var(--dark_grey);
    background-color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 6px 6px 10px;
    height: 35px;
    line-height: 1.2;
    box-sizing: border-box;
    width: 50%;

    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px 12px;

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    transition: background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
    cursor: pointer;
}

.select-date:hover {
    border-color: var(--dark_blue);
    background-color: white;
}

.select-date:focus-visible {
    outline: none;
    outline-offset: 2px;
}

.select-date:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.input-container {
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    gap: 8px;
    width: 100%;
}

.ui-buttons-row {
    display: grid;
    grid-template-columns: repeat(2, auto);
    grid-auto-rows: 36px;
    gap: 6px;
    justify-content: start;
    align-items: stretch;
    margin-top: 8px;
}

.ui-buttons-row .ui-btn {
    margin: 0;
    padding: 6px 10px;
    white-space: nowrap;
    height: 36px;
    min-width: 64px;
    font-size: 0.95rem;
    background-color: var(--dark_blue);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
}

.ui-buttons-row .ui-btn[data-cmd="Ui_Btn_c"] {
    grid-column: 1;
    grid-row: 1;
}

.ui-buttons-row .ui-btn[data-cmd="Ui_Btn_up"] {
    grid-column: 2;
    grid-row: 1;
}

.ui-buttons-row .ui-btn[data-cmd="Ui_Btn_ok"] {
    grid-column: 1;
    grid-row: 2;
}

.ui-buttons-row .ui-btn[data-cmd="Ui_Btn_dn"] {
    grid-column: 2;
    grid-row: 2;
}

progress {
    width: 100%;
    height: 20px;
    margin: 0.5rem 0;
    border: none;
    border-radius: 4px;
    background-color: white;
    overflow: hidden;
}

progress::-webkit-progress-bar {
    background-color: white;
    border-radius: 4px;
}

progress::-webkit-progress-value {
    background-color: var(--dark_blue);
    border-radius: 4px;
    transition: width 0.2s ease;
}

progress::-moz-progress-bar {
    background-color: var(--dark_blue);
    border-radius: 4px;
}

progress.error::-webkit-progress-value {
    background-color: var(--red);
}

progress.error::-moz-progress-bar {
    background-color: var(--red);
}

.log p.info {
    color: var(--dark_grey);
    margin: 0.25rem 0;
    font-size: 0.9rem;
}

.log p.warning {
    color: yellow;
    margin: 0.25rem 0;
    font-size: 0.9rem;
}

.log p.error {
    color: var(--red);
    margin: 0.25rem 0;
    font-size: 0.9rem;
}

.dfu-back-container {
    text-align: center;
    margin: 0.5rem 0;
}

.dfu-status-display {
    margin: 1rem 0;
}

.dfu-status-text {
    font-weight: bold;
    color: var(--dark_grey);
}

.dfu-button-container {
    margin: 1rem 0;
}

.dfu-status-box {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: white;
    border-radius: 4px;
    min-height: 1.5rem;
}

.dfu-info-display {
    margin: 1rem 0;
}

.dfu-usb-info,
.dfu-device-info {
    white-space: pre;
    background: white;
    padding: 0.5rem;
    border-radius: 4px;
    font-family: monospace;
}

.dfu-device-info {
    margin-top: 0.5rem;
}

.dfu-fieldset {
    margin: 1rem 0;
    padding: 1rem;
    border: 1px solid var(--light_grey);
    border-radius: 4px;
}

.dfu-fieldset-header {
    font-weight: bold;
    color: var(--dark_blue);
}

.dfu-config-fieldset {
    margin: 1rem 0;
    padding: 1rem;
    border: 1px solid var(--light_blue);
    border-radius: 4px;
    background: var(--light_blue_light_shade);
}

.dfu-config-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.dfu-download-log {
    color: var(--dark_grey);
    padding: 0.5rem;
    border-radius: 4px;
    overflow-y: auto;
    font-family: monospace;
    white-space: pre-wrap;
}

.field-hint-row {
    transition: opacity 0.3s ease;
}

.field-hint-row td {
    padding: 2px 8px;
    border: none;
}

.field-hint-text {
    color: var(--red);
    font-size: 0.85rem;
}

button,
input,
select {
    font-size: 1em;
    max-width: 100%;
    box-sizing: border-box;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.error-codes-popup,
#firmwareGuidePopup,
#driverSetupPopup,
.logging-config-popup {
    min-width: 30vw;
    overflow-y: auto;
    z-index: 1501;
}

.logging-config-content {
    text-align: left;
    margin: 1rem 0;
}

.logging-interval-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--light_blue_light_shade);
    border-radius: 4px;
    justify-content: center;
    text-align: center;
}

.logging-interval-section label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--dark_blue);
}

.logging-interval-section input {
    width: 8rem;
    padding: 0.5rem;
    border: 1px solid var(--light_grey);
    border-radius: 4px;
    font-size: 1rem;
}

.logging-fields-list {
    height: 15rem;
    overflow-y: auto;
    border: 1px solid var(--light_grey);
    border-radius: 4px;
    padding: 0.5rem;
    background: white;
}

.logging-field-item {
    display: flex;
    align-items: center;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.logging-field-item input[type="checkbox"] {
    margin: 0.5rem;
    width: 25px;
    height: 25px;
    appearance: none;
    -webkit-appearance: none;
    border-radius: 3px;
    background-color: var(--light_blue_light_shade);
    cursor: pointer;
    position: relative;
}

.logging-field-item input[type="checkbox"]:checked {
    background-color: var(--dark_blue);
}

.logging-field-item input[type="checkbox"]:checked::after {
    content: '✓';
    color: white;
    font-size: 1rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.logging-field-item label {
    cursor: pointer;
    flex: 1;
    margin: 0;
    font-size: 0.9rem;
}

.probe-model-group-header {
    font-weight: bold;
    color: var(--dark_blue);
    padding: 0.5rem 0.5rem 0.25rem;
    margin-top: 0.5rem;
    border-bottom: 1px solid var(--light_blue);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.probe-model-wildcard-input {
    width: 60px;
    padding: 0.15rem 0.3rem;
    font-size: 0.85rem;
    font-family: inherit;
    border: 1px solid var(--light_blue);
    border-radius: 4px;
    text-align: center;
    -moz-appearance: textfield;
    appearance: textfield;
}

.probe-model-wildcard-input::-webkit-outer-spin-button,
.probe-model-wildcard-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.probe-model-wildcard-input:first-of-type {
    margin-left: auto;
}

.probe-model-group-header:first-child {
    margin-top: 0;
}

.logging-field-item input[type="radio"] {
    margin-right: 0.75rem;
    width: 16px;
    height: 16px;
    accent-color: var(--dark_blue);
    cursor: pointer;
}

.probe-model-option-desc {
    margin-left: auto;
    font-size: 0.8rem;
    color: var(--dark_grey);
    opacity: 0.7;
    white-space: nowrap;
}

#probeModelPopup {
    max-height: 85vh;
    display: none;
    flex-direction: column;
}

.error-list-popup {
    width: 40vw;
    max-height: 85vh;
    display: none;
    flex-direction: column;
}

.error-list-popup h3 {
    color: black;
    padding-bottom: 1rem;
    margin-bottom: 0;
}

.error-list-popup-content {
    text-align: left;
    margin: 0;
    overflow-y: auto;
    max-height: 55vh;
    background: white;
    border-radius: 0 0 4px 4px;
    padding: 0;
}

.error-list-popup-content .error-list-table {
    width: 100%;
    border-collapse: collapse;
}

.error-list-popup-content .error-list-table th {
    position: sticky;
    top: 0;
    background: white;
    color: var(--dark_blue);
    padding: 0.5rem 1rem;
    border-bottom: none;
    box-shadow: inset 0 -2px 0 var(--light_grey);
    text-align: left;
}

.error-list-popup-content .error-list-table td {
    padding: 0.4rem 1rem;
    border-bottom: 1px solid var(--light_grey);
    text-align: left;
}

.error-list-popup-content .error-list-table tbody tr:hover {
    background: rgba(0, 47, 134, 0.08);
    cursor: pointer;
}

.error-list-empty {
    text-align: center;
    color: var(--dark_grey);
    padding: 2rem;
    font-style: italic;
}

.error-list-btn-row td {
    border-top: none !important;
    padding-top: 0.25rem;
    padding-bottom: 0.5rem;
}

.error-detail-popup {
    width: 550px;
    max-width: 90vw;
    z-index: 1601;
    text-align: left;
}

.error-detail-popup h3 {
    color: var(--dark_blue);
    border-bottom: 2px solid var(--light_blue);
    padding-bottom: 0.5rem;
    margin-bottom: 0;
}

.error-detail-content {
    margin: 0.5rem 0;
}

.error-detail-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0;
}

.error-detail-label {
    font-weight: bold;
    color: var(--dark_grey);
    padding: 0.35rem 1rem 0.35rem 0;
    border-bottom: 1px solid var(--light_blue_light_shade);
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.error-detail-value {
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--light_blue_light_shade);
    color: var(--dark_grey);
    display: flex;
    align-items: center;
}

.error-detail-footer {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #666;
    font-style: italic;
}

.error-severity-major {
    background: #dc3545;
    color: white;
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    font-weight: bold;
    font-size: 0.85rem;
}

.error-severity-minor {
    background: #ffc107;
    color: #333;
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    font-weight: bold;
    font-size: 0.85rem;
}

.probe-model-preview {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--dark_blue);
    min-height: 1.5em;
    padding: 0.3rem 0.5rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--light_grey);
    word-break: break-word;
}

#probeModelPopup .logging-fields-list {
    height: 55vh;
    max-height: 55vh;
}

.footer {
    margin-top: auto;
    padding: 1em 0;
    text-align: center;
    border-top: 1px solid var(--light_blue_dark_shade);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5em;
}

.impressum-btn {
    background: none;
    border: none;
    color: var(--text_light);
    font-size: 0.85em;
    cursor: pointer;
    text-decoration: underline;
    padding: 0.25em 0.5em;
    border-radius: 3px;
    transition: color 0.2s ease;
}

.ui-screen-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: calc(2px * var(--scale_factor) * var(--pixel_to_cm_ratio));
    clip-path: circle(calc(39.5px * var(--scale_factor) * var(--pixel_to_cm_ratio)));
}

.ui-buttons-left,
.ui-buttons-right {
    display: flex;
    flex-direction: column;
    gap: calc(2px * var(--scale_factor) * var(--pixel_to_cm_ratio));
}

.ui-screen-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
    padding: 1px;
    border: calc(0.5px * var(--scale_factor) * var(--pixel_to_cm_ratio)) solid var(--dark_blue);
}

.stream-controls-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 0 9px 6px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.stream-controls-overlay .stream-btn {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    box-shadow: none;
    padding: 3px;
    height: 32px;
    width: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}

.stream-controls-overlay .stream-btn img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

#start-stream-button img {
    transform: translateX(1px);
}

.stream-controls-overlay .stream-btn:hover:enabled,
.stream-controls-overlay .screen-scale-container:hover {
    background: rgba(0, 0, 0, 0.35);
    box-shadow: none;
    transform: none;
}

.stream-controls-overlay .screen-scale-container {
    background: rgba(0, 0, 0, 0.5);
    margin-top: 0;
    gap: 4px;
    padding: 0 8px;
    height: 32px;
    border-radius: 18px;
    display: flex;
    align-items: center;
}

.stream-controls-overlay .screen-scale-label {
    color: white;
    font-size: 14px;
    font-weight: normal;
}

.stream-controls-overlay .screen-scale-slider {
    width: 60px;
    height: 4px;
    accent-color: white;
}

.ui-screen-container:hover .stream-controls-overlay {
    opacity: 1;
    pointer-events: auto;
}

.ui-screen-container iframe {
    display: block;
    background-color: #000;
}

.ui-screen-clip-wrapper {
    position: relative;
}

.ui-screen-clip-wrapper::before,
.ui-screen-clip-wrapper::after {
    content: '';
    position: absolute;
    --clip-r: calc(39.5px * var(--scale_factor) * var(--pixel_to_cm_ratio));
    --border-w: calc(0.5px * var(--scale_factor) * var(--pixel_to_cm_ratio));
    width: calc(var(--clip-r) * 2);
    height: calc(var(--clip-r) * 2);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: var(--border-w) solid var(--dark_blue);
    background: transparent;
    box-sizing: border-box;
    pointer-events: none;
    z-index: 2;
}

.ui-screen-clip-wrapper::before {
    clip-path: inset(26.4% 0 51.3% 0);
}

.ui-screen-clip-wrapper::after {
    clip-path: inset(51.3% 0 26.4% 0);
}

.ui-btn {
    padding: 1rem 1.5rem;
    width: calc(12.9px * var(--scale_factor) * var(--pixel_to_cm_ratio));
    height: calc(17.95px * var(--scale_factor) * var(--pixel_to_cm_ratio));
    background: var(--light_blue);
    color: var(--dark_blue);
    border: calc(0.5px * var(--scale_factor) * var(--pixel_to_cm_ratio)) solid var(--dark_blue);
    border-radius: 0;
    cursor: pointer;
    font-size: calc(8.5px * var(--scale_factor) * var(--pixel_to_cm_ratio));
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ui-buttons-left .ui-btn {
    padding-left: calc(2px * var(--scale_factor) * var(--pixel_to_cm_ratio));
    padding-right: 0;
}

.ui-buttons-right .ui-btn {
    padding-right: calc(2px * var(--scale_factor) * var(--pixel_to_cm_ratio));
    padding-left: 0;
}

.btn-arrow {
    display: inline-block;
    width: calc(8px * var(--scale_factor) * var(--pixel_to_cm_ratio));
    height: calc(6px * var(--scale_factor) * var(--pixel_to_cm_ratio));
    background-color: var(--dark_blue);
    -webkit-mask-image: url('images/button-arrow.png');
    mask-image: url('images/button-arrow.png');
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

.arrow-up {
    transform: rotate(-90deg);
    margin-bottom: calc(2px * var(--scale_factor) * var(--pixel_to_cm_ratio));
}

.arrow-down {
    transform: rotate(90deg);
    margin-top: calc(2px * var(--scale_factor) * var(--pixel_to_cm_ratio));
}

.ui-buttons-left .ui-btn:first-child,
.ui-buttons-right .ui-btn:first-child {
    align-items: flex-end;
}

.ui-buttons-left .ui-btn:last-child,
.ui-buttons-right .ui-btn:last-child {
    align-items: flex-start;
}

.ui-device-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px auto;
}

.ui-logo-wrapper {
    position: absolute;
    top: calc(12px * var(--scale_factor) * var(--pixel_to_cm_ratio));
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    z-index: 1;
}

.ui-logo {
    width: calc(37.8px * var(--scale_factor) * var(--pixel_to_cm_ratio));
    margin-bottom: calc(2.1px * var(--scale_factor) * var(--pixel_to_cm_ratio));
}

.ui-footer {
    position: absolute;
    bottom: calc(18px * var(--scale_factor) * var(--pixel_to_cm_ratio));
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    z-index: 1;
    font-size: calc(3px * var(--scale_factor) * var(--pixel_to_cm_ratio));
    color: var(--dark_blue);
    margin-top: calc(2px * var(--scale_factor) * var(--pixel_to_cm_ratio));
}

#ui-controls-wrapper {
    position: relative;
    width: calc(85px * var(--scale_factor) * var(--pixel_to_cm_ratio));
    height: calc(85px * var(--scale_factor) * var(--pixel_to_cm_ratio));
    border-radius: 50%;
    overflow: hidden;
    border: calc(0.5px * var(--scale_factor) * var(--pixel_to_cm_ratio)) solid black;
}

.login-panel__submit:hover,
.logging-field-item:hover:enabled,
.get-value-btn:hover:enabled,
.save-row-btn:hover:enabled,
.login-form button:hover:enabled,
.driver-download-btn:hover,
.standard-btn:hover:enabled {
    background: var(--dark_blue_light_shade);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.login-panel__submit:hover {
    background: var(--red);
}

.save-row-btn.save-ok:hover:enabled,
.standard-btn.copy-ok:hover:enabled {
    background: #2e8b2e;
}

.standard-btn.copy-ok {
    background-color: green;
}

.save-row-btn.save-error:hover:enabled {
    background: var(--red_light_shade);
}

.ui-btn:hover:enabled {
    background: var(--light_blue_light_shade);
}

.logout-btn:hover {
    background-color: var(--red);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.stream-btn:active,
.ui-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.screen-scale-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.screen-scale-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark_blue);
    white-space: nowrap;
}

.screen-scale-slider {
    width: 240px;
    height: 10px;
    cursor: pointer;
    accent-color: var(--dark_blue);
}

#as2CommandForm {
    display: none;
    width: 100%;
    height: calc(95vh - 160px);
}

#as2CommandForm .as2-command-container {
    height: 100%;
    width: 100%;
    min-height: 0;
}

.dfu-form-section {
    flex: 1;
    min-width: 300px;
    display: flex;
}

.dfu-form-section-full {
    flex: 1 1 100%;
    min-width: 0;
}

#comboComGroup,
#comboHmiGroup,
#comboExtflashGroup {
    display: contents;
}

.combo-update-actions {
    padding: 10px 0;
}

.dfu-form-section .dfu-config-fieldset {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.as2-command-container {
    display: flex;
    gap: 1rem;
    align-items: stretch;
    flex-wrap: wrap;
}

.as2-command-form-left {
    flex: 1;
    display: flex;
    min-width: 400px;
    min-height: 0;
    height: 100%;
}

.as2-command-fieldset-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.as2-command-input-row {
    display: flex;
    gap: 10px;
}

.as2-command-output {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.as2-command-form-right {
    display: flex;
    min-width: 400px;
    min-height: 0;
    height: 100%;
}

.as2-error-status-fieldset {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.as2-error-status-output {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.as2-error-status-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.settings-section {
    margin: 1.5em 0;
    padding: 1em;
    border: 1px solid var(--light_grey);
    border-radius: 5px;
    background-color: var(--light_blue_light_shade);
}

.settings-section:last-of-type {
    margin-bottom: 2em;
}

.settings-controls {
    margin: 0.5em 0;
}

.detected-device-type {
    font-weight: 600;
    color: var(--dark_blue);
    font-size: 1rem;
}


.error-codes-container {
    max-height: 60vh;
    overflow-y: auto;
    font-size: 1rem;
}

.error-codes-category-header {
    margin: 1rem 0 0.5rem 0;
    color: var(--dark_blue);
    border-bottom: 2px solid var(--light_blue);
}

.error-codes-table {
    width: 100%;
    border-collapse: collapse;
}

.error-codes-table thead tr {
    background-color: var(--light_blue);
}

.error-codes-table th {
    padding: 8px;
    text-align: left;
}

.error-codes-table th:first-child {
    text-align: center;
    width: 50px;
}

.error-codes-table tbody tr {
    border-bottom: 1px solid var(--light_blue_light_shade);
}

.error-codes-table td {
    padding: 6px;
    text-align: left;
}

.error-codes-table td:first-child {
    text-align: center;
}

.error-codes-table td:nth-child(2) {
    font-size: 0.85rem;
}

.error-codes-table td.has-tooltip {
    cursor: help;
}

.custom-alert.error-codes-popup,
#customAlert.error-codes-popup {
    width: 800px;
    max-width: 95vw;
}

.custom-alert.driver-setup-popup {
    width: 600px;
    max-width: 95vw;
    max-height: 85vh;
    overflow-y: auto;
    text-align: left;
}

.driver-setup-steps {
    margin: 1rem 0;
    padding: 0;
}

.driver-setup-step {
    background: #f5f7fa;
    border-left: 4px solid var(--dark_blue);
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    border-radius: 0 4px 4px 0;
}

.driver-setup-step strong {
    color: var(--dark_blue);
    display: block;
    margin-bottom: 0.25rem;
}

.driver-setup-step p {
    margin: 0;
    font-size: 0.9rem;
    color: #555;
}

.driver-setup-step a {
    color: var(--dark_blue);
    text-decoration: underline;
}

.driver-setup-note {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    padding: 0.75rem;
    font-size: 0.85rem;
    color: #856404;
}

.driver-wizard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.driver-wizard-step-indicator {
    background: var(--dark_blue);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
}

.driver-wizard-page {
    min-height: 200px;
}

.driver-wizard-intro {
    display: flex;
    flex-direction: column;
    height: 200px;
}

.driver-wizard-spacer {
    flex: 1 1 auto;
    min-height: 30px;
}

.driver-step-image-container {
    margin-top: 1rem;
    text-align: center;
    background: #f8f9fa;
    border: 1px dashed #ccc;
    border-radius: 4px;
    padding: 1rem;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.driver-step-image {
    max-width: 100%;
    max-height: 50%;
    width: auto;
    height: auto;
    cursor: pointer;
    border-radius: 4px;
    transition: opacity 0.2s;
}

.driver-step-image:hover {
    opacity: 0.8;
}

.driver-wizard-nav {
    display: flex;
    gap: 1rem;
}

.image-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3000;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    max-width: 95vw;
    max-height: 95vh;
}

.image-modal img {
    max-width: 80vw;
    max-height: 100vh;
    display: block;
}

.image-modal-close {
    position: absolute;
    top: -15px;
    right: -15px;
    background: var(--red);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
}

.image-modal-close:hover {
    background-color: var(--red);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.image-modal-overlay {
    z-index: 2500;
    cursor: default;
}


#device-info td,
#device-config td {
    overflow: visible;
}

.row-tooltip-icon {
    width: 16px;
    height: 16px;
    cursor: help;
    opacity: 0.5;
    vertical-align: middle;
    flex-shrink: 0;
    transition: opacity 0.15s ease;
}

.row-tooltip-icon:hover {
    opacity: 1;
}

.save-all-tooltip-wrapper,
.row-tooltip-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-width: 0;
    flex-shrink: 1;
}

.save-all-tooltip-text,
.row-tooltip-text {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 8px;
    background-color: white;
    color: black;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: normal;
    white-space: normal;
    max-width: 240px;
    width: max-content;
    z-index: 100;
    pointer-events: none;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    line-height: 1.4;
    text-align: left;
}

.save-all-tooltip-text {
    left: 50%;
    top: auto;
    bottom: 100%;
    transform: translateX(-50%);
    margin-left: 0;
    margin-bottom: 8px;
}

.save-all-tooltip-wrapper:hover .save-all-tooltip-text,
.row-tooltip-wrapper:hover .row-tooltip-text {
    visibility: visible;
    opacity: 1;
}

.logging-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark_blue);
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(0, 123, 255, 0.08);
    white-space: nowrap;
    width: 100%;
}

.logging-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid var(--light_blue);
    border-top-color: transparent;
    border-radius: 50%;
    animation: logging-spin 0.8s linear infinite;
}

@keyframes logging-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 2400px) {

    .dfu-form-section {
        flex: 1 1 45%;
        min-width: 280px;
    }

    .dfu-form-section-full {
        flex: 1 1 100%;
    }

    .logo {
        width: 32vw;
    }

    .splash-drop-container {
        width: 32vw;
    }

    .get-value-btn,
    .save-row-btn {
        padding: 0.5rem;
    }

    #as2CommandForm .as2-serial-group {
        flex: 1 1 100%;
    }

    .toggle-option {
        font-size: 0.8rem;
    }
}

@media (max-width: 1950px) {

    .toggle-option {
        font-size: 0.7rem;
    }
}

@media (max-width: 1800px) {

    .info-section {
        flex: 1 1 45%;
        min-width: 450px;
    }

    .dfu-form-section {
        flex: 1 1 100%;
        min-width: 0;
    }

    .toggle-option {
        font-size: 1rem;
    }
}

@media (max-width: 1600px) {

    .header-left {
        font-size: 0.8rem;
    }

    .dfu-form-section {
        flex: 1 1 100%;
        min-width: 0;
    }

    #probeModelPopup .logging-fields-list {
        height: 45vh;
    }

    .custom-alert,
    .error-list-popup {
        padding: 1rem;
        width: 90vw;
    }

    .error-detail-popup {
        width: 80vw;
    }

    .dfu-config-fieldset .standard-btn-div {
        flex-direction: column;
    }

    .dfu-config-fieldset .standard-btn,
    .firmware-select {
        width: 80vw;
        font-size: 1rem;
    }

    #as2CommandForm .standard-btn-div {
        flex-direction: row;
    }

    #as2CommandForm .standard-btn,
    #as2CommandForm .firmware-select {
        width: auto;
        font-size: inherit;
    }

    .toggle-option {
        font-size: 0.9rem;
    }

}

@media (max-width: 1500px) {

    #as2CommandForm .standard-btn-div {
        flex-wrap: wrap;
    }

    #as2CommandForm .standard-btn,
    #as2CommandForm .firmware-select {
        flex: 1 1 calc(50% - 10px);
        box-sizing: border-box;
    }

    #as2CommandForm .as2-serial-group {
        flex: 1 1 100%;
    }

    #as2CommandForm .as2-command-row {
        flex-wrap: nowrap;
    }

    #as2CommandForm .as2-command-row .standard-btn,
    #as2CommandForm .as2-command-row .firmware-select {
        flex: 1 1 auto;
    }

    .toggle-option {
        font-size: 0.8rem;
    }

}

@media (max-width: 1390px) {

    .header,
    .header-left,
    .header-right {
        justify-content: center;
    }

    .header {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        z-index: auto;
    }

    .header-right {
        display: contents;
    }

    .header-nav {
        order: 1;
        display: flex;
        width: 100%;
        z-index: 1101;
        position: relative;
    }

    .header-left {
        order: 2;
    }

    .language-buttons {
        gap: 30vw;
        order: 3;
        justify-content: center;
        padding: 0.5rem;
    }

    .gear-dropdown-container {
        order: 4;
    }

    .help-dropdown-container {
        order: 5;
    }

    .nav-btn {
        flex: 1;
        max-width: none;
    }

    #home-nav-btn {
        border-radius: 8px 0 0 0;
    }

    #update-nav-btn {
        border-radius: 0 8px 0 0;
    }

    .gear-dropdown,
    .help-dropdown {
        right: 0;
    }

    .language-buttons,
    .nav-btn {
        padding: 0.5rem;
    }

    .info-table td {
        padding: 0.6rem;
        font-size: 0.9rem;
    }

    .input-container {
        gap: 4px;
    }

    .toggle-option {
        font-size: 0.7rem;
    }

    .settings-controls {
        margin: 0;
    }

}

@media (max-width: 1150px) {

    .toggle-option {
        font-size: 0.65rem;
    }
}

@media (max-width: 1085px) {

    .toggle-switch {
        height: 25px;
    }

    .toggle-option {
        font-size: 0.7rem;
    }

    .info-table input[type="checkbox"] {
        width: 16px;
        height: 16px;
    }

    .info-table input[type="text"],
    .get-value-btn,
    .save-row-btn,
    .dropdown-menu:not(#connectionTypeSelect),
    .select-date {
        height: 25px;
    }

    .info-table td,
    .info-table input[type="text"],
    .dropdown-menu:not(#connectionTypeSelect),
    .select-date {
        padding: 4px;
        font-size: 0.9rem;
    }

    .get-value-btn,
    .save-row-btn {
        width: 25px;
        padding: 0 0 0.15rem 0;
    }

}

@media (max-height: 720px) {

    .dfu-info-display {
        display: none;
    }

    #as2CommandForm {
        height: 450px;
    }

    .as2-command-output {
        max-height: 200px;
    }

    .as2-error-status-output {
        max-height: 290px;
    }

    .dfu-form-section .dfu-download-log {
        max-height: 200px;
    }

    @media (min-width: 320px) {

        .dfu-form-section .dfu-download-log {
            max-height: 150px;
        }

        .log p.info {
            font-size: 0.7rem;
        }
    }

    .dfu-config-fieldset {
        padding: 0.5rem;
        margin: 0;
    }

    .dfu-fieldset-header {
        margin: 0.5rem;
    }

    .logo {
        width: 18vw;
    }

    .header-left {
        padding: 0.5rem;
    }

    .standard-btn-div {
        margin: 0.5rem 0;
    }

    @media (min-width: 640px) {

        #comboComGroup,
        #comboHmiGroup,
        #comboExtflashGroup {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            width: 80vw;
        }

        #comboComGroup label,
        #comboHmiGroup label,
        #comboExtflashGroup label {
            min-width: 20ch;
            flex-shrink: 0;
        }

        #comboComGroup .firmware-select,
        #comboHmiGroup .firmware-select,
        #comboExtflashGroup .firmware-select {
            flex: 1;
        }
    }

    .settings-section {
        margin: 0.5em 0;
        padding: 0.5em;
    }

}

@media (max-width: 1080px) {

    #as2CommandForm {
        height: auto;
    }

    .as2-command-form-left,
    .as2-command-form-right {
        flex: 1 1 100%;
        min-width: 300px;
        max-height: 50%;
    }

    button,
    .stream-btn,
    .login-form button,
    .firmware-select,
    .as2-command-input-row button,
    .as2-error-status-buttons button,
    .standard-btn {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }

    #zeroPointPopup,
    #exportPdfPopup {
        width: 90vw;
        max-width: 400px;
    }

    .toggle-option {
        font-size: 0.9rem;
    }

    #aplIpInput,
    #aplPortInput {
        width: 100% !important;
    }
}

@media (max-width: 670px) {

    #admin-section-container {
        display: none !important;
    }


}

@media (max-width: 640px) {

    .home-container {
        padding: 0.5rem 1vw;
    }

    .header {
        flex-direction: column;
        padding: 0.5rem 1vw;
        border-radius: 8px;
    }

    .logo {
        width: 48vw;
    }

    .splash-drop-container {
        width: 48vw;
    }

    .login-container {
        padding: 1rem 1vw;
        min-width: 0;
        max-width: 98vw;
    }

    .info-table input[type="text"] {
        padding: 3.5px;
    }

    .select-date,
    .dropdown-menu:not(#connectionTypeSelect) {
        padding: 3.5px 3.5px 3.5px 7px;
    }

    .logging-interval-section input {
        width: 80px;
    }

    .error-codes-popup,
    #aboutPopup,
    #contactPopup,
    #customAlert,
    #settingsPopup {
        width: 70vw;
        padding: 1rem;
    }

    #customAlert {
        width: 65vw;
    }

    #customAlert.error-codes-popup {
        width: 95vw;
    }

    .custom-alert .standard-btn {
        width: 80%;
    }

    .custom-alert,
    .error-list-popup {
        padding: 0.5rem;
        width: 90vw;
    }

    .no-device-card {
        width: 70vw;
    }

    .error-detail-popup {
        width: 80vw;
    }

    .info-section {
        padding: 0.7rem;
    }

    .info-table td {
        padding: 0.5rem;
    }

    .probe-model-group-header {
        flex-wrap: wrap;
    }

    .probe-model-option-desc {
        display: none;
    }

    .dfu-config-fieldset .standard-btn-div {
        flex-direction: column;
    }

    .dfu-config-fieldset .standard-btn,
    .firmware-select {
        width: 80vw;
        font-size: 1rem;
    }

    #as2CommandForm .as2-command-form-left,
    #as2CommandForm .as2-command-form-right {
        min-width: 250px;
    }

    #as2CommandForm .standard-btn,
    #as2CommandForm .firmware-select {
        font-size: 0.6rem;
    }

    #as2CommandForm .btn-icon {
        width: 16px !important;
        height: 16px !important;
    }

    #driverSetupCloseBtn {
        margin: 0 1rem;
    }

    .toggle-option {
        font-size: 0.7rem;
    }

}

@media (max-width: 510px) {

    .tables-wrapper {
        gap: 0;
    }

    .dfu-config-fieldset {
        padding: 0.3rem;
    }

    .header-left {
        font-size: 0.4rem;
    }

    .language-buttons {
        gap: 20vw;
    }

    .row-tooltip-icon {
        width: 12px;
        height: 12px;
    }

    .row-tooltip-text {
        left: 50%;
        top: auto;
        bottom: 100%;
        transform: translateX(-50%);
        margin: 0 0 8px 0;
        width: auto;
        max-width: 80vw;
        pointer-events: none;
    }

    .info-section {
        font-size: 0.7rem;
        padding: 0.5rem;
        min-width: 250px;
    }

    .info-table td {
        padding: 0.3rem;
    }

    .logo {
        width: 80vw;
        min-width: 80px;
    }

    .gear-btn,
    .help-btn {
        padding: 1px;
    }

    .login-container {
        width: 95%;
    }

    .toggle-option {
        font-size: 0.5rem;
        letter-spacing: 0;
        padding: 0 2px;
    }

    .standard-btn-div {
        flex-direction: column;
    }

    .logout-btn,
    .firmware-select,
    .standard-btn {
        width: 80vw;
    }

    .info-table input[type="checkbox"] {
        width: 16px;
        height: 16px;
    }

    #aboutPopup,
    #contactPopup,
    #customAlert,
    .no-device-card,
    #settingsPopup,
    .custom-alert,
    .error-list-popup {
        padding: 0.5rem;
        width: 90vw;
    }

    #zeroPointPopup,
    #exportPdfPopup {
        width: 85vw;
        max-width: 350px;
    }

    #aboutPopup,
    #contactPopup,
    #customAlert,
    #settingsPopup {
        padding: 1rem;
    }

    #customAlert {
        width: 80vw;
    }

    #customAlert.error-codes-popup {
        width: 95vw;
    }

    .error-codes-popup {
        width: 90vw;
    }

    .error-detail-popup {
        width: 85vw;
    }

    .error-list-popup-content {
        font-size: 0.8rem;
    }

    .error-detail-label {
        font-size: 0.7rem;
        padding: 0.5rem;
    }

    .error-detail-value {
        font-size: 0.7rem;
        text-wrap: wrap;
        padding: 0.3rem;
    }

    .error-severity-major,
    .error-severity-minor {
        font-size: 0.7rem;
        padding: 0.2rem;
    }

    .dropdown-menu:not(#connectionTypeSelect),
    .select-date,
    .info-table td,
    .info-table input[type="text"] {
        font-size: 0.7rem;
    }

    .probe-model-wildcard-input:first-of-type {
        margin-left: 0;
    }

    .as2-error-status-output .device-info {
        font-size: 0.7rem !important;
    }

    .as2-error-status-output table {
        font-size: 0.7rem !important;
    }

    #as2CommandForm .as2-command-fieldset-left,
    #as2CommandForm .as2-error-status-fieldset {
        padding: 0.3rem;
    }

    #as2CommandForm .standard-btn,
    #as2CommandForm .firmware-select {
        padding: 0.2rem;
    }

    #as2CommandForm .btn-icon {
        width: 14px !important;
        height: 14px !important;
    }

    #as2CommandForm .standard-btn-div {
        margin: 0.5rem 0;
    }

    .save-row-btn,
    .get-value-btn {
        display: none;
    }

    .splash-typewriter {
        font-size: 0.8rem;
    }

    .splash-drop-container {
        width: 80vw;
        min-width: 80px;
    }

    .splash-overlay.active .splash-drop-container::before {
        animation: splash-ripple-sm 2s ease-out 1s;
    }

    .splash-overlay.active .splash-drop-container::after {
        animation: splash-ripple-sm 2s ease-out 1.7s;
    }

}

@keyframes splash-ripple-sm {
    0% {
        width: 0px;
        height: 0px;
        opacity: 0;
    }

    25% {
        opacity: 1;
    }

    100% {
        width: 300px;
        height: 300px;
        opacity: 0;
    }
}