:root {
  --text: #191d1f;
  --link: #33687e;
  --bg: #c4dde0;;
  
  --mainbg-color: #fff;
  --border-color: rgb(29, 66, 107);
  --border2: lightgrey;
  --accent-color: #effaff;
  --another-accent: #66c5bd;

  --nav-link: linear-gradient(#eefbee 15%, #6ad8cd, #d0eff9);
  --nav-hover: linear-gradient(#bddde8 , #5ec4b9 40%, lightblue); 
  --nav-title: linear-gradient(#bddde8 , #4baebb 40%, lightblue);

  --header: url('https://i.imgur.com/ZfaIqwZ.png');
  --bg-img: url('https://i.imgur.com/WsnzEYD.gif');
  --title-font: 'spaceranger';
}

@font-face {
  font-family: 'spaceranger';
  src: url(https://dl.dropbox.com/s/qj5rw9r6sf4usau/spacerangerlasital.ttf);
}

*{
  scrollbar-color: var(--bg) var(--mainbg-color);
}

body {
  background: var(--bg);
  background-image: var(--bg-img);
  background-attachment: fixed;
  color: var(--text);
  max-width: 800px;
  margin: 50px auto;
  padding: 5px;
  font-family: 'ヒラギノ角ゴ Pro W3', 'Hiragino Kaku Gothic Pro', Osaka, メイリオ, Meiryo, 'ＭＳ Ｐゴシック', 'MS PGothic', 'ＭＳ ゴシック' , 'MS Gothic', 'Noto Sans CJK JP', TakaoPGothic, sans-serif;
  font-size: 1rem;
}
.container {
  border: 2px ridge var(--border2);
  background: var(--bg);
  padding: 5px;
}

::selection {
  background: var(--another-accent);
}

a {
  color: var(--link);
  text-decoration: underline dotted 1px;
  font-weight: bold;
}
a:hover {
  font-style: italic;
}

hr {
  border: none;
  border-bottom: 1px dotted var(--border-color);
  margin: 0 15px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  padding: 0;
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: 1px;
}
h1 {
  text-shadow: 1px 1px 5px var(--link);
  text-align: center;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(239, 250, 255, 1) 25%,
    rgba(239, 250, 255, 1) 75%,
    rgba(255, 255, 255, 0) 100%
  );
  padding: 3px;
  text-transform: uppercase;
}
h2 {
  text-shadow: 1px 1px 5px var(--link);
}
h3 {
  border-bottom: 1px solid;
  margin-right: 15px;
}

header,
nav,
main,
footer {
  border: 1px solid var(--border-color);
  padding: 5px 20px;
  background: var(--mainbg-color);
}
header {
  border-bottom: 1px dotted;
  height: 130px;
  background-image: var(--header);
  background-position: center;
  background-size: cover;
}
header h1 {
  font-family: var(--title-font);
  color: var(--mainbg-color);
  margin: 15px;
  font-size: 2.8rem;
  text-align: right;
  vertical-align: text-bottom;
  background: none;
  text-transform: none;
}

footer {
  color: var(--mainbg-color);
  background: none;
  border: none;
  text-align: center;
  font-size: 0.9rem;
}

nav {
  padding: 0;
  display: block;
  border: none;
  flex: wrap;
  width: 25%;
  border-right: 1px solid var(--border-color);
  height: auto;
}
nav li,
nav ul {
  background: var(--nav-link);
  padding: 2px;
  margin: 0;
  list-style-type: none;
}
nav a {
  color: var(--text);
  display: block;
  font-size: 1rem;
  padding: 0 10px;
}

nav li:hover {
  background: var(--nav-hover);
  color: white;
}
nav h1 {
  padding: 3px 10px;
  margin: 0;
  background: var(--nav-title);
  color: var(--mainbg-color);
  text-shadow: 1px 1px 1px var(--border-color);
  font-size: 0.9rem;
  text-align: left;
}

nav span {
  font-size: 0.8rem;
  padding: 5px;
  text-align: center;
}

nav > img {
	display: block;
	margin: 5px auto;
	border:2px ridge var(--border2);
	border-radius: 5px;
}

main {
  text-align: left;
  border-top: none;
  display: flex;
  padding: 0;
}

section {
  height: 500px;
  overflow: auto;
  width: 100%;
  margin: 15px;
}

.update{
  list-style-type: none;
  padding-left:2px;
  background-color: var(--mainbg-color);
  border: solid 1px var(--border-color); 
  margin-bottom: 2px;
  margin:0px;
  height:155px;
  overflow:auto;
  scrollbar-width: thin;

  li:nth-child(even) {
    background-color: var(--accent-color);
}
}

/* 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;
}

#statuscafe {
    display: block;
    padding: 0.5em;
    margin: 0;
    background-color: var(--accent-color);
    border: 1px dashed var(--border-color);
}

#statuscafe-username {
    margin-bottom: 0.5em;
    font-size: 0.8em;
}

#statuscafe-content {
    margin: 0px;
}

#lastfm-widget {
  display: block;
    margin: 0;
    padding: 0.5em;
    background-color: var(--accent-color);
    border: 1px dashed var(--border-color);
}

/* This is what causes the actual smooth scrolling */
@keyframes scroll-r2l {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-100%);
  }
}

/* Change the '10s' in this to change how fast it scrolls! */
.scroll-r2l {
  animation: scroll-r2l 45s linear infinite;
}

/* Left-to-Right */
@keyframes scroll-l2r {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(100%);
  }
}

.scroll-l2r {
  animation: scroll-l2r 20s linear infinite;
}

/* 'Display: Flex' is extremely important to use here so all the items inside the marquee line up correctly, and the duplicated container lines up properly with the original */
.marquee {
  background: var(--mainbg-color);
  border: solid 1px var(--border-color);
  overflow: hidden;
  display: flex;
  flex-wrap: nowrap;
  box-sizing: unset;
}

.marquee-items {
  display: flex;
  flex-shrink: 0;
  height: 100%;
  min-width: 100%;
  position: relative;
}

/* Changes to this class will only affect the children
of the marquee-items, and not all of their descendants.
Make changes here if you want spaces in-between the
marquee items or other effects and styles!*/
.marquee-items > * {
  margin: 2px;
  height: 20px;
}

.paused {
  -webkit-animation-play-state:paused;
  -moz-animation-play-state:paused;
  -o-animation-play-state:paused;
  animation-play-state:paused;
}

@media screen and (max-aspect-ratio: 16/9) {
  body {
    margin: auto;
    padding:15px;
  }
  header {
    height: 100px;
  }
  main {
    display: block;
  }

  nav {
    width: 100%;
    border-left: none;
    border-bottom: 1px solid var(--border-color);
  }

  nav ul {
    display: flex;
    list-style-type: none;
  }

  section {
    width: 95%;
    height:auto;
    padding:15px;
    margin:15px auto;
  }

/* prevents overflow on smaller screens */
img { max-width: 100%; }
pre { overflow-x: auto; }
}