/* =========================================================
   YUNGK2V // OLD WEB 2000s
   Separate stylesheet
========================================================= */

* {
    box-sizing: border-box;
}

html {
    background: #080808;
}

body {
    margin: 0;
    padding: 0;
    background:
        radial-gradient(circle at top, #3d3d3d 0%, #161616 35%, #050505 100%);
    color: #dcdcdc;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 12px;
}

/* =========================================================
   MAIN WEBSITE
========================================================= */

.site {
    width: 920px;
    max-width: calc(100% - 20px);
    margin: 25px auto;
    background: #bdbdbd;
    border: 2px solid #666;
    box-shadow:
        0 0 0 1px #111,
        0 15px 50px rgba(0,0,0,.8);
}

/* =========================================================
   HEADER
========================================================= */

.header {
    height: 125px;
    padding: 18px 22px;
    position: relative;
    background:
        linear-gradient(
            135deg,
            #111 0%,
            #333 25%,
            #777 50%,
            #333 75%,
            #111 100%
        );
    border-bottom: 2px solid #222;
    overflow: hidden;
}

.header:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: #aaa;
}

.logo {
    font-family: Impact, "Arial Black", sans-serif;
    font-size: 42px;
    letter-spacing: 3px;
    color: #fff;
    text-shadow:
        2px 2px 0 #111,
        0 0 8px #000;
}

.logo span {
    color: #4aa3ff;
}

.tagline {
    margin-top: 3px;
    color: #ddd;
    font-size: 11px;
    letter-spacing: 2px;
}

.header-right {
    position: absolute;
    right: 20px;
    top: 20px;
    text-align: right;
    color: #bbb;
    font-family: monospace;
    font-size: 11px;
}

/* =========================================================
   NAVIGATION
========================================================= */

.nav {
    display: flex;
    background: #222;
    border-top: 1px solid #777;
    border-bottom: 2px solid #111;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.nav a {
    display: block;
    padding: 11px 17px;
    color: #eee;
    text-decoration: none;
    font-weight: bold;
    font-size: 11px;
    border-right: 1px solid #555;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}

.nav a:hover {
    background: #4a4a4a;
    color: #66b5ff;
}

.nav a.active {
    background: #555;
    color: #6ebcff;
}

/* =========================================================
   CONTENT
========================================================= */

.content {
    display: grid;
    grid-template-columns:
        180px
        1fr
        190px;
    gap: 8px;
    padding: 8px;
    background: #8c8c8c;
}

/* =========================================================
   BOXES
========================================================= */

.box {
    margin-bottom: 8px;
    background: #d4d4d4;
    border: 1px solid #444;
    box-shadow:
        inset 1px 1px 0 #eee,
        inset -1px -1px 0 #888;
}

.box-title {
    padding: 6px 8px;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    background:
        linear-gradient(
            #555,
            #222
        );
    border-bottom: 1px solid #222;
}

.box-body {
    padding: 9px;
    color: #222;
    line-height: 1.55;
}

.box-body a {
    color: #003f91;
    font-weight: bold;
    text-decoration: underline;
}

.box-body a:hover {
    color: #e00000;
}

/* =========================================================
   LEFT MENU
========================================================= */

.menu-link {
    display: block;
    padding: 6px 5px;
    border-bottom: 1px dotted #999;
    color: #003f91;
    text-decoration: none;
    font-weight: bold;
}

.menu-link:hover {
    background: #eee;
    color: #e00000;
}

/* =========================================================
   CENTER
========================================================= */

.welcome {
    background: #eee;
    border: 1px solid #555;
    padding: 14px;
    color: #222;
}

.welcome h1 {
    margin: 0 0 8px;
    color: #111;
    font-size: 20px;
    font-family: "Arial Black", Arial, sans-serif;
}

.welcome p {
    margin: 7px 0;
}

/* =========================================================
   LIVE CAMERA
========================================================= */

.live-preview {
    height: 235px;
    background: #050505;
    border: 2px inset #777;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.live-center {
    text-align: center;
    color: #555;
    font-family: monospace;
    font-size: 13px;
}

.live-center strong {
    display: block;
    color: #aaa;
    font-size: 18px;
    margin-bottom: 6px;
}

.live-label {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 7px;
    background: #a40000;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    border: 1px solid #ff5555;
}

.live-time {
    position: absolute;
    left: 8px;
    bottom: 8px;
    padding: 4px 7px;
    background: rgba(0,0,0,.8);
    color: #eee;
    font-family: monospace;
    font-size: 11px;
    border: 1px solid #444;
}

.watch {
    display: inline-block;
    margin-top: 8px;
    padding: 7px 12px;
    background:
        linear-gradient(#777,#222);
    border: 2px outset #aaa;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

.watch:active {
    border-style: inset;
}

/* =========================================================
   NEWS
========================================================= */

.news-item {
    padding: 8px 3px;
    border-bottom: 1px dotted #777;
}

.news-date {
    color: #777;
    font-family: monospace;
    font-size: 10px;
}

.news-item strong {
    color: #111;
}

/* =========================================================
   VISITOR COUNTER
========================================================= */

.counter {
    text-align: center;
    background: #111;
    color: #00ff00;
    padding: 8px;
    border: 2px inset #777;
    font-family: monospace;
    font-size: 17px;
    letter-spacing: 2px;
}

.counter-label {
    color: #aaa;
    font-size: 9px;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

/* =========================================================
   STATUS
========================================================= */

.online {
    color: #008000;
    font-weight: bold;
}

.online-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: #00a000;
    border: 1px solid #004000;
    margin-right: 5px;
}

/* =========================================================
   FOOTER
========================================================= */

.footer {
    padding: 15px;
    background: #222;
    border-top: 2px solid #555;
    text-align: center;
    color: #aaa;
    font-size: 10px;
    line-height: 1.7;
}

.footer a {
    color: #69b7ff;
}

/* =========================================================
   LIVE MODAL
========================================================= */

.live-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background:
        rgba(0,0,0,.92);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.live-modal.active {
    display: flex;
}

.camera-window {
    width: min(1100px, 95vw);
    height: min(650px, 82vh);
    position: relative;
    background: #000;
    border: 3px solid #666;
    box-shadow:
        0 0 0 1px #111,
        0 20px 80px #000;
}

.camera-top {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #9d0000;
    border: 1px solid #ff4c4c;
    padding: 5px 9px;
    color: #fff;
    font-family: monospace;
    font-weight: bold;
    font-size: 11px;
}

.paused {
    position: absolute;
    top: 50%;
    left: 50%;
    transform:
        translate(-50%, -50%);
    text-align: center;
    font-family: monospace;
    color: #777;
}

.paused strong {
    display: block;
    color: #aaa;
    font-size: 21px;
    margin-bottom: 8px;
}

.modal-timer {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 6px 9px;
    background: rgba(0,0,0,.85);
    border: 1px solid #444;
    color: #ddd;
    font-family: monospace;
    font-size: 12px;
}

.close {
    position: fixed;
    top: 18px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: #333;
    border: 2px outset #777;
    color: white;
    font-size: 22px;
    cursor: pointer;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
}

.close:active {
    border-style: inset;
}

/* =========================================================
   EMPTY PAGE MESSAGE
========================================================= */

.empty-msg {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-family: monospace;
    font-size: 14px;
}

.empty-msg strong {
    display: block;
    color: #444;
    font-size: 18px;
    margin-bottom: 10px;
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 760px) {

    .site {
        max-width: calc(100% - 8px);
        margin: 4px auto;
    }

    .header {
        height: auto;
        min-height: 90px;
        padding: 15px;
    }

    .logo {
        font-size: 28px;
        letter-spacing: 1px;
    }

    .tagline {
        font-size: 10px;
    }

    .header-right {
        display: none;
    }

    .content {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 6px;
    }

    .nav a {
        padding: 12px 14px;
        font-size: 12px;
    }

    .live-preview {
        height: 180px;
    }

    .camera-window {
        width: 98vw;
        height: 70vh;
    }

    .close {
        width: 40px;
        height: 40px;
        font-size: 18px;
        top: 8px;
        right: 8px;
    }

    .box {
        margin-bottom: 6px;
    }

    .welcome h1 {
        font-size: 16px;
    }
}

@media (max-width: 400px) {
    .logo {
        font-size: 22px;
    }

    .nav a {
        padding: 10px 11px;
        font-size: 11px;
    }
}
