/* Melon's Gallery Maker! 0.0.2+ */

* {
	box-sizing: border-box;
}

@font-face {
	font-family: Regular3270;
	src: url("https://synystyrrr.neocities.org/decor/fonts/3270-Regular.ttf");
}

body {
	background-image: url('https://synystyrrr.neocities.org/decor/wallpaper/marbleshine.gif');
    font-family: Regular3270, serif;
    background-color: #d6d6d6;
    font-size: 1.1em;
	margin: 8px;
	width: 50vw;
	color: azure;
}

.mainBlock {
	background-color: #0c0005;
	border: 6px ridge azure;
	display: flex;
	flex-direction: column;
	align-items: center;
}

a,
a:visited {
    color: azure;
    text-decoration: none;
	text-shadow: -2px -2px 3px azure, 2px -2px 3px azure,
		-2px 2px 3px #000, 2px 2px 3px #000;
}

a:hover {
	text-shadow: none;
}

header,
footer {
    padding: 5px;
}

nav {
    clear: both;
	display: flex;
	gap: 6px;
	width: 100%;
}

nav div {
	border: 4px ridge azure;
	background-color: #dfdfdf;
	padding: 4px;
	width: 50%;
	display: flex;
	flex-direction: column;
}

nav h2 {
	color: #0c0005;
	margin: 0;
	font-size: x-large;
	text-align: center;
}

footer {
    clear: both;
    font-size: 0.7em;
    padding-top: 10px;
}

/* Gallery Pages */

#photos {
    display: flex;
	justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
	gap: 6px;
}

#photos div {
	border: 4px ridge azure;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 4px;
	background-color: #dfdfdf;
	min-width: 170px;
}

#photos img {
    border: 4px ridge azure;
	max-height: 100px;
	height: 100px;
    /* Enable this for pixel art!! */
    /* image-rendering: pixelated; */
}

#photos img:hover {
    border-color: #ffda00;
}

#photos span {
    text-align: center;
    display: block;
}

#photos a {
	color: #0c0005;
	text-shadow: none;
}

#photos a:hover {
	font-style: italic;
}

.page-links {
    text-align: center;
}

.page-links ul {
    padding: 0px 5px;
    margin: 10px 0px;
    display: inline-block;
}
.page-links li {
    list-style: none;
    display: inline;
    margin: 0px 3px;
}

/* Mobile Styling */

@media (max-width: 800px) {
    body {
        padding: 10px;
    }

    #photos figure {
        width: 95%;
        max-width: unset;
    }

    #photos img {
        width: 100%;
    }
}

/* Styling for JavaScript viewer (if enabled) */

#js-viewer {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.612);
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
}

#js-viewer img {
    max-width: 95%;
    max-height: 80%;
    height: 80%;
    width: auto;
    border: 3px ridge #c3c3c3;
}

#js-viewer span {
    margin-top: 10px;
}

#js-viewer span button {
    border-radius: 0px;
    border: 2px outset #cecece;
    background-color: #e2e2e2;
    cursor: pointer;
}

#js-viewer span button:hover {
    border: 2px inset #cecece;
    background-color: #b8b8b8;
}


/*alec lownes crt effect*/
.crt::before {
	content: " ";
	display: block;
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
	z-index: 2;
	background-size: 100% 2px, 3px 100%;
	pointer-events: none;
}
/*crt effect end*/