/*! HTML5 Boilerplate v7.3.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 2.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
 *
 * 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;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

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

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


body {
  padding-top: 3rem;
  padding-bottom: 3rem;
  color: #5a5a5a;

  --color1: #242582;
  --color2: #553D67;
  --color3: #F64C72;
  --color4: #99738E;
  --color5: #2F2FA2;

  --color1op: #242582AA;
  --color2op: #553D67AA;
  --color3op: #F64C72AA;
  --color4op: #99738EAA;
  --color5op: #2F2FA2AA;
  font-family: 'Bree Serif', serif;
}

p, a, div {
  font-family: 'Open Sans', sans-serif;
}

/*navbar*/

.navbar {
  background-color: var(--color2);
}

.nav-link {
  position: relative;
  color: white !important;
}

.nav-link:hover {
  color: white;
  right: 0;
  text-decoration: none;
}

.text-blue {
  color: var(--color1);
}

.nav-link:hover:after {
  animation: anchor-underline 0.5s ease-out;
  border-color: white;
  animation-iteration-count: 1;
  color: white;
  animation-fill-mode: forwards;
}

.nav-link:after {
  border-radius: 1em;
  border-top: 2px solid rgba(115, 24, 115, 0.7);
  content: "";
  position: absolute;
  right: 100%;
  bottom: .14em;
  left: 0;
  color: white;
}

#kukku {
  font-family: 'Rock Salt', cursive;
  color: white;
}

@media screen and (max-width: 1000px) {
  #kukku {
    margin-left: 2vw;
  }
}

@keyframes anchor-underline {
  0%, 10% {
    left: 0;
    right: 100%;
  }
  100% {
    left: 0;
    right: 0;
  }
}

/*main*/
.height-150 {
  height: 350px;
}

.height-80 {
  height: 80px;
}

.blue-step {
  color: var(--color1);
}

.purple-button:hover {
  box-shadow: 0 5px 15px rgba(145, 92, 182, .6);
}

@media screen and (max-width: 1000px) {
  h1 {
    font-size: 8vm;
  }
}

.featurette-divider {
  margin: 2rem;
}

#internet:hover, #enterprise:hover, #performance:hover {
  margin-top: 0px;
  margin-bottom: 0px;
  width: 260px;
  height: 260px;
}

.slideup {
  animation: slide-up 4s ease-in-out;
}

@keyframes slide-up {
  0% {
    margin-top: 500px;
  }
  100% {
    margin-top: 0;
  }
}

/* Since positioning the image, we need to help out the caption */
.carousel-caption {
  bottom: 3rem;
  z-index: 10;
}

/* Declare heights because of positioning of img element */
.carousel-item {
  height: 75vh;
}

.carousel-item > img {
  position: absolute;
  top: 0;
  left: 0;
  min-width: 100%;
  height: 75vh;
}


/* MARKETING CONTENT
-------------------------------------------------- */

/* Center align the text within the three columns below the carousel */
.marketing .col-lg-4 {
  margin-bottom: 1.5rem;
  text-align: center;
}

.marketing h2 {
  font-weight: 400;
}

.marketing .col-lg-4 p {
  margin-right: .75rem;
  margin-left: .75rem;
}


/* Featurettes
------------------------- */

.featurette-divider {
  margin: 1rem 0; /* Space out the Bootstrap <hr> more */
}

/* Thin out the marketing headings */
.featurette-heading {
  font-weight: 300;
  line-height: 1;
  letter-spacing: -.05rem;
}


/* RESPONSIVE CSS
-------------------------------------------------- */

@media (min-width: 40em) {
  /* Bump up size of carousel content */
  .carousel-caption p {
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
    line-height: 1.4;
  }

  .featurette-heading {
    font-size: 50px;
  }
}

@media (min-width: 62em) {
  .featurette-heading {
    margin-top: 7rem;
  }
}

#team {
  background: linear-gradient(var(--color1op), var(--color1op)), url('../img/team.jpg') center center;
  background-size: cover;
  width: 100%;
  height: 100%;
}

#advisor {
  background: linear-gradient(var(--color2op), var(--color2op)), url('../img/advisor.jpg') center center;
  background-size: cover;
  width: 100%;
  height: 100%;
}

#hard-work {
  background: linear-gradient(var(--color4op), var(--color4op)), url('../img/hard-work.jpg') center center;
  background-size: cover;
  width: 100%;
  height: 100%;
}

#internet {
  background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)), url('../img/internet-white.png') center center;
  background-size: cover;
  width: 250px;
  height: 250px;
  margin-top: 10px;
  margin-bottom: 10px;
  margin-left: auto;
  margin-right: auto;
}

#enterprise {
  background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)), url('../img/application-white.png') center center;
  background-size: cover;
  margin-top: 10px;
  margin-bottom: 10px;
  width: 250px;
  height: 250px;
  margin-left: auto;
  margin-right: auto;
}

#performance {
  background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)), url('../img/performance-white.png') center center;
  background-size: cover;
  margin-top: 10px;
  margin-bottom: 10px;
  width: 250px;
  height: 250px;
  margin-left: auto;
  margin-right: auto;
}

#mobile {
  background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)), url('../img/mobile.png') center center;
  background-size: cover;
  width: 180px;
  height: 180px;
}

#idea {
  background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)), url('../img/idea.png') center center;
  background-size: cover;
  width: 18rem;
  height: 18rem;
}

#mail {
  background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)), url('../img/mail.png') center center;
  background-size: cover;
  width: 18rem;
  height: 18rem;
}

#agreement {
  background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)), url('../img/agreement.png') center center;
  background-size: cover;
  width: 18rem;
  height: 18rem;
}

#finish {
  background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)), url('../img/finish.png') center center;
  background-size: cover;
  width: 18rem;
  height: 18rem;
}

.page-section {
  padding: 8rem 0;
}

.page-section:last-of-type {
  padding: 0;
}

#lets-start {
  background-color: ghostwhite;
}

/*contact*/
textarea {
  resize: none;
}

.purple-button {
  background-color: var(--color2);
  border: 1px solid var(--color2);
  color: white;
  padding: 2vh;
  border-radius: 40%;
}

.address-section {
  border-left: #5a5a5a 2px solid;
}

@media screen and (max-width: 1000px) {
  .address-section {
    border: none;
    background-color: ghostwhite;
  }
}

#address {
  background-color: var(--color5op);
  color: white;
}

#contact-form {
  padding: 2em;
}

#services {
  background-color: var(--color4);
  color: white;
}

/*footer*/
.featurette-divider {
  margin-bottom: 1rem;
  margin-top: 1rem;
}

.featurette-divider:last-of-type {
  margin-bottom: 2rem;
  margin-top: 0;
}

.tooltip-wrap {
  position: relative;
}

.tooltip-wrap .tooltip-content {
  display: none;
  position: absolute;
  bottom: 0%;
  left: 0%;
  right: 0%;
  background-color: var(--color1);
  padding: .5em;
}

.tooltip-wrap:hover .tooltip-content {
  display: block;
}

.svg {
  -webkit-filter: invert(1); /* safari 6.0 - 9.0 */
  filter: invert(1);
  max-height: 25px;
  max-width: 25px;
  margin-right: 10px;
}

/*popup*/
.box {
  width: 40%;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.2);
  padding: 35px;
  border: 2px solid #fff;
  border-radius: 20px/50px;
  background-clip: padding-box;
  text-align: center;
}

.overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  transition: opacity 500ms;
  visibility: hidden;
  opacity: 0;
}

.overlay:target {
  visibility: visible;
  opacity: 1;
}

.popup {
  margin: 70px auto;
  padding: 20px;
  background: #fff;
  border-radius: 5px;
  width: 50%;
  position: relative;
  transition: all 5s ease-in-out;
}

.popup h2 {
  margin-top: 0;
  color: #333;
  font-family: Tahoma, Arial, sans-serif;
}

.popup .close {
  position: absolute;
  top: 20px;
  right: 30px;
  transition: all 200ms;
  font-size: 30px;
  font-weight: bold;
  text-decoration: none;
  color: #333;
}

.popup .close:hover {
  color: #06D85F;
}

.popup .content {
  max-height: 30%;
  overflow: auto;
}

@media screen and (max-width: 700px) {
  .box {
    width: 70%;
  }

  .popup {
    width: 70%;
  }
}

.tech-slide {
  -webkit-filter: grayscale(1);
  filter: grayscale(1);
}

.tech-slide > img {
  height: 10vh;
  width: 10vw;
}

.tech-slide:hover {
  -webkit-filter: grayscale(0);
  filter: grayscale(0);
}


.slider {
  height: 100px;
  margin: 50px;
  overflow: hidden;
  position: relative;
  width: 75%;
}

.slider::before, .slider::after {
  background: -webkit-gradient(linear, left top, right top, from(white), to(rgba(255, 255, 255, 0)));
  background: linear-gradient(to right, white 0%, rgba(255, 255, 255, 0) 100%);
  content: "";
  height: 100px;
  position: absolute;
  width: 200px;
  z-index: 2;
}

.slider::after {
  right: 0;
  top: 0;
  -webkit-transform: rotateZ(180deg);
  transform: rotateZ(180deg);
}
.slider::before {
  left: 0;
  top: 0;
}

.slider .slide-track {
  -webkit-animation: scroll 40s linear infinite;
  animation: scroll 40s linear infinite;
  display: -webkit-box;
  display: flex;
  width: calc(250px * 14);
}
.slider .slide {
  height: 100px;
  width: 250px;
}

@-webkit-keyframes scroll {
  0% {
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }
  100% {
    -webkit-transform: translateX(calc(-250px * 7));
    transform: translateX(calc(-250px * 7));
  }
}

@keyframes scroll {
  0% {
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }
  100% {
    -webkit-transform: translateX(calc(-250px * 7));
    transform: translateX(calc(-250px * 7));
  }
}

