:root {
  --darkgrey: #212329;
  --white: #fff;
  --red: #9f0103;
  --blue: #fd7d00;
  --lightgrey: rgba(33, 35, 41, 0.1);
  --black: #000;
}

* {
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
}

.container {
  background-repeat: no-repeat;
  background-size: cover;
  font-family: "palanquin", cursive;
  font-size: 1.2em;
}

.background-top {
  background-image: url("images/Praha.jpg");
  height: 600px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.nav-container {
  width: 100%;
  background-color: var(--white);
  position: fixed;
  color: var(--red);
  box-shadow: 0px 10px 5px var(--lightgrey);
  z-index: 99;
}
.navbar {
  display: flex;
  align-items: center;
  height: 80px;
  margin: 0px 2%;
}

#navbar-logo {
  flex: 0.5;
  color: var(--red);
  justify-self: start;
  cursor: pointer;
  font-weight: bold;
}

#navbar-logo a {
  text-decoration: none;
  color: var(--black);
  transition: 0.3s;
}

#navbar-logo a:hover {
  background-color: var(--white);
  color: var(--red);
  transition: 0.3s;
}

#ang-menu-id {
  margin-right: 20px;
}

.nav-menu {
  flex: 2.5;
  display: flex;
  justify-content: flex-end;
  text-align: center;
  flex-wrap: wrap;
}

.nav-menu ul {
  list-style-type: none;
}
.nav-menu a {
  font-size: 0.9em;
  color: var(--red);
  text-decoration: none;
  transition: 0.3s;
  padding: 4px 8px;
  display: inline-block;
  position: relative; /* For positioning the pseudo-element */
  text-align: center;
}

.nav-menu a:after {
  content: "";
  position: absolute; /* Positioned relative to the anchor */
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--red);
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s; /* Combining transitions */
  transform: scaleX(0); 
}

.nav-menu a:hover:after {
  opacity: 1;
  transform: scaleX(1); /* Expands to full width on hover */
}




.navbar ul {
  list-style-type: none;
}

.headline {
  text-align: center;
  color: var(--white);
  padding-top: 300px;
  text-shadow: var(--darkgrey) 1px 0 10px;
}
/* position: absolute;
          top: 200px;
          left: 50%;
          transform: translate(-50%, -50%); */

.menu-toggle {
  margin-top: 40px;
}
.menu-toggle .bar {
  width: 25px;
  height: 3px;

  margin: 5px auto;
  transition: all 0.3 ease-in-out;
  background: var(--red);
  position: center;
}

.selected-lang {
  display: flex;
  justify-content: flex-end;
  justify-self: end;
  cursor: pointer;
  color: var(--white);
  transition: 0.3s;
  width: 150px;
  float: right;
}

.selected-lang:hover {
  color: var(--red);
  transition: 0.3s;
}

.lang-menu {
  position: absolute;
  top: 581px;
  right: 5%;
  padding: 1px 15px;
  display: block;
  text-decoration: none;
  color: var(--black);
  background-color: var(--darkgrey);
  border-radius: 6px;
}

.lang-menu a {
  text-decoration: none;
  color: var(--white);
  transition: 0.3s;
}

.lang-menu a:hover {
  color: var(--red);
  transition: 0.3s;
}

/*-------------portfolio--------------------*/

.portfolio {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  background-color: var(--white);
}

.portfolio i {
  font-size: 100px;
  color: var(--red);
}

.selection {
  flex-basis: 100%;
  margin: 2% 1%;
  padding: 40px;
  text-align: center;
  max-width: 425px;
  height: 450px;
  transition: 1s;
  flex-grow: 1;
  background-color: var(--white);
  border-radius: 15px;
  box-shadow: 15px 15px 15px var(--lightgrey);
}

.selection p {
  padding: 20px;
}

.selection a {
  text-decoration: none;
  color: var(--red);
  text-transform: uppercase;
  font-weight: 900;
  transition: 0.3s;
}

.selection:hover {
  background-color: var(--lightgrey);
  transition: 1s;
  cursor: pointer;
  animation: shake 1s;
}



/*************informace**************/
.two-columns {
  display: flex;
  justify-content: center;
}

.left-column {
  width: 50%;
  min-height: 650px;
  display: flex;
  justify-content: center;
}

.left-column-picture {
  margin: 10%;
  background-image: url("images/education.jpg");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  width: 500px;
  height: 500px;
  border-radius: 50%;
}


.right-column {
  width: 50%;
}
.right-column-text {
  padding: 4%;
}

.right-column-text i {
  font-size: 50px;
  color: var(--red);
}
.line {
  display: none;
  padding: 1% 3%;
  margin: 5px;
  align-items: center;
  border-radius: 10px;
  animation: Slide_Up 0.5s;
  box-shadow: 10px 10px 10px var(--lightgrey);
  cursor:pointer;
  transition: 0.3s;
}

.line:hover {
  background-color: var(--lightgrey)
}

@keyframes Slide_Up {
  0% {
    transform: translatex(100%);
  }
  50% {
    transform: translatex(-50px);
  }

  100% {
    transform: translatex(0px);
  }
}


.globe-text {
  padding-left: 3%;
}

.reference-div {
  background-color: var(--white);
  text-align: center;
  padding: 5%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.slideshow-container {
  background-color: var(--white);
  margin-top: 5%;
  box-shadow: 10px 10px 10px var(--lightgrey);
  border-radius: 15px;
}

.reference-div h2 {
  text-transform: uppercase;
}

.reference-div h3 {
  padding: 1%;
}

.reference-div p {
  padding-left: 10%;
  padding-right: 10%;
}
.mySlides {
  display: none;
  padding: 80px;
  text-align: center;
}

/* Next & previous buttons */
.prev,
.next {
  cursor: pointer;
  margin: 0px 10%;
  width: auto;
  color: var(--darkgrey);
  font-weight: bold;
  font-size: 30px;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
  color: var(--red);
}

/* The dot/bullet/indicator container */
.dot-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: baseline;
  text-align: center;
  padding: 0.8% 4%;
}

/* The dots/bullets/indicators */
.dot {
  cursor: pointer;
  height: 1px;
  width: 1px;
  margin: 0 7px;
  padding: 10px;
  background-color: var(--lightgrey);
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

/* Add a background color to the active dot/circle */
.active,
.dot:hover {
  background-color: var(--red);
}

.blog-div {
  padding: 5%;
  text-align: center;
}

.blog-div h2 {
  padding-bottom: 5%;
}

.blog-box {
  display: grid;
  grid-template-columns: auto auto;
  text-align: left;
  width: 100%;
}
.blog-box a {
  text-decoration: none;
  color: var(--red);
  font-weight: 900;
}
.blog-box-select {
  background-color: var(--lightgrey);
  transition: 0.5s;
  display: flex;
  flex-direction: row;
  max-height: 300px;
}

.blog-box-select:first-child {
  border-radius: 15px 0 0 0;
}
.blog-box-select:nth-child(2) {
  border-radius: 0 15px  0 0;
}
.blog-box-select:nth-child(3) {
  border-radius: 0 0 0 15px;
}
.blog-box-select:nth-child(4) {
  border-radius: 0 0 15px 0;
}

.blog-box-select a {
  transition: 0.5s;
}
.blog-box-text {
  padding: 2%;
  font-size: 0.85em;
  min-width: 0px;
}

.blog-box-select:hover {
  color: var(--white);
  background-color: var(--red);
  transition: 0.5s;
  cursor: pointer;
}

.blog-box-select:hover a {
  color: var(--white);
  transition: 0.5s;
}

.portfolio-text {
  padding: 5% 20%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 0.9em;
}

.portfolio-text h2 {
  padding: 1%;
}

.portfolio-text h3 {
  padding: 1%;
}

.portfolio-text p2 {
  color: var(--red);
}
.portfolio-text p {
  margin: 10px 0px;
}
.contact {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.6)),
    url("images/Praha.jpg");
  background-blend-mode: darken;
  text-align: center;
  padding: 5%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  color: var(--white);
}

.contact a {
  text-decoration: none;
  color: var(--white);
  height: 25px;
}

.contact a img {
  height: 25px;
}

.footer {
  text-align: center;
  padding: 1.4%;
  background-color: var(--darkgrey);
  color: var(--white);
}

.blog {
  padding: 4%;
}
.article {
  display: flex;
  flex-direction: row;
  padding-bottom: 4%;
}
.blog-date {
  color: var(--white);
  background-color: var(--red);
  padding: 2%;
  display: flex;
  flex-flow: column;
  height: 100%;
  text-align: center;
}
.blog-text {
  padding: 2%;
  background-color: var(--lightgrey);
}
.blog-text a {
  text-decoration: none;
  color: var(--black);
  font-weight: bold;
}
.blog-text::first-letter {
  color: var(--red);
}
.blog-link {
  padding: 1%;
  margin-top: 1%;
  color: var(--white);
  background-color: var(--red);
  width: fit-content;
  padding-left: 2%;
  padding-right: 2%;
  font-size: 0.9em;
}
.blog-link a {
  text-decoration: none;
  color: var(--white);
  font-weight: normal;
}

.blog-link:hover {
  background-color: var(--black);
}

.about_me_link {
  padding: 1%;
  margin-top: 3%;
  color: var(--white);
  background-color: var(--red);
  width: fit-content;
  padding-left: 2%;
  padding-right: 2%;
  font-size: 0.9em;
  text-decoration: none;
  margin-left: auto;
  margin-right: 0;
  border-radius: 5px;
}

.about_me_link a {
  text-decoration: none;
  color: var(--white);
}

.about_me_link:hover {
  background-color: var(--black);
}

.blog-image {
  display: flex;
  flex-direction: row;
}

.blog-image img {
  max-height: 300px;
  margin-right: 2%;
}
.contact-form {
  display: flex;
  justify-content: center;
  background-color: var(--lightgrey);
}

.contactform {
  padding: 5%;
  display: flex;
  flex-direction: column;
  max-width: 500px;
  align-items: center;
  justify-content: center;
}
.contactform input[type="text"],
.contactform input[type="email"],
textarea {
  padding: 5%;
  margin: 5%;
  width: 200%;
  outline-color: var(--red);
}
.contactform input[type="submit"] {
  border: none;
  padding: 6% 9%;
  color: var(--white);
  background-color: var(--red);
  font-size: 0.9em;
  cursor: pointer;
}
.contactform input[type="submit"]:hover {
  background-color: var(--black);
}

@media screen and (max-width: 1300px) {
  .blog-box-picture {
    display: none;
  }
}

@media screen and (max-width: 768px) {
  * {
    scroll-margin-top: 10px;
  }
  .nav-container {
    position: relative;
    padding: 0px;
    margin: 0px;
  }
  .top-background {
    padding: 0px;
  }
  .nav-menu {
    display: grid;
    grid-template-columns: 1fr;

    margin: 0;
    width: 100%;
    height: 80px;
    position: absolute;
    top: 40px;
    left: -100%;
    transition: all 0.5s ease;
    padding: 0px;
    margin-top: 80px;
    min-width: 0px;
  }

  .nav-menu.active {
    top: 40px;
    left: 0;
    opacity: 1;
    transition: all 0.5s ease;
  }
  .nav-links {
    padding: 0px;
    text-align: center;
    line-height: 40px;
    width: 100%;
    display: table;
    background-color: var(--white);
  }
  .nav-links:hover {
    background-color: var(--darkgrey);
    color: var(--white);
    transition: all 0.5s ease-out;
  }
  .navbar {
    width: 100%;
    height: 120px;
    margin-left: 0px;
  }
  #navbar-logo {
    padding-left: 15px;
  }
  #mobil-menu {
    position: absolute;
    top: 22%;
    right: 5%;
    transform: translate(5%, 22%);
  }
  .menu-toggle .bar {
    display: block;
    cursor: pointer;
  }
  .menu-toggle:hover {
    cursor: pointer;
  }
  #mobil-menu.is-active .bar:nth-child(2) {
    opacity: 0;
  }
  #mobil-menu.is-active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  #mobil-menu.is-active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  .headline {
    text-align: center;
    color: var(--white);
    padding-top: 220px;
  }
  .lang-menu {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 1px 15px;
    display: block;
    text-decoration: none;
    color: var(--black);
    background-color: var(--black);
    border-radius: 6px;
    z-index: 100;
  }
  .left-column {
    display: none;
  }
  .line {
    display: block;
  }
  .portfolio {
    padding: 0px;
    display: flex;
  }
  .selection p {
    padding: 0px;
  }
  .selection {
    padding: 0px;
    max-height: 350px;
    padding-top: 10%;
    margin: 0%;
    border: 0px;
  }
  .selection:hover {
    border: 0px;
    animation: none;
  }
  .blog-box {
    display: grid;
    grid-template-columns: auto;
    text-align: left;
  }

  .blog-box-select:first-child {
    border-radius: 15px 15px 0 0;
  }
  .blog-box-select:nth-child(2) {
    border-radius: 0;
  }
  .blog-box-select:nth-child(3) {
    border-radius: 0;
  }
  .blog-box-select:nth-child(4) {
    border-radius: 0 0 15px 15px;
  }

  .right-column {
    width: 100%;
  }
  .mySlides {
    padding: 1%;
  }
  .globe-text h2 {
    font-size: 20px;
  }
  .blog-image img {
    display: none;
  }
  .contactform input[type="text"],
  .contactform input[type="email"],
  textarea {
    padding: 5%;
    margin: 5%;
    width: 125%;
  }
}
