/* style2f.css - flex test */

@import url('https://fonts.googleapis.com/css?family=Rubik+Dirt&display=swap');
@import url('https://fonts.googleapis.com/css?family=Rubik+Glitch&display=swap');

:root {
  font-family: 'Rubik Glitch', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  font-size: 18px;
  font-size: calc(4px + 1.5vw);
}

* {
  border: none;
  box-sizing: border-box;
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
  margin: 0;
  outline: none;
  padding: 0;
}

a {
  color: currentColor;
  outline: none;
  text-decoration: none;
}

body {
  background-color: black;
  color: white;

  display: flex;
  flex-flow: column nowrap;
  justify-contents: stretch;

  /*
  display: grid;
  grid-template-rows: auto 1fr auto;
  */

  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
}

/* for flex */
body > * { width: 100%; }
body > main { flex: 1 0 auto; }
/* for flex */

body > footer {
  border-top: 1px solid currentColor;
  margin-top: .5em;
  text-align: center;
}

body > header {
  border-bottom: 2px solid currentColor;
}

body > header > a {
  display: block;
  margin-right: .5em;
  padding: .25em;
  text-align: right;
  text-transform: lowercase;
}

body > header > nav {
  padding: .25em;
}

body > header > nav a {
  padding: 0 1em;
}

body > header > nav a:focus {
  outline: 2px dashed #ffffffcc;
}

body > header > nav a:hover {
  background-color: #ffffffcc;
  color: black;
}

body > main {
  
  align-items: center;
  display: flex;
  flex-flow: column nowrap;
  justify-content: center;

  /* 
  align-items: center;
  display: grid;
  justify-items: center;
  */

}

body > main > h3 {
  font-size: 150%;
  padding: 1em;
  text-transform: uppercase;
}

body > main > nav {
 
  display: flex;
  flex-flow: row wrap;
  justify-content: space-around;

  /*
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
  */
}

body > main > nav.single {
  /* grid-template-columns: 1fr; */
}

body > main > nav > * {
  
  align-items: center;
  display: flex;
  justify-content: center;

  /*
  align-items: center;
  display: grid;
  justify-items: center;
  */

  font-family: 'Rubik Dirt', Roboto, Helvetica, Arial, sans-serif;
  font-weight: 400;
}

body > main > nav:first-child > * {
  font-size: 90%;
  text-transform: uppercase;
}

body > main > nav a { 
  padding: 1em;
}

body > main > nav a:focus { }

body > main > nav a:hover {
  /* background-color: #ffffff33; */
  /* box-shadow: 1px 1px 8px 2px #ffffffcc; */
  color: #ffff00ff;
}

@media screen and (max-width: 600px) {

  :root { 
    font-size: 12px; 
    font-size: calc(4px + 1.5vw);
  }

  /* * { color: orange; } */

  body > main > nav { }
 
  body > main > nav * { }

  body > main > nav:first-child { 
  }

  /* footer * { font-size: 200%; } */
  
  /* header * { font-size: 150%; } */

}

ul {
    font-family: 'Fira Code', 'Courier New', 'Courier', monospace;
    list-style-position: inside;
    list-style-type: none;
}

/* eof - style2f.css */
