html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}

body {
	line-height: 1;
    color: white;
}

ol, ul {
	list-style: none;
}

blockquote, q {
	quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}

table {
	border-collapse: collapse;
	border-spacing: 0;
}

html {
    background-color: rgb(0, 26, 2);
    background-image: url(images/bg.png);
    background-size: 1920px 1080px;
    background-position: 50% 0;
    overflow-x: hidden;
    background-attachment: fixed;
}

#pages a {
    text-decoration: none;
    color: white;
    padding: 3px 7px 3px 7px;
    border-radius: 10px;
    background-color: rgb(43, 67, 43);
    box-shadow:
    0 0 2px rgb(43, 67, 43),
    0 0 5px rgb(43, 67, 43);
}

#pages a:hover {
    background-color: rgb(28, 63, 28);
    box-shadow:
    0 0 2px rgb(28, 63, 28),
    0 0 5px rgb(28, 63, 28);
}

h1 {
    font-family: "header";
    font-size: 54px;
    margin-right: 20px;
    text-shadow:
    0 0 5px red,
    0 0 5px red;
}

h2 {
    font-family: "header";
    font-size: 30px;
    text-shadow:
    0 0 5px red,
    0 0 5px red;
    text-align: center;
}

img {
    display: block;
    margin: auto;
}

/* CLASSES */

.topnav {
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    align-items: center;
    background-color: rgb(22, 54, 22);
    width: 100%;
    height: 70px;
    max-height: 70px;
    text-wrap: nowrap;
    box-shadow:
    0 0 5px rgb(16, 40, 16),
    0 0 15px rgb(16, 40, 16);
}

.logo {
    height: 50px;
    filter: brightness(999);
    margin: 5px;
    transition: all 0.15s;
}

.logo:hover {
    transform: scale(1.1);
}

.grid-container {
    margin: auto;
    margin-top: 30px;
    margin-bottom: 50px;
    display: grid;
    gap: 10px;
    font-family: 'main';
    line-height: 1.5;
}

.grid-container div {
    background-color: rgb(22, 54, 22);
    padding: 10px;
    box-shadow:
    0 0 5px rgb(16, 40, 16),
    0 0 15px rgb(16, 40, 16);
    margin: auto;
    width: 300px;
    transition: all 0.2s;
}

.grid-container div:hover {
    transform: scale(1.02);
}

p {
    text-align: center;
}

#item-1 { grid-area: p1; }
#item-2 { grid-area: p2; }
#item-3 { grid-area: p3; }
#item-4 { grid-area: p4; }

/* MEDIA QUERY */

@media screen and (max-width: 599px) {
    p {
        font-size: 18px;
    }

    .grid-container {
        grid-template-areas:
        'p1'
        'p2'
        'p3'
        'p4';
    }

    img {
        height: 250px;
    }
}

@media screen and (min-width: 600px) and (max-width: 1199px) {
    p {
        font-size: 22px;
    }

    .grid-container {
        grid-template-areas:
        'p1 p2'
        'p3 p4';
        width: 650px;
        gap: 20px;
    }

    .grid-container div {
        min-height: 400px;
    }


    img {
        height: 200px;
    }
}

@media screen and (min-width: 1200px) {
    p {
        font-size: 26px;
    }

    .grid-container {
        grid-template-areas:
        'p1 p2 p3 p4';
        width: 1350px;
        gap: 20px;
    }

    .grid-container div {
        min-height: 400px;
    }

    img {
        height: 150px;
    }
}

/* IDS */

#pages {
    font-family: "spooky";
    font-size: 52px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* FONTS */

@font-face {
    font-family: "header";
    src: url(font/header.ttf);
}

@font-face {
    font-family: "spooky";
    src: url(font/spooky.otf);
}

@font-face {
    font-family: "main";
    src: url(font/main.otf);
}