/*                                                  */
/*             font imports for styling             */
/*                                                  */

@font-face {
    font-family: MSSansSerif;
    src: url(fonts/MSSansSerif.woff2) format("woff2");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: PixelOperator;
    src: url(fonts/PixelOperator.woff2) format("woff2");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: PixelOperator;
    src: url(fonts/PixelOperator-Bold.woff2) format("woff2");
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/*                                                  */
/*             main stuff for the site!             */
/*                                                  */

:root {
    --body-bg-image: url(./bkgs/bck-grid.gif);
    --text-color: #dedede;
    --text-color-highlight: #d12f2f;
    --text-color-secondary-highlight: #baacec;
    --background-color-main: #1c2053;
    --background-color-secondary: #030a18;
    --background-color-tertiary: #0d0725;
    --link-hover: #fccdad;
}

body {
    font-family: PixelOperator, MSSansSerif, sans-serif;
    font-size: 18px;
    line-height: 1.5;
    margin: 0;
    background-color: var(--background-color-tertiary);
    background-size: 100px;
    color: var(--text-color);
    background-image: var(--body-bg-image);
}

* {
    box-sizing: border-box;
}

#container {
    max-width: 1100px;
    margin: 0 auto;
}

#headerArea a {
    color: var(--text-color-highlight);
    font-weight: normal;
    text-decoration: none;
}

#container li a:hover {
    text-decoration: underline;
    color: var(--link-hover);
}

#header {
    width: 100%;
    height: 150px;
    background-size: 100%;
    align-items: center;
    justify-content: center;
    display: flex;
}

/* navigation section */
#navbar {
    height: 40px;
    width: 100%;
}

#navbar ul {
    display: flex;
    padding: 0;
    margin: 0;
    list-style-type: none;
    justify-content: space-evenly;
}

#navbar li {
    padding-top: 10px;
}

#navbar li a {
    color: var(--text-color-highlight);
    font-weight: 800;
    text-decoration: none;
}

#navbar li a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

#flex {
    display: flex;
}

aside {
    background-color: var(--background-color-secondary);
    width: 250px;
    padding: 20px;
    font-size: 18px;
}

aside h2 {
    text-align: center;
}

aside li {
    margin-bottom: 10px;
    margin-left: -20px;
    font-size: 18px;
}

aside li a {
    color: var(--text-color-secondary-highlight);
}

main {
    background-color: var(--background-color-main);
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    order: 2;
}

main div.maintext h1 {
    text-align: center;
}

main div.webmedia {
    padding: 10px 10px 2px 10px;
    border: 4px dotted;
}

main div.webmedia h2 {
    margin-top: 0;
    margin-bottom: 10px;
    text-align: center;
}

#leftSidebar {
    order: 1;
    margin-right: 10px;
}

#rightSidebar {
    order: 3;
}

footer {
    background-color: var(--background-color-tertiary);
    width: 100%;
    height: 40px;
    padding: 10px;
    text-align: center;
}

h1, h2, h3 {
    color: var(--text-color-highlight);
}

h1 {
    font-size: 30px;
}

strong {
    color: var(--text-color-highlight);
}

/* this is just a cool box, it's the darker colored one */
.box {
    background-color: var(--background-color-tertiary);
    border: 1px dashed var(--text-color-highlight);
    margin-top: 10px;
    padding: 0px 10px;
}

.box p {
    font-size: 16px;
}

.box a {
    color: var(--text-color-secondary-highlight);
    font-weight: normal;
    text-decoration: none;
}

.box a:hover {
    color: var(--link-hover);
    text-decoration: none;
}

.wavy-auto > span {
    display: inline-block;
    animation: wave 1.2s infinite ease-in-out;
    animation-delay: calc(-0.1s * var(--i));
}

.button-row {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: center;
    gap: 4px;
    margin-top: 0;
}

.stamp-row {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: center;
    gap: 4px;
    margin-top: auto;
    margin-bottom: 12px;
}

.button-row img {
    display: block;
    width: 100%;
    height: 31px;
    object-fit: contain;
}

.stamp-row img {
    display: block;
    width: 88px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    justify-self: center;
}

.blinky-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    gap: 4px;
    margin-top: 12px;
}

.blinky-row img {
    display: block;
    width: 100%;
    height: 40px;
    object-fit: contain;
    gap: 4px;
}

@keyframes wave {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-2px);
    }
    100% {
        transform: translateY(0);
    }
}

	@-webkit-keyframes snowflakes-fall {
		0% {
			top: -10%
		}
		100% {
			top: 100%
		}
	}
	
	@-webkit-keyframes snowflakes-shake {
		0%,
		100% {
			-webkit-transform: translateX(0);
			transform: translateX(0)
		}
		50% {
			-webkit-transform: translateX(80px);
			transform: translateX(80px)
		}
	}
	
	@keyframes snowflakes-fall {
		0% {
			top: -10%
		}
		100% {
			top: 100%
		}
	}
	
	@keyframes snowflakes-shake {
		0%,
		100% {
			transform: translateX(0)
		}
		50% {
			transform: translateX(80px)
		}
	}
	
	.snowflake {
		position: fixed;
		top: -10%;
		z-index: -1;
		-webkit-user-select: none;
		-moz-user-select: none;
		-ms-user-select: none;
		user-select: none;
		-webkit-animation-name: snowflakes-fall, snowflakes-shake;
		-webkit-animation-duration: 20s, 6s;
		-webkit-animation-timing-function: linear, ease-in-out;
		-webkit-animation-iteration-count: infinite, infinite;
		-webkit-animation-play-state: running, running;
		animation-name: snowflakes-fall, snowflakes-shake;
		animation-duration: 20s, 6s;
		animation-timing-function: linear, ease-in-out;
		animation-iteration-count: infinite, infinite;
		animation-play-state: running, running
	}
	
	.snowflake:nth-of-type(0) {
		left: 1%;
		-webkit-animation-delay: 0s, 0s;
		animation-delay: 0s, 0s
	}
	
	.snowflake:nth-of-type(1) {
		left: 10%;
		-webkit-animation-delay: 1s, 1s;
		animation-delay: 1s, 1s
	}
	
	.snowflake:nth-of-type(2) {
		left: 20%;
		-webkit-animation-delay: 6s, .5s;
		animation-delay: 6s, .5s
	}
	
	.snowflake:nth-of-type(3) {
		left: 30%;
		-webkit-animation-delay: 4s, 2s;
		animation-delay: 4s, 2s
	}
	
	.snowflake:nth-of-type(4) {
		left: 40%;
		-webkit-animation-delay: 2s, 2s;
		animation-delay: 2s, 2s
	}
	
	.snowflake:nth-of-type(5) {
		left: 50%;
		-webkit-animation-delay: 8s, 3s;
		animation-delay: 8s, 3s
	}
	
	.snowflake:nth-of-type(6) {
		left: 60%;
		-webkit-animation-delay: 6s, 2s;
		animation-delay: 6s, 2s
	}
	
	.snowflake:nth-of-type(7) {
		left: 70%;
		-webkit-animation-delay: 2.5s, 1s;
		animation-delay: 2.5s, 1s
	}
	
	.snowflake:nth-of-type(8) {
		left: 80%;
		-webkit-animation-delay: 1s, 0s;
		animation-delay: 1s, 0s
	}
	
	.snowflake:nth-of-type(9) {
		left: 90%;
		-webkit-animation-delay: 3s, 1.5s;
		animation-delay: 3s, 1.5s
	}
	
	.snowflake:nth-of-type(10) {
		left: 25%;
		-webkit-animation-delay: 2s, 0s;
		animation-delay: 2s, 0s
	}
	
	.snowflake:nth-of-type(11) {
		left: 65%;
		-webkit-animation-delay: 4s, 2.5s;
		animation-delay: 4s, 2.5s
	}

@media only screen and (max-width: 800px) {
    #flex {
        flex-wrap: wrap;
    }

    aside {
        width: 100%;
    }

    main {
        order: 1;
    }

    #leftSidebar {
        order: 2;
        margin-right: 0;
        border-top: 1px solid #ccc;
    }

    #rightSidebar {
        order: 3;
    }

    #navbar ul {
        flex-wrap: wrap;
    }
}
