/* ----------------------  LOAD FONTS FROM SERVER ------------------------------ */

@font-face {
 font-family: "GrotzecCond-Demibold";
  src: url(https://journalismdesign.camd.northeastern.edu/clean/fonts/GrotzecCond-Demibold3.woff2);
}  

@font-face {
 font-family: "GrotzecCond-DemiboldItalic";
  src: url(https://journalismdesign.camd.northeastern.edu/clean/fonts/GrotzecCond-DemiboldItalic.woff2);
}  

@font-face {
 font-family: "LeJeunePoster-Regular";
  src: url(https://journalismdesign.camd.northeastern.edu/clean/fonts/LeJeunePoster-Regular.woff2);
} 

@font-face {
 font-family: "LeJeunePoster-RegularItalic";
  src: url(https://journalismdesign.camd.northeastern.edu/clean/fonts/LeJeunePoster-RegularItalic.woff2);
}

/* ----------------------  SITE STYLES  ------------------------------------- */

body {
  background-color: white;
}

@media only screen and (max-width:500px) {  
h1 {
  color:red;
  font-size: 40px;
  text-align:center;
  font-family:"GrotzecCond-Demibold","Impact",sans-serif;
  font-style: bold;
  letter-spacing: 2px;
  }
}

@media only screen and (min-width:501px) {  
h1 {
  color:red;
  font-size: 100px;
  text-align:center;
  font-family:"GrotzecCond-Demibold","Impact",sans-serif;
  font-style: bold;
  letter-spacing: 5px;
  }
}

@media only screen and (max-width:500px) {
h2 {
  color:red;
  font-size:22px;
  text-align: center;
  font-family: "GrotzecCond-Demibold", "Impact", sans-serif;
}
}

@media only screen and (min-width:501px) {
h2 {
  color:red;
  font-size:36px;
  text-align: center;
  font-family: "GrotzecCond-Demibold", "Impact", sans-serif;
}
}

@media only screen and (max-width:500px) {
h3.byline {
  color:red;
  text-align:center;
  font-size: 16px;
  text-transform:uppercase;
  font-family:"GrotzecCond-DemiboldItalic", "Impact", sans-serif;
  margin-top:5px;
  }
}

@media only screen and (min-width:501px) {
h3.byline {
  color:red;
  text-align:center;
  font-size: 28px;
  text-transform:uppercase;
  font-family:"GrotzecCond-DemiboldItalic", "Impact", sans-serif;
  margin-top:5px;
  }
}

  p {
  font-family: "Georgia", "Times",serif;
  font-size: 20px;
  line-height: 130%;
  color: black;
  margin-bottom:30px;
}
  
  blockquote {
    display: block;
    margin-top: 1em;
    margin-bottom: 1em;
    margin-left: 40px;
    margin-right: 40px;
    color:blue;
    font-size:28px;
    font-family:"GrotzecCond-DemiboldItalic", "Impact", sans-serif;
    text-align: center;
  }

  cite {
    display:block;
    font-size:22px;
    text-align: right;
    font-family: "GrotzecCond-DemiboldItalic", "Impact", sans-serif;
    color:red;
    margin-bottom:1em;
    margin-right:2em;

  }

 .blockquote-box {
  text-align:left;
  display: inline-block;
  background-color: #FFFFFFE6; 
  outline: 4px solid steelblue;
  padding: -1px;
  margin: 2px 2px 50px 2px;       
  color: white;
  width: 100%;
}


@media only screen and (max-width:500px) { /*-------FOR MOBILE----------*/
  div.article {
    width: 90%;
    padding-bottom: 5em;
  }
}

@media only screen and (min-width:501px) {  /*-----FOR BIG SCREEN--------*/
    div.article {
    width: 50%;
    padding-bottom: 5em;
  }
}

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

  figure.smallpicture {
    float: none;
    display: block;
    margin: 1em auto;
    text-align: center;
    width: 90%;                }

  figure.smallpicture img {
    width: 100%;             
    height: auto;
    margin: 0 auto;
    display: block;
    border: 3px solid red;   
    box-sizing: border-box;
  }

  figure.smallpicture figcaption {
    text-align: center;
    margin-top: .3em;
    color: blue;
  }
}

@media only screen and (min-width:501px) {  /*-----FOR BIG SCREEN--------*/
  figure.smallpicture {
    float: left;
    width: 40%;               
    margin: 0 20px 20px 0; 
    display: block;
  }

  figure.smallpicture img {
    border: 3px solid red;
    box-sizing: border-box;
    display: block;
  }
}
@media only screen and (min-width:501px) {  /*-----FOR BIG SCREEN--------*/
figcaption {
  color: blue;
  font-style: italic;
  margin-top: 5px;
  line-height: 1.3em;
  font-size:16px;
  }
}
 

a:link {
  color:blue;
  text-decoration: none;
}

a:visited { 
color:blue;
}

a:hover {
  text-decoration:underline;
}

a:active {
  color:purple;
}

@media only screen and (max-width:500px) {  /*-----FOR MOBILE--------*/

  div.article {
  width: 90%;
  padding-bottom: 5em;
  }
}

@media only screen and (min-width:501px) {  /*------larger screen-------*/

div.article {
  width: 50%;
  margin: 0 auto 0 auto;
  padding-bottom: 5em;
  }
}

.article h3.byline {
  margin-bottom: 2em;
}

@media only screen and (max-width:500px) {  
.headline-box {
  text-align: center;
  display: center-block;
  margin-bottom: 1em;
  background-color:#FFFFFFE6;
  outline: 10px solid steelblue;         
  outline-offset: 4px;                
  padding: 0px;
  margin-top: 2em;
  margin-left:1em;
  width:100%;
}
}

@media only screen and (min-width:501px) {  
.headline-box {
  text-align: center;
  display: center-block;
  margin-bottom: 2em;
  background-color:#FFFFFFE6;
  outline: 10px solid steelblue;         
  outline-offset: 4px;                
  padding: 20px 30px;
  margin-top: 2em;
}
}
.headline-box h1,
.headline-box h2,
.headline-box h3 {
  margin: 0.3em 0;
}

/*-----------FAKE SCROLLYTELLING CSS------------*/

@media only screen and (min-width:501px) {  
.scroll-slide {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: 100vh;
  padding: 2em;
  color: white;
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s ease-out, transform 1.2s ease-out;
  margin-bottom: 5vh;
}

.scroll-slide.visible {
  opacity: 1;
  transform: translateY(0);
}
.slide-image {
  flex: 1 1 50%;
  height: 100%;
}

.slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transition: opacity 1s ease-in-out;
}

.scroll-slide.visible .slide-image img {
  opacity: 1;
}

.slide-text {
  flex: 1 1 50%;
  padding: 2em;
  text-align: center;
    z-index: 1;
}

.slide-text h3 {
  font-size: 2em;
  margin-bottom: 0.5em;
  font-family: "GrotzecCond-Demibold", "Impact", sans-serif;

}

.slide-image img.crop-fix {
  object-position: top;
}

.scrollytelling {
  background-color: black;
  color: white;
}

  #slide9 {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 150vh; 
  background-color: black;
  color: white;
  text-align: center;
}

#slide9 h1 {
  font-size: 4em;
  font-family: "GrotzecCond-Demibold", "Impact", sans-serif;
  letter-spacing: 2px;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

#slide9.visible h1 {
  opacity: 1;
}

.scroll-slide:last-child {
  background-color: black;
}
}

@media only screen and (max-width:500px) {
  .scroll-slide {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
  }

  .scroll-slide.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.scrollytelling {
    background-color: black;
    color: white;
}

.scroll-slide {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 1.25em 0;
    margin-bottom: 2.5em;
    background-color: black;
    color: white;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.scroll-slide.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-image {
    width: auto;
    height: 45vh; 
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;         
    object-position: center;
    display: block;
}

.slide-image img.crop-fix {
  object-position: top;
}

.slide-text {
    width: 90%;
    text-align: center;
    padding: 0.75em 1em 0 1em;
    font-family: "GrotzecCond-Demibold", "Impact", sans-serif;
    color: white;
    background-color: black;
}

.slide-text h3 {
    font-size: 1.35rem;
    line-height: 1.3em;
    color: white;
  }
}

/*----------banner fade----------*/

.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}


/*-----------------nav bar--------------*/

ul.nav {
  background-color: #2961c2;
  color:white;
  padding:5px;
  font-family:"GrotzecCond-Demibold","Impact","sans-serif";
  font-size:2em;
  overflow: hidden;
  list-style-type:none;
  margin-bottom: 0px;
}

ul.nav {
  float:center;
  height:55px;
}

ul.nav li.logo {
  position:relative;
  top:-35px;
  left:40%;
  align-items:center;
}

ul.nav li a:link {
  text-decoration: none;
  color:white;
}

ul.nav li a:visited {
  color:white;
}

div.dropdowncontent {
  display:none;
  position:absolute;
  background-color:#f9f9f9;
  min-width:160px;
  box-shadow: 0px 8px 16px 0px  grey;
  z-index:1;
}

ul.nav li.logo a:hover {
  text-decoration: none;
  background-color: #2916c2;
  letter-spacing:2px;
  transition:letter-spacing 0.3s; ease-in
}

li.dropbutton:hover div.dropdowncontent {
  display:block; 
}

li.dropbutton:hover div.dropdowncontent a:link {
  color:#666;
  padding: 12px 16px;
  text-decoration:none;
  display:block;
  font-size:.6em;
  border-bottom: 1px solid #666;
}

li.dropbutton:hover div.dropdowncontent a:visited {
color: #666;
padding: 12px 16px;
text-decoration: none;
display: block;
font-size: .6em;
border-bottom: 1px solid #666;
}

li.dropbutton:hover div.dropdowncontent a:hover {
color: white;
background-color: #666;
transition: background-color 0.2s ease-in;

}

