.device-model-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: -24px;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
}

.device-model-viewport {
    background-color: #fbfcfd;
    margin: 2vh auto;
    border: 1px solid #888;
    width: 95%;
    height: 90%;
}

.device-model-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: sticky;
    top: 0;
    padding: 0px 40px 0 0;
}

.device-model-close {
    color: #d5ccd5;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

#device-model-iframe-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

#device-model-iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.device-model-loading {
    width: fit-content;
    font-size: 40px;
    font-family: system-ui,sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    color: #0000;
    -webkit-text-stroke: 1px #000;
    background:
        radial-gradient(0.71em at 50% 1em,#000 99%,#0000 101%) calc(50% - 1em) 1em/2em 200% repeat-x text,
        radial-gradient(0.71em at 50% -0.5em,#0000 99%,#000 101%) 50% 1.5em/2em 200% repeat-x text;
    animation: 
        device-model-loading-x .8s linear infinite alternate,
        device-model-loading-y 4s linear infinite;
}

.device-model-loading:before {
    content: "Loading";
}

@keyframes device-model-loading-x {
    to {background-position-x: 50%,calc(50% + 1em)}
}

@keyframes device-model-loading-y {
    to {background-position-y: -.5em,0}
}

@media (max-width: 1500px) {
    .device-model-viewport {
        height: 88%;
        width: 85%;
    }
}

@media (max-width: 1300px) {
    .device-model-viewport {
        height: 93%;
        width: 90%;
    }
    .device-model-header {
        padding: 10px 35px 0 0;
    }
}
