/*! 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
   ========================================================================== */
/* Utility classes colors */
.backgroundColorBlue {
  background-color: #2b345d;
}

.backgroudColorPastelBlue {
  background-color: #eee9fa;
}

.backgroundColorLightGrey {
  background-color: #eeeeee;
}

.colorButton {
  columns: #4d22ff;
}

.colorTextLightBlue {
  color: #22ffdd;
}

.colorTextWhite {
  color: white;
}

/* Utility classes size */
.sizeBurgerMenu {
  width: 2em;
  height: auto;
}

.sizeLogo {
  width: 75%;
  height: auto;
}

/* Utility classes */
.alignCenter {
  text-align: center;
}

.justifyText {
  text-align: justify;
}

.specialCharacters {
  font-weight: 900;
  font-size: 1.2em;
  color: #2b345d;
}

.fontWeight {
  font-weight: 900;
}

.fontSizeNumber {
  font-size: 2em;
}

.padding {
  padding: 1em;
}

.sectionMargin {
  margin: 2em;
}

/* General rules */
* {
  font-family: 'Poppins', sans-serif;
  color: #1d3557;
  margin: 0;
  padding: 0;
}

button {
  margin: 2em 0 1em 0;
  padding: 0.5em;
}

/* Sticky button */
#inscription {
  position: fixed;
  position: sticky;
  top: 10px;
  background-color:#4d22ff;
  width: 100%;
  height: auto;
  text-align: center;
  padding: 1em 0;
}

/* Body */
body {
  background: url("https://s3-eu-west-1.amazonaws.com/assets.chooseyourboss.com/images/splash-general-3.png") 
  no-repeat;
  width: 100%;
  height: auto;
}

/* h1 h2 h3 {
  font-weight: 900;
} */

button {
  background-color: #4d22ff;
  color: white;
  border-radius: 25px;
  border-style: none;
}

/* Nav */
nav {
  display: flex;
  flex-direction: row;
  margin: 1em;
}

nav figure {
  margin-left: 5em;
}

/* Header */
header section {
  margin: 3em 1em 2em 1em;
  padding-bottom: 1em;
}

/* Main */
main section div img {
  width: 75%;
  height: auto;
}

main article img {
  width: 60%;
  height: auto;
}

main section div {
  padding: 0.5em 0 0.5em 0;
}

main section div p {
  padding: 0.5em 3em;
}

h2 {
  padding: 1em;
}

h3 {
  padding: 1em;
}

/* Media query */
@media screen and (min-width: 375px) {
  /* Nav */
  /* Remove nav menu */
  nav aside ul {
    display: none;
  } 

  /* Header */
  /* Remove photo */
  header section img {
    display: none;
  }

  /* Main */
  /* Remove last image main */
  main section figure img {
    display: none;
  } 
}

@media screen and (min-width: 540px) {
  /* Utility classes size */
  .sizeArticle {
    width: 50%;
    height: auto;
  }

  .sizeBurgerMenu {
    width: 3em;
    height: auto;
  }

  .sizeLogo {
    width: 80%;
    height: auto;
  }

  /* Utility classes */
  .width100PerCent {
    width: 100%;
  }

  /* Generals rules */
  /* Nav */
  nav figure {
    margin-left: 30%;
  }

  /* Header */
  header section {
    margin: 5em 1em 4em 1em;
  }

  /* Main */
  main section {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
  }

  main section article {
    width: 50%;
    height: auto;
  }

  main section div {
    width: 100%;
  }
}

@media screen and (min-width: 768px) {
  /* Generals rules */
  /* Nav */
  nav figure {
    margin-left: 35%;
  }

  /* Main */
  main section article {
    width: 30%;
    height: auto;
  }
}

@media screen and (min-width: 1201px) {
  /* Generals rules */
  #inscription {
    display: none;
  }

  .sizeArticle {
    width: 30%;
    height: auto;
  }

  /* Nav */
  /* Remove burger menu */
  nav>div {
    display: none;
  }
  
  /* Place the logo */
  nav figure {
    margin: 0;
    display: flex;
    align-items: flex-start;
  }

  /* Reveal and place nav menu */
  nav aside ul {
    display: flex;
    flex-direction: row;
    list-style-type: none;
  } 

  nav {
    justify-content: space-between;
  }

  nav aside ul li a {
    text-decoration: none;
    padding-left: 2em;
  }

  /* Header */
  /* Reveal photo */
  header section img {
    display: flex;
  }

  header section figure img {
    width: 75%;
    height: auto;
  }

  header section figure, header section article {
    width: 40%;
    height: auto;
  }

  header section {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
  }

  header section {
    margin: 5em 0 5em 5em;
  }

  /* Main */
  /* Reveal image */
  main section figure img {
    display: flex;
    width: 75%;
    height: auto;
    flex-wrap: wrap;
  }

  main section div {
    width: 30%;
    height: auto;
  }

  main section article {
    width: 20%;
    height: auto;
  }
}

/* ==========================================================================
   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;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   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;
  }
}

