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

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

@font-face {
  font-family: "Rajdhani";
  src: url("../fonts/Rajdhani-Bold.ttf") format("truetype");
}

body, html {
  height: 100%;
  width: 100%;
  font-family: "Rajdhani", 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: url("../img/background.png");
  background-repeat: no-repeat !important;
  background-size: cover !important;
  background-position: center !important;
  overflow: hidden !important;
}

footer {
  position: absolute;
  bottom: 12px;
  width: 100%;
  text-align: center;
  color: white;
  opacity: .5;
}

#ship {
  height: 100%;
  width: 100%;
  background: radial-gradient(circle at center, transparent 0, transparent 50%, black 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: auto;
  z-index: 1;
}

#ship > div {
  width: 100%;
}

.modules {
  text-align: center;
  max-width: 660px;
  margin: auto;
  padding-left: 0;
}

.modules > li, .partnership > li{
  list-style: none;
  display: inline-block;
  /* filter: drop-shadow(0px 0px 26px rgba(0, 0, 300, .6)); */
  transition: transform .2s;
}

.modules > li > a{
  position: relative;
  /* background: #1094faaa ; */
  /* clip-path: polygon(30% 10%, 70% 10%, 99% 54%, 50% 90%, 1% 54%); */
  height: 150px;
  width: 150px;
  display: inline-block;
  transition:  .5s;
}

.partnership > li > a {
  position: relative;
  background: #1094faaa ;
  height: 80px;
  width: 80px;
  border-radius: 100%;
  display: inline-block;
  transition:  .5s;
}

.modules > li > a > svg:nth-child(1) {
  filter: drop-shadow(0px 0px 26px rgba(0, 0, 300, .9));
}

.modules > li > a, .partnership > li > a{
  transform: scale(.9)
}

.modules > li:hover > a, .partnership > li:hover > a{
  transform: scale(1)
}

.modules > li > a > svg:nth-child(1){
  height: 150px;
  width: 150px;
  z-index: 4;
}

.partnership > li > a > svg:nth-child(1){
  width: 80px;
  height: 80px;
  position: absolute;
  left: 0;
}

.modules > li > a > svg:nth-child(2){
  width: 150px;
  margin-top: 29px;
  height: 80px;
  left: 0;
  z-index: 5;
  position: absolute;
}

.partnership > li > a > svg:nth-child(2){
  width: 80px;
  height: 80px;
  position: absolute;
  left: 0;
}

.modules > li > a > svg:nth-child(1) path, .partnership > li > a > svg:nth-child(1) path{
  fill: #1094faaa;
  transition:  .5s;
}


.modules > li > a > svg:nth-child(2) path, .partnership > li > a > svg:nth-child(2) path{
  fill: #ffffff77;
  transition:  .5s;
}

#tiktok:hover > a > svg:nth-child(1) path {
  fill: #ffffffcc !important;
}

#tiktok:hover > a > svg:nth-child(2) path {
  fill: black !important;
}

#youtube:hover > a > svg:nth-child(1) path {
  fill: #ffffffcc !important;
}

#youtube:hover > a > svg:nth-child(2) path {
  fill: red !important;
}

#twitter:hover > a > svg:nth-child(1) path {
  fill: #ffffffcc !important;
}

#twitter:hover > a > svg:nth-child(2) path {
  fill: rgb(29, 161, 242) !important;
}

#twitch:hover > a > svg:nth-child(1) path {
  fill: #ffffffcc !important;
}

#twitch:hover > a > svg:nth-child(2) path {
  fill: #772ce8 !important;
}

#discord:hover > a > svg:nth-child(1) path {
  fill: #ffffffcc !important;
}

#discord:hover > a > svg:nth-child(2) path {
  fill: #7289da !important;
}

#instagram:hover > a > svg:nth-child(1) path {
  fill: #ffffffcc !important;
}

#instagram:hover > a > svg:nth-child(2) path {
  fill: #fd5949 !important;
}

#main:hover  > svg:nth-child(1) path  {
  fill: #ffffffcc !important;
}

#main:hover  > svg:nth-child(2) path {
  fill: rgb(150, 44, 128) !important;
}

#shop:hover > a > svg:nth-child(1) path {
  fill: #ffffffcc !important;
}

#shop:hover > a  > svg:nth-child(2) path {
  fill: rgb(150, 44, 128) !important;
}

.partnership > li > a > img {
  height: 80px;
  opacity: .5;
}

#main-modal {
  height: calc(100% - 36px);
  width: calc(100% - 36px);
  position: absolute;
  background:rgba(0, 0, 0, .6);
  z-index: 10;
  transition: 1s;
  transition-timing-function: ease-in-out;
  margin-top: -200vh;
  opacity: 0;
}

body.imgloaded  #main-modal {
  display: block !important;

}

.modal-is-opened {
  margin-top: 0 !important;
  opacity: 1 !important;
}

.modal-close {
  font-size: 40px;
  width: 100%;
  text-align: right;
  padding-right: 24px;
  cursor: pointer;
}

.modal-content {
  padding: 36px;
}

.modal-content h2 {
  width: 100%;
  text-align: center;
}

.modal {
  overflow: auto;
}


::-webkit-scrollbar {
  width: 5px;
  height: 5px;
  background-color: hsla(0,0%,100%,0);
}

::-webkit-scrollbar-thumb {
  background: rgb(150, 44, 128);
}

::-webkit-scrollbar-track {
  background-color: transparent;
  display: none;
}

.tooltip {
  display:inline-block;
  position:relative;
  /* border-bottom:1px dotted #666; */
  text-align:left;
}


.tooltip .top {
  left:50%;
  transform:translate(-50%, -100%);
  padding:6px 12px;
  color: white;
  opacity: .5;
  font-weight:normal;
  font-size:13px;
  border-radius:8px;
  position:absolute;
  background:rgba(0, 0, 0, .6);
  z-index:99999999;
  box-sizing:border-box;
  visibility:hidden; opacity:0; transition:opacity 0.8s;
}

.tooltip:hover .top {
  visibility:visible; opacity:1;
}

@media (min-width: 600px)  {

  .partnership{
    text-align: right;
    padding-right: 54px;
    position: absolute;
    bottom: 36px;
    right: 36px;
    padding-left: 0;
  }
}

@media (max-width: 600px)  {
  #ship > div {
    width: 100%;
    height: 100%;
    overflow-y: scroll;
  }

  .partnership {
    padding-top: 24px;
    padding-bottom: 48px;
    text-align: center;
    padding-left: 0;
  }
}

iframe {
  z-index: 0;
  opacity: 0;
  height: 100%;
  width: 100%;
  transition: .5s;
  position: absolute;
  pointer-events: none;
}

#iframe-tw {
  z-index: 0;
  opacity: 0;
  height: 100%;
  width: 100%;
  transition: .5s;
  position: absolute;
  pointer-events: none;
}

#iframe-tw-offline {
  opacity: 0;
  background: url("../img/lecteur_video_Offline.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  height: 100%;
  width: 100%;
  transition: .5s;
  position: absolute;
}

#iframe-tw-online {
  opacity: 0;
  background: url("../img/lecteur_video_ONline.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  height: 100%;
  width: 100%;
  transition: .5s;
  position: absolute;
}

.visible {
  opacity: 1 !important;
}

iframe-yt .ytp-show-cards-title, iframe-yt .ytp-watermark, iframe-yt .ytp-button{
  display: none;
}

.invisible {
  opacity:0 !important;
}
