/* Base styles */
/* *, *::before, *::after {
    box-sizing: content-box;
} */

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Tahoma', 'Verdana', 'Arial', 'CERN-www Web', sans-serif;
    text-align: center;
    
    /* background: url('/assets/body_noise.png') repeat;*/
    background-color: black;
    background-image: url('/assets/current-wallart.jpg');
    background-repeat: repeat-x;
    background-size: auto 960px;
    background-attachment: fixed;
    background-position: center top;
    
    font-size: 15px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Fira Sans', 'Trebuchet MS', 'Aller', 'Ubuntu', 'PT Sans', 'Lato', 'Source Sans Pro', 'Source Sans 3', 'Arial', sans-serif;
}

button {
    border-radius: 0px;
    padding: 8px;
    cursor: pointer;
}

a img {
    border: none;
}

input[type="text"], input[type="password"] {
    width: 205px;
    height: 16px;
    font-size: 14px;
    padding: 5px;
}

input[type="submit"] {
    width: auto;
    height: 32px;
    font-size: 14px;
    padding: 5px;
    border-radius: 0px;
}

#userpage-pfp {
    display: inline-block;
    border: 4px inset palegoldenrod;
}

.icon {
    display: inline-block;
    vertical-align: text-bottom;
    height: 1em;
    width: auto;
}

.page-container {
    width: 960px;
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
    box-shadow: 0 0 32px 6px rgba(0, 0, 0, 0.5);
}

.site-banner {
    width: 960px;
    height: auto;
    display: block;
    text-align: center;
}

.site-banner img {
    width: 960px;
    height: auto;
    display: block;
}

.link-bar {
    width: auto;
    background: #222;
    text-align: left;
    padding: 8px 10px;
    border-top: 1px solid black;
    border-bottom: 1px solid black;
}

.link-bar a {
    color: white;
    font-family: Trebuchet MS, CERN-www Web, 'nsanssym2', sans-serif;
    margin: 0 10px;
    text-decoration: none;
    font-weight: bold;
    font-size: 12px;
}

.link-bar a:hover {
    color: yellow;
    text-decoration: underline;
}

.content-area {
    width: auto;
    min-height: 75vh;
    background-color: #ffeebf;
    padding: 25px;
    text-align: left;
    border: 1px solid black;
}

.footer {
    width: auto;
    text-align: center;
    background-color: #ffe08a;
    padding: 18px;
    border-left: 1px solid black;
    border-right: 1px solid black;
    border-bottom: 1px solid black;
    color: black;
    /*border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;*/
}

.footer a {
    color: black;
}

.footer-badges {
    display: block;
    margin: auto;
    text-align: center;
}

/* Media queries for smaller screens */
@media (max-width: 960px) {
    .page-container {
        max-width: 960px; /* Maximum width to keep it from getting too large (fallback) */
        max-width: 100vw; /* Maximum width matching the browser window */
        display: table; /* Behaves like a table for alignment */
        margin: 0 auto; /* Centers the page container */
        box-sizing: border-box;
        padding-top: 0px;

        width: 100%;
        height: 100%;
        /*background-color: #ffe08a;*/
        background-color: #fff;
        background-image: url('/assets/current-wallart.jpg');
        background-attachment: fixed;
        background-repeat: no-repeat;
        background-position: center top;
        background-size: cover;
    }

    .site-banner {
        width: 100%;
        display: block;

        height: auto;
    }

    .site-banner img {
        width: 100%;
        height: auto;
        display: block;
    }

    .link-bar {
        width: 100%;
        height: 75px;
        background: #222;
        text-align: left;
        padding: 8px 10px;
        box-sizing: border-box;
        display: block;
        color: black;
        background: linear-gradient(to bottom, #ffebb3, #ffdd80);
        
        position: fixed;
        bottom: 0;
        left: 0;
        z-index: 9999;

        box-shadow: none;

        overflow-x: auto;
        white-space: nowrap;
        max-width: 100vw;
    }

    .link-bar a {
        color: black;
        text-decoration: none;
        font-weight: bold;
        font-size: 11px;
        margin: 0 5px;
        padding: 6px 6px;
        display: inline-block;
    }

    .content-area {
        width: 100%;
        max-width: 100vw;
        padding: 25px;
        box-sizing: border-box;
        display: block;
        text-align: left;
        border: none;

        padding: 3.5vw; /* Adjusted padding for smaller screens */
        font-size: 13px;
        height: 100%;
        box-shadow: none;
        backdrop-filter: blur(16px);
        background-color: rgba(255, 255, 255, 0.80);
    }

    .footer {
        padding: 18px;
        margin-bottom: 64px;
        border: none;
        border-bottom-left-radius: none;
        border-bottom-right-radius: none;
    }

    input {
        display: block;
        width: 100% !important;
        max-width: 100%;
        min-width: 0px;
        box-sizing: border-box;
        height: 40px !important;
    }
    form {
       width: 100%;
       min-width: 0px;
    }
}


/* font descriptors */

@font-face {
    font-family: 'CERN-www Headline Bold Web';
    src:    url('/assets/fonts/cern-www/CERN-www-headline-bold.woff2') format('woff2'),
    url('/assets/fonts/cern-www/CERN-www-headline-bold.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'CERN-www 14 Oblique Web';
    src:    url('/assets/fonts/cern-www/CERN-www-oblique-14.woff2') format('woff2'),
    url('/assets/fonts/cern-www/CERN-www-oblique-14.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}


@font-face {
    font-family: 'CERN-www 14 Bold Web';
    src:    url('/assets/fonts/cern-www/CERN-www-bold-14.woff2') format('woff2'),
    url('/assets/fonts/cern-www/CERN-www-bold-14.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/* Ohlfs Mono */

@font-face {
    font-family: 'CERN-www Mono Web';
    src:    url('/assets/fonts/cern-www/CERN-www-mono.woff2') format('woff2'),
    url('/assets/fonts/cern-www/CERN-www-mono.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/* Text family */

@font-face {
    font-family: 'CERN-www Web';
    src:    url('/assets/fonts/cern-www/CERN-www-regular.woff2') format('woff2'),
    url('/assets/fonts/cern-www/CERN-www-regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'CERN-www Web';
    src:    url('/assets/fonts/cern-www/CERN-www-regular-oblique.woff2') format('woff2'),
    url('/assets/fonts/cern-www/CERN-www-regular-oblique.woff') format('woff');
    font-weight: normal;
    font-style: italic;
}


@font-face {
    font-family: 'CERN-www Web';
    src:    url('/assets/fonts/cern-www/CERN-www-regular-bold.woff2') format('woff2'),
    url('/assets/fonts/cern-www/CERN-www-regular-bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'CERN-www Web';
    src:    url('/assets/fonts/cern-www/CERN-www-regular-bold-oblique.woff2') format('woff2'),
    url('/assets/fonts/cern-www/CERN-www-regular-bold-oblique.woff') format('woff');
    font-weight: bold;
    font-style: italic;
}

/* noto-sans-symbols-2-regular - latin_symbols */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'nsanssym2';
    font-style: normal;
    font-weight: 400;
    src: url('/assets/fonts/nsanssym2/nsanssym2.eot'); /* IE9 Compat Modes */
    src: url('/assets/fonts/nsanssym2/nsanssym2.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
    url('/assets/fonts/nsanssym2/nsanssym2.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
    url('/assets/fonts/nsanssym2/nsanssym2.woff') format('woff'), /* Chrome 5+, Firefox 3.6+, IE 9+, Safari 5.1+, iOS 5+ */
    url('/assets/fonts/nsanssym2/nsanssym2.ttf') format('truetype'), /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
    url('/assets/fonts/nsanssym2/nsanssym2.svg#NotoSansSymbols2') format('svg'); /* Legacy iOS */
}
