/* ==-IMPORT FONT-======= */
@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:ital,wght@0,400;0,700;1,400;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible+Mono:ital,wght@0,200..800;1,200..800&family=Atkinson+Hyperlegible:ital,wght@0,400;0,700;1,400;1,700&display=swap');
  
/* ====================== */
/* ==-VARIABLES-========= */
/* ====================== */

:root {
/* ==-BACKGROUND COLOR-== */
  --background-color: #eeeeee;
  --content-background-color: #ffffff;
  --aside-background-color: #ffffff;
  --box-shadow-color: #00A4BD;

/* ==-TEXT COLOR-======== */
  --text-color: #000000;
  --aside-text-color: #000000;
  --link-color: #3026e8;
  --link-color-hover: #7780ec;

/* ==-FONT-============== */
  --font: 'Atkinson Hyperlegible', Verdana, sans-serif;
  --heading-font: 'Atkinson Hyperlegible', Verdana, sans-serif;
  --mono-font: 'Atkinson Hyperlegible Mono', Lucida, sans-serif;
  --font-size: 16px;

 /* ==-SIZING-============= */
  --margin: 5px;
  --padding: 30px;
  --border: 5px black;
  --round-borders: 0px;
  --aside-width: 160px;
  --main-width: 500px;

}

/* ====================== */
/* ==-BODY STRUCTURE-==== */
/* ====================== */

* {
  box-sizing: border-box;

}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0px;
  line-height: 1.2;
  color: var(--text-color);
  font-family: var(--font);
  font-size: var(--font-size);
  background: var(--background-color);
  background-image: url("");
  
}

/* ==-QUOTE BLOCK-======= */ 

#quote { 
  color: var(--text-color);
  border: 20px solid var(--background-color);
  border-radius: 20px;
  font-family: var(--font);
  text-align: left;
  background: var(--background-color); 
  box-shadow:  6px 5px var(--box-shadow-color);
  margin: auto;
  margin-bottom: 1.5em;

}

/* ====================== */
/* ==-MAIN GRID-========= */
/* ====================== */

.grid {
 width: 1000px;
 display: grid;
 grid-gap: var(--margin);
 grid-template: 
 "header header" auto
 "leftaside main" auto 
 "footer footer" auto
 / var(--aside-width) auto;
}

main {
  grid-area: main;
  padding: var(--padding);
  background: var(--content-background-color);
  border: var(--border);
  text-align: justify;
}


/* ====================== */
/* ==-HEADER-============ */
/* ====================== */

header {
  grid-area: header;
  font-size: var(--font-size);
  border: var(--border);
  background: var(--content-background-color);
}

.headerimg {
  width: 100%;
  height: auto;
}

.header-title {
  font-size: 2em;
  font-weight: bold;
  font-family: var(--heading-font);
}

.header-p {
  padding: var(--padding)
}

/* ====================== */
/* ==-SIDEBAR-=========== */
/* ====================== */

aside {
  grid-area: aside;
  border: var(--border);
  background: var(--aside-background-color);
  padding: 20px;
  color: var(--aside-text-color);
  text-align: left;
  overflow: hidden;
}

.leftaside {
  grid-area: leftaside;
}

.rightaside {
  grid-area: rightaside;
}

.aside-p {
 margin-bottom: 1.5em;
 padding-left: 0.1em;
}

.aside-title {
  font-size: 1.2em;
  font-weight: bold;
  font-family: var(--heading-font)
}

/* ==-NAV-============== */

.aside-p ul,
.aside-p ol {
  padding-left: 0.2em;
}

/* ====================== */
/* ==-FOOTER-============ */
/* ====================== */

footer {
  grid-area: footer;
  display: flex;
  border: var(--border);
  background: var(--aside-background-color);
  padding: 10px;
  color: var(--aside-text-color);
  justify-content: center;
  overflow: hidden;
}

/* ====================== */
/* ==-STYLING-=========== */
/* ====================== */

/* ==-FLOATY-============ */

.floatybox { /* wrap the images in the box! */
    position: relative; 
}

.floatyimg {
    position: absolute; 
    top: -40px; 
    right: 860px; 
    width: auto; 
    height: auto; 
    margin: 0; 
}

.floatyimg2 {
    position: absolute; 
    top: -20px; 
    right: -60px; 
    width: auto; 
    height: auto; 
    margin: 0; 
}


/* ==-BORDER DECO-======= */

#borderimg1 { 
border: 5px double var(--background-color);
}

/* ==-TEXT STUFF-======== */

mark {
  text-shadow: 1px 1px 4px var(--link-color);
  background-color: inherit;
  color: var(--text-color);
}

hr.dash {
  border-top: 3px dashed var(--background-color);
    margin-top: 1em; 
    margin-bottom: 1em; 
}

/* ==-MAIN HEADINGS-===== */

main h1 {
  font-size: 1.6em;
   margin: 0;
     font-weight: 550;
}

main h2 {
  font-size: 1.2em;
  margin: 0;
  margin-top: -0.1em; 
  font-weight: 400;
  font-style: italic;
}

main h3 {
  font-size: 1em;
  margin-top: -0.01em; 
  font-weight: normal;

}

main h4 {
  font-size: 1.3em;

}

main h5 {
  font-size: 1.2em;

}

main h6 {
  font-size: 1.1em;

}

main p {
    font-size: var(--font-size);
    padding-right: 1em;
}

.fieldquote {
  inline-size: 700px;
  display: flex;
  border: 1px solid var(--content-background-color);
  margin-block-end: 1em;
  
}

.field {
  inline-size: 700px;
  border: 1px solid var(--content-background-color);
  margin-block-end: 1em;
  
}


/* ==-NAV-============== */

nav {
  margin-bottom: 5px;
}

nav ul {
  margin: 0 5px;
  padding: 0;
  list-style: none;
}

/* ==-LINKS-============= */

a {
  text-decoration: underline;
}

a,
a:visited {
  color: var(--link-color);
}

a:hover,
a:focus {
  color: var(--link-color-hover);
}

::selection {
  background: rgba(0, 0, 0, 0.2);
}

/* ==-IMAGES-============ */

.image {
  display: block;
  width: 500px;
  height: 300px;
  max-width: 100%; 
  padding: 5px;
}

.image-fw {
  display: block;
  width: 100%;
  height: auto;
}

.scrollbox {
            border: 5px double var(--background-color);
            padding: 15px;
            margin-top: 20px;
            width: 100%;
            height: 500px;
            overflow-y: auto;
            box-shadow: 0 1px 5px var(--background-color);
        }

/* ==-MARQUEE-=========== */
 
marquee {
    overflow: hidden;
}

.blinkies {
    display: block;
} 

/* ====================== */
/* ==-RESPONSIVE-======== */
/* ====================== */

@media (max-width: 800px) {
 body {
  font-size: 14px;
}

.grid {
 width: 100%;
 grid-template: "header" auto "main" auto "leftaside" auto "footer" auto;
}

main {
  max-height: none;
  padding: 15px; 
}

.aside {
  padding: var(--padding);
}

}