@font-face {
	font-family: "C64ProStatic";
	src: url("/fonts/C64_Pro-STYLE.ttf");
}

@font-face {
	font-family: "VeraStatic";
	src: url("/fonts/Vera.ttf");
}

:root {
  color-scheme: dark light;
  --cruetech-darkblue:hsl(212deg 63% 10%);
  --cruetech-green: hsl(81deg 47% 61%);
  --cruetech-yellow: hsl(50deg 62% 70%);
  --cruetech-red: hsl(4deg 76% 62%);
  --cruetech-purple: hsl(272deg 59% 74%);
  --cruetech-blue: hsl(223deg 89% 75%);
  --link-hover: rgb(113 152 248);
}

a {
	color: gray;
}
a:link {
  text-decoration: none;
}
a:visited {
  text-decoration: none;
}
a:hover {
  color: var(--link-hover);
  text-decoration: none;
  text-shadow: 0 0 1px var(--link-hover), 0 0 1px var(--link-hover); 
}
a:active {
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 1em;
  margin-bottom: 0.2em;
  font-family: "C64 Pro", "C64ProStatic", monospace;
  color: gray;
}

h1 {
  font-size: 1.5rem;
}

h2 {
  font-size: 1.4rem;
}

h3 {
  font-size: 1.3rem;
}

h4 {
  font-size: 1.2rem;
}

h5 {
  font-size: 1.1rem;
}

h6 {
  font-size: 1.0rem;
}

p {
  margin-top: 1em;
  margin-bottom: 1em;
}

ul {
  list-style: disc inside none;
}

html {
  width: 100svw;
  min-height: 100svh;
  display: flex;
}

body {
  width: 100%;
  min-height: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: var(--cruetech-darkblue);
  color: white;
  font-family: "Menlo", "Vera", "DejaVu", "VeraStatic", monospace;
  line-height: 1.5;
}

@media (prefers-color-scheme: dark) {
  body {
    background-color: var(--cruetech-darkblue);
    color: white;
  }
}

@media (prefers-color-scheme: light), print {
  body {
    background-color: white;
    color: var(--cruetech-darkblue);
  }
}

@media print {
  nav {
    display: none;
  }
}

header {
  width: 100%;
  text-align: right;
  padding: 1rem 10% 1rem 10%;
}

header h1 {
  margin: 0;
  font-size: x-small;
}

header img {
  width: 8rem;
}

nav {
  width: 100%;
  background-color: hsl(212deg 63% 20%);
  font-family: "C64 Pro", "C64ProStatic", monospace;
  padding: 0.1rem 2rem 0.1rem 2rem;
}

nav ul {
  width: 100%;
  padding: 0.1rem;
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
}

nav ul li {
  display: inline-block;
  flex-basis: 1%;
  flex-grow: 1;
  text-align: center;
  padding: 0 0.2rem 0 0.2rem;
}

nav ul li a {
  color: white;
}

nav ul li a:hover {
  color: var(--link-hover);
  text-decoration: none;
  text-shadow: 0 0 1px var(--link-hover), 0 0 1px var(--link-hover); 
  font-weight: normal;
}

main {
  width: 100%;
  flex-grow: 100;
  padding: 1rem 10% 1rem 10%;
}

main time {
  display: none;
}

footer {
  width: 100%;
  border-top: 1px solid gray;
  font-size: small;
  color: gray;
  padding: 0 2em 0 2em;
}

#headerlogo {
  position: absolute;
  top: 0;
  width: 100vw;
  height: 30.17vw;
  margin-bottom: -30.17vw;
  background-image: url(/gfx/cruetech-bg-header.png);
  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden;
  opacity: 20%;
  z-index: -1;
}

#footerlogo {
  position: relative;
  bottom: 0;
  width: 100vw;
  height: 28.19vw;
  margin-top: -28.19vw;
  background-image: url(/gfx/cruetech-bg-footer.png);
  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden;
  opacity: 20%;
  z-index: -1;
}

#home {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#home h1 {
  display: none;
}

#home p {
  width: 100%;
  display: flex;
  justify-content: center;
}

#home p img {
  width: 80%;
  /* image-rendering: pixelated; */
}

#home h2 {
  text-transform: UPPERCASE;
  text-align: center;
  font-size: calc(max(1.5vw, 0.8rem));
  margin: 0;
}
