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

.principal-div {
  /*height: 100vh;*/
  /*background-color: lightgray;*/
}

/*FONTS*/
@font-face {
  font-family: "Akrobat_Black";
  src: url('../fonts/Akrobat-Black.eot'); /* IE9 Compat Modes */
  src: url('../fonts/Akrobat-Black.eot') format('embedded-opentype'), /* IE6-IE8 */
  url('../fonts/Akrobat-Black.woff2') format('woff2'), /* Super Modern Browsers */
  url('../fonts/Akrobat-Black.woff') format('woff'), /* Pretty Modern Browsers */
  url('../fonts/Akrobat-Black.ttf')  format('truetype') /* Safari, Android, iOS */
}

@font-face {
  font-family: "Akrobat_Bold";
  src: url('../fonts/Akrobat-Bold.eot'); /* IE9 Compat Modes */
  src: url('../fonts/Akrobat-Bold.eot') format('embedded-opentype'), /* IE6-IE8 */
  url('../fonts/Akrobat-Bold.woff2') format('woff2'), /* Super Modern Browsers */
  url('../fonts/Akrobat-Bold.woff') format('woff'), /* Pretty Modern Browsers */
  url('../fonts/Akrobat-Bold.ttf')  format('truetype') /* Safari, Android, iOS */
}

@font-face {
  font-family: "Akrobat_Light";
  src: url('../fonts/Akrobat-Light.eot'); /* IE9 Compat Modes */
  src: url('../fonts/Akrobat-Light.eot') format('embedded-opentype'), /* IE6-IE8 */
  url('../fonts/Akrobat-Light.woff2') format('woff2'), /* Super Modern Browsers */
  url('../fonts/Akrobat-Light.woff') format('woff'), /* Pretty Modern Browsers */
  url('../fonts/Akrobat-Light.ttf')  format('truetype') /* Safari, Android, iOS */
}



@media only screen and (max-width: 1200px) {
  .logo img{
    width: 4rem;
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    transition: all 1s ease-in-out;
  }

  .logo-translated img{
    top: 5%;
    -ms-transform: translate(-50%, 0%);
    transform: translate(-50%, 00%);
    width: 3rem;
  }

  .bottom-first-nav{
    margin: 0;
    position: absolute;
    bottom: 5%;
    left: 50%;
    -ms-transform: translate(-50%);
    transform: translate(-50%);
  }

  .bottom-first-nav a {
    color: black;
    text-decoration: none;
  }

  .sub-title-logo {
    margin: 0;
    position: absolute;
    top: 60%;
    /*left: 30%;*/
    width: 100%!important;
    text-align: center;
    /*-ms-transform: translate(-20%, -50%);*/
    /*transform: translate(-20%, -50%);*/
    transition: all 1s ease-in-out;
  }

  .sub-title-logo-translated {
    top: 50%;
    /*-ms-transform: translate(-20%, -50%);*/
    /*transform: translate(-20%, -50%);*/

  }

  .sub-title-logo-translated-left {
    top: 50%;
    /*Aici era -120%*/
    -ms-transform: translate(-35%, 0);
    transform: translate(-35%, 0);
    /*Un mic bug vizual*/
  }
  .op-0 {
    opacity:0;
  }



  .list {
    overflow: hidden;
    width: 150px;
    height: 0; opacity: 0;
    position: absolute;
    top: 63%;
    left: 50%;
    -ms-transform: translate(10%, -10%);
    transform: translate(10%, -10%);
    transition: all 1s ease-in-out, height 0ms 300ms, opacity 600ms 0ms;
    padding-bottom: 20%;
  }

  .invisible {
    display: none;
    opacity:0;
  }

  .visible {
    opacity: 1!important;
    height: auto!important;
    transition: height 0ms 0ms, opacity 600ms 0ms;
  }

  #contact {
    overflow: hidden;
    height: 0; opacity: 0;
  }

  #welcome, #contact {
    transition: all 1s ease-in-out;
    position: fixed;
    bottom: 5%;
  }

  #contact {
    left: 0%;
    transform: translate(-35%, 0)!important;
    width: 100%!important;
    text-align: center;
  }

  .international {
    transition: all 1s ease-in-out;
  }


  .list p:hover {
    font-weight: bold;
    margin-left: 2px;
    cursor: pointer;
  }

  /*BG LEFT*/
  .left-image{
    overflow: hidden;
    height: 0; opacity: 0;

    z-index:-1;
    position: absolute;
    top:0;
    /*-ms-transform: translate(50%, -50%);*/
    /*transform: translate(50%, -50%);*/
    transition: all 2s ease-in-out, height 0ms 400ms, opacity 400ms 0ms;
  }

  /*.left-image-visible{*/
  /*  opacity: 1!important;*/
  /*  height: 50%!important;*/
  /*  transition: height 0ms 0ms, opacity 600ms 0ms;*/
  /*}*/

  .left-image-visible {
    opacity: 1!important;
    height: calc(65% - 14vmin)!important;
    max-width: 50%;
    transition: height 0ms 0ms, opacity 600ms 0ms;
  }

  /*Over left*/
  .left-image-over{
    overflow: hidden;
    height: 0; opacity: 0;

    z-index:-1;
    position: absolute;
    top:0;
    -ms-transform: translate(15%, 30%);
    transform: translate(15%, 30%);
    transition: all 2s ease-in-out, height 0ms 400ms, opacity 400ms 0ms;
  }

  /*.left-image-over-visible{*/
  /*  opacity: 1!important;*/
  /*  height: 30%!important;*/
  /*  transition: height 0ms 0ms, opacity 600ms 0ms;*/
  /*}*/

  .left-image-over-visible {
    opacity: 1!important;
    height: calc(35% - 13vmin)!important;
    max-width: 40%!important;
    transition: height 0ms 0ms, opacity 600ms 0ms;
  }

  .for-image img{
    /*overflow: hidden;*/
    /*height: 0; opacity: 0;*/

    z-index:-1;
    position: absolute;
    top:49%;
    left:53%;
    /*-ms-transform: translate(50%, 30%);*/
    /*transform: translate(50%, 30%);*/
    transition: all 2s ease-in-out, height 0ms 400ms, opacity 400ms 0ms;

    max-height: 35px;
  }

  .hide_on_mobile {
    display: none!important;
  }

  #welcome:hover, #contact:hover, #welcome:active, #contact:active {
    font-family: "Akrobat_Bold";
    font-weight: bold;
  }
  #welcome, #contact {
    font-family: "Akrobat_Light";
  }

}


@media only screen and (min-width: 1200px) {
  .logo img{
    width: 3vw;
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    transition: all 1s ease-in-out;
  }

  .logo-translated img{
    top: 5%;
    -ms-transform: translate(-50%, 0%);
    transform: translate(-50%, 00%);
    width: 3vw;
  }

  .bottom-first-nav{
    margin: 0;
    position: absolute;
    bottom: 5%;
    left: 50%;
    -ms-transform: translate(-50%);
    transform: translate(-50%);
  }

  .bottom-first-nav a {
    color: black;
    text-decoration: none;
    font-size: 2vh;
  }

  .sub-title-logo {
    margin: 0;
    position: absolute;
    top: 65%;
    left: 50%;

    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    transition: all 1s ease-in-out;
  }


  .sub-title-logo-translated {
    top: 50%;
    /*-ms-transform: translate(-50%, -50%);*/
    /*transform: translate(-50%, -50%);*/

  }

  .sub-title-logo-translated-left {
    top: 50%;
    /*Aici era -120%*/
    /*-ms-transform: translate(-120%, -50%);*/
    /*transform: translate(-120%, -50%);*/
    left: 40%;
  }

  .op-0 {
    opacity:0;
  }

  .list {
    overflow: hidden;
    width: 10vw;
    height: 0; opacity: 0;
    position: absolute;
    top: 47%;
    left: 55%;
    /*-ms-transform: translate(50%, -50%);*/
    /*transform: translate(50%, -50%);*/
    transition: all 1s ease-in-out, height 0ms 300ms, opacity 600ms 0ms;
    font-size: 2vh;
  }

  .invisible {
    display: none;
    opacity:0;
  }

  .visible {
    opacity: 1!important;
    height: auto!important;
    transition: height 0ms 0ms, opacity 600ms 0ms;
  }

  #contact {
    overflow: hidden;
    height: 0; opacity: 0;
  }

  #welcome, #contact {
    transition: all 1s ease-in-out;
    font-family: "Akrobat_Light";
  }

  #welcome:hover, #contact:hover, #welcome:active, #contact:active {
    font-family: "Akrobat_Bold";
  }

  .international {
    transition: all 1s ease-in-out;
  }


  .list p:hover {
    font-weight: bold;
    margin-left: 2px;
    cursor: pointer;
  }

  /*BG LEFT*/
  .left-image{
    overflow: hidden;
    height: 0; opacity: 0;

    z-index:-1;
    position: absolute;
    top:0;
    /*-ms-transform: translate(50%, -50%);*/
    /*transform: translate(50%, -50%);*/
    transition: all 2s ease-in-out, height 0ms 400ms, opacity 400ms 0ms;
  }

  .left-image-visible{
    opacity: 1!important;
    height: 100vh!important;
    transition: height 0ms 0ms, opacity 600ms 0ms;
    max-width: 50%!important;
  }

  /*Over left*/
  .left-image-over{
    overflow: hidden;
    height: 0; opacity: 0;

    z-index:-1;
    position: absolute;
    top:0;
    -ms-transform: translate(30%, 30%);
    transform: translate(30%, 30%);
    transition: all 2s ease-in-out, height 0ms 400ms, opacity 400ms 0ms;

    max-width: 35%!important;
  }

  .left-image-over-visible{
    opacity: 1!important;
    height: 70%!important;
    transition: height 0ms 0ms, opacity 600ms 0ms;
  }

  .for-image img{
    /*overflow: hidden;*/
    /*height: 0; opacity: 0;*/

    z-index:1;
    position: absolute;
    top:48%;
    left:50%;
    /*-ms-transform: translate(50%, 30%);*/
    /*transform: translate(50%, 30%);*/
    transition: all 2s ease-in-out, height 0ms 400ms, opacity 400ms 0ms;

    max-height: 4vh;
  }

  .right_text {
    font-family: "Akrobat_Light"!important;
    max-width: 20%;
    font-size: 2vh;
  }

  .bold {
    font-family: "Akrobat_Bold"!important;
    padding-left: 10px!important;
    transition: all 0.5s ease;
  }

  #right_text_startup {
    position: absolute;
    top: 49%;
    left: 67%;

    overflow: hidden;
    height: 0; opacity: 0;
  }

  #right_text_small {
    position: absolute;
    top: 53vh;
    left: 67%;

    overflow: hidden;
    height: 0; opacity: 0;
  }

  #right_text_medium {
    position: absolute;
    top: 59vh;
    left: 67%;

    overflow: hidden;
    height: 0; opacity: 0;
  }

  #right_text_big {
    position: absolute;
    top: 65vh;
    left: 67%;

    overflow: hidden;
    height: 0; opacity: 0;
  }

  .collapse {
    display: none!important;
  }

}

.bold {
  font-family: "Akrobat_Bold"!important;
  padding-left: 2px;
}


.collapse {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
  font-family: "Akrobat_Bold"!important;
  padding-left: 10px;
}

.text_visible {
  max-height: 500px;
  transition: max-height 0.4s ease-out;
}

/*Fonts*/
.sub-title-logo {
  font-family: "Akrobat_Bold"!important;
  font-size: 2vh;
}

.list {
  font-family: "Akrobat_Light";
}

.inbetween_bg{
  overflow: hidden;
  height: 0; opacity: 0;

  z-index:-1;
  position: absolute;
  top:0;
  /*-ms-transform: translate(30%, 30%);*/
  /*transform: translate(30%, 30%);*/
  transition: all 2s ease-in-out, height 0ms 500ms, opacity 500ms 0ms;
}

.inbetween_bg_visible {
  height: 100%!important;
  width: 100%!important;
  z-index: -1;
  opacity: 1!important;
}

.right_text_visible {
  transition: all 2s ease-in-out, height 0ms 500ms, opacity 500ms 0ms;
  height: auto!important;
  opacity: 1!important;
}

.less_opacity {
  opacity: 0.5!important;
}

[data-src]::before {
  content: '';
  display: block;
  padding-top: 56.25%;
}

img::before {
  display: block;
  content: '';
  padding-top: calc(100% * 2 / 3);
  /* You could reduce this expression with a preprocessor or by doing the math. I've kept the longer form in `calc()` to make the math more readable for this demo. */
}

#about {
  cursor: pointer;
}
