/* RADIO GODSTAR - CHAOS ENGINE */

body {
    background-color: #000000;
    color: #cccccc;
    font-family: 'Times New Roman', Times, serif;
    margin: 0;
    padding: 0;
    /* Simulate a tiled background if image is missing */
    background-image: linear-gradient(0deg, transparent 24%, rgba(255, 255, 255, .05) 25%, rgba(255, 255, 255, .05) 26%, transparent 27%, transparent 74%, rgba(255, 255, 255, .05) 75%, rgba(255, 255, 255, .05) 76%, transparent 77%, transparent), linear-gradient(90deg, transparent 24%, rgba(255, 255, 255, .05) 25%, rgba(255, 255, 255, .05) 26%, transparent 27%, transparent 74%, rgba(255, 255, 255, .05) 75%, rgba(255, 255, 255, .05) 76%, transparent 77%, transparent);
    background-size: 50px 50px;
}

a {
    color: #ff0000;
    /* Red Links */
    text-decoration: none;
    font-weight: bold;
}

a:hover {
    background-color: #ff0000;
    color: #000000;
    cursor: crosshair;
    text-decoration: blink;
}

/* MARQUEE ANIMATION FOR BLINK TAG REPLACEMENT */
.blink {
    animation: blinker 1s linear infinite;
}

@keyframes blinker {
    50% {
        opacity: 0;
    }
}

/* LAYOUT TABLE */
.main-layout {
    width: 100%;
    height: 100vh;
    border-collapse: collapse;
}

.sidebar {
    width: 220px;
    background-color: #0a0a0a;
    border-right: 2px solid #333;
    vertical-align: top;
    padding: 15px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
}

.content {
    vertical-align: top;
    padding: 20px;
}

/* COMPONENTS */

.logo-text {
    font-family: 'Impact', sans-serif;
    font-size: 24px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 3px double #ff0000;
    margin-bottom: 20px;
    display: inline-block;
}

.nav-link {
    display: block;
    margin-bottom: 10px;
    border: 1px solid #333;
    padding: 5px;
    background-color: #000;
    text-align: center;
}

/* GLITCH ANIMATIONS */
@keyframes glitch-anim-1 {
    0% {
        clip: rect(20px, 9999px, 80px, 0);
    }

    20% {
        clip: rect(60px, 9999px, 10px, 0);
    }

    40% {
        clip: rect(80px, 9999px, 30px, 0);
    }

    60% {
        clip: rect(10px, 9999px, 60px, 0);
    }

    80% {
        clip: rect(50px, 9999px, 20px, 0);
    }

    100% {
        clip: rect(30px, 9999px, 90px, 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(60px, 9999px, 10px, 0);
    }

    20% {
        clip: rect(20px, 9999px, 90px, 0);
    }

    40% {
        clip: rect(50px, 9999px, 40px, 0);
    }

    60% {
        clip: rect(10px, 9999px, 70px, 0);
    }

    80% {
        clip: rect(90px, 9999px, 20px, 0);
    }

    100% {
        clip: rect(30px, 9999px, 50px, 0);
    }
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
}

.glitch-text::before {
    left: 2px;
    text-shadow: -1px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim-1 3s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -2px;
    text-shadow: -1px 0 #00fff9;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim-2 2s infinite linear alternate-reverse;
}

/* SPRITE CLASSES FOR BADGES */
.badge {
    width: 50px;
    height: 50px;
    display: inline-block;
    background-image: url("assets/sprites_badges.png");
    background-repeat: no-repeat;
}

.frame-h {
    background-image: url("assets/sprites_frames.png");
    height: 20px;
    background-position: top;
}

.nav-link:hover {
    border-color: #fff;
}

h1,
h2,
h3 {
    font-family: 'Courier New', Courier, monospace;
    color: #ffffff;
    text-transform: uppercase;
}

h1 {
    border-bottom: 1px dotted #666;
    padding-bottom: 10px;
}

.news-date {
    background-color: #ff0000;
    color: #000000;
    font-weight: bold;
    padding: 2px 5px;
    font-size: 12px;
}

.tracklist {
    font-family: 'Courier New', Courier, monospace;
    font-size: 11px;
    border: 1px solid #333;
    padding: 10px;
    background-color: #050505;
}

hr {
    border: 0;
    border-bottom: 1px dashed #666;
    margin: 20px 0;
}

.footer {
    font-size: 10px;
    color: #444;
    text-align: center;
    margin-top: 50px;
}