/******************************************************************************
START Glitch hello-app default styles

The styles in this section do some minimal CSS resets, set default fonts and 
colors, and handle the layout for our footer and "Remix on Glitch" button. If
you're new to CSS they may seem a little complicated, but you can scroll down
to this section's matching END comment to see page-specific styles.
******************************************************************************/
/* Our default values set as CSS variables */
:root {
  /* selenized  dark colors  */
  --bg-0: #103c48;
  --bg-1: #184956;
  --bg-2: #2d5b69;
  --dim-0: #72898f;
  --fg-0: #adbcbc;
  --fg-1: #cad8d9;

  --red: #fa5750;
  --green: #75b938;
  --yellow: #dbb32d;
  --blue: #4695f7;
  --magenta: #f275be;
  --cyan: #41c7b9;
  --orange: #ed8649;
  --violet: #af88eb;

  --br-red: #ff665c;
  --br-green: #84c747;
  --br-yellow: #ebc13d;
  --br-blue: #58a3ff;
  --br-magenta: #ff84cd;
  --br-cyan: #53d6c7;
  --br-orange: #fd9456;
  --br-violet: #bd96fa;
  /* default glitch colors */
  --color-bg: #d7f5ef;
  --color-text-main: #000000;
  --color-text-header: #2800ff;
  --color-primary: #afece0;
  --wrapper-height: 85vh;
  --image-max-width: 320px;
  --font-family: "HK Grotesk";
  --font-family-header: "HK Grotesk";
}

/* Basic page style resets */
* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

/* Import fonts */
@font-face {
  font-family: HK Grotesk;
  color: var(--fg-0);
  src: url("https://cdn.glitch.me/605e2a51-d45f-4d87-a285-9410ad350515%2FHKGrotesk-Regular.otf?v=1603136326027")
    format("opentype");
}

@font-face {
  font-family: HK Grotesk;
  font-weight: bold;
  src: url("https://cdn.glitch.me/605e2a51-d45f-4d87-a285-9410ad350515%2FHKGrotesk-Bold.otf?v=1603136323437")
    format("opentype");
}

/* Our remix on glitch button */
.btn--remix {
  font-family: HK Grotesk;
  padding: 0.75rem 1rem;
  font-size: 1.1rem;
  line-height: 1rem;
  font-weight: 500;
  height: 2.75rem;
  align-items: center;
  cursor: pointer;
  background: #ffffff;
  border: 1px solid #000000;
  box-sizing: border-box;
  border-radius: 4px;
  text-decoration: none;
  color: #000;
  white-space: nowrap;
  margin-left: auto;
}
.btn--remix img {
  margin-right: 0.5rem;
}
.btn--remix:hover {
  background-color: #d0fff1;
}

/* Navigation grid */
.header {
  display: flex;
  justify-content: space-between;
  margin: 1rem auto 0;
  padding: 1rem 0 0.75rem 0;
  width: 100%;
  flex-wrap: wrap;
  border-top: 4px solid #fff;
}

.header a:not(.btn--remix):link,
a:not(.btn--remix):visited {
  font-family: HK Grotesk;
  font-style: normal;
  font-weight: normal;
  font-size: 1.1rem;
  color: var(--fg-0);
  text-decoration: none;
  border-style: none;
}

.header a:hover {
  background: var(--blue);
  color: var(--br-blue);
}

.header .links {
  padding: 0.5rem 1rem 1.5rem;
  white-space: nowrap;
}

.divider {
  padding: 0 1rem;
}
/******************************************************************************
END Glitch hello-app default styles
******************************************************************************/

/* Page structure */
body {
  font-family: var(--font-family);
  background-color: var(--bg-0);
}

.wrapper {
  min-height: var(--wrapper-height);
  place-items: center;
  margin: 3rem 2rem 0;
}

.content {
  display: flex;
  flex-direction: column;
  max-width: 900px;
  margin: 0 auto;
}

/* Typography */
.toilet-banner {
  color: var(--fg-0);
  margin-bottom: 5rem;
  font-size: max(0.75vw, 0.25rem);
}

p {
  margin: 0 0 1rem 0;
  line-height: 1.5 !important;
  font-size: 1rem;
  color: var(--fg-0);
}

h1,
h2,
h3,
h4,
h5 {
  margin: 2rem 0 0.8rem;
  font-family: var(--font-family-header);
  font-weight: 600;
  line-height: 1.1;
  color: var(--fg-0);
}

h1 {
  margin-top: 1rem;
  margin-bottom: 1.75rem;
  font-size: 5rem;
  display: inline-flex;
  color: var(--br-blue);
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 2rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

small,
.text_small {
  font-size: 0.8rem;
}

ul > li,
ol > li {
  margin-bottom: 0.75rem;
  line-height: 1.5;
  font-size: 1rem;
  color: var(--fg-0);
}

ul {
  padding: 0 0 0 18px;
  margin: 0;
}

ul.no-bullet {
  list-style-type: none;
}

/* Link styles */
a:not(.btn--remix):link,
a:not(.btn--remix):visited {
  text-decoration: none;
  border-bottom: 6px solid var(--blue);
  color: var(--fg-0);
  transition: background 0.2s linear;
}

a:hover {
  background: var(--blue);
  color: var(--br-blue);
}

/* Title style adjustments */
.title-lg {
  color: var(--color-text-main);
  font-family: HK Grotesk;
  font-style: normal;
  font-weight: bold;
  line-height: 1.5;
}

.title-md {
  font-size: 56px;
}

/* Layout: Home */
.home {
  justify-content: left;
}

.illo-container {
  display: flex;
  justify-content: flex-end;
}

.illustration {
  max-width: 180px;
  max-height: var(--image-max-width);
  margin-top: 1rem;
  margin-right: 2rem;
  transform: rotate(16deg);
}

/* Post */
.post {
  place-items: normal;
}

.postTitle {
  font-size: 4rem;
  /* color: #000; */
  line-height: 1.1;
  margin-bottom: 2rem;
}

.controls {
  margin: 3rem 0 2rem;
}

details {
  color: var(--blue);
}

/* note */
.note {
  place-items: normal;
}

.noteTitle {
  font-size: 4rem;
  color: #000;
  line-height: 1.1;
  margin-bottom: 2rem;
}

.navbar {
  display: flex;
  flex-wrap: nowrap; /* Items stay on one line by default */
  justify-content: space-around;
  padding: 5px
}

@media (max-width: 768px) {
  .navbar {
    flex-wrap: wrap; /* Allow items to wrap to a new line */
  }

  .navbar a {
    flex: 1 1 25%; /* Each item takes up roughly half the container's width, creating two rows */
    text-align: center;
    padding: 10px;
  }
}

/* New page layout specific stuff */
/* user styles */

/* styles are what change the color and sizes of stuff on your site. */

/* these are variables that are being used in the code
    these tended to confuse some people, so I only kept 
    the images as variables */

/* below this line is CSS for the layout */

/* this is a CSS comment
    to uncomment a line of CSS, remove the * and the /
    before and after the text */

/* the "container" is what wraps your entire website */
/* if you want something (like the header) to be Wider than
    the other elements, you will need to move that div outside
    of the container */

#container {
  max-width: 900px;
  /* this is the width of your layout! */
  /* if you change the above value, scroll to the bottom
    and change the media query according to the comment! */
  margin: 0 auto;
  /* this centers the entire page */
}

/* the area below is for all links on your page
  EXCEPT for the navigation */
#container a {
  /* color: #ed64f5; */
  font-weight: bold;
  /* if you want to remove the underline
    you can add a line below here that says:
    text-decoration:none; */
}

#header {
  width: 100%;
  /* background-color: #5e4e8c; */
  /* header color here! */
  height: 150px;
  /* this is only for a background image! */
  /* if you want to put images IN the header, 
    you can add them directly to the <div id="header"></div> element! */
  background-image: var(--header-image);
  background-size: 100%;
}

/* navigation section!! */
#navbar {
  height: 40px;
  background-color: var(--bg-1);
  /* navbar color */
  width: 100%;
}

#navbar ul {
  display: flex;
  padding: 0;
  margin: 0;
  list-style-type: none;
  justify-content: space-evenly;
}

#navbar li {
  padding-top: 10px;
}

/* navigation links*/
#navbar li a {
  /* color: #ed64f5; */
  /* navbar text color */
  font-weight: 800;
  text-decoration: none;
  /* this removes the underline */
}

/* navigation link when a link is hovered over */
#navbar li a:hover {
  /* color: #a49cba; */
  text-decoration: underline;
}

#flex {
  display: flex;
}

/* this colors BOTH sidebars
  if you want to style them separately,
  create styles for #leftSidebar and #rightSidebar */
aside {
  background-color: var(--bg-1);
  width: 200px;
  padding: 20px;
  font-size: smaller;
  /* this makes the sidebar text slightly smaller */
}

/* this is the color of the main content area,
  between the sidebars! */
main {
  background-color: var(--bg-2);
  flex: 1;
  padding: 20px;
  order: 2;
}

/* what's this "order" stuff about??
  allow me to explain!
  if you're using both sidebars, the "order" value
  tells the CSS the order in which to display them.
  left sidebar is 1, content is 2, and right sidebar is 3! */

*/ #leftSidebar {
  order: 1;
}

#rightSidebar {
  order: 3;
}

footer {
  /* background-color: #13092d; */
  /* background color for footer */
  width: 100%;
  height: 40px;
  padding: 10px;
  text-align: center;
  /* this centers the footer text */
}

h1,
h2,
h3 {
  /* color: #ed64f5; */
}

h1 {
  font-size: 25px;
}

strong {
  /* this styles bold text */
  color: #ed64f5;
}

/* this is just a cool box, it's the darker colored one */
.box {
  /* background-color: #13092d; */
  /* border: 1px solid #ed64f5; */
  padding: 10px;
}

/* CSS for extras */

#topBar {
  width: 100%;
  height: 30px;
  padding: 10px;
  font-size: smaller;
  /* background-color: #13092d; */
}

/* BELOW THIS POINT IS MEDIA QUERY */

/* so you wanna change the width of your page? 
  by default, the container width is 900px.
  in order to keep things responsive, take your new height,
  and then subtrack it by 100. use this new number as the 
  "max-width" value below
  */

@media only screen and (max-width: 800px) {
  #flex {
    flex-wrap: wrap;
  }

  aside {
    width: 100%;
  }

  /* the order of the items is adjusted here for responsiveness!
    since the sidebars would be too small on a mobile device.
    feel free to play around with the order!
    */
  main {
    order: 1;
  }

  #leftSidebar {
    order: 2;
  }

  #rightSidebar {
    order: 3;
  }

  #navbar ul {
    flex-wrap: wrap;
  }
}
