html {
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Roboto", sans-serif;
  background-color: #766ee4;
}

h1 {
  margin: 0;
}

.obrazek {
  opacity: 1;
  background-image: url(images/main-image.jpg);
  padding-top: 100px;
  padding-bottom: 100px;
  background-size: cover;
}

.nadpis {
  margin-left: 50%;
  margin-right: 10%;
  background-color: rgba(34, 33, 33, 0.95);
  border: 0px none rgb(73, 72, 72);
  background-image: none;
  opacity: 1;
  margin-bottom: 0px;
  border-radius: 0px;
  text-align: center;
  padding: 40px 35px;
  color: white;
}

.nadpis h1 {
  font-size: 3.8rem;
  color: rgb(255, 140, 0);
  font-family: Verdana, Geneva, sans-serif;
}

.nadpis img {
  width: 100px;
  height: 100px;
}

.podnadpis {
  font-size: 1.6rem;
  line-height: 1.4em;
}

.podnadpis2 {
  font-size: 2.7rem;
}

.container {
  height: 120vh;
  margin-right: auto;
  margin-left: auto;
  padding-left: 15px;
  padding-right: 15px;
  background-color: white;
}

.first {
  float: left;
  margin-left: 30px;
  padding-right: 30px;
  margin-right: -30px;
  width: 60%;
}

.first-hlavni-nadpis {
  margin-top: 50px;
  font-size: 3.7em;
  width: 75%;
  font-family: Verdana, Geneva, sans-serif;
}

.first-podnadpis {
  font-size: 26.780000686645508px;
  line-height: 1.4em;
  width: 80%;
}

.oranzove {
  font-size: 1.1em;
  font-family: Verdana, Geneva, sans-serif;
  color: rgb(255, 140, 0);
}

.second {
  float: right;
  margin-left: -30px;
  width: 40%;
}

.second img {
  width: 100%;
  margin-top: 65px;
}

button {
  margin: 25px 15% 20px;
  font-weight: 700;
  background-color: rgb(239, 157, 32);
  border-radius: 37px;
  width: 285px;
  height: 65px;
  font-size: 20px;
  color: rgb(255, 255, 255);
  font-family: Verdana;
  border: none;
  outline: none;
  cursor: pointer;
  -webkit-box-shadow: 0px 3px 5px 0px rgba(50, 50, 50, 0.65);
  -moz-box-shadow: 0px 3px 5px 0px rgba(50, 50, 50, 0.65);
  box-shadow: 0px 3px 5px 0px rgba(50, 50, 50, 0.65);
}

.social-media {
  margin-left: 21%;
}

.social-media img {
  width: 30px;
  margin: 0 15px;
}

.story-container {
  background-color: #766ee4;
  color: white;
}

.timeline ul {
  background: #766ee4;
  padding: 50px 0;
}

.timeline ul li {
  list-style-type: none;
  position: relative;
  width: 2.5px;
  margin: 0 auto;
  padding-top: 50px;
  background: #5e56c6;
}

.timeline ul li::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: inherit;
}

.timeline ul li div {
  position: relative;
  bottom: 0;
  width: 400px;
  padding: 20px;
  border-radius: 12px;
  background: #5e56c6;
}

.timeline ul li div::before {
  content: "";
  position: absolute;
  bottom: 7px;
  width: 0;
  height: 0;
  border-style: solid;
}

.timeline ul li:nth-child(odd) div {
  left: 45px;
}

.timeline ul li:nth-child(odd) div::before {
  left: -15px;
  border-width: 8px 16px 8px 0;
  border-color: transparent #5e56c6 transparent transparent;
}

.timeline ul li:nth-child(even) div {
  left: -475px;
}

.timeline ul li:nth-child(even) div::before {
  right: -15px;
  border-width: 8px 0 8px 16px;
  border-color: transparent transparent transparent #5e56c6;
}

time {
  display: block;
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 8px;
  font-family: "Lato", "Roboto", "sans serif", serif;
}

footer {
  text-align: center;
  font-size: 1.1rem;
  color: white;
  padding: 20px;
}

.btn-grid {
  text-align: center;

  width: 100%;
}

/* EFFECTS
–––––––––––––––––––––––––––––––––––––––––––––––––– */

.timeline ul li.in-view::after {
  background: #5e56c6;
}

.timeline ul li div {
  visibility: hidden;
  opacity: 0;
}

.timeline ul li:nth-child(odd) div {
  transform: translate3d(200px, 0, 0);
}

.timeline ul li:nth-child(even) div {
  transform: translate3d(-200px, 0, 0);
}

.timeline ul li.in-view div {
  line-height: 1.4em;
  transform: none;
  visibility: visible;
  opacity: 1;
}

.timeline-text {
  color: rgb(230, 230, 250);
  font-weight: lighter;
  font-family: "open sans", "Roboto", serif;
}

.group {
  margin: 20px 0;
  font-weight: 700;
  background-color: rgb(239, 157, 32);
  border-radius: 37px;
  width: 875px;
  height: 65px;
  font-size: 20px;
  color: rgb(255, 255, 255);
  font-family: Verdana;
  border: none;
  -webkit-box-shadow: 0px 3px 5px 0px rgba(50, 50, 50, 0.65);
  -moz-box-shadow: 0px 3px 5px 0px rgba(50, 50, 50, 0.65);
  box-shadow: 0px 3px 5px 0px rgba(50, 50, 50, 0.65);
}

.bluetext {
  color: rgb(0, 0, 128);
  font-weight: bold;
}

.bluetext a {
  text-decoration: none;
}

.bluetext a:visited {
  color: rgb(0, 0, 128);
}

/* GENERAL MEDIA QUERIES
–––––––––––––––––––––––––––––––––––––––––––––––––– */

@media screen and (max-width: 900px) {
  body {
    width: 100%;
  }

  .container {
    height: 160vh;
  }

  .nadpis h1 {
    font-size: 1.5rem;
  }

  .first {
    width: 92%;
    padding: 0 0 0 10%;
    margin: 0 -50px 0 0;
  }

  .first-hlavni-nadpis {
    font-size: 1.7em;
  }

  .nadpis {
    margin-left: 5%;
    margin-right: 5%;
  }

  .podpis {
    width: 100% !important;
    margin-left: -8% !important;
  }

  .social-media {
    margin-left: 10%;
  }

  button {
    margin: 25px -8% 20px;
    width: 100%;
  }

  .second {
    width: 100%;
  }

  .second img {
    width: 100%;
    margin-top: 65px;
    padding-left: 15px;
    background-color: white;
    margin-left: -15px;
    padding-right: 15px;
    margin-bottom: 70px;
  }

  .group {
    width: 100%;
    font-size: 0.9rem;
  }

  .timeline ul li div {
    width: 250px;
  }
  .timeline ul li:nth-child(even) div {
    left: -289px;
  }

  .timeline ul li {
    margin-left: 20px;
  }
  .timeline ul li div {
    width: calc(100vw - 91px);
  }
  .timeline ul li:nth-child(even) div {
    left: 25px;
  }
  .timeline ul li:nth-child(even) div::before {
    display: none;
  }
  .timeline ul li:nth-child(odd) div {
    left: 25px;
  }
  .timeline ul li:nth-child(odd) div::before {
    display: none;
  }
}
