/* container width/height issue debugging */
/* * {border:1px solid red} */

/* Google Antonio font: https://fonts.google.com/specimen/Antonio/about
   CSS Instructions: https://developers.google.com/fonts/docs/css2 */
@import url('https://fonts.googleapis.com/css2?family=Antonio:wght@600&display=swap');

/* Sabana "Arabesque" font: https://elements.envato.com/sabana-arabic-font-DDV45SF
   Licensing: Envato Elements Free Trial
   font-face guide: https://www.pagecloud.com/blog/how-to-add-custom-fonts-to-any-website
   web font generator: https://www.fontsquirrel.com/tools/webfont-generator
*/
@font-face {
    font-family: 'sabanaregular';
    src: url('/fonts/sabana-webfont.woff2') format('woff2'),
         url('/fonts/sabana-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
.arabesque {
    font-family: 'sabanaregular', 'MS Matura MT Script', serif;
    font-weight: bold;
}

/* Imani Serif journal font:
   https://elements.envato.com/imani-serif-cute-handwriting-font-handwritten-CGAU9MV
   Licensing: Envato Elements Free Trial
   font-face guide: https://www.pagecloud.com/blog/how-to-add-custom-fonts-to-any-website
   web font generator: https://www.creativefabrica.com/webfont-generator/
*/
@font-face {
    font-family: 'Imani';
    src: url('/fonts/Imani.woff2') format('woff2'),
         url('/fonts/Imani.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
.journal {
    font-family: 'Imani', 'Times New Roman', serif;
}
.journalheading {
    font-family: 'Imani', 'Times New Roman', serif;
    font-size: 28px;
}

body, html {
    height: 100%;
    margin-top: 0;
    margin: 0;
    padding: 0;
}
.homebg {
  /* The image used */
  background-image: url("/images/cover.jpg");

  /* Full height */
  height: 100%;
  width: 100%;

  /* Center and scale the image nicely */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.pagebg {
    color: black;
    background-color: white;
    height: 100%;
    width: 100%;
}
.donatebg {
    color: white;
    background-color: #803630;
    height: 100%;
    width: 100%;
}
/* Horizontal navbar. Guide: https://www.w3schools.com/css/css_navbar_horizontal.asp */
.header {
    position: fixed;
    right: 0;
    left: 0;
    margin: 0;
    min-height: 50px;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0);
}
.header-ul {
    list-style: none;
    text-align: center;
}
.header-ul > li {
    display: inline-block;
    font-family: 'Antonio', sans-serif;
    font-weight: bold;
    font-size: 24px;
}
.header-ul > li.icon {
    display: none;
}
/* Menu text pre-scroll */
.header-ul > li > a {
    color: black;
    text-decoration: none;
    padding: 2px 1em 8px 1em;
}    
.header-ul > li > a.donate {
    background-color: black;
    color: white;
    text-decoration: none;
    padding: 2px 1em 8px 1em;
}    
.header-ul > li > a.active {
    background-color: grey;
    color: white;
    text-decoration: none;
    padding: 2px 1em 8px 1em;
}    
.header-ul > li > a:hover {
    background-color: black;
    color: white;
    text-decoration: none;
    padding: 2px 1em 8px 1em;
}    
.header-ul > li > a.donate:hover {
    background-color: white;
    color: blue;
    text-decoration: none;
    padding: 2px 1em 8px 1em;
}    
.header-ul > li > a.active:hover {
    background-color: white;
    color: grey;
    text-decoration: none;
    padding: 2px 1em 8px 1em;
}    
.mainhome {
    display: inline-block;
    min-height: 800px;
    width: 100%;
    margin: 0;
    font-family: 'sabanaregular', 'MS Matura MT Script', serif;
    font-size: 72px;
    color: white;
}
.first {
    padding: 120px 0 0 60px;
    margin: 0;
}
.indent {
    padding-left: 150px;
    margin: 0;
}
.subtitle {
    padding: 50px 0 0 60px;
    font-size: 48px;
    margin: 0;
}
.arrow {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 40px;
    display: block;
    margin: 0 auto;
}
.arrow img {
    height: 40px;
    width: 40px;
}

.menuspace {
    padding: 120px 0 0 60px;
}

/* Two column flexbox layout for journal/Yemen/Donate. Guide:
   https://www.w3schools.com/css/css3_flexbox_container.asp */
.flex-two-column {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}
.flex-two-column .col1 {
    width: 50%;
    padding: 0 2em 0 2em;
}
.flex-two-column .col2 {
    width: 50%;
    padding: 0 2em 0 2em;
}
/* Three column flexbox layout for home page. Guide:
   https://www.w3schools.com/css/css3_flexbox_container.asp */
.flex-three-column {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}
.flex-three-column .col1 {
    width: 33%;
}
.flex-three-column .col2 {
    width: 33%;
}
.flex-three-column .col3 {
    width: 33%;
}
/* Text overlay on images for main page photo links. Guide:
   https://www.w3schools.com/howto/howto_css_image_text.asp */
.imgtextoverlay {
    position: relative;
    text-align: center;
    font-family: sans-serif;
    font-size: 36px;
    color: white;
}
.overlaytext {
    position: absolute;
    top: 12%;
    left: 50%;
    transform: translate(-50%, -50%);
}
/* black & white on img hover. Guide: https://www.w3schools.com/howto/howto_css_image_bw.asp */
.imgtextoverlay img:hover {
    -webkit-filter: grayscale(100%); /* Safari 6.0 - 9.0 */
    filter: grayscale(100%);
}

/* Read More buttons. Guide: https://www.w3schools.com/howto/howto_js_read_more.asp */
#more01 { display: none }
#more02 { display: none }
#more03 { display: none }
#more04 { display: none }
#more05 { display: none }
#more06 { display: none }
#more07 { display: none }
#more08 { display: none }
#more09 { display: none }
#more10 { display: none }
#more11 { display: none }
#more12 { display: none }
button {
    padding: 5px;
    background-color: black;
    color: white;
    margin-bottom: 1em;
}
button:hover {
    background-color: grey;
}
img {
    max-width: 95%;
}
/* main content div for all but home page */
.main {
    display: inline-block;
    min-height: 1000px;
    width: 40%;
    margin: 0;
    font-family: 'Imani', 'Times New Roman', serif;
    font-size: 16px;
    color: black;
    padding: 120px 0 0 60px;
}
.main p {
    padding: 0;
}
footer {
    max-width: 100%;
    height: 350px;
    background-image: url("/images/sunset_footer.jpg");
    background-size: cover;
}

.donatebtn {
    padding: 5px 1em 8px 1em;
    text-decoration: none;
    background-color: red;
    font-family: sans-serif;
    font-weight: bold;
    font-size: 16px;
    color: white;
}

/* Slideshow. Guide: https://www.w3schools.com/howto/howto_js_slideshow.asp */
* {box-sizing:border-box}

/* Slideshow container */
.slideshow-container {
  max-width: 1000px;
  position: relative;
  margin: auto;
}

/* Hide the images by default */
.mySlides {
  display: none;
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

/* Caption text */
.text {
  color: #f2f2f2;
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
}

/* Number text (1/3 etc) */
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

/* The dots/bullets/indicators */
.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active, .dot:hover {
  background-color: #717171;
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}

/* Responsive CSS changes for smaller screens */

/* First step, just drop menu font sizes and make flexbox go to columns */
@media screen and (max-width: 800px) {
    .header-ul li:last-child { display: none; }
    .header-ul > li {
	font-size: 18px;
    }
    .flex-two-column {
	flex-direction: column;
    }
    .flex-two-column .col1 {
	width: 90%;
    }
    .flex-two-column .col2 {
	width: 90%;
    }
    .flex-three-column {
	flex-direction: column;
    }
    .flex-three-column .col1 {
	width: 90%;
    }
    .flex-three-column .col2 {
	width: 90%;
    }
    .flex-three-column .col3 {
	width: 90%;
    }
    .imgtextoverlay {
	font-size: 72px;
    }
}

/* Next step <= 600px, switch to Hamburger curtain menu */
/* Curtain menu: https://www.w3schools.com/howto/howto_js_curtain_menu.asp */
/* Responsive navbar: https://www.w3schools.com/howto/howto_js_topnav_responsive.asp */
@media screen and (max-width: 600px) {
    .header-ul li:not(:last-child) {
	display: none;
    }
    .header-ul li.icon {
	display: block;
	font-size: 36px;
    }
    .header-ul.responsive {
	position: fixed;
	height: 100%;
	width: 100%;
	position: fixed; /* Stay in place */
	z-index: 1; /* Sit on top */
	left: 0;
	right: 0;
	top: 0;
	padding: 2em 0 0 0;
	margin: 0;
	background-color: rgb(0,0,0); /* Black fallback color */
	background-color: rgba(0,0,0, 0.8); /* Black w/opacity */
	overflow-x: hidden; /* Disable horizontal scroll */
	transition: 0.5s; /* 0.5 second transition effect to slide in or slide down the overlay (height or width, depending on reveal) */
    }
    .header-ul.responsive li.icon {
	position: absolute;
	left: 0;
	right: 0;
	margin: 0;
	top: 0;
    }
    .header-ul.responsive li {
	float: none;
	display: block;
	text-align: center;
	background-color: transparent;
	font-size: 28px;
    }
    .header-ul.responsive li a {
	text-decoration: none;
	text-align: center;
	padding: 12px 0 0 0;
	color: white;
    }
    .header-ul.responsive li a.active {
	background-color: transparent;
	color: grey;
    }
    .header-ul.responsive li a.donate {
	background-color: transparent;
	color: blue;
    }
    .header-ul.responsive li a:hover {
	background-color: transparent;
	color: blue;
    }
}
