:root {
  --link: lightskyblue;
  --link_hover: plum;

  --deci-green: #17EE6D;
  --pink-red: #ff7676;
  --iota-blue: #408cff;
  --8song: #36313d;
}

body {
  color: #ffffff;
  font-family: "Adwaita Mono", monospace;
  font-size: 12px; 
  margin: 0;
  background: linear-gradient(#071b20, 25%, #4b1e34, 80%, #636051);
  background-attachment: fixed;

  -webkit-text-size-adjust: 100%;
}

p, li {
  line-height: 1.6em;
}

main {
  display: -webkit-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  height: 100vh;
  justify-content: center;
  flex-direction: column;
}

div {
  width: 600px;
  margin: auto;
  margin-top: 5px;
  margin-bottom: 5px;
  display: inline-block;
  object-fit: contain;
}

.content {
  background-color: #282828;
  padding: 15px;
} 

div#header {
  width: 630px;
  display: flex;
  flex-wrap: wrap;
  margin-top: 0;
  margin-bottom: 5px;
  align-items: center;
}

span#title {
  font-family: "Roboto";
  font-weight: bold;
  font-size: 24px;
  margin-right: 15px;
  flex-shrink: 0;
}

nav {
  align-items: center;
  flex-shrink: 0;
}

a#nav {
  text-decoration: none;
  margin-right: 10px;
  flex-shrink: 0;
}

.randomtext {
  max-width: 40ch;
  line-height: 1.5em;
  text-align: right;
  margin-left: auto;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

div#footer {
  width: 630px;
}

a {
  color: var(--link);
}  

a:hover {
  color: var(--link_hover);
  text-align: left;
  text-decoration: none;
}

small {
  color: silver;
}

ul {
  list-style-type: square;
}

img#mini{
  image-rendering: pixelated;
}

.linx {
	text-align: center;
	margin-top: 2em;
}

.linx > a {
  line-height: 1.6em;
}

img#mini:hover {
  transform: translate(-3px,-3px);
  box-shadow: 1px 1px 0 #eee, 2px 2px 0 #eee;
}

.f2 {
  color: rgb(136, 136, 136);
  margin-bottom: 0;
  font-size: 11px;
}

/* mobile compatibility */

@media screen and (max-aspect-ratio: 0.85/1) {
  div {
    width: 90%;
    margin: 5px auto;
  }
  div#header {
    width: 95%;
    margin-top: 20px;
  }
  div#footer { 
    width: 95%;
  }
  footer {
    margin-bottom: 10px;
  }
  .randomtext {
    text-align: left;
    margin-top: 10px;
    margin-bottom: 5px;
    margin-left: 0;
  }
}

@media screen and (max-height: 440px) {
  main {
    height: auto
  }
  footer {
    margin-bottom: 10px;
  }s
  div#header {
    margin-top: 20px;
  }
}