/* base style for non-customized pages */

/*========*/
/* Fonts */
/*======*/

@font-face {
    font-family: 'Open-Dyslexic';
    src: url('./Fonts/open-dyslexic.ttf') format('truetype');
}

/*============*/
/* Variables */
/*==========*/

:root {
    --margin: 10px;
    --padding: 14px;
    --sidebar-width: 225px;
    --main-section-width: 670px;
    --font: verdana, arial, sans-serif;
    --heading-font: 'Open-Dyslexic', sans-serif;
    --font-size: 14px;
    --text-color: #ffffff;
    --link-color: #7026e8;
    --link-color-hover: #7780ec;
    --content-background-color: rgba(32, 32, 32, 0.829);
    --border: 2px dashed #8000ff;
    --inner-border: 1px solid #8000ff;
    --round-borders: 14px;
    --nav-button-background: black;
    --nav-text: 'Open-Dyslexic';
    --nav-shadow: rgb(217, 67, 255);
}

/*===============*/
/* General Stuff */
/*===============*/

* {
  box-sizing: border-box;
  scrollbar-color: var(--link-color) black;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    padding: var(--margin);
    line-height: 1.2;
    color: var(--text-color);
    font-family: var(--font);
    font-size: var(--font-size);
    background-image: url('./BGs/moonnstars.gif');
}

.layout {
    width: 1200px;
    display: grid;
    grid-gap: var(--margin);
    grid-template: "header header header" auto "leftSidebar main rightSidebar" auto "footer footer footer" auto / var(--sidebar-width) var(--main-section-width) var(--sidebar-width);

}

.overflow {
  font-size: 10px;
  overflow: auto; height: 100px;
  padding: 2px;
}

main {
  grid-area: main;
  overflow-y: auto;
  padding: var(--padding);
  background: var(--content-background-color);
  border: var(--border);
  border-radius: var(--round-borders);
  height: 1600px;
}

/*=========================*/
/* Header (of page) Stuff */
/*=======================*/

header {
  grid-area: header;
  font-size: 1.2em;
}

.header-image img {
  width: 100%;
  height: auto;
}

/*=============*/
/* Navigation */
/*===========*/

nav {
  display: flex;
  justify-content: center;
}

nav a {
  display: inline-block;
  text-align: center;
  padding: 10px;
  margin: 5px;
  background-color: var(--nav-button-background);
  border: var(--border);
  border-radius: var(--round-borders);
  font-family: var(--nav-text);
  text-shadow: 1px 1px 4px var(--nav-shadow);
  text-decoration: none;
}

/*Dropdown Button*/
nav > div {
  display: inline-block;
  position: relative;
    text-align: center;
  padding: 10px;
  margin: 5px;
  background-color: var(--nav-button-background);
  border: var(--border);
  border-radius: var(--round-borders);
  color: var(--link-color);
  font-family: var(--nav-text);
  text-shadow: 1px 1px 4px var(--nav-shadow);
  text-decoration: none;
}

/*Dropdown Menu*/

nav div div {
  display: none;
  position: absolute;
  background: transparent;
  z-index: 1;
}

nav div div a {
  color: var(--link-color);
  font-family: var(--font);
  text-decoration: none;
  display: block;
}

nav div:hover div {
  display: block;
}

/*================*/
/* Sidebar Stuff */
/*==============*/

aside {
  border: var(--border);
  border-radius: var(--round-borders);
  overflow: hidden;
  background: var(--content-background-color);
  padding: var(--padding);
  color: var(--text-color);
}

.left-sidebar {
  grid-area: leftSidebar;
}

.right-sidebar {
  grid-area: rightSidebar;
}

.sidebar-title {
  font-weight: bold;
  font-size: 1.2em;
  font-family: var(--heading-font);
  text-shadow: 1px 1px 4px var(--link-color);
}

.sidebar-section {
  border: var(--inner-border);
  padding: var(--padding)
}

.sidebar-section:not(:last-child) {
  margin-bottom: 1em;
}

.sidebar-section ul,
.sidebar-section ol {
  padding-left: 1.5em;
}

.sidebar-section > *:not(p):not(ul):not(ol):not(blockquote) {
  margin-top: 5px;
}

/* Use this to center img or elements (i.e. site button) */

.centered-element {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.centered-element textarea {
  font-family: monospace;
  font-size: 0.7em;
}

/*===============*/
/* Footer Stuff */
/*==============*/

footer {
  grid-area: footer;
  border: var(--border);
  border-radius: var(--round-borders);
  overflow: hidden;
  font-size: 0.75em;
  padding: 15px;
  background: var(--content-background-color);
  display: flex;
  justify-content: center;
}

/*=====================*/
/* Main Section Stuff */
/*====================*/

main {
  line-height: 1.5;
  overflow-x: hidden;
}

main p,
main .image,
main .full-width-image,
main .two-columns {
  margin: 0.75em 0;
}

main ol,
main ul {
  margin: 0.5em 0;
  padding-left: 1.5em;
}

main ol li,
main ul li {
  margin-bottom: 0.2em;
  line-height: 1.3;
}

main ol {
  padding-left: 2em;
}

main pre {
  margin: 1em 0 1.5em;
}

main code {
  text-transform: none;
}

/* COLUMNS: */

.two-columns {
  display: flex;
}

.two-columns > * {
  flex: 1 1 0;
  margin: 0;
}

.two-columns > *:first-child {
  padding-right: 0.75em;
}

.two-columns > *:last-child {
  padding-left: 0.75em;
}

.flex-box {
  display: flex;
  justify-content: center;
  align-items: center;
}

/*============================*/
/* Header (text) Stuff */
/*==========================*/

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--heading-font);
    margin-bottom: 0;
    line-height: 1.5;
}

h1:first-child,
h2:first-child,
h3:first-child,
h4:first-child,
h5:first-child,
h6:first-child {
  margin-top: 0;
}

h1 {
  font-size: 1.5em;
  text-align: center;
  text-shadow: 1px 1px 5px var(--link-color);
  color: var(--text-color);
}

h2 {
  font-size: 1.4em;
}

h3 {
  font-size: 1.3em;
}

h4 {
  font-size: 1.2em;
}

h5 {
  font-size: 1.1em;
}

h6 {
  font-size: 1em;
}

/*=============*/
/* List Stuff */
/*===========*/

ul,
ol {
    margin: 0.5em 0;
    padding-left: 1.5em;
}

ul li,
ol li {
    margin-bottom: 0.2em;
    line-height: 1.3;
    cursor: default;
}

ul {
  list-style: '⯎ ';
}

ul li {
  padding-bottom: 5px;
}

/*====================*/
/* Text Content Stuff */
/*====================*/

p {
  text-align: justify;
  cursor: default;
}

.small-text {
  font-size: 11px;
}

::selection {
  /* (Text highlighted by the user) */
  background: rgba(216, 112, 241, 0.2);
}

blockquote {
  background: rgba(204, 0, 255, 0.1);
  padding: 15px;
  margin: 1em 0;
  border-radius: 10px;
}

mark {
  /* Text highlighted by using the <mark> element */
  text-shadow: 2px 2px 50px var(--link-color);
  background-color: inherit;
  color: var(--text-color);
}

center {
  margin: 1em 0;
  padding: 0 1em;
}

hr {
  border: 0;
  border-top: var(--border);
  margin: 1.5em 0;
}

/*=============*/
/* Link Stuff */
/*===========*/

a {
  text-decoration: underline;
}

a,
a:visited {
  color: var(--link-color);
}

a:hover,
a:focus {
  color: var(--link-color-hover);
  text-decoration: none;
}

/*==============*/
/* Image Stuff */
/*============*/

.image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
}

.full-width-image {
  display: block;
  width: 100%;
  height: auto;
}

.images {
  display: flex;
  width: calc(100% + 5px + 5px);
  margin-left: -5px;
  margin-right: -5px;
}

.images img {
  width: 100%;
  height: auto;
  padding: 5px;
  margin: 0;
  overflow: hidden;
}

/*=========================*/
/*Responsive Youtube Embed*/
/*=======================*/

.video-container {
    overflow: hidden;
    position: relative;
    width:100%;
}

.video-container::after {
    padding-top: 56.25%;
    display: block;
    content: '';
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/*======================*/
/* Accessibility Stuff */
/*=====================*/

#skip-to-content-link {
  position: fixed;
  top: 0;
  left: 0;
  display: inline-block;
  padding: 0.375rem 0.75rem;
  line-height: 1;
  font-size: 1.25rem;
  background-color: var(--content-background-color);
  color: var(--text-color);
  transform: translateY(-3rem);
  transition: transform 0.1s ease-in;
  z-index: 99999999999;
}

#skip-to-content-link:focus,
#skip-to-content-link:focus-within {
  transform: translateY(0);
}


/*====================*/
/*MARQUEE REPLACEMENT*/
/*==================*/

#blinkies {
  display: flex;
  animation-name: scroll;
  animation-duration: 60s;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}

#blinkies:hover {
  animation-play-state: paused;
}

@keyframes scroll {
  0%   { transform: translate(0, 0); }
  50% { transform: translate(-760%, 0); }
  100% { transform: translate(20%, 0);}
}