@font-face {
    font-family: "Cube";
    src: url("../fonts/cube/cube.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Liberation Sans";
    src: url("../fonts/liberation-sans/liberation-sans-regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Liberation Sans";
    src: url("../fonts/liberation-sans/liberation-sans-bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Corona PPC-400";
    src: url("../fonts/corona/corona-ppc-400.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Neistil";
    src: url("../fonts/neistil/neistil.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

* {
    border: 0px;
    padding: 0px;
    margin: 0px;
    font-family: "Liberation Sans", Verdana, Geneva, Tahoma, sans-serif;

}

html,
body {
    background-color: #1e2124;
}

body {
    background-image: url("../images/back-circuitboard.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.main {
    position: relative;
    display: grid;
    grid-template-rows: auto auto auto 1fr auto;
    margin-left: auto;
    margin-right: auto;
    width: 80vw;
    min-height: 100vh;
    color: #ddddcc;
    padding: 0px;
    animation: page-glitch 6s ease-in-out infinite;
}

@keyframes page-glitch {

    0%,
    92%,
    100% {
        transform: translate(0, 0);
        text-shadow: none;
    }

    93% {
        transform: translate(-2px, 1px);
        text-shadow: 2px 0 #00d9ff, -2px 0 #ff4757;
    }

    94% {
        transform: translate(2px, -1px);
        text-shadow: -2px 0 #00d9ff, 2px 0 #ff4757;
    }

    95% {
        transform: translate(-1px, 1px);
        text-shadow: 1px 0 #00d9ff, -1px 0 #ff4757;
    }

    96% {
        transform: translate(1px, 0);
        text-shadow: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .main {
        animation: none;
    }
}

h1,
h2{
    font-family: "Neistil", "Liberation Sans", Verdana, Geneva, Tahoma, sans-serif;
    font-weight: 700;
    text-shadow: 1px 1px #00ff00, -1px -1px #ff00ff;
    color: #ddddcc;
}

h3,
h4,
h5,
h6 {
    font-family: "Corona PPC-400", "Liberation Sans", Verdana, Geneva, Tahoma, sans-serif;
    font-weight: 700;
    text-shadow: 1px 1px #00ff00, -1px -1px #ff00ff;
    color: #ddddcc;
}

h1 {
    font-size: 2.5em;
}

h2 {
    font-size: 2em;
}

h3 {
    font-size: 1.6em;
}

h4 {
    font-size: 1.3em;
}

h5 {
    font-size: 1.1em;
}

h6 {
    font-size: 0.9em;
}

.top-spacer {
    height: 50px;
}

.header {
    background-color: #373531;
    border-radius: 20px 20px 0px 0px;
    border-left: 1px #373531 solid;
    border-right: 1px #373531 solid;
}

.header-link {
    display: block;
    width: fit-content;
    text-decoration: none;
    color: inherit;
}

.header-text {
    display: block;
    width: fit-content;
    font-family: "Cube", "Liberation Sans", Verdana, Geneva, Tahoma, sans-serif;
    font-size: 30px;
    text-shadow: 2px 2px 5px #00ff00;
    font-weight: bold;
    color: #ff00ff;
    margin-top: -24px;
    background-color: #373531;
    padding: 20px;
    padding-right: 25px;
    border-radius: 20px 20px 0px 0px;
    margin-left: -1px;
    margin-right: -1px;
    border-left: 1px #373531 solid;
    border-right: 1px #373531 solid;
}

.header-subtitle {
    font-family: "Corona PPC-400", "Liberation Sans", Verdana, Geneva, Tahoma, sans-serif;
    padding-left: 20px;
    transform: translateY(-8px);
    display: block;
}

.menu {
    border-bottom: 2px #706c53 solid;
    padding-left: 20px;
    background-color: #373531;
    border-left: 1px #373531 solid;
    border-right: 1px #373531 solid;

}

.menu a {
    text-decoration: none;
    color: #ddddcc;
    background-color: #3e3c2e;
    font-family: "Corona PPC-400", "Liberation Sans", Verdana, Geneva, Tahoma, sans-serif;
}

.menu a:hover {
    color: #ffc000;
    background-color: #706c53;
}

.menu a:active {
    color: #ffff00;
}

.menu a {
    display: inline-block;
    border: 2px #706c53 solid;
    border-radius: 10px 10px 0px 0px;
    border-bottom: 0px;
    padding: 9px 25px 5px 10px;
}

.menu a.active {
    position: relative;
    bottom: -2px;
    background-color: #373531;
    border-bottom: 0px;
    color: #ffc000;
}

.body {
    line-height: 1.4;
    padding: 10px;
    padding-left: 20px;
    padding-right: 20px;
    background-color: #1e2124f0;
    background: linear-gradient(0deg, #1e2124f0 0%, #373531f0 100%);
    border-left: 1px #373531 solid;
    border-right: 1px #373531 solid;
}


.body a {
    text-decoration: none;
    color: #ffc000;
}

.body a:hover {
    color: #c0ff00;
}

.pagelist-item {
    margin-top: 20px;
    margin-bottom: 20px;
}

.pagelist-item p {
    margin-top: 5px;
    margin-bottom: 5px;
}

.card-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
    margin-bottom: 20px;
}

.card-photo {
    background-color: #1e2124;
    border: 1px #373531 solid;
    padding: 8px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
}

.card-photo-link {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-photo img {
    display: block;
    max-width: min(400px, 100%);
    max-height: 200px;
    width: auto;
    height: auto;
}

.card-photo figcaption {
    margin-top: 6px;
    font-size: 0.9em;
    color: #ddddcc;
}

.pagelist-item .read-more {
    font-size: 0.9em;
}


.footer {
    font-size: 12px;
    color: #676561;
    border-top: 1px #373531 solid;
    text-align: right;
    padding: 10px;
    background-color: #1e2124;
    border-left: 1px #373531 solid;
    border-right: 1px #373531 solid;
}


@media (pointer: none), (pointer: coarse), (max-width: 700px) {
    .main {
        width: 100vw;
    }
    .header-text {
        font-size: 14px;
    }
}
