@font-face {
    font-family: 'OldTvFont';
    src: url(../fonts/VCR_OSD_MONO_1.001.ttf);
}

body {
    font-family: 'OldTvFont';
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: #000;
}

#tv-fr {
    border: 1px solid;
    background: #4A4A4A;
    box-shadow: -10px 0px 10px rgba(0, 0, 0, 0.5) inset, 10px 0px 10px rgba(0, 0, 0, 0.5) inset;
    width: 800px;
    height: 620px;
    border-radius: 10px;
    position: relative;
}

#tv-lg {
    background-image: url(../images/sony_tv.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 100%;
    height: 13px;
    bottom: 9px;
    position: absolute;
}

button {
    background-image: url(../images/power_bt.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #808080;
    box-shadow: 0px 0px 5px 2px #000;
    cursor: pointer;
    bottom: 6px;
    left: 89%;
    position: absolute;
}

#outer-screen-frame {
    width: 85%;
    height: 88.5%;
    border: 6px solid #c4c4c4;
    border-style: inset;
    border-radius: 10px;
    margin: 0 auto;
    margin-top: 28px;
    box-shadow: -0px 10px 80px #3366ff;
}

#screen {
    position: relative;
    width: 98.3%;
    height: 98.3%;
    box-shadow: 0px 0px 35px rgb(0, 0, 0) inset;
    border: 6px solid;
    background: linear-gradient(135deg, #3366ff 0%, #000066 100%);
    border-radius: 4px;
    overflow: hidden;
}

#screen-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
        linear-gradient(90deg,
            rgba(255, 0, 0, 0.06),
            rgba(0, 255, 0, 0.02),
            rgba(0, 0, 255, 0.06));
    background-size: 100% 3px, 3px 100%;
    z-index: 1;
    animation: moire-effect .1s infinite;
    pointer-events: none;
}

@keyframes moire-effect {
    0% {
        transform: translateY(1px);
    }

    100% {
        transform: translateY(0px);
    }
}

#screen-overlay:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

#noise-overlay {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 25px;
    line-height: 35px;
    text-align: center;
    position: absolute;
}

video {
    width: 100%;
    height: 110%;
    margin-top: -25px;
    object-fit: cover;
    z-index: 0;
}

#selection-scr {
    margin: 40px;
    height: 85%;
    position: relative;
}

#selection-scr span {
    color: white;
    position: absolute;
    font-size: 22px;
    bottom: 0;
    right: 0;
    pointer-events: none;
}

#logo {
    width: 125px;
    height: 50px;
    background-image: url(../images/sony_lg.svg);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-left: 10px;
    margin-top: 20px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    font-size: 22px;
}

li {
    cursor: pointer;
    width: 100%;
    padding: 5px;
    position: relative;
}

li:hover {
    color: #000066;
}

li:hover::before {
    content: "►";
    position: absolute;
    left: -2%;
    top: 50%;
    transform: translateY(-50%);
    color: 000066;
    font-size: 21px;
    padding-right: 5px;
}

h2 {
    color: white;
    text-align: center;
    font-weight: normal;
    margin-top: 30px;
    margin-bottom: 50px;
    font-size: 25px;
}

@media only screen and (max-width:600px) {
    #tv-fr {
        border: 1px solid;
        background: #4A4A4A;
        box-shadow: -10px 0px 10px rgba(0, 0, 0, 0.5) inset, 10px 0px 10px rgba(0, 0, 0, 0.5) inset;
        width: 800px;
        height: 460px;
        border-radius: 10px;
    }

    #tv-lg {
        height: 12px;
        bottom: 10px;
    }

    #outer-screen-frame {
        width: 85%;
        height: 86.5%;
        border: 6px solid #c4c4c4;
        border-style: inset;
        border-radius: 10px;
        margin: 0 auto;
        margin-top: 20px;
    }

    #screen {
        position: relative;
        width: 98.3%;
        height: 98.3%;
        box-shadow: 0px 0px 35px rgb(0, 0, 0) inset;
        border: 6px solid;
        background: linear-gradient(135deg, #3366ff 0%, #000066 100%);
        border-radius: 4px;
        overflow: hidden;
    }

    ul {
        font-size: 18px;
        margin-left: 0;
    }

    #selection-scr span {
        font-size: 18px;
    }

    #logo {
        width: 100px;
        height: 40px;
        margin-top: 0px;
    }

    h2 {
        font-size: 20px;
        margin-top: 10px;
        margin-bottom: 0;
    }

    #selection-scr {
        margin: 20px;
        height: 85%;
        position: relative;
    }
}

@media only screen and (max-width:400px) {
    #tv-fr {
        border: 1px solid;
        background: #4A4A4A;
        box-shadow: -10px 0px 10px rgba(0, 0, 0, 0.5) inset, 10px 0px 10px rgba(0, 0, 0, 0.5) inset;
        width: 800px;
        height: 360px;
        border-radius: 10px;
    }

    #tv-lg {
        height: 8px;
        bottom: 5px;
    }

    button {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background-color: #808080;
        box-shadow: 0px 0px 5px 2px #000;
        cursor: pointer;
        bottom: 4px;
        left: 89%;
    }

    #outer-screen-frame {
        width: 85%;
        height: 86.5%;
        border: 6px solid #c4c4c4;
        border-style: inset;
        border-radius: 10px;
        margin: 0 auto;
        margin-top: 20px;
    }

    #screen {
        position: relative;
        width: 98.3%;
        height: 98.3%;
        box-shadow: 0px 0px 35px rgb(0, 0, 0) inset;
        border: 6px solid;
        background: linear-gradient(135deg, #3366ff 0%, #000066 100%);
        border-radius: 4px;
        overflow: hidden;
    }

    ul {
        font-size: 18px;
        margin-left: 0;
    }

    #selection-scr span {
        font-size: 18px;
    }

    #logo {
        width: 100px;
        height: 40px;
        margin-top: 0px;
    }

    h2 {
        font-size: 20px;
        margin-top: 10px;
        margin-bottom: 0;
    }

    #selection-scr {
        margin: 20px;
        height: 85%;
        position: relative;
    }
}