@import url("https://fonts.googleapis.com/css2?family=Noto+Serif:ital,wght@0,400;0,700;1,400&display=swap");

@font-face {
    font-family: mojangles;
    src: url("mojangles.ttf");
}

body {
    font-family: "Noto Serif", serif;
    font-size: 13.5px;
    color: #f5f5f5;
    text-shadow: 1px 1px rgb(68, 68, 68);

    background-image: url("back.png");
    image-rendering: crisp-edges;
    margin: 0;
}

.mcServer {
	background-image: url("blue.png");
	image-rendering: crisp-edges;
	padding: 5px;
	border: 2px solid dimgray;
	margin-top: 10px;
	
	h4 {
		margin: 0;
	}
}

.classicServer {
	background-image: url("obsidian.png");
}

.betaServer {
	background-image: url("stone.png");
}

.modernServer {
	background-image: url("wood.png");
}

.mc-server-ip {
	font-size: 0.75rem; /*otherwise too big to fit*/
	padding: 0;
	margin: 0;
}

/*originally wanted this in footer alongside dej attribution but can't do that easily without modifying all pages (which I don't want to do)*/
.dexrn {
	position: absolute;
	right: 10px;
	color: lightgray;
}

.announcement {
    background-image: url("orange.png");
    border: 1px solid #ffb52b;
    text-align: center;
}

.wrap {
    max-width: 1104px;
    position: relative;
    margin: 0 auto;
    display: flex;
}

.logo {
    max-width: 500px;
    margin: 0 auto;
    display: block;
    position: relative;
}

.logo img {
    width: 100%;
    max-width: 500px;
    margin: auto;
    display: block;
    image-rendering: auto;
}

.rss img {
    width: 16px;
    position: absolute;
    top: 5px;
    right: 0px;
}

.splash {
    text-shadow: 2px 2px rgb(63, 63, 0);
    display: inline-block;
    text-decoration: none;
    position: absolute;
    color: yellow;
    text-align: center;
    font-size: 24px;
    writing-mode: horizontal-tb;
    z-index: 999;
    font-family: mojangles;
    max-width: 550px;
	pointer-events: none;

    bottom: 50px;
    right: 40px;
    transform: rotate(-20deg) translate(50%, 50%);
    transform-origin: right bottom;
    animation: splash-animation 0.25s linear infinite alternate;
}

.splash a,
.splash a:visited,
.splash a:link,
.splash a:active {
    color: yellow;
    text-decoration: none;
	pointer-events: auto;
	cursor: pointer; /**so that user knows they can click*/
}

@keyframes splash-animation {
    from {
        transform: scale(0.92) rotate(-20deg) translate(50%, 50%);
    }

    to {
        transform: scale(1) rotate(-20deg) translate(50%, 50%);
    }
}

nav {
    text-align: center;
    margin: 0 auto;
}

nav a,
nav a:visited,
nav a:active {
    width: 100px;
    border: 2px solid darkgray;
    border-bottom: 0px;
    display: inline-block;
    color: #f5f5f5;
    text-decoration: none;
    background-image: url("blue.png");
    background-color: #5679ca;
}

nav a:hover {
    background-image: url("lblue.png");
    background-color: #5679ca;
}

.main {
    width: 680px;
    max-width: 680px;
    min-height: 735px;
    background-image: url("main.png");
    border: 2px solid #a9a9a9;
    padding: 10px;
    padding-top: 0px;
    padding-bottom: 45px;
    margin-bottom: 10px;
    position: relative;
}

.main a,
.main a:visited {
    color: #45a3cf;
    text-shadow: none;
}

footer {
    position: absolute;
    bottom: 7px;
    padding-top: 0px;
    width: 97%;
}

footer hr {
    color: lightgray;
    margin-right: 0px;
}

footer a,
footer a:active,
footer a:visited {
    color: rgb(104, 135, 150);
}

.left,
.right {
    max-width: 200px;
    min-width: 200px;
}

.left {
    float: left;
}

.right {
    float: right;
}

.right ul,
.left ul {
    margin-left: -15px;
    margin-top: 0px;
    margin-bottom: 0px;
}

.window {
    border: 2px solid darkgray;
}

.window+.window {
    border-top: 0px;
}

.left .window {
    border-right: none;
}

.right .window {
    border-left: none;
}

.win-title {
    text-align: center;
    font-weight: bold;
    background-image: url("blue.png");
    border-bottom: 2px solid darkgray;
}

.win-content {
    background-image: url("side.png");
}

.win-content a,
.win-content a:active,
.win-content a:visited {
    color: rgb(125, 214, 255);
}

.win-content .hot {
    color: red;
}

.gallery {
    overflow: hidden;
}

.gallery figure {
    float: left;
    padding: 7px;
    border: 1px ridge gray;
    width: 200px;
    background-color: aliceblue;
    color: rgb(85, 85, 85);
    text-align: center;
    text-shadow: 1px 1px rgb(211, 211, 211);
    margin: 5px;
}

.gallery figure img {
    width: 200px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    image-rendering: auto;
}

.ytvid {
    margin: 0 auto;
    display: block;
}

.archive-table {
	width: 100%;
}

@media screen and (max-width: 828px) {

    html,
    body {
        overflow-x: hidden;
        font-size: 15px;
    }

    .wrap {
        flex-direction: column;
    }

    .wrap :nth-child(1) {
        order: 1;
    }

	.mc-server-ip {
		font-size: unset;
		padding: 0;
		margin: 0;
	}
	
    .wrap :nth-child(3) {
        order: 3;
    }

    .right,
    .left,
    .main {
        width: 100%;
        max-width: 100%;
        min-height: 0px;
        margin: 0 auto;
        padding-bottom: 0px;
        float: none;
    }

    .main {
        max-width: 97%;
    }

    footer {
        position: inherit;
        width: 97%;
    }

    footer hr {
        width: 100%;
    }

    .left .window {
        border-right: 2px solid darkgray;
        border-top: none;
    }

    .right .window {
        border-left: 2px solid darkgray;
        border-top: none;
    }
}

@media screen and (max-width: 660px) {
    nav {
        max-width: 400px;
    }

    nav a,
    nav a:active,
    nav a:visited {
        width: 120px;
    }

    /* .splash {
        display: block;
    } */
}
