/*! HTML5 Boilerplate v8.0.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 2.1.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */
   /* General Styles */
 
html {
	font-size: 16px;
}
 
body {
  font-family: 'Open Sans', sans-serif;
  font-size: 1em;
  color: #e2e3ed;
  text-align: left;
}
 
ul, 
ol {
 font-size: 1.125em;
 font-weight: bold;
 list-style-type: none;
 
}
li {
  padding-right: 30px;
  margin-right: 20px;
} 

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

 h1{
  font-size: 2.25em;
  line-height: 2.6em;
  font-weight: 500;
  text-align: center;
  letter-spacing: 2px;
 }

h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.875em;
  font-weight: 500;
}
 
h3, 
h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.125em;
  font-weight: 500;
  margin: 20px 0;
}

img {
  width: 100%;
}

figure {
  margin: 0;
}

p {
  font-size: 1em;
  line-height: 1.125em;
	
}
 
address {
 font-style: normal;
}
 
.content-wrapper {
  width: 90%;
  margin: 50px 0;
}

/********* Base Header - Footer Style *******/

header,
footer {
  background-color: #202322;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-flow: row wrap;
}


header figure {
  width: 60%;
  display: flex;
  justify-content: center;
  align-content: center;
  flex-flow: row wrap;
}

.header-divider {
  width: 100%;
  height: 1px;
  margin: 10px 0 20px 0;
  background: #3a3a3a;
}

header .content-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-flow: row wrap;
  margin: 0;
}

header nav {
  width: 60%;
  font-size: 1.125em;
  font-weight: 700;
  text-transform: uppercase;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-flow: row wrap;
}

header nav ul {
  display: flex;
  justify-content: space-around;
  width: 100%;
}

header nav ul li {
  font-size: 1.125em;
}

footer {
  text-align: center;
}

footer .content-wrapper {
  display: flex;
  justify-content: center;
  align-content: space-evenly;
  flex-flow: column wrap;
  width: 100%;
  margin: 50px 0;
}

footer p {
  margin: 0;
}

footer .contact {
  margin-bottom: 50px;
  margin: 0 auto;
}

footer .social-icons {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

footer .social h4 {
  width: 350px;
  height: 50px;
}

footer .social-icons p {
  display: flex;
  justify-content: center;
  align-items: space-between;
  flex-wrap: row nowrap;
  padding: 10px 10px;
}

footer .copyright {
  margin: 20px 0;
  font-size: .875em;
}

/*------------- - Homepage ------------------- */

.hero-area {
  background: url('../img/tourjapan2.jpg') #3a3a3a;
  background-position: center;
  background-size: cover;
  width: 100%;
  min-height: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: row wrap;
}

.hero-area h1 {
  font-size: 2.25em;
  font-family: 'Poppins' , Arial, Helvetica, sans-serif;
  font-weight: 500;
  line-height: 1.2;
}

/* Aside */

aside {
  background-color: #35516B;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-flow: row wrap;
}

/*form*/

aside .form {
  margin-top: 30px;
}

input[type="text"] {
  box-sizing: border-box;
  width: 100%;
  color: #262A2C;
  font-style: italic;
  padding: 1em;
}

input[type=button] {
  width: 100%;
  padding: 20px 0;
  margin-top: 20px;
  background-color: #32301A;
  font-family: 'Poppins', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1.125em;
  color: #eadeda;
  border: none;
  text-align: center;
  text-transform: uppercase;
}

/*Features */

.features {
  background: url('../img/motheranddaughter.jpg');
  background-size: cover;
  background-position: center;
  filter: grayscale(50%);
  display: flex;
  justify-content: center;
  flex-flow: row wrap;
}

.features h2 {
  margin-bottom: 60px;
  text-align: center;
  letter-spacing: 2px;
}

.features i {
	font-size: 3.75em;
    margin-bottom: 40px;
}

.features article {
  width: 63%;
  margin: 30px 0;
}

.features .features-items {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-flow: row wrap;
}

.features p {
  margin: 0;
  text-align: center;
}

.features-items p {
  letter-spacing: 2px;
  text-align: center;

}
/* REVIEWS */

.reviews {
  background-color: #35516B;
  display: flex;
  justify-content: center;
  flex-flow: column wrap;
  align-content: center;
  width: auto;
}

.reviews h2 {
  margin-bottom: 40px;
  line-height: 1;
  text-align: center;
}

.reviews h3 {
  margin: 20px 0;
}

.reviews img {
  border: 10px solid #262A2C;
  margin-bottom: 20px;
  box-sizing: border-box;
}


/******ABOUT PAGE ********/

.mission {
  background-color: #35516B;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  flex-flow: row wrap;
}

.contact-section {
  background-color: #35516B;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-flow: row wrap;
}

.contact-info p {
  margin: 0;
}

.contact-section .contact-content p {
  font-family: "Poppins", sans-serif;
  font-size: 1em;
  line-height: 18px;
}

.map-container {
  position: relative;
  padding-bottom: 75%;
  height: 0;
  overflow: hidden;

}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

}
footer .social {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-flow: column wrap;
  margin-bottom: 40px;
}
footer .social-icons {
  margin-bottom: 50px;
}

/*******FAQ PAGE ******/

.faq {
  background-color: #35516B;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-flow: row wrap;
}

.faq .content-wrapper {
  margin: 50px 0 50px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-flow: row wrap;
}

.faq h2 {
  margin-bottom: 40px;
  line-height: 1;
}

.faq-content {
  margin-bottom: 50px;
  margin: 0;
}

footer .contact {
  display: block;
  width: 60%;
}

footer .contact {
  margin-bottom: 50px;
}


/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.sr-only {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .sr-only class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.sr-only.focusable:active,
.sr-only.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: " ";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* BREAKPOINTS FOR TABLET AND DESKTOP */

@media only screen and (min-width: 768px) {
  /* General styles */
  .content-wrapper {
    max-width: 640px;
    margin: 100px 0;
  }

  h2 {
    font-size: 2.25em;
    line-height: 1.333;
  }

  h3 {
    font-size: 1.5em;
    line-height: 1.25em;
  }

  header {
    justify-content: center;
  }

  header .content-wrapper {
    width: 90%;
    justify-content: space-between;
  }

  header figure {
    width: 40%;
  }

  header nav {
    width: 20%;
  }

  header nav ul {
    justify-content: space-between;
  }

  header nav ul li {
    width: 45%;
    margin-right: auto;
    padding-right: 30px;
  }

  .header-divider {
    display: none;
  }

  /* Hero Area */

  .hero-area {
    min-height: 600px;
  }
  .hero-area h1 {
    font-size: 3em;
    line-height: 1;
    margin: auto;
  }

  /* Aside */
  aside .content-wrapper {
    margin: 50px 0;
    display: flex;
    justify-content: space-between;
    flex-flow: row wrap;
  }

  aside .content-wrapper .form-description,
  aside .content-wrapper .form {
    width: 40%;
    margin: 0;
  }

  /* Features */

  .features h2 {
    margin:auto;

  }

  .features article {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-flow: column wrap;
    flex-basis: 50%;
  }

  .features .features-item-description {
    width: 62%;
  }

  /* Reviews */
  .reviews {
    display: flex;
    justify-content: center;
    align-content: center;
    flex-wrap: column wrap;
  }
  
  

  .reviews h2 {
    width: 100%;
  }

  .reviews article div,
  .reviews article figure {
    width: 100%;
    margin: auto;
  }

  .reviews h3 {
    width: 100%;
    margin: 0;
  }

  /* Footer */
  footer .content-wrapper {
    width: 65;
    margin: 100px 0 0;
  }

  footer .footer-content {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-flow: column wrap;
  }

  footer .contact {
    margin-bottom: 0;
  }

  footer h4 {
    font-size: 1.5em;
    margin-bottom: 40px;
  }

  footer p {
    line-height: 1.285;
  }

  footer .copyright {
    width: 100%;
  }

  /* ABOUT PAGE */

  .mission-content {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding-top: 20px;
  }

  .mission-content p {
    width: 45%;
  }

  .contact-section .content-wrapper h2 {
    width: 80%;
  }


  .contact-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  /*FAQ*/

  .faq .content-wrapper {
    justify-content: space-between;
  }

  .faq-content {
    flex-basis: 45%;
  }

  .faq h2 {
    width: 100%;
  }

  .faq h4,
  .faq p {
    font-size: .875em;
    line-height: 1.125;
  }
}

@media only screen and (min-width: 1200px) {
  /*Desktop styles here */
  
  header {
    padding: 15px 0;
  }
  .content-wrapper {
    max-width: 1000px;
  }

  h2 {
    font-size: 2.25em;
  }

  h3,
  h4 {
    font-size: 1.875em;
  }

  p {
    font-size: 1em;
    line-height: 1.333;
  }

  /* Hero */
  .hero-area h1 {
    width: 80%;
    font-size: 3.75em;
  }

  /* Aside */
  aside .content-wrapper {
    justify-content: space-around;
  }

  aside .content-wrapper .form-description,
  aside .content-wrapper .form {
    width: 30%;
  }

  /* Features */
  .features h2 {
    width: 90%;
  }

  .features article {
    flex-basis: 33%;
  }

  /* Reviews */

  .reviews h2 {
    padding-bottom: 50px;
  }

  .reviews article div {
    width: 42;
  }

  footer h4 {
    font-size: 1.875em;
  }

  /* ==========================================================================
   About Page
   ========================================================================== */
  .mission h2,
  .contact-section .content-wrapper h2 {
    width: 95%;
    font-size: 3em;
    margin: auto;

  }

  .contact-info h4 {
    font-size: 1.875em;
  }

  /* ==========================================================================
   FAQ Page
   ========================================================================== */
  .faq h2 {
    width: 100%;
    font-size: 3em;
  }

  .faq h4,
  .faq p {
    font-size: 1.125em;
    line-height: 1;
  }
}


/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  /*
   * Printing Tables:
   * https://web.archive.org/web/20180815150934/http://css-discuss.incutio.com/wiki/Printing_Tables
   */
  thead {
    display: table-header-group;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}
