* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  word-wrap: break-word;
}
/* ermöglicht glatte animierte Übergang zwischen Elementen innerhalb des Bildlauffelds*/
html {
  scroll-behavior: smooth;
}

/*=======Navbar========*/
.navbar {
  display: flex;
  justify-content: center; /* Packe Flexelemente um die Mitte */
  align-items: center; /* Elemente um die Kreuzungsachse zentrieren */
  background-color: rgba(220, 220, 220, 0.6);
  position: sticky;
  top: 0;
}
.navbar ul {
  display: flex;
  list-style: none;
  margin: 20px 0px;
}
.navbar ul li {
  font-family: century;
  font-size: 1.1rem;
  font-weight: bold;
}
.navbar ul li a {
  text-decoration: none;
  color: #f5f5f5;
  padding: 8px 25px;
  transition: all 0.5s ease; /*transition ermöglicht die Werte über eine bestimmte Dauer reibungslos zu ändern*/
}
.navbar ul li a:hover {
  /* :hover verändert den Style, wenn man mit der Maus drüber fährt */
  background-color: #f5f5f5;
  color: black;
  /*Macht den Schatten um den Knopf */
  box-shadow: 0 0 10px #f5f5f5;
}
/*=============HOME===========*/
#home {
  display: flex;
  flex-direction: column;
  background-color: rgba(220, 220, 220, 0.6);
  height: 840px;
  justify-content: center;
  align-items: center;
  color: #f5f5f5;
}
#home::before {
  /*::befor fügt etwas vor dem Inhalt jedes ausgewählten Elements ein */
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  background-image: url('../../images/foto/Dik.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  width: 100%;
  height: 900px;
  z-index: -1;
  opacity: 0.8; /* opacity gibt die Transparenz eines Elements an*/
}
.main {
  display: flex;
  flex-direction: column;
  /*border: 1px solid white;*/
  align-items: center;
  position: absolute;
  top: 30%;
  left: 10%;
}
.main img {
  width: 50px;

  filter: grayscale(100%);
  -webkit-filter: grayscale(100%);
}
.headings {
  font-family: century;
  font-size: 3rem;
  text-align: center;
  margin: 40px 0px;
}
.btn {
  padding: 10px 35px;
  background-color: transparent;
  border: 1px solid #f5f5f5;
  color: #f5f5f5;
  outline: none;
}
.btn a {
  color: #f5f5f5;
  font-size: 1.2rem;
}

.btn:hover {
  cursor: pointer;
  background-color: rgba(128, 128, 128, 0.9);
  color: black;
  /*Macht den Schatten um den Knopf */
  box-shadow: 0 0 5px #f5f5f5, 0 0 10px #e68890, 0 0 15px #e68890;
  font-weight: bold;
  transition: all 0.5s ease;
}
/*======About me========*/
#about {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding: 20px 15% 5% 15%;
  /*margin-bottom: 50px;*/
  background-color: rgba(220, 220, 220, 0.6);
  color: #1f1f1f;
}

#intro {
  display: flex;
  flex-direction: column;
  text-align: justify;
  padding: 10px;
}
#intro h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
/*======Portfolio======*/
#portfolio {
  display: flex;
  flex-direction: column;
  background-color: rgba(128, 128, 128, 0.9);
  color: #f5f5f5;
  align-items: center;
  padding: 20px;
}
.fotos {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around; /* Verteile die Elemente gleichmäßig
  Elemente haben gleiche Abstände um sie herum */
  box-sizing: border-box;
}
.fotos img {
  width: 360px;
  height: 240px;
  margin: 10px;
}
.fotos img:hover {
  color: #f5f5f5;
  cursor: pointer;
  box-shadow: 0 0 20px #e68890;

  opacity: 0.8;
}

/*======Skills==========*/

.skills {
  width: 500px;
  margin: 50px auto 0;
  padding: 20px;
}
.skills li {
  position: relative;
  list-style: none;
  margin: 50px 0;
  font-weight: 500;
  text-transform: uppercase;
}
.skills li::before {
  content: '';
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 100%;
  height: 15px;
  background-color: rgb(220, 220, 220);
  border-radius: 1000px;
}
.skills li::after {
  content: '';
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 0;
  height: 15px;
  background-color: rgb(230, 136, 144);
  border-radius: 1000px;
  animation-duration: 0.7s;
  animation-timing-function: ease;
  animation-fill-mode: forwards;
}
li.html::after {
  animation-name: html;
}
@keyframes html {
  to {
    width: 85%;
  }
}
li.css::after {
  animation-name: css;
}
@keyframes css {
  to {
    width: 50%;
  }
}
li.javascript::after {
  animation-name: javascript;
}
@keyframes javascript {
  to {
    width: 55%;
  }
}
li.java::after {
  animation-name: java;
}
@keyframes java {
  to {
    width: 40%;
  }
}
li.jquery::after {
  animation-name: jquery;
}
@keyframes jquery {
  to {
    width: 20%;
  }
}
li.deutsch::after {
  animation-name: deutsch;
}
@keyframes deutsch {
  to {
    width: 98%;
  }
}
li.russisch::after {
  animation-name: russisch;
}
@keyframes russisch {
  to {
    width: 100%;
  }
}
li.englisch::after {
  animation-name: englisch;
}
@keyframes englisch {
  to {
    width: 50%;
  }
}
#game {
  display: flex;
  flex-direction: column;
  /*border: 1px solid white;*/
  align-items: center;

  bottom: 10px;
}

/*========Projects==========*/
#projects {
  display: flex;
  flex-direction: column;
  padding: 40px;
  background-color: rgb(220, 220, 220);
}
#projects img {
  width: auto;
  height: 200px;
}
.set {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  box-sizing: border-box;
}

.box {
  display: flex;
  flex-direction: column;
  width: 350px;
  height: 450px;
  border: 1px solid #1f1f1f;
  margin: 10px;
  align-items: center;
  text-align: justify;
  padding: 20px;
  border: none;
  border-radius: 10px;
  /*Der box füllt sich mit anderer Farbe von unten nach oben*/
  background: linear-gradient(to top, rgba(128, 128, 128, 0.9) 50%, white 50%);
  background-size: 100% 200%;
  transition: all 0.8s;
  color: #1f1f1f;
}
.box:hover {
  background-position: left bottom;
  color: #f5f5f5;
  border: none;
  box-shadow: 0 0 20px rgba(128, 128, 128, 0.9);
}
.box a {
  padding: 100px 20px 20px 20px;
  color: #1f1f1f;
}

/*===========CONTACT============*/
#contact {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  background-color: rgba(128, 128, 128, 0.9);
  color: #f5f5f5;
  padding: 20px;
  font-size: 2rem;
  align-content: center;
  align-items: center;
  text-align: center;
}

#contact nav {
  background-color: rgba(128, 128, 128, 0.1);
}

/*======Footer=======*/
.footer {
  background-color: rgb(220, 220, 220);
}
#impressum {
  flex-direction: column;
  display: flex;
  font-size: 1.5rem;
  font-family: century;
  align-content: center;
  align-items: center;
}
#impressum a {
  text-decoration: none;
  color: #3d2323;
  position: sticky;
}

/*=====Für Tablet=========*/
@media only screen and (max-width: 768px) {
  .navbar ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  .main {
    left: 5px;
  }
  .headings {
    font-size: 2.5rem;
  }
  #pic {
    flex-direction: column;
    align-items: center;
  }
  #pic img {
    width: auto;
    height: 300px;
  }
  #intro h2 {
    text-align: center;
    padding: 10px;
  }
}

/*=====Für Smartphone=========*/
@media only screen and (max-width: 576px) {
  #home {
    height: 820px;
  }
  .main {
    top: 100%;
    left: 20%;
  }
  .headings {
    font-size: 1.7rem;
  }
  #about {
    padding-top: 50px;
  }
  #intro h2 {
    font-size: 1.5rem;
  }

  .fotos img {
    width: 250px;
    height: 150px;
    margin: 10px;
  }
  .box {
    height: auto;
  }
  .skills {
    width: 250px;
  }
}
