/*! HTML5 Boilerplate v6.1.0 | MIT License | https://html5boilerplate.com/ */

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

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   MMM custom style
   ========================================================================== */

   /*
   *  0. Reset
   */

    body {height : 100vh; width : 100vw;}

  /*
  *  1. Typography
  */

      html             {font-size : 12px; font-family: 'Montserrat', sans-serif; color :#4A4A4A;}
      h3               {font-size : 1.667rem;}

  /*
  *  2. Commons
  */

      section,
      header                     {position : relative; box-sizing: border-box; background-color : white; min-height : 100vh;}
      section h2                 {display : none;}
      article                    {padding-top : 40px; max-width : 400px; position: relative;}
      article h3                 {margin-bottom : 20px;}
      .emphasis                  {font-size : 6vh; color :white; font-weight :200; text-transform: uppercase; z-index : 1;}
      .emphasis strong           {font-weight : 900;}
      .article                   {display: flex; justify-content: center; align-items: center; }

      .padding-side              {padding-left : 25px; padding-right : 25px;}

      .standard                  {line-height : 1.7em;}

      .btn                       { height : 50px; border : solid 1px rgba(0,0,0,0.1); text-align : center; text-transform: uppercase; font-weight : 900; line-height: 50px; margin : 30px 0;}

      a                          {color : inherit; text-decoration : none;}

      .deco                      {background-color : #FF0065; height : 170px; width : 100%; position: absolute; top : -30px; transform: skewY(-5deg);}
      .deco-2                    {top : -19vh;}

      iframe                     {width : 100%; height : 100%;}



  /*
  *  4. Main
  */

.main             {position : relative; min-height : 100vh; width : 100vw; /*overflow-x: hidden; overflow-y : auto;*/}

  /*
  *  5. Menu
  */

      .menu                   {position: absolute; top : 0; left : 0; width : 100vw; z-index : 9999; display: flex; padding : 10px 14px 0; box-sizing: border-box; overflow : hidden; height : 50px; transition : all 0.5s;}
      .menu.open              {background-color : rgba(0,0,0,0.9); height : 100vh;}
      .menu .icon             {width :40px; height : 40px; display: flex; flex-direction: column; justify-content: center; align-items: center; cursor : pointer;}
      .menu .icon .bar        {width : 17px; height : 2px; background-color : white; margin-bottom: 3px; transition: background-color .5s;}
      .menu .menu-list        {color : white; transition: color .5s;}
      .menu .section-titles   {margin-top : 12px; height : 15px; overflow: hidden; cursor : pointer; position: relative;}
      .menu .section-titles h2{margin : 0 0 15px; font-size: 1rem; text-transform: uppercase; height : 15px;}
      .menu .entries          {list-style : none; text-transform: uppercase; padding : 0; margin : 50px 0 0 -26px; font-size : 1.667rem; font-weight : 900; line-height: 3.5rem;}
      .menu .entries .number  {color : rgba(255,255,255,0.5); font-weight : 200; font-size : 1rem; margin-right : 20px; display: inline-block; width : 15px; }

      .menu .titles-container  {list-style: none; padding : 0; margin : 0; position: relative;}

      .menu.negative .icon .bar {background-color: #4A4A4A;}
      .menu.negative .menu-list        {color : #4A4A4A;}

      .menu.negative.open .icon .bar {background-color: white;}
      .menu.negative.open .menu-list        {color : white;}

  /*
  *  6. Header
  */

      .header                {display: flex; flex-direction: column; justify-content: center; align-items: center; background-image: url(../img/pictures/MMM-Aurillac-17.jpg); background-size : cover; background-position: center center; cursor: pointer;}
      .header h1             {width : 210px;}
      .header h1 img         {width : 100%; height : auto;}
      .header .scrolldown    { position: absolute; bottom : 30px;}

  /*
  *  7. Slogan
  */

      .slogan              {background-size : cover; background-position: center center; display : flex; align-items: center;}
      .slogan-1            {background-image: url(../img/pictures/MMM-4.jpg);}
      .slogan-2            {background-image: url(../img/pictures/MMM-4.jpg);}


  /*
  *  8. Game
  */

      .carousel .controls                  {position: absolute; width : 100vw; top : 50%; transform : translateY(-50%); display: flex; justify-content: space-between; box-sizing: border-box; z-index : 1;}
      .carousel .controls .arrow           {position: absolute; width : 50px; height : 50px; display: flex; align-items: center; justify-content: center;}
      .carousel .controls .previous        {left : 7px;}
      .carousel .controls .next            {right : 7px;}
      .carousel .controls .previous img    {transform: rotate(90deg);}
      .carousel .controls .next img        {transform: rotate(-90deg);}

      .carousel .pagination                {position: absolute; right : 25px; top : 25px; padding : 0; margin : 0; list-style: none; display: flex;}
      .carousel .pagination .page          {width : 10px; height: 10px; border-radius: 5px; background-color: rgba(255,255,255,0.3); margin-left: 5px;}
      .carousel .pagination .page.active   {background-color: rgba(255,255,255,1);}

      .list-container                   {width : 100vw; height : 100vh; overflow: hidden; position: relative;}
      .list                             {list-style: none; margin : 0; padding : 0; display : flex; float: left; position: absolute; left : 0; top : 0;}
      .list .item                       {background-color : black; width : 100vw; height : 100vh; position: relative; overflow : hidden; padding : 0;}

      .video                            {padding-top : 50px; box-sizing: border-box;}

      .game .game-title                 {padding : 45px 25px 0; margin : 0; font-weight : 900; position: absolute; left : 0; top : 0; color : white; text-transform: uppercase;}
      .game .game-section-title         {padding : 45px 25px 0; margin : 0; position: absolute; left : 0; top : 50%; color : white; text-transform: uppercase; transform:translateY(-50%);}
      .list figure                      {width : 100vw; height : 100vh; overflow: hidden; margin : 0; background-size : cover; background-position: center;}
      .list figure img                  {height : 100%; width : auto; transform: translateX(-50%); position: absolute; left : 50%;}
      .game .excerpt                    {position: absolute; bottom : 60px; color : white;}
      .game .info                       {position: absolute; height : calc(100vh - 90px); width : 100vw; bottom : 0; transform: translateY( calc(100% - 38px) ); transition: transform 0.3s; z-index : 9999;}
      .game .info.open                  {transform: translateY(0);}
      .game .info-button                {position: absolute; right : 25px; background-color: #7ED321; color : white; padding : 10px 15px 20px; border-radius: 5px 5px 0 0; text-transform : uppercase; font-weight : 700;}
      .game .info .info-container       {background-color: #7ED321; height : 100%; width : 100%; position: relative; overflow: hidden; margin-top : 37px; padding : 3.5em; box-sizing : border-box; line-height: 1.7em; color : rgba(0,0,0,0.6);}
      .game .info .info-container .text {overflow: auto; height : 100%; }
      .game .info .info-container .text hr {border-top : 1px solid rgba(0,0,0,0.2); margin : 3em 0;}
      .game .info .info-container .text img {width : 100%; height: auto;}

      .game-02 .info-button,
      .game-02 .info .info-container             {background-color : #0090ff; color : white;}

      .game-03 .info-button,
      .game-03 .info .info-container             {background-color : #ff0000; color : white;}

      .game-04 .info-button,
      .game-04 .info .info-container             {background-color : #ff670c; color : white;}


    /*
    *  10. Vidéos
    */

      .play                            {width : 116px; height : 116px; position: absolute; left : 50%; top : 50%; transform: translate(-50%, -30%); text-align: center;}
      .play img                        {height : 100%; width : auto;}


    /*
    *  X. CONTACT
    */

      .contact                          {background-color : #FF0065; color : white;}
      .contact h3                       {text-transform: uppercase;}
      .dossier                          {text-align : center; display :block;}
      .contact p                        {line-height: 1.6em;}


    /*
    *  X. Project
    */

  .bio article,
  .project article { background-color : rgb(255,255,255,0.9); padding : 25px 50px;}



/* Tablet */
@media screen and (min-width: 768px) {
  .header h1 {width : 40vw;}
  article {font-size: 1.6vh; max-width : 44vh;}

  .menu .icon .bar         {height : 4px; width : 25px;}
  .menu .icon              {margin-right : 15px;}
  .menu .entries           {font-size: 3.5rem; line-height: 5rem;}

  .deco                      {height : 270px;top : -7vh;}

  .game .excerpt {font-size : 1.6vh; max-width : 44vh; bottom : 30px;}
  .game .info .info-container .text {max-width : 60vw; margin : 0 auto; font-size : 16px; line-height: 1.8em;}
  .game h3,
  .contact h3 {font-size : 6vh;}

  .contact h3 {margin-top : 0;}
  .contact .article {padding : 0;}


  .project.fond                  {background-image:url("../img/pictures/MMM-Aurillac-2.jpg"); background-size : cover;}
  .bio.fond                      {background-image:url("../img/pictures/affiche.jpg"); background-size : cover;}

  .play                          {width : 200px; height : 200px;}

}

/* Desktop */
@media screen and (min-width: 1280px) {
  .header h1                     {width : 30vw;}
  .deco                          {height : 350px;top : -10vh;}

  .menu .entries           {font-size: 4.5rem; line-height: 6.5rem;}
}








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

/*
 * Hide visually and from screen readers
 */

.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
 */

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

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

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

/*
 * 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: " "; /* 1 */
    display: table; /* 2 */
}

.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: transparent !important;
        color: #000 !important; /* Black prints faster */
        -webkit-box-shadow: none !important;
        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:
     * 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;
    }
}
