/*

HIGH-LEVEL STUFF
  - variables
  - fonts
  - animation keyframes

*/

/* This allows us to make custom color variables, which
    lets us change the color scheme later on more easily */
:root {
  --primary-color: lime;
  --secondary-color: orange;
  --tertiary-color: blue;
  --grey-background: rgba(20,20,20,0.7);
  --faulkner-color: #ed2d2d;
  --jackson-color: #ff8133;
  --kelman-color: #ffee33;
}

/* Here is our custom pixel font */
@font-face {
  font-family: pixel-times;
  src: url("font/pixelated-times-new-roman.ttf");
}

@keyframes title {
  0% {
    color: var(--secondary-color);
    transform: rotateY(0deg);
    opacity: 100%;
  }
  100% {
    color: var(--white-color);
    transform: rotateY(180deg);
    opacity: 90%;
  }
}

/*

---------------

DOCUMENT STYLES

---------------

*/

body {
  color: white;
  font-family: pixel-times;
  background-image: url(img/circuit_background3.png);
  background-attachment: fixed;
  letter-spacing: 2px;
  margin: 0;
  padding: 0; 
  font-size: 2em;
}

.source-link:link {
  color: var(--primary-color);
  background-color: transparent;
  text-decoration: underline;
}

.source-link:visited, .source-link:active {
  color: var(--secondary-color);
  background-color: transparent;
  text-decoration: underline;
}

h1 {
  text-align: center;
  font-size: 2em;
  font-weight: 400;
}

h3 {
  font-size: 1.5em;
  font-weight: 400;
}

h4 {
  font-size: 1.25em;
  font-weight: 400;
}

h1, h3 {
  display: block;
  margin-top: 10px;
  margin-bottom: 10px;
}

.inner-content {
  width: 60%;
  margin-left: 20%;
  display: block;
  font-size: 1.25em;
}

/* contains image & description boxes */
.image-container, .audio-container {
  display: flex;
  justify-content: center;
  align-items: stretch;
  font-family: monospace;
  font-size: 0.5em;
}

/* contains individual images and descriptions */
.image, .audio, .image-large {
  padding: 10px;
  border: 2px solid rgba(255,255,255,0.4);
  background: rgba(0,0,0,0.4);
  border-radius: 3px;
  display: flex;
  align-items: center;
  min-width: 300px;
  max-width: 40%;
  justify-content: space-evenly;
  flex-direction: column;
}

.image-large {
  min-width: 500px;
  max-width: 70%;
}

/* the actual image */
.image img, .image-large img {
  opacity: 0.9;
  transition: transform 0.1s ease-out, opacity 0.1s ease-out;
}

.image img:hover, .image-large img:hover {
  transform: scale(1.1);
  opacity: 1;
  cursor: pointer;
}

/* the image description */
.image span, .image-large span, .audio span {
  display: block;
  margin-top: 10px;
  text-align: center;
  font-style: italic;
  color: #CCC;
}

.video-embed {
  display: flex;
  align-items: center;
  justify-content: space-evenly;  
}

/* lightning bolt separator line */
.Separator {
  width: 100%;
	height: 100px;
  background: url(img/lightning.gif);
  background-repeat: repeat-x;
  background-size: 15% 45%;
}

#audio-container {
  width: 100%;
  display: flex;
  justify-content: space-evenly;
}

#titlebar {
  font-size: 2.5em;
  display: block;
  text-align: center;
  color: var(--primary-color);  
}

#titlebar:hover {
  color: var(--secondary-color);
  cursor: pointer;
}

#titlebar:active {
  animation: title 1s linear infinite alternate;
}

#navbar {
  width: 100vw;
  margin-top: 10px;
  height: 5vh;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  color: lime;
  font-size: 1.5em;
}

.back-button, .navitem {
  color: var(--primary-color);
  background: var(--grey-background);
  border: 1px solid var(--primary-color);
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-button {
  position: fixed;
  width: 50px;
  height: auto;
  margin: 5px 0 0 5px;
  padding: 5px;
}

.navitem {
  width: 100%;
  height: 100%;
  margin: 1%;
  padding: 5px 0 5px 0;
}

.navitem:hover, .back-button:hover {
  border: 1px solid var(--secondary-color);
  color: var(--secondary-color);
}