﻿/* ---- reset ---- */

body {
    margin: 0;
    font: normal 75% Arial, Helvetica, sans-serif;
}

canvas {
    display: block;
    vertical-align: bottom;
}
/* ---- particles.js container ---- */

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #1193cc;
    background-image: url('/img/loginbackground.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50% 50%;
}
/* ---- stats.js ---- */

.count-particles {
    background: #000022;
    position: absolute;
    top: 48px;
    left: 0;
    width: 80px;
    color: #13E8E9;
    font-size: .8em;
    text-align: left;
    text-indent: 4px;
    line-height: 14px;
    padding-bottom: 2px;
    font-family: Helvetica, Arial, sans-serif;
    font-weight: bold;
}

.js-count-particles {
    font-size: 1.1em;
}

#stats, .count-particles {
    -webkit-user-select: none;
    margin-top: 5px;
    margin-left: 5px;
}

#stats {
    border-radius: 3px 3px 0 0;
    overflow: hidden;
}

.count-particles {
    border-radius: 0 0 3px 3px;
}

.card-no-border {
    background-color: #02012b;
}

/* Centered regardless of viewport size or browser zoom level.
   Breakpoints below only scale the card; they never reposition it. */
.panel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 10px;
    border-radius: 4px;
    box-sizing: border-box;
    z-index: 100;
    width: 300px;
    max-width: 90vw;
}

@media only screen and (min-width : 768px) {
    .panel {
        width: 350px;
        padding: 20px;
    }
}

/* Large-card variant for genuine 4K displays only.
   The min-resolution guard keeps it from triggering when the user
   merely zooms the browser out (which also widens the CSS viewport
   to 2560px but drops devicePixelRatio below 1). */
@media only screen and (min-width : 2560px) and (min-resolution : 1dppx) {
    .panel {
        font-size: 25px;
        width: 700px;
        padding: 30px;
    }
}
