:root {
    --page-height: 4200px;
    --toast-width: 380px;
    --toast-height: 65px;
    --overlap: 13px;
    --achievement-shadow: 0 -5px 16px rgba(0,0,0,.4), 0 5px 16px rgba(0,0,0,.4);
}

body {
    /*background: #000 url(i/bg.png) no-repeat top center;*/
    background: url(../i/bg1.png) center top no-repeat, url(../i/bg2.webp) center bottom no-repeat;
    background-color: #000;
    margin: 0;
    padding: 0;
	font-size: 14px;
	font-family:  "Future Rot", Arial, Tahoma, Verdana, Helvetica, sans-serif;
	color: white;
    height: var(--page-height);
}

a:link { color: #7ee702; text-decoration: none; font-weight: bold }
a:active { color: #7ee702; text-decoration: none; font-weight: bold }
a:visited { color: #7ee702; text-decoration: none; font-weight: bold }
a:hover { color: #7ee702; text-decoration: underline; font-weight: bold }


h2 {
    display: inline;
    padding: 0px;
    margin: 0px;
    font-size: 26px;
}


h3 {
    display: inline;
    padding: 0px;
    margin: 0px;
    font-size: 16px;
}

h5 {
    display: inline;
    padding: 0px;
    margin: 0px;
    font-family:  ui-monospace, Menlo, monospace;
    font-size: 12px;
}

figure {
	text-align:center;
}

figcaption {
	font-weight: bold;
	font-size: 14px;
	line-height: 14px;
	font-family: Arial, Tahoma, Verdana, Helvetica;
    padding: 2px;
	margin-top: -3px;
    text-align: center;
	border-radius: 3px;
}



.archive {
    position: absolute;
    top: 570px;
    left: 50%;
    width: 420px;
    margin-left: -200px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
}

.footer {
    position: absolute;
    top: calc(var(--page-height) - 20px);
    left: 50%;
    margin-left: -100px;
    width: 200px;
    text-align: center;
    font-size: 14px;
    font-weight: 800;
}

.new-banner {
    position: absolute;
    width: 78px;
    height: 96px;
    z-index: 999;
    left: 50%;
}

.nop2w {
    position: absolute;
    top: 905px;
    left: 50%;
    margin-left: -210px;
    z-index: 999;
    left: 50%;
    font-size: 13px;
    color: #f9ff53;
    text-shadow: 2px 2px 2px black;
}

.ra {
    position: absolute;
    top: 3500px;
    left: 50%;
    margin-left: 300px;
    z-index: 999;
    left: 50%;
    font-size: 22px;
    text-shadow: 2px 2px 2px black;
}

 

/* =================================
   NEWS TICKER
================================= */
.news-ticker {
    position: relative;
    width: 100%;
    overflow: hidden;
    color: white;
    height: 40px;
    display: flex;
    align-items: center;
}

.news-ticker-content {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    animation: news-scroll 20s linear infinite;
    padding-left: 100%;
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 18px;
}

.news-ticker-content .latest {
    background: #c00;
    color: white;
    padding: 4px 10px;
    margin-right: 15px;
}

.news-ticker:hover .news-ticker-content {
    animation-play-state: paused;
}

@keyframes news-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

/* =================================
   IMAGE VIEWER
================================= */
/* Thumbnails */
.thumbnail {
    cursor: zoom-in;
}

#imageViewer {
    border: none;
    padding: 0;
    margin: 0;

    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;

    background: transparent;
    overflow: hidden;
}

#imageViewer::backdrop {
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(5px);
}

#viewerImage {
    display: block;

    width: 100vw;
    height: 100vh;

    object-fit: contain;

    opacity: 0;
    transition: opacity 0.3s ease;

    cursor: zoom-out;
}

#viewerImage.loaded {
    opacity: 1;
}

.viewer-close {
    position: fixed;
    top: 20px;
    right: 25px;
    z-index: 10;

    color: white;
    background: rgba(0, 0, 0, 0.5);

    border: none;
    border-radius: 50%;

    width: 45px;
    height: 45px;

    font-size: 32px;
    line-height: 1;

    cursor: pointer;
}

.viewer-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.viewer-loader {
    position: absolute;
    inset: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;

    color: white;
    font-family: sans-serif;
    font-size: 14px;

    pointer-events: none;
}

.spinner {
    width: 45px;
    height: 45px;

    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: white;

    border-radius: 50%;

    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

#imageViewer.loaded .viewer-loader {
    display: none;
}

.viewer-error {
    display: none;

    position: absolute;
    inset: 0;

    align-items: center;
    justify-content: center;

    color: white;
    font-family: sans-serif;
}

#imageViewer.error .viewer-error {
    display: flex;
}

#imageViewer.error .viewer-loader {
    display: none;
}


/* =================================
   CUSTOM FONT LOADING
================================= */
@font-face {
    font-family: "Future Rot";
    src: url("../fonts/FutureRot.ttf") format("truetype"),
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}


@font-face {
    font-family: "SST Arabic Light";
    src: url("../fonts/SST Arabic Light.ttf") format("truetype"),
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}


* {
    box-sizing: border-box;
}


