* {
    margin: 0;
    padding: 0;
}

body {
    background-color: black;
}

#page {
    width: 70%;
    margin: 10px auto 10px;
    height: 90%;
    position: relative;
}

#tvbox {
    width: 100%;
    height: 100%;
    display: inline-block;
}

#tvimgblock {
    display: inline-block;
    position: relative;
}

#tvimg {
    max-width: 100%;
    max-height: 100vh;
    height: auto;
}

#screen {
    z-index: -10;
    position: absolute;
    display: inline-block;
    background-image: url("/static/testcard.gif");
    background-repeat: no-repeat;
    background-position: left;
    background-size: contain;
    left: 8.37%;
    top: 12.37%;
    width: 59.23%;
    height: 72.11%;
}

#terminal {
    z-index: 10;
    position: absolute;
    display: inline-block;
    left: 80.55%;
    top: 13.39%;
    width: 13.29%;
    height: 29.52%;
    word-wrap: break-word;
    overflow: hidden;
    font-size: 8pt;
    font-family: 'Courier New', Courier, monospace;
    font-weight: 600;
    color: #aaffaa;
}

#terminal div::selection {
    color: #559955;
    background-color: #aaffaa;
}

@media all and (max-width: 1024px) {
    #terminal {
        display: none;
    }
}

@media all and (max-height: 500px) {
    #terminal {
        display: none;
    }
    #addvideo {
        pointer-events: none;
    }
}

.terminalinput {
    border: 1px solid #77cc77;
    background: none;
    box-shadow: none;
    border-radius: 0px;
    font-size: 0.65vw;
    font-family: 'Courier New', Courier, monospace;
    color: #aaffaa;
    background-color: #559955;
}

.terminalinput::selection {
    color: #559955;
    background-color: #aaffaa;
}

.terminalinput:focus {
    background-color: #559955;
    border: 1px solid #77cc77;
    outline: none;
    box-shadow: none;
}

.terminalinput:hover {
    background-color: #559955;
    border: 1px solid #77cc77;
    outline: none;
    box-shadow: none;
}

#proposalURL {
    display: inline-block;
    width: 60%;
}

#proposalSendButton {
    display: inline-block;
    width: 30%;
}

#proposalSendButton:hover {
    background-color: #77cc77;
    color: #336633;
    cursor: pointer;
}

#terminal div {
    padding-top: 10px;
}

#proposalDiv {
    position: absolute; 
    bottom: 0; 
    display: none;
}

#volumedown {
    z-index: 10;
    position: absolute;
    display: inline-block;
    left: 80.50%;
    top: 47.75%;
    width: 4.16%;
    height: 1.29%;
}

#volumeup {
    z-index: 10;
    position: absolute;
    display: inline-block;
    left: 85.26%;
    top: 47.75%;
    width: 4.18%;
    height: 1.29%;
}

.blink-animation {
    animation-name: blinking;
    animation-duration: 1s;
    animation-iteration-count: infinite;
    animation-play-state: paused;
    animation-delay: 1s;
}

@keyframes blinking {
    0% {
        background-color: #ffffaa;
    }
    100% {
        background-color: #336633;
    }
}

#addvideo {
    z-index: 10;
    position: absolute;
    display: inline-block;
    left: 90.10%;
    top: 47.55%;
    width: 4.14%;
    height: 1.29%;
}

#volumedown, #volumeup, #addvideo {
    background-color: #336633;
}

#volumedown:hover, #volumeup:hover, #addvideo:hover {
    background-color: #77cc77;
    cursor: pointer;
}

#terminal span {
    color: #eeffaa;
}

#volumeStatus {
    font-size: 0.5vw;
}