/* CSS Styling for josie-c.com */

/* Variables: */
:root {
  --font: 'PT Mono', 'Courier New', monospace;
  --bgcolor: #CCCCFF;
  --color1: #FFFFCC;
  --color2: #CCFFE6;
}

/* --- top nav bar styling ------ */
* {box-sizing: border-box;}

ul.topnav {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  background-color: var(--color1);
}

ul.topnav li a {
  display: block;
  color: black;
  padding: 14px 10px;
  text-decoration: none;
}

ul.topnav li a:hover {
  background-color: var(--color2);
}
/* --- end top nav bar styling --- */

/* --- main text styling ------ */
body {
  font-family: var(--font);
  font-size: 1.3rem;
  text-align: center;
  max-width: 100%;
  margin: auto;
  background-color: var(--bgcolor); /* periwinkle */
}

pre {
  font-family: var(--font);
  font-size: 1.3rem;
  text-align: center;
  white-space: pre-line;
}

ul.inlinelist {
  list-style-type: disc;
  list-style-position: inside;
  padding: 5px;
}

ul.leftlist {
  list-style-type: disc;
  list-style-position: inside;
  text-align: left;
  padding: 5px;
}
/* --- end main text styling --- */

/* --- image styling ------ */
.landscape {
  max-width: 73%;
  height: auto;
}

.portrait {
  width: 350px;
  height: auto;
}

@media screen and (max-width: 500px) {
  .landscape {
    width: 400px;
    height: auto;
    }
  .portrait {
    width: 220px;
    height: auto;
    }
}
/* --- end image styling --- */