/* vesmanis.com – same look as the original 2011 table layout, rebuilt in plain CSS */

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
    min-height: 100vh;
    background: #002933 url('../img/grad.png') repeat-x top left;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
}

a { color: #76F81C; text-decoration: underline; }
img { display: block; max-width: 100%; height: auto; }

/* ---------- Home page ---------- */

.page-home { padding-top: 300px; }

.logo img { margin: 0 auto; }

.line {
    height: 1px;
    margin-top: 40px;
    background: url('../img/line.png') repeat-x;
}

.menu {
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('../img/middle.png') top repeat-x;
}

.menu ul {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* 1×20 px separator between icons, centred in a 35 px gap (like the original table cells) */
.menu li + li::before {
    content: "";
    display: inline-block;
    width: 1px;
    height: 20px;
    margin: 0 17px;
    vertical-align: middle;
    background: url('../img/seperator.png') no-repeat;
}

.menu li { display: flex; align-items: center; }

.menu a {
    display: block;
    width: 30px;
    height: 30px;
    background: var(--icon) no-repeat center / 30px 30px;
}

.menu a:hover,
.menu a:focus-visible { background-image: var(--icon-hover); }

/* Preload hover icons so the swap is instant */
.page-home::after {
    content: url('../img/ikonas/mailb.png') url('../img/ikonas/filesb.png') url('../img/ikonas/musicb.png')
             url('../img/ikonas/galleryb.png') url('../img/ikonas/toolsb.png') url('../img/ikonas/gateb.png') url('../img/ikonas/zabbixb.png');
    position: absolute; width: 0; height: 0; overflow: hidden; opacity: 0; pointer-events: none;
}

/* ---------- Options ("tools") page ---------- */

.page-tools {
    padding-top: 1px;
    background-image: url('../img/opcijas/tools-bg.png');
}

.tools { width: 588px; max-width: 100%; margin: 0 auto; }

.tools img { margin: 0 auto; }

.escape {
    display: block;
    width: 588px;
    max-width: 100%;
    aspect-ratio: 588 / 86;
    background: url('../img/opcijas/ej-prom1.png') no-repeat center / contain;
}

.escape:hover,
.escape:focus-visible { background-image: url('../img/opcijas/ej-prom2.png'); }

.page-tools::after {
    content: url('../img/opcijas/ej-prom2.png');
    position: absolute; width: 0; height: 0; overflow: hidden; opacity: 0; pointer-events: none;
}

/* ---------- Small screens ---------- */

@media (max-width: 600px) {
    .page-home { padding-top: 25vh; }
    .logo { padding: 0 16px; }
    .menu li + li::before { margin: 0 10px; }
}
