section {
  width: 100%;
  height: fit-content;
  min-height: 100svh;
  height: fit-content;
  text-align: center;
}

h3 {
  padding-top: 3.7rem;
  font-size: 3rem;
  font-family: 'Roboto-500';
  display: block;
}


/*Hero Page*/
.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  transform: translate(0, 30svh);
}

.skillslist {
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.hero-svg {
  fill: var(--opp_background_color);
  width: 9rem;
  transition: scale 0.2s ease;
}

.hero-svg:hover {
  scale: 1.1;
}

.tooltip {
  position: absolute;
  background: linear-gradient(-5deg, var(--accent_color2), var(--accent_color));
  color: var(--background_color);
  font-family: 'Roboto-500';
  font-size: 1.4rem;
  transition: opacity 0.2s ease;
  padding: 0.4rem 0.7rem;
  border-radius: 0.7rem;
  opacity: 0;
  pointer-events: none;
}

.hero-wrapper {
  width: fit-content;
  height: fit-content;
  margin: 1rem;
}

.hero h2 {
  font-size: 3rem;
  color: var(--opp_background_color);
  align-self: flex-end;
  text-align: left;
  font-family: 'Roboto-500';
}

.hero h1 {
  text-decoration: none;
  font-size: 8rem;
  color: var(--opp_background_color);
  font-family: 'Roboto-700';
}

.mail {
  display: flex;
  margin-left: auto;
  margin-right: auto;
  max-width: fit-content;
  text-decoration: none;
  stroke: var(--opp_background_color);
  color: var(--opp_background_color);
}

.mail:hover {
  color: var(--accent_color);
  stroke: var(--accent_color);
}

.mail-svg {
  height: 2rem;
  fill: none;
  padding-right: 0.5rem;
}

.mail-adress {
  font-size: 1.5rem;
  font-family: 'Roboto-500';
  max-height: fit-content;
  margin-block: auto;
}


/*Über Mich*/
#me-wrapper {
  display: flex;
  width: 50rem;
  margin-left: auto;
  margin-right: auto;
  margin-top: 40lvh;
  transform: translate(0, -50%);
  flex-direction: row;
}

#me-wrapper img {
  width: 24rem;
  height: auto;
  float: left;
  border-radius: 1rem;
  padding-bottom: 0.75rem;
}

#me-text-wrapper {
  margin-top: auto;
  margin-bottom: auto;
}

#me-text-wrapper h4 {
  font-size: 2rem;
  font-family: "Roboto-500";
  text-align: left;
  margin-left: 1.5rem;
}

#me-text-wrapper p {
  margin-top: 0.5rem;
  text-align: left;
  font-size: 1.5rem;
  font-family: "Roboto-regular";
  margin-left: 1.5rem;
}


#skillswrapper {
  display: flex;
  justify-content: center;
  margin-top: 2.2rem;
  margin-left: 1rem;
}

#skillswrapper ul {
  list-style: none;
}

.skill {
  display: flex;
  flex-wrap: nowrap;
  padding-bottom: 2rem;
}

.skill ul {
  list-style: none;
}

.skillgraphic {
  height: 5rem;
  fill: var(--opp_background_color);
  stroke: var(--opp_background_color);
}

.skillheader {
  font-size: 2rem;
  height: fit-content;
  text-align: left;
  margin-left: 1rem;
  font-size: 2rem;
  font-family: "Roboto-500";
}

.skilldescription {
  font-size: 1.2rem;
  margin-left: 1rem;
  text-align: left;
  font-size: 1.2rem;
  font-family: "Roboto-regular";
}


#projects {
  min-height: 100svh;
  height: fit-content;
}

.project-wrapper {
  width: 65svw;
  display: flex;
  padding-top: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: auto;
}

.project {
  width: 25rem;
  height: fit-content;
  background-color: var(--accent_color4);
  padding: 1rem;
  border-radius: 1rem;
  border-style: none;
  text-decoration: none;
  color: var(--opp_background_color);
  transition: scale 0.2s ease;

}

.project:hover {
  scale: 1.07;
  background-color: var(--accent_color5);
}

.project:active {
  scale: 1S;
}

.project img {
  width: 100%;
  border-radius: inherit;
}

.project h4 {
  font-size: 2rem;
  font-family: "Roboto-500";
  width: 100%;
  padding-block: 0.5rem;
}

.project p {
  font-size: 1.2rem;
  font-family: "Roboto-regular";
  width: 90%;
  margin: auto;
}

/*PopUp to show my Projects*/
.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: 0.2s ease;
  border-radius: 1rem;
  z-index: 10;
  background-color: var(--background_color);
  max-width: 90svw;
  max-height: 85svh;
}

.modal.active {
  transform: translate(-50%, -50%) scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  font-size: 2rem;
  font-family: "Roboto-500";
}

.modal-close-button {
  cursor: pointer;
  border: none;
  outline: none;
  font-weight: bold;
  font-size: 2rem;
  background: none;
  font-family: "Roboto-500";
}

.modal-content {
  display: grid;
  max-width: inherit;
  max-height: inherit;
  grid-template-columns: 3fr 1fr;

}

.modal-img-wrapper {
  display: inline-block;
  border-radius: 1rem;
  max-width: inherit;
  max-height: inherit;
  padding: 1rem;
  box-sizing: border-box;
}

.modal-img {
  border-radius: 1rem;
  max-width: calc(100% - 1rem);
  max-height: calc(100% - 1rem);
  margin-inline: auto;
  margin-bottom: 0.5rem;
  display: block;
}

.modal-text {
  padding: 10px 16px;
  font-size: 1.2rem;
  font-family: "Roboto-regular";
  text-align: left;
  line-height: 125%;
}

#overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--accent_color4);
  opacity: 0;
  z-index: 5;
  pointer-events: none;
}

#overlay.active {
  pointer-events: all;
  opacity: 50%;
}


/*Media Querries*/
@media only screen and (max-width: 500px) {
  .skillgraphic {
    height: 4rem;
  }

  .skillheader {
    font-size: 1.7rem;
  }

  .skilldescription {
    font-size: 1rem;
  }
}

@media only screen and (max-width: 768px) {
  .hero {
    height: 90%;
  }

  .skillslist svg {
    width: 6rem;
  }

  .hero h2 {
    font-size: 3rem;
    padding-left: 1rem;
  }

  .hero h1 {
    text-decoration: none;
    font-size: 5rem;
    color: var(--opp_background_color);
    text-align: center;
  }

  h3 {
    padding-top: 1rem;
    font-size: 4rem;
  }

  #me-wrapper {
    width: 90swv;
  }
}

@media only screen and (max-width: 900px) {
  #me-wrapper {
    flex-direction: column;
    align-items: center;
    transform: translate(0, 0);
    margin-top: 4svh;
    width: 75svw;
  }

  #me-wrapper img {
    width: inherit;
  }

  #me-text-wrapper h4,
  #me-text-wrapper p {
    margin-left: 0;
  }
}

@media (max-height: 800px) {
  .modal {
    height: fit-content;
  }

  .modal-img-wrapper,
  .modal-text {
    max-height: 100%;
    padding: 1rem;
  }

}

@media (min-aspect-ratio: 4/3) {
  .modal-content {
    grid-template-columns: 3fr 1fr;
    align-items: center;
  }
}

@media only screen and (max-width: 1400px) {
  .modal-content {
    grid-template-columns: 1fr;
    align-items: center;
    width: 90svw;
  }
}