/*Fonts*/
/* google fonts */
@import url('https://fonts.googleapis.com/css2?family=Grenze+Gotisch:wght@300&family=Inconsolata&family=Inter&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Pirata+One&family=Quattrocento&family=Roboto+Mono:ital,wght@1,300&family=UnifrakturCook:wght@700&family=UnifrakturMaguntia&display=swap');

/* custom fonts */
@font-face {
    font-family: Plain Germanica;
    src: url(plain-germanica.ttf);
}

@font-face {
    font-family: Neuefraktur;
    src: url(neuefraktur.ttf);
}

@font-face {
    font-family: Barlos Random;
    src: url(barlos-random.ttf);
}

/*copy fonts*/
@font-face {
    font-family: Pragmatica;
    src: url(pragmatica.woff);
}

@font-face {
    font-family: Expressway Rg;
    src: url(expressway-rg.woff);
}

/*applying fonts*/
h1.sts, .h1 {
  font-family: 'Plain Germanica';
  font-size: 50px;
  color: #313036;
}
 
h2.cf, .h2 {
  font-family: 'Neuefraktur';
  font-size: 50px;
  color: #66685D;
}

h3.bo, .h3 {
  font-family: 'Barlos Random';
  font-size: 50px;
  color: #13313A;
}

h4.vt, .h4 {
  font-family: 'Pirata One';
  font-size: 50px;
  color: #656176;
}

p {
  font-family: Inconsolata;
  font-size: 16px;
  line-height: 1.2;
}

i {
  font-family: Roboto Mono;
  font-style: italic;
  font-size: 16px;
  line-height: 1.2;
}

em {
  font-family: Expressway Rg;
  font-style: italic;
  font-size: 12px;
  line-height: 1.2;
}

blockquote {
  font-family: Expressway Rg;
  font-size: 12px;
  line-height: 1.2;
  border-left: 2px solid;
  padding-left: 20px;
}

/* breathe typography styles */
.breathe {
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  font-size: 16px;
  text-decoration: underline;
  color: #00008A;
}

/* blotter */
a#linkSTS {
  position: absolute;
  width: 100%;
  height: 20%;
}

a#linkCF {
  position: absolute;
  width: 80%;
  height: 20%;
}

a#linkBO {
  position: absolute;
  width: 30%;
  height: 20%;
}

a#linkVT {
  position: absolute;
  width: 60%;
  height: 20%;
}

div#blotter-text-sts {
 position: absolute;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 20vh;
  width: 75vw;
  text-align:center;
}

div#blotter-text-cf {
 position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 20vh;
  width: 75vw;
  text-align:center;
}

div#blotter-text-bo {
 position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 20vh;
  width: 75vw;
  text-align:center;
  filter: blur(2px);
}

div#blotter-text-vt {
 position: absolute;
  top: 80%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 20vh;
  width: 75vw;
  text-align:center;
}

/* body */
html, body {
  height: 100%;
}

body {
	background-color: #171717;
  background-image: url(home.svg);
  background-size: cover;
  background-position: center;
  z-index: 1;
}

a {
  text-decoration: none;
  color: #333333;
}

div {
  height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/*secondary traumatic stress homepage */
div.sts {
  background-color: #F3CE1D;
  background-image: url(sts.svg);
  overflow: auto;
}

/*compassion fatigue homepage*/
div.cf {
  background-color: #F1D1C7;
  background-image: url(cf.svg);
}

/*burnout homepage*/
div.bo {
  background-color: #DB5035;
  background-image: url(bo.svg);
}

/*vicarious trauma homepage*/
div.vt {
  background-color: #DCD274;
  background-image: url(vt.svg);
}

/*text container and layout for each page */
div.container {
  position: absolute;
  top: 25%;
  left: 25%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  width: 50vw;
  height: 60vh;
}

div.container.cf {
  position: absolute;
  top: 18%;
  left: 25%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  width: 50vw;
  height: 60vh;
}

div.container p {
  margin-top: 20px;
}

div.container blockquote {
  margin-top: 30px;
  
}

div.container .breathe {
  margin-top: 30px;
  padding-bottom: 20px;
}

.header {
  text-align: left;
  padding-top: 10px;
}

/*gradient styles */
.gradient-cf {
  border: 0;
  padding: .5em 1.5em;
  background-image: url(rectangle-1-.svg), radial-gradient(#F3CE1D,#DBA435,#DB8835,#DB6C35, #DB5035);
  background-size: 100%;
  animation: bg-animation 8s infinite alternate cubic-bezier(0.58,0,0.42,1);
}

.gradient-sts {
  border: 0;
  padding: .5em 1.5em;
  background-image: url(rectangle-1-.svg), radial-gradient(#FED366,#FEBA66,#FEA166,#FE8766,#FE6E66);
  background-size: 100%;
  animation: bg-animation 8s infinite alternate cubic-bezier(0.58,0,0.42,1);
}

.gradient-bo {
   border: 0;
  padding: .5em 1.5em;
  background-image: url(rectangle-1-.svg), radial-gradient(#F1EDC7,#F1E6C7,#F1DFC7,#E7BA9D,#E7AE9D);
  background-size: 100%;
  animation: bg-animation 8s infinite alternate cubic-bezier(0.58,0,0.42,1);
}

.gradient-vt {
  border: 0;
  padding: .5em 1.5em;
  background-image: url(rectangle-1-.svg), radial-gradient(#CAA65E,#CA825E,#CA5E63,#CA5E87,#CA5EAB);
  background-size: 100%;
  animation: bg-animation 8s infinite alternate cubic-bezier(0.58,0,0.42,1);
}

h1.in, h2.in, h3.in, h4.in {
  animation: text-animation-1 16s infinite;
}

h1.out, h2.out, h3.out, h4.out {
  animation: text-animation-2 16s infinite;
}

/* centering both in and out text */
div.gradient-cf, div.gradient-bo, div.gradient-vt, div.gradient.sts {
 position: relative;
}

h1.in, h1.out, h2.in, h2.out, h3.in, h3.out, h4.in, h4.out   {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@keyframes bg-animation {
  0% {
    transform: scale(3);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes text-animation-1 {
  0% {
    opacity: 1;
    letter-spacing: .4rem;
  }
  5% {
    opacity: 0;
  }
  10% {
    opacity: 0;
  }
  20% {
    opacity: 0;
    letter-spacing: normal;
  }
  30% {
    opacity: 0;
    letter-spacing: normal;
  }
  40% {
    opacity: 0;
    letter-spacing: normal;
  }
  48% {
    opacity: 0;
    letter-spacing: normal;
  }
  51% {
    opacity: 1;
  }
  60% {
    opacity: 1;
    letter-spacing: normal;
  }
  70% {
    opacity: 1;
    letter-spacing: 0.1rem;
  }
  80% {
    opacity: 1;
    letter-spacing: 0.2rem;
  }
  90% {
    opacity: 1;
    letter-spacing: 0.3rem;
  }
  100% {
    opacity: 1;
    letter-spacing: 0.4rem;
  }
}

@keyframes text-animation-2 {
  0% {
    opacity: 0;
  	letter-spacing: normal;
  }
  5% {
    opacity: 1;
  }
  10% {
    opacity: 1;
  }
  20% {
    opacity: 1;
    letter-spacing: 0.2rem;
  }
  30% {
    opacity: 1;
    letter-spacing: 0.3rem;
  }
  40% {
    opacity: 1;
    letter-spacing: 0.4rem;
  }
  48% {
    opacity: 1;
    letter-spacing: 0.2rem;
  }
  51% {
    opacity: 0;
    letter-spacing: normal;
  }
  60% {
    opacity: 0;
    letter-spacing: normal;
  }
  70% {
    opacity: 0;
    letter-spacing: normal;
  }
  80% {
    opacity: 0;
    letter-spacing: normal;
  }
  90% {
    opacity: 0;
    letter-spacing: normal;
  }
  100% {
    opacity: 0;
    letter-spacing: normal;
  }
}

/*css page transition styles  */
.transitionOut {
    animation: transitionOut 3s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}

.transition-container {
  animation: transitionIn ease 3s;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
}

@keyframes transitionIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes transitionOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

/* Responsive Styles */
/* content pages */
@media (max-width: 1385px) {
  h1.header,h2.header,h3.header,h4.header {
    font-size: 45px;
  }
}
@media (max-width: 1245px) {
  h1.header,h2.header,h3.header,h4.header {
    font-size: 40px;
  }
  div.container.cf {
    top: 15%;
  }
}
@media (max-width: 1106px) {
  h1.header,h2.header,h3.header,h4.header {
    font-size: 35px;
  }
  /*  push div up higher    */
  div.container {
    top: 20%;
  }
   div.container.cf {
    top: 10%;
  }
}
@media (max-width: 972px) {
  h1.header,h2.header,h3.header,h4.header {
    font-size: 30px;
  }
  div.container, div.container.cf {
    width: 60vw;
    left: 20%;
  }
}
@media (max-width: 835px) {
  h1.header,h2.header,h3.header,h4.header {
    font-size: 25px;
  }
  div.container.cf {
    top: 5%;
  }
}
@media (max-width: 695px) {
  h1.header {
    width: 175px;
  }
  h2.header,h3.header,h4.header {
    width: 150px;
  }
  div.container {
    top: 10%;
    width: 75vw;
    left: 10%;
  }
  div.container.cf {
    top: 5%;
    width: 75vw;
    left: 10%;
  }
}
@media (max-width: 598px) {
  div.container.cf p .p{
    font-size: 14px;
  }
}
@media (max-width: 475px) {
  div.container {
    top: 5%;
  }
  p {
    font-size: 14px;
  }
  div.container.vt {
    top: 10%;
  }
  div.container.cf p .p{
    font-size: 12px;
  }
}
@media (max-width: 364px) {
  div.container, div.container.cf {
    top: 4%;
  }
  p {
    font-size: 13px;
  }
   div.container.cf p .p {
    font-size: 10px;
  }
  div.container.vt {
    top: 5%;
  }
}

/* home page */

/* @media (max-width: 1245px) {
  div#blotter-text-sts {
    top: 25%;
  	height: 15vh;
  }
  div#blotter-text-cf {
    height: 15vh;
  } 
  div#blotter-text-bo{
    top: 55%;
    height: 15vh;
  } 
  div#blotter-text-vt {
    top: 70%;
    height: 15vh;
	}
}

@media (max-width: 800px) {
  div#blotter-text-sts {
    top: 30%;
    height: 10vh;
  }
  div#blotter-text-cf {
    height: 10vh;
  }
  div#blotter-text-bo {
    top: 50%;
    height: 10vh;
  }
  div#blotter-text-vt {
    top: 60%;
    height: 10vh;
  }
} */