/*! HTML5 Boilerplate v9.0.0-RC1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.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
 *
 * 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
   ========================================================================== */
   
   @font-face {
    font-family: 'Brown';
    src:  url('../font/BrownLLWeb-Bold.woff') format('woff'),
          url('../font/BrownLLWeb-Bold.woff2') format('woff2');
    font-weight: bold;
  }

  @font-face {
    font-family: 'Brown';
    src:  url('../font/BrownLLWeb-Regular.woff') format('woff'),
          url('../font/BrownLLWeb-Regular.woff2') format('woff2');
    font-weight: normal;
  }

    /* GENERAL */

  *{
    font-family: 'Brown';
  }

  body{
    height: 100vh;
    overflow-y: visible;
    overflow-x: hidden !important;
    width: 100vw !important;
  }

  .grid-x{
    padding: 0 10vw;
    margin: 0;
  }

  #container{
    width: 100vw;
    overflow-x: hidden;
  }

  h2 p{
    font-size: 80px;
    line-height: 88px;
    font-family: 'Brown';
    font-weight: bold;
    color: #fff;
  }


  h3 p{
    font-size: 30px;
    line-height: 40px;
    font-family: 'Brown';
    font-weight: bold;
  }

  ul{
    margin: 0;
    padding: 0;
  }

  p{
    font-size: 20px;
    line-height: 30px;
    margin-bottom: 0;
    hyphens: auto;
    hyphenate-limit-chars: 6 3 3;
  }

  a:hover{
    color: #fff;
  }

  .niceappear{
    background: #364F21;
    width: 100vw;
    height: 120vh;
    position: absolute;
    top: -50px;
    left: 0;
    z-index: 5;
    pointer-events: none;
    animation: niceappear .5s ease-in-out forwards;
  }

  .bienetre .niceappear{
    background: #EE7350;
  }
  .paysage .niceappear{
    background: #AFD470;
  }
  .qualite .niceappear{
    background: #FABD74;
  }

  @keyframes niceappear {
    10% {
      opacity: 1;
    }
  
    100% {
      opacity: 0;
    }
  }

  /* ERROR */
  
  .error{
    background: #364F21;
  }

  .error a{
    color: #fff;
  }
  .error a:hover, .error a:visited, .error a:active, .error a:focus{
    color: #AFD470;
  }

  /* IMPRESSUM */

  #impressum{
    background: #AFD470;
  }

  #impressum .infodetailpage{
    padding: 0 0 150px 0; 
  }

  #impressum h4{
    margin: 100px 0 50px 0;
  }

  #impressum a{
    color: #000;
  }
  #impressum a:hover, #impressum a:visited, #impressum a:active, #impressum a:focus{
    color: #364F21;
  }
  
  #impressum p{
    margin-bottom: 25px;
  }

  /* ANIMATION LOGO */

  .animation{
    width: 100vw;
    height: 100vh;
    background: #fff;
    z-index: 3;
    position: absolute;
    display: flex;
    justify-content: center;
    left: 0;
    top: 0;
    transition: all .8s ease-in-out 2.5s;
  }

  .animation svg{
    width: 40% !important;
    margin-top: -15px;
  }

  .animationgo{
    left: -100vw;
    transition: all .8s ease-in-out 2.5s;
  }

  /* HEADER */

  header{
    position: absolute;
    z-index: 2;
    width: 100vw;
    top: 45px;
  }

  header svg{
    width: 75%;
    transform:translateY(-150px);
    animation: topheader .5s ease-out .3s forwards;
  }

  header ul{
    display: flex;
    justify-content: right;
    align-items: center;
    transform:translateY(-150px);
    animation: topheader .5s ease-out .3s forwards;
  }

  header ul li, .calltoaproposlink{
    display: inline-block;
    list-style-type: none;
    height: 35px;
    border-radius: 100px;
    padding: 2px 15px;
    font-size: 20px;
    transition: all ease-out .5s;
  }

  header ul li a, #calltopage .calltopagelink a, .calltoaproposlink a{
    color: #364F21;
    height: 35px;
    display:inline-block;
  }

  header ul li:first-child, #calltopage .cell:first-child .calltopagelink{
    background: #EE7350;
  }
  header ul li:nth-child(2), #calltopage .cell:nth-child(2) .calltopagelink, #calltoapropos .calltoaproposlink{
    background: #AFD470;
  }
  header ul li:nth-child(3), #calltopage .cell:nth-child(3) .calltopagelink{
    background: #FABD74;
  }

  header ul li:first-child a, #calltopage .cell:first-child .calltopagelink a{
    color: #fff;
  }
  header ul li:nth-child(2) a:hover, #calltopage .cell:nth-child(2) .calltopagelink a:hover, #calltoapropos .calltoaproposlink a:hover{
    color: #364F21;
  }
  header ul li:nth-child(3) a:hover, #calltopage .cell:nth-child(3) .calltopagelink a:hover{
    color: #364F21;
  }

  header ul li:hover, #calltopage .calltopagelink:hover, .calltoaproposlink:hover, header ul li:has(> a.active){
    transform: translateY(-8px);
    transition: all ease-out .5s;
  }

  @keyframes topheader {
    0% {
      transform:translateY(-150px);
    }
  
    100% {
      transform:translateY(0);
    }
  }

   /* LANGUAGES */

  .languages{
    position: absolute;
    left: 10vw;
    bottom: 50px;
    margin-left: .9375rem;
  }

  .languages li{
    width: 35px;
    height: 35px;
    border-radius: 100px;
    padding-top: 3px;
    text-align: center;
    display: inline-block;
    list-style-type: none;
    background:#AFD470;
    cursor: pointer;
    margin-left: -4px;
    transform:translateY(100px);
    animation: lang .5s ease-out .3s forwards;
  }

  .languages li a{
    width: 35px;
    height: 35px;
    display: block;
    color: #364F21;
    font-family: 'Brown';
    font-weight: normal;
    font-size: 20px;
    line-height: 25px;
    transition: all .3s ease-out;
  }

  .languages li:hover a{
    color: #AFD470;
    transition: all .3s ease-out;
  }
  .languages li:hover{
    background: #364F21;
    transition: all .3s ease-out;
  }

  .languages .active{
    background: #364F21;
  }
  .languages .active a{
    color: #AFD470;
  }

  @keyframes lang {
    0% {
      transform:translateY(100px);
    }
  
    100% {
      transform:translateY(0);
    }
  }

   /* HAUT DE PAGE */

  #hautdepage{
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
  }

  #hautdepage #videocontain{
    overflow: hidden;
    width: 100vw;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
   }

   #hautdepage #videocontain video{
    min-width: 100vw;
    height: 100vh;
    object-fit: cover;
    object-position: top;
   }

   #hautdepage .calltoaproposlink{
    background: #364F21;
    height: 35px;
    border-radius: 100px;
    padding: 2px 15px;
    font-size: 20px;
    position: absolute;
    right: 10vw;
    bottom: 50px;
    transform:translateY(100px);
    animation: lang .5s ease-out .3s forwards;
   }
   #hautdepage .calltoaproposlink a{
    color: #AFD470;
   }

   #hautdepage h2{
    opacity: 0;
    animation: titel .5s ease-out .3s forwards;
   }

   @keyframes titel {
    0% {
      transform:translateX(-100px);
      opacity: 0;
    }
  
    100% {
      transform:translateX(0);
      opacity: 1;
    }
  }

  /* HOMEPAGE INTRODUCTION */

  #Introduction {
    padding: 200px 0;
    font-weight: bold;
    background: #FABD74;
    animation: colors 8s ease-in-out infinite;
  }

  #Introduction p{
    font-size: 60px;
    line-height: 70px;
    color: #fff;
    hyphens: none;
  }

  @keyframes colors {
    0%, 25% {
      background: #FABD74;
    }
  
    45%, 55% {
      background: #EE7350;
    }

    70%, 90% {
      background: #AFD470;
    }
  }

  /* HOMEPAGE ILLUSTRATION */

  #illustration{
    background: #FCEBD7;
    position: relative;
    z-index: 2;
    cursor: pointer;
  }

  svg .cls-3, svg .cls-2, svg .cls-1{
    transition: all ease-out .3s;
  }

  #illustration .textillusep{
    width: 250px;
    padding: 15px;
    display: none;
    position: absolute;
  }

  #illustration .Infoillu p{
    color: #fff;
  }

  #illustration .Infoillu .btnillu{
    width: 55px;
    height: 55px;
    border: 5px solid #FCEBD7;
    border-radius: 100px;
    transition: all .3s ease-out;
    z-index: 2;
    margin-top: -55px;
    position: absolute;
    transform-origin: center;
    animation: btnsillu 2s ease-in-out infinite;
  }

  @keyframes btnsillu {
    0% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.2);
    }
    100% {
      transform: scale(1);
    }
  }

  .montagne .btnillu, .montagne .textillusep, .foret .btnillu, .foret .textillusep, .herbage .btnillu, .herbage .textillusep, .paturage .btnillu, .paturage .textillusep, .agriculteur .btnillu, .agriculteur .textillusep, .biodiversite .btnillu, .biodiversite .textillusep{
    background: #94B246;
  } 

  .veau .btnillu, .veau .textillusep{
    top: 36%;
    left: 3%;
    background: #EE7350;
  }
  .montagne .btnillu, .montagne .textillusep{
    top: 8%;
    left: 29%;
  }
  .foret .btnillu, .foret .textillusep{
    top: 17%;
    left: 50%;
  }
  .herbage .btnillu, .herbage .textillusep{
    top: 21%;
    left: 69%;
  }
  .paturage .btnillu, .paturage .textillusep{
    top: 53%;
    left: 2%;
  }
  .transformation .btnillu, .transformation .textillusep{
    top: 63%;
    left: 27%;
    background: #FAAF58;
  }
  .stabulation .btnillu, .stabulation .textillusep{
    top: 31%;
    left: 43%;
    background: #EE7350;
  }
  .ferme .btnillu, .ferme .textillusep{
    top: 36%;
    left: 71%;
    background: #EE7350;
  }
  .traite .btnillu, .traite .textillusep{
    top: 55%;
    left: 63%;
    background: #EE7350;
  }
  .produit .textillusep, .produit .btnillu{
    top: 46%;
    left: 72%;
    background: #FAAF58;
  }
  .vache .textillusep, .vache .btnillu{
    top: 92%;
    left: 4%;
    background: #EE7350;
  }
  .partage .textillusep, .partage .btnillu{
    top: 85%;
    left: 49%;
    background: #FAAF58;
  }
  .vachetete .textillusep, .vachetete .btnillu{
    top: 68%;
    left: 58%;
    background: #EE7350;
  }
  .agriculteur .textillusep, .agriculteur  .btnillu{
    top: 70%;
    left: 80%;
  }
  .biodiversite .textillusep, .biodiversite .btnillu{
    top: 87%;
    left: 55%;
  }
  .savoirfaire .textillusep, .savoirfaire .btnillu{
    top: 80%;
    left: 70%;
    background: #FAAF58;
  }

  .herbage:hover .btnillu, .agriculteur:hover .btnillu, .biodiversite:hover .btnillu, .paturage:hover .btnillu, .montagne:hover .btnillu, .foret:hover .btnillu{
    background: #657E25 !important;
  }
  .ferme:hover .btnillu, .stabulation:hover .btnillu, .traite:hover .btnillu, .vachetete:hover .btnillu, .vache:hover .btnillu, .veau:hover .btnillu{
    background: #AD5136 !important;
  }

  .textappear{
    display: block !important;
    z-index: 5 !important;
  }


  .highlightgreen{
    stroke:#657E25 !important;
    transition: all ease-out .3s;
  }
  .highlightgreenback{
    background:#657E25 !important;
    transition: all ease-out .3s;
  }

  .highlightred{
    stroke:#AD5136 !important;
    transition: all ease-out .3s;
  }

  .highlightredback{
    background:#AD5136 !important;
    transition: all ease-out .3s;
  }

  .highlightyellow{
    stroke:#BC7728 !important;
    transition: all ease-out .3s;
  }

  .highlightyellowback{
    background:#BC7728 !important;
    transition: all ease-out .3s;
  }

  /* HOMEPAGE CALL TO PAGES */

  #calltopage{
    background: #364F21;
  }

  #calltopage .grid-x{
    padding: 0;
  }

  #calltopage .grid-x .cell{
    display: flex;
    justify-content: center;
    position: relative;
  }

  #calltopage .calltopagelink, #calltoapropos .calltoaproposlink{
    height: 35px;
    border-radius: 100px;
    padding: 2px 15px;
    font-size: 20px;
    bottom: 100px;
    z-index: 3;
    position: absolute;
    transition: all ease-out .5s;
  }
  
  #calltopageimage{
    transition: all ease-out .5s;
  }

  #calltopage .cell:hover .calltopagelink{
    transform: translateY(-20px);
    transition: all ease-out .5s;
  }

  /* HOMEPAGE CALL TO APROPOS */

  #calltoapropos{
    background: #364F21;
    position: relative;
  }

  #calltoapropos .grid-x .cell:nth-child(2){
    display: flex;
    justify-content: center;
    position: relative;
  }

  #calltoapropos .symboles{
    padding:250px 0 350px 0;
    display: flex;
    justify-content:space-between;
    align-items: center;
  }

  #calltoapropos .symboles div{
    width: 20%;
    height: 33%;
    display: flex;
    justify-content: center;
  }

  #calltoapropos .symboles div svg{
    display: block;
  }

  /* THEME */

  .bienetre header h1 svg path, .bienetre header h1 svg rect, .bienetre header h1 svg polygon{
    fill: #EE7350 !important;
  }

  .paysage header h1 svg path, .paysage header h1 svg rect, .paysage header h1 svg polygon{
    fill: #AFD470 !important;
  }

  .qualite header h1 svg path, .qualite header h1 svg rect, .qualite header h1 svg polygon{
    fill: #FABD74 !important;
  }

  .bienetre #Introduction{
    background: #EE7350 !important;
  }
  .paysage #Introduction{
    background: #AFD470 !important;
  }
  .qualite #Introduction{
    background: #FABD74 !important;
  }

  .bienetre #Fullvideo{
    background: #EE7350;
  }
  .paysage #Fullvideo{
    background: #AFD470;
  }
  .qualite #Fullvideo{
    background: #FABD74;
  }

  #theme #Introduction p, #apropos #Introduction p{
    font-size: 30px;
    line-height: 40px;
  }

  #Fullvideo{
   position: relative;
   width: 100vw;
  }

  #Fullvideo iframe{
     width: 100%;
  }

  .paysage #Fullvideo, .paysage .themes .topic:first-child, .qualite #Fullvideo, .qualite .themes .topic:first-child{
    margin-top: -2vw;
  }

  #theme .themes .topic:nth-child(odd) .imagebefore {
    display: none;
  }
  #theme .themes .topic:nth-child(even) .imageafter {
    display: none;
  }

  #theme .themes{
    padding: 0;
    position: relative;
    z-index: 5;
    width: 100vw;
    overflow-x: hidden;
  }

  #theme .themes .grid-x{
    padding: 0;
  }

  #theme .themes .topictext{
    padding: 0 10vw;
    display: flex;
    align-items: center;
  }
  #theme .themes .topictext h3{
    margin-top: -10px;
  }

  #theme .themes .jaune{
    background: #FABD74;
    color: #364F21;
  }
  #theme .themes .vertclair{
    background: #AFD470;
    color: #364F21;
  }
  #theme .themes .vertfonce{
    background: #364F21;
    color: #fff;
  }
  #theme .themes .rouge{
    background: #EE7350;
    color: #fff;
  }

  /* A PROPOS */

  #apropos header h1 svg path, #apropos header h1 svg rect, #apropos header h1 svg polygon{
    fill: #364F21 !important;
  }

  #apropos #Introduction{
    background: #364F21 !important;
  }
  #apropos #Introduction p{
    hyphens: auto;
    hyphenate-limit-chars: 6 3 3;
  }

  #apropos #videocontain img{
    min-width: 100vw;
    min-height: 100vh;
    object-fit: cover;
    object-position: top;
  }

  #apropos #calltopage .federation{
    height: 600px;
    display: flex;
    align-items: center;
  }

  #apropos #calltopage .federation img{
    margin-top: -150px;
  }

  #apropos #calltopage .calltopagelink{
    background: #364F21;
  }
  #apropos #calltopage .calltopagelink a{
    color: #fff;
  }

  #apropos #calltopage .federation:first-child{
    background: #FCEBD7;
  }
  #apropos #calltopage .federation:nth-child(2){
    background: #EFDDC8;
  }
  #apropos #calltopage .federation:nth-child(3){
    background: #E3D4C2;
  }

  #apropos footer{
    background: #AFD470;
  }

  /* FOOTER */

  footer{
    padding: 200px 0;
    position: relative;
    background: #FCEBD7;
  }

  footer img{
    width: 85%;
  }

  footer p{
    font-size: 20px;
    line-height: 25px;
  }

  footer .design{
    position: absolute;
    bottom: 40px;
  }

  footer .impressumlink{
    position: absolute;
    bottom: 15px;
  }

  footer .design p, footer .impressumlink p{
    margin-top: 15px;
    font-size:15px;
  }

  footer a, footer a:focus, footer a:visited{
    color: #000;
    transition: all .3s ease-out;
  }
  footer a:hover{
    color: #AFD470;
    transition: all .3s ease-out;
  }

  footer .socials{
    display: flex;
   }

   footer .socials div{
    margin-right: 20px;
    margin-top: 50px;
   }

   footer svg path{
    transition: all .3s ease-out;
   }
   footer svg:hover path{
    fill: #657E25;
    transition: all .3s ease-out;
   }
  
  /* ==========================================================================
   Media queries
   ========================================================================== */
  
/* Desktop Portrait and Landscape */
@media screen and (min-device-width: 1024px) and (max-device-width: 1200px),
  (min-width: 1024px) and (max-width: 1200px) {   
    #theme .themes .topictext {
      padding: 0px 4vw;
    }
    h2 p {
      font-size: 70px;
      line-height: 78px;
    }

    #hautdepage #videocontain video {
      margin-left: -35%;
    }

    .agriculteur .textillusep, .agriculteur .btnillu {
      top: 70%;
      left: 76%;
    }

  }

/* IPAD Portrait and Landscape */
@media screen and (min-device-width: 640px) and (max-device-width: 1023px),
  (min-width: 640px) and (max-width: 1023px) {
    h2 p {
      font-size: 30px;
      line-height: 40px;
    }

    header{
      top: 30px;
    }

    header ul li{
      height: 35px;
      padding: 5px 15px;
      margin-bottom: 10px;
      font-size: 16px;
    }

    #hautdepage #videocontain video {
      object-position: right;
    }

    #Introduction p {
      font-size: 35px;
      line-height: 45px;
    }

    #illustration .textillusep{
      width: 70vw;
      padding: 15px;
      display: none;
      position: absolute;
      left: 15vw;
    }

    #theme .themes .topictext {
      padding: 150px 10vw;
    }
    footer p {
      font-size: 16px;
      line-height: 24px;
    }
  }


/* Iphone Portrait and Landscape */
@media screen and (max-device-width: 768px), (max-width: 768px) {
  .grid-x{
    padding: 0 5vw;
  }

  p{
    font-size: 16px;
    line-height: 24px;
    hyphens: auto;
    hyphenate-limit-chars: 6 3 3;
  }

  header{
    top: 30px;
  }

  header svg{
    width: 100%;
  }

  header ul{
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }

  header ul li{
    display: inline;
    height: 35px;
    padding: 5px 15px;
    margin-bottom: 10px;
    font-size: 15px;
    line-height: 17px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  header ul li a{
    display: flex;
    justify-content: center;
    align-items: center;
  }

  header ul li:hover, #calltopage .calltopagelink:hover, .calltoaproposlink:hover, header ul li:has(> a.active){
    transform: translateY(0);
  }

  #hautdepage .calltoaproposlink {
    border-radius: 100px;
    padding: 5px 15px;
    font-size: 15px;
    position: absolute;
    right: 5vw;
    bottom: 50px;
  }

  .languages {
    left: 5vw;
  }

  .languages li{
    margin-right: 10px;
  }

  h2 p{
    font-size: 25px;
    line-height: 30px;
  }

  h3 p {
    font-size: 25px;
    line-height: 30px;
  }

  video{
    height: 100%;
    position: absolute;
    left: -85%;
  }

  #illustration .vachetete .btnillu, #illustration .vachetete .textillusep, #illustration .produit .btnillu, #illustration .produit .textillusep{
    display: none !important;
  }

  #illustration .Infoillu .btnillu {
    width: 35px;
    height: 35px;
    border: 3px solid #FCEBD7;
    margin-top: -35px;
  }

  .herbage .btnillu, .herbage .textillusep {
    top: 25%;
    left: 63%;
  }
  .ferme .btnillu, .ferme .textillusep {
    top: 36%;
    left: 88%;
  }
  .transformation .btnillu, .transformation .textillusep {
    top: 72%;
    left: 26%;
  }
  .biodiversite .textillusep, .biodiversite .btnillu {
    top: 97%;
    left: 63%;
  }

  #illustration .textillusep{
    width: 92vw;
    padding: 15px;
    display: none;
    position: absolute;
    left: 4vw;
  }

  #calltoapropos .symboles {
    padding: 100px 0 200px 0;
  }

  #theme #Introduction p, #apropos #Introduction p {
    font-size: 20px;
    line-height: 30px;
  }

  #theme .themes .topictext {
    padding: 100px 10vw;
  }

  #apropos #calltopage .federation img {
    width: 80%;
    margin-left: 10%;
  }

  footer {
    padding: 100px 0 125px 0;
  }
  .footerinfos{
    margin-top: 30px;
  }
  #Introduction p{
    font-size: 25px;
    line-height: 35px;
  }
  #Introduction {
    padding: 100px 0;
  }
}

 /* Iphone Landscape */
 @media screen and (min-device-width: 568px) and (max-device-width: 768px),
 (min-width: 568px) and (max-width: 768px) {
   video{
     left: 0;
   }
}

@media screen and (max-device-width: 328px), (max-width: 328px) {
  header ul li{
    height: auto;
    width: 100px;
  }
  header ul li a{
    display: flex;
    justify-content: center;
    align-items: center;
  }
}





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

.visually-hidden {
  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 .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.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
 *
 * 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;
  }

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

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

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

