header {
    text-align: center;
    font-family: "Bookman Old Style";
    background-color: #e0e0e0;
    padding: 20px;
    color: #101010;

    #sitetitle {
    font-size: xxx-large;
    }

    #strapline {
    font-size: large;
    }
}

.tv {
    padding: 50px 4px 4px 4px;
    background-color: #1c1c1c;
    position: relative;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;

}

.noise-wrapper {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
    overflow: hidden;
    z-index: 10;

    &:after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background: radial-gradient(ellipse at center, rgba(0,0,0,0) 0%,rgba(0,0,0,0.2) 100%);
    }
}

.noise {
    position: absolute;
    top: -500px;
    right: -500px;
    bottom: -500px;
    left: -500px;
    background: transparent url("BringTheNoise.png") left top;
    background-size: 320px 320px;
    opacity: .35;
    animation: noise 1s steps(8,end) infinite both;
}

@keyframes noise {
    0% {
        transform: translateX(0px,0px); }
        10% {
            transform: translate(-100px, 100px);
        }
        20% {
            transform: translate(150px, -100px);
        }
        30% {
            transform: translate(-100px,100px);
        }
        40% {
            transform: translate(100px, -150px);
        }
        50% {
            transform: translate(-100px, 200px);
        }
        60% {
            transform: translate(-200px, -100px);
        }
        70% {
            transform: translateY(50px, 100px);
        }
        80% {
            transform: translate(100px, -150px);
        }
        90% {
            transform: translate(0px, 200px);
        }
        100% {
            transform: translate(-100px, 100px);
        }
}

footer {
    font-size: small;
    border-top: 1px solid grey;
    margin-top: 20px;
}

#lowerthird {
    border: 4px solid white;
    margin: 20px;
    position: relative;
    text-align: center;
    margin: 0;
    z-index: 1;
    background-color: darkred;
    color: white;
    font-weight: bolder;
    width: 100%;
    height: 100px;
    max-height: 100px;
    object-fit: contain;
    border-radius: 40px 1px 1px 1px;

    .ltheadline {
        display: flex;
        height: 100px;
        max-height: 100px;
        width: 100%;
        animation-iteration-count: infinite;
        animation-duration: 30s;
        animation-name: lowerarticle;
        transform: scale(1,0);
        overflow: hidden;
        position: absolute;
        top: 0;
        left: 0;
    }

    .ltheadline:nth-of-type(1) {
        animation-delay: 0s;
    }

    .ltheadline:nth-of-type(2) {
        animation-delay: 10s;
    }

    .ltheadline:nth-of-type(3) {
        animation-delay: 20s;
    }

    .category {
        font-size: 30px;
        flex-shrink: 0; /* Prevent shrinking */
        display: flex;
        align-items: center;
        padding: 0 10px;
    }

    .headline {
        font-size: 20px;
        flex: 1;
        display: flex;
        align-items: center;
        overflow: hidden;
        padding: 0 10px;
    }

    #powerlogo {
        float: right;
        font-weight: bold;
    }

}

#powerstream {
    border: 4px solid white;
    margin: 20px;
    position: relative;
    text-align: center;
    margin: 0;
    z-index: 1;
    background-color: darkred;
    color: white;
    width: 100%;
    height: 100px;
    max-height: 100px;
    object-fit: contain;
    border-radius: 40px 1px 1px 1px;
    color: white;

    .ltheadline {
        display: flex;
        height: 100px;
        max-height: 100px;
        width: 100%;
        animation-iteration-count: infinite;
        animation-duration: 90s;
        animation-name: lowerarticle;
        transform: scale(1,0);
        overflow: hidden;
        position: absolute;
        top: 0;
        left: 0;
    }

    .ltheadline:nth-of-type(1) {
        animation-delay: 0s;
    }

    .ltheadline:nth-of-type(2) {
        animation-delay: 30s;
    }

    .ltheadline:nth-of-type(3) {
        animation-delay: 60s;
    }

    .category {
        font-size: 30px;
        flex-shrink: 0; /* Prevent shrinking */
        display: flex;
        align-items: center;
        padding: 0 10px;
    }

    .headline {
        font-size: 20px;
        flex: 1;
        display: flex;
        align-items: center;
        overflow: hidden;
        padding: 0 10px;
    }

    #powerlogo {
        float: right;
        font-weight: bold;
    }

}

.article {
    .date {
        font-style: italic;
    }

    .category {
        font-weight: bold;
    }

    & dd {

    }
}

@keyframes lowerarticle {
    0%   {transform: scale(1,0)}
    1%   {transform: scale(1,1)}
    33%  {transform: scale(1,1)}
    34%  {transform: scale(1,0)}
    100% {transform: scale(1,0)}
}

#loginlink
{
    position: absolute;
    top: 0;
    right: 0;
    text-decoration: none;
    color: transparent;
}

#loginlink:hover
{
    text-decoration: underline;
    color: red;
}