/* Description: All the CSS for this website. Mostly kept organized, but not all rules are in order. */

@import url('https://fonts.googleapis.com/css2?family=B612+Mono&family=Inconsolata&family=Alegreya+SC:wght@800&family=Nova+Mono&display=swap');

#textTitle {
  color: #4A3B2C;
  font-family: 'Albertus MT';
  font-size: 32px;
  padding-left: 3%;
  animation-name:  textTitle;
  animation-iteration-count: infinite;
  animation-duration: 10s;
  animation-timing-function: linear;
  font-weight: bold;
  font-style: italic;
}

#textSubtitle:after {
  content: "A Pocket Guide for the Aspiring Cryptographer";
  animation-name: textSubtitle;
  animation-iteration-count: infinite;
  animation-duration: 1s;
  animation-timing-function: linear;
  color: #958A7B;
  font-size: clamp(15px, 1.5vw, 16px);
  font-family: 'Nova Mono', monospace;
}

.portraitMode {
	visibility:  hidden;
	display:  none;
}


#citations {
  font-family: 'Nova Mono', monospace;
  font-size: 13px;
}


#slideshowMain {
  float: center;
  position: relative;
  width: clamp(300px, 50%, 600px);
  height: clamp(187.5px, 70%, 375px);
  z-index: 100;
  left: 25%;
  top: 50px;
}



header {
  background-color: #f0e9c4;
  background-image: url(assets/papyrus.png);
  background-blend-mode: multiply; /* Blends two backgrounds together */
  font-family: 'Nugelo Serif';
  padding: 10px 0 17px 0;

}

footer {
  background-image: linear-gradient(to bottom, #2f2d27,#302d28, #1f1d1a);
  font-family: 'Nova Mono', monospace;
  color: #eadcce;
  font-size: 16px;
  padding: 18px 0 20px 30px;
  position: relative;
}


footer a {
  color: #c2ecdc;
}


.darkBG {
  background-size: contain;
  width: 1000px;
  position: relative;
}

.darkBG img {
  position: absolute;
  width: 139%;
  background-size: cover;
  filter: brightness(90%);
  z-index: -3;
}

.darkBG2 { /* Forcibly positions the div (background) in place */
 top: 729.75px; 
}

.darkBGshade { /* Applies the shadow to a separate div to make it appear as if the two darkBG divs have a shadow */
  margin: 0;
  padding: 0;
  width: 100%;
  height: 1459.5px;
  z-index: 100;
  box-shadow: inset 0 0 40px 20px #301D14;
}


.summaryContainer {
  box-shadow:  inset 0 -5px 40px 3px #605837;
  background-image: linear-gradient(to bottom right, #F9EAE09A, #F9EAE0AA, #F9EAE07A), url("assets/sand.jpg");
}


#graphic1 {
  width: 600px;
  transform: rotateZ(10deg);
  position: absolute;
}

#redirect1 {
  transform: rotateZ(-20deg);
  top: 500px;
  left: 500px;
  width: 300px;
  position: absolute;
}

#graphic2 {
  width: 800px;
  position: absolute;
  left: 400px;
  top: 1000px;
  transform: rotateZ(-10deg);

}

#redirect2 {
  position: absolute;
  transform: rotateZ(20deg);
  top: 1400px;
  left: 320px;
  width: 300px;
}

#redirect3 {
  position: absolute;
  transform: rotateZ(10deg);
  top: 2500px;
  left: 600px;
  width: 300px;
}

#graphic3 {
  width: 1200px;
  position: absolute;
  transform: rotateZ(7deg);
  /*right: 500px;*/
  left: -350px;
  top: 100px;
}

#graphic4 {
  width: 1000px;
  position: absolute;
  top: 900px;
  transform: rotateZ(-10deg);
  left: 400px;
}

#graphic5 {
  width: 1200px;
  position: absolute;
  top: 1800px;
  transform: rotateZ(10deg);
  left: -250px;
}

.font {
  position: absolute;
  z-index: 10;
  color: #181715;
  font-size: 20px;
}

.infoTooltipAbsolute > em {
  color: #FDBEA8;
}



#photo1, #photo2, #photo3 {
  position: absolute;
  width: 290px;
  height: 190px;
  box-shadow: 5px 5px 10px  #201E1A;
}

#photo1 {
  top: 1980px;
  left: 180px;
    transform: rotateZ(-1deg);
}

#photo2 {
  top: 2200px;
  left: 540px;
  transform: rotateZ(25deg);
}

#photo3 {
  top: 2380px;
  left: 200px;
  transform: rotateZ(18deg);
}


#tape1, #tape2, #tape3 {
  position: absolute;
  top: 2500px;
  width: 120px;
  opacity: 90%;
}

#tape1 {
  top: 2115px;
  left: 300px;
  transform: rotateZ(140deg);
}

#tape2 {
  top: 2110px;
  left: 540px;
  transform: rotateZ(-50deg);
}

#tape3 {
  top: 2370px;
  left: 420px;
}



.stripe { /* Replacement for <hr> since styling it doesn't really work in Safari */
  background-image: linear-gradient(to bottom,#2f2a273A, #2f2a275A, #2f2a274A);
  background-size: cover;
  border-top: 10px solid #2f2a273A;
  border-bottom: 10px solid #2f2a273A;
}


#kryptos-text-1 {
  position: absolute;
  font-family: Monaco;
  color: #e2d6b0;
  font-size: 11px;
  top: 1080px;
  left: 680px;
  transform: rotateZ(-10deg);
}

#kryptos-text-1 em {
  font-style: normal;
  color: #8bcfb1;
}

#kryptos-text-1 strong {
  font-weight: normal;
  color: #70c755;
}

#paper1 {
  position: absolute;
  width: 600px;
  top: 1900px;
  transform: rotateZ(-10deg);
}

#paper2 {
  position: absolute;
  width: 600px;
  left: 100px;
  top: 2210px;
  transform: rotateZ(5deg);
}

#paper3 {
  position: absolute;
  width: 600px;
  left: 50px;
  top: 2520px;
  transform: rotateZ(-5deg);
}



table.infoTable {
  position: absolute;
  top: 40%;
  margin: 10px;
  color: #D2BEA6;
  text-shadow:  5px 5px 5px #181614;

}

table.infoTable td {
  border: 20px solid;
  border-color: #FFFFFF00;
}

td.trTitle + td img {
  width: 300px;
}


.sectionTitle {
  font-family: 'B612 Mono', serif;
  font-weight: bolder;
  font-size: 25px;
}


body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(to bottom, #BFA9926D, #BFA992AD,#BFA9926D), url("assets/interlaced.png");
  background-size: stretch;
  overflow-x: hidden;
  position: relative;
}



html {
  height: 100%;
  width: 100%;
  scroll-behavior: smooth; /* Broken on safari so a "polyfill script" is used */
  position: relative;
}


#homepageBG {
  background-image: url(assets/walnut-wood.jpg);
  background-size: 100%;
  height: 350%;
  position: relative;
}

#resourcesBG {
  background-image: url(assets/walnut-wood.jpg);
  background-size: 100%;
  height: 500%;
  position: relative;
}

nav ul li {
  display: inline-block;

}

nav ul {
  list-style-type: none;
  color: white;
  margin: 0;
  padding: 0;
  text-align: center;
  text-decoration: none;
  filter: drop-shadow(3px 0px 3px #635f4d);
}

.miniheader { /* Scrapped idea for a smaller header when you scroll down*/
  background-image: linear-gradient(to bottom,#22201dED, #302d28DD, #22201dFD), url(assets/fabric.jpg);
  box-shadow: 0 20px 10px 3px #3c383293;
  padding: 20px 0 5px 0;
  font-family: "Nugelo Serif";
  color: #ded5d5;
  font-size: 25px;
  position: sticky;
  top: 0%;
  z-index: 4;

}

.miniheader * {
  margin: 0 20px 0 20px;
}

.topbutton {
  position: fixed;
  height: 180px;
  right: 30px;
  bottom: -140px;
  transition:  bottom 1s;
  z-index: 99;
  cursor: pointer;
  filter: drop-shadow(10px 15px 8px #22211d);
}



.topbuttonToggle {
  position: fixed;
  height: 25px;
  filter: drop-shadow(0 0 2px #BF2227) brightness(80%);
  cursor: pointer;
  z-index: 100;
  transition: bottom 1s, opacity 1s;
  right: 38px; /*3%;*/
  bottom: -10px; /*16%;*/
  opacity: 0;
}


#consoleCursor:after {
  content: "\0000a0";
  background-color: #796a5d;
  animation-name: cursorFlash;
  animation-iteration-count: infinite;
  animation-duration: 1.2s;
  animation-timing-function: linear;
}

@keyframes cursorFlash {
  0% {content: ""}
  100% {content: "\0000a0"}
}




nav {
  padding: 10px 0 10px 0;
  overflow: hidden;
  background-image: linear-gradient(#dfd5a3d0, #c7bd8ed0), url("assets/fabric.jpg");
  box-shadow: 0 5px 10px 3px rgb(160, 149, 122);
}

nav a {
  float: left;
  font-family: 'Nugelo Serif';
  color: rgb(100, 94, 82);
  padding: 8px;
  margin: 0 10px 0 10px;
  font-size: 20px;
  text-decoration: none;
  background-image: url(assets/papyrus.png);
  background-color: #b6b292;
  background-blend-mode: multiply;
  transition: background-color 0.4s, color 0.4s;
  width: 130px;
  clip-path: polygon(10% 0, 100% 0%, 90% 100%, 0% 100%);
}

nav a:hover, nav a:active {
  color: rgb(194, 190, 165);
  background-image: url(assets/papyrus.png);
  background-color: #746f5a;
}

.active { /* Used in nav to "select" the current page */
  background-image: url(assets/papyrus.png);
  background-color: #524f43;
  color: rgb(194, 190, 165);
  background-blend-mode: multiply;
}

#placeholder-img { 
  width:  35%;
  margin: 5% 0 0 32%;
  filter: drop-shadow(5px 5px 3px #707070);
}

#placeholder-txt {
  text-align:  center;
  font-family:  'B612 Mono', monospace;
  font-size:  clamp(8px, 2vw, 16px);
}


#seam1A {
  -webkit-user-drag: none;
  user-select: none;
  position: absolute;
  top: 350px;
  z-index: 10;
  filter: brightness(104%);
  overflow-x: hidden;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgb(0, 0, 0, 1) 60%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgb(0, 0, 0, 1) 60%);
}


#seam1B {
  -webkit-user-drag: none;
  user-select: none;
  position: absolute;
  top: 595px;
  left: -60px;
  z-index: 9;
  filter: brightness(83%) blur(1px) sepia(8%) hue-rotate(-15deg);
  mask-image: linear-gradient(to bottom, rgb(0, 0, 0, 1), rgba(0, 0, 0, 0.7) 70%);
  -webkit-mask-image: linear-gradient(to bottom, rgb(0, 0, 0, 1), rgba(0, 0, 0, 0.7) 70%);
}

#seam2A {
  -webkit-user-drag: none;
  user-select: none;
  position: absolute;
  top: -40px;
  z-index: 10;
  filter: brightness(98%);
   mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgb(0, 0, 0, 1) 20%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgb(0, 0, 0, 1) 20%);
}

#seam2B {
  -webkit-user-drag: none;
  user-select: none;
  position: absolute;
  top: 5px;
  left: -60px;
  z-index: 9;
  filter: brightness(83%) blur(1px) sepia(8%) hue-rotate(-15deg);
   mask-image: linear-gradient(to bottom, rgb(0, 0, 0, 1), rgba(0, 0, 0, 0.7) 70%);
  -webkit-mask-image: linear-gradient(to bottom, rgb(0, 0, 0, 1), rgba(0, 0, 0, 0.7) 70%);
}

.cipher {
  width: 60%;
  position: relative;
  padding-left: 23%;
  padding-right: 25%;
  filter: drop-shadow(2px 2px 10px #4f3d32);
}

p#mono {
  font-family: 'Inconsolata', monospace;
}

#tabularecta {
  width: 35%;
  padding-left: 31%;
    filter: drop-shadow(2px 2px 10px #110e0d);
}

#enigmamachine {
  width: 55%;
  padding-left: 21%;
      filter: drop-shadow(2px 2px 10px #110e0d);
}

#nsa-otp {
  width: 45%;
  height: 400px;
  padding-left: 25%;
        filter: drop-shadow(2px 2px 10px #110e0d);
}


.caption {
  text-align: center;
  font-style: italic;
  font-size: 12px;
  color: #3c3d3d;
}

#notepad {
  width: 1200px;
  top: 100px;
  position: absolute;
}


.slidesImg {
  width: clamp(300px, 100%, 600px);
  filter:  drop-shadow(5px 5px 3px #707070);
  position: absolute;
  transition: opacity 1.5s ease-in-out; 
}

.slidesCaption {
  text-align: center;
  font-family: 'Nova Mono', monospace;
  font-size: clamp(9px, 2vw, 13px);
  font-style: italic;
  color:  #C4C3C4;
  overflow: hidden;
  position:  absolute;
  left: 7%;
  top: clamp(300px, 83%, 580px);
  z-index: 5;
  padding-right: 10px;

}



.prev, .next {
  cursor: pointer;
  font-size:  clamp(20px, 5vw, 40px);
  font-family: 'B612 Mono', monospace;
  user-select:  none;
  -webkit-user-select:  none; /* Safari + Chrome */
  color:  #F2E7E0;
  padding:  25px 8px 25px 8px;
  background-color:  #0000009A;
  transition:  background-color 0.7s;
  position:  absolute;
  z-index: 2;
  top: clamp(100px, 15%, 120px);
}

.prev {
  left: 0%;
  border-radius: 0 7px 7px 0;
}

.next { 
  right: 0%;
  border-radius:  7px 0 0 7px;
}


.prev:hover, .next:hover {
  background-color:  #000000DA;
}


#captionOverlay {
  background-image: linear-gradient(to right,#000000BA, #0000009A, #000000BA);
  padding: 10% 0 0 clamp(300px, 100%, 600px);
  position:  absolute;
  top: clamp(100px, 84%, 580px);
  z-index: 2;
  border: 30px 0 30px 0;
}


table {
  font-family: "Albertus MT";

}

td.trTitle {
  font-weight: bold;
  font-size: 23px;
  width: 20em;
}

td:not(.trTitle) {
  padding-left: 60px;
}

td.trTitle p {
  font-size: 17px;
  font-weight: normal;
  font-family: 'Inconsolata';
  font-style: italic;
  color: #b6a793;
  text-shadow: 8px 8px 5px #090909;
}


.summaryText {
  font-family: "Marcellus SC";
  font-size: 18px;
  margin: 10px;
  color: #5A4E3B;
  text-shadow: 2px 2px 18px #36332C;
  text-align: center;
}



sup a {
  color: #42AE9F;
  font-size: clamp(10px, 3vw, 13px);
}

sup a.footnoteOverride {
  color: #436C6C;
}

.todo { /* Placeholder text */
  color: #FC3321;
  font-weight: bold;
  font-size: 16px;
  background-color: #FEB1AECF;
  background-image: url(assets/papyrus.png);
  background-blend-mode: color-burn;
}

p {
  font-family: 'Albertus MT', sans-serif;
}

h2 {
  font-family:  "Alegreya SC";
}


div.warning {
  background-image: linear-gradient(to top left, #FFD04EB3, #FFF3787B), url(assets/papyrus.png);
  border: 5px;
  padding: 10px;
  border-radius: 20px;
  border-style: solid;
  border-color: #534F29;
  margin: 0 80px 0 50px;
}

p.warning {
  font-weight: bold;
  font-style: italic;
  font-size: 20px;
  color:  #84771E;
}

div.info {
  background-image: linear-gradient(to top left,#298678B3, #2681737B), url(assets/papyrus.png);
  border: 5px;
  padding: 10px;
  border-radius: 20px;
  border-style: solid;
  border-color: #31544C;
  margin: 0 80px 0 50px;
}

p.info {
  font-weight: bold;
  font-style: italic;
  font-size: 20px;
  color:  #1F6254;
}


.content h2, .content img, .content p, .content table, .content li { /* .content {} is not used b/c stripe divs must have margin priority */
  margin-left: 30px;
  margin-right: 30px;
}


.infoButton {
  background:  url(assets/info-icon-up.svg) no-repeat;
  width: 50px;
  height: 50px;
  margin: none;
  border: none;
  filter: contrast(80%);
  transition: filter 0.4s;
}

.infoButton:hover {
  filter: contrast(40%);
}


.infoTooltip {
  opacity: 0;
  position: absolute;
  z-index: 100;
  padding: 5px 0;
  background-image: linear-gradient(to bottom right,#292723D0, #181715C0);
  color: #ffebcf;
  font-family: "Albertus MT";
  margin-left: -250px;
  width: 500px;
  bottom: 100%;
  left: 50%;
  padding: 10px;
  border-radius: 10px;
  transition: opacity 0.75s;
  user-select: none; /* Text is unselectable... */
  pointer-events: none; /* ...and the image link behind the text is still clickable. */
}

.infoTooltipAbsolute {
  opacity: 0;
  position: fixed;
  z-index: 100;
  padding: 5px 0;
  background-image: linear-gradient(to bottom right,#292723D5, #181715C2);
  color: #FFEFDD;
  font-family: "Albertus MT";
  top: 200px;
  padding: 10px;
  border-radius: 6px;
  transition: opacity 0.75s, transform 0.1s;
  transition-timing-function: smooth;
  user-select: none; /* Text is unselectable... */
  pointer-events: none; /* ...and the image link behind the text is still clickable. */
  width: 200px;
  font-size: 12px;
}

.infoButton:hover + .infoTooltip {
  opacity: 1;
}




.tooltipEmphasis {
  color: #A9EECF;
  font-style: italic;
  font-size: 13px;
}


.logoRedirect {
  max-width: 100%;
  min-width: 167px;
}


.tooltipContainer {
  position: relative;
}


.tooltipContainerR {
  position: relative;
}



div.hr {
  width: 100%;
  height: 4px;
  background-image: linear-gradient(to right, #57544c, #3a3833);
  overflow: hidden;
}



/* ====================================================== */

@media only screen and (orientation: portrait) { /* When browser height > width */
	.portraitMode {
		display: inline;
		visibility: visible;
  }

  #textSubtitle {
   padding: 30px 0 0 15px;
 }
}


@media only screen and (max-width: 978px) /* All media rules below basically just change tooltip position so it's visible on all screen sizes */
{
  .infoTooltip
  {
    margin-left: -300px;
    left: 0%;
    right: 300px;
  }

  .logoRedirect 
  {
    right: 50px;
  }
}

@media only screen and (min-width: 1101px) and (max-width: 1300px)
{
 .infoTooltip
 {
  margin-left: -400px;
  left: 0%;
  right: 300px;
}
}
@media only screen and (min-width: 979px) and (max-width: 1100px) {
  .infoTooltip
  {
    margin-left: -500px;
    left: 0%;
    right: 300px;
  }
}

@font-face {
  font-family: 'Nugelo Serif';
  src: url(assets/nugeloserif.otf);
}

@font-face {
  font-family: 'Monaco';
  src:  url(assets/Monaco.woff);
}

@font-face {
  font-family: 'Victor Mono';
  src:  url(assets/VictorMono.woff);
}

@font-face {
  font-family: 'Albertus MT';
  src: url(assets/AlbertusMT.otf);
}

@font-face {
  font-family: 'Marcellus SC';
  src: url(assets/MarcellusSC.ttf);
}

@font-face {
  font-family: 'Top Secret Stamp';
  src: url(assets/TSS-REPLACE.ttf);
}

@keyframes textSubtitle {
  0% {content: "A Pocket Guide for the Aspiring Cryptographer"}
  100% {content: "A Pocket Guide for the Aspiring Cryptographer_"}
}

@keyframes textTitle {
  0% {color: #4A3B2C}
  50% {color: #503F2F}
  100% {color: #4A3B2C}
}


