html {
  scroll-behavior: smooth;
}

body {
  background-color: #f8f9fa;
  font-family: 'Roboto', sans-serif;
  margin: 0;
}

nav {
  padding: 1em 4em;
  background-color: #222;
}

nav img {
  float: left;
}

nav .links {
  display: flex;
  justify-content: flex-end;
  color: #fff;
}

nav .links i {
  margin: 0 10px;
}

nav .links i:hover {
  color: #ff00ff;
}

.links a {
  color: #fff;
}

header {
  display: flex;
  flex-direction: column;
  background-color: #222;
  padding: 5em 0;
  align-items: center;
}

/*------------------ GLITCH TEXT---------------*/
.glitch {
  color: #fff;
  font-size: 3.5em;
  font-family: Roboto;
  text-transform: uppercase;
  font-weight: 700;
  position: relative;
  text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75),
    -0.025em -0.05em 0 rgba(0, 255, 0, 0.75),
    0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
  animation: glitch 500ms linear;
  animation-play-state: paused;
  animation-delay: calc(var(--scroll) * -1s);
  animation-iteration-count: 1;
  animation-fill-mode: both;

}

.glitch span {
  position: absolute;
  top: 0;
  left: 0;
}

.glitch span:first-child {
  animation: glitch 650ms linear;
  clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
  transform: translate(-0.025em, -0.0125em);
  opacity: 0.8;
}

.glitch span:last-child {
  animation: glitch 375ms linear;
  clip-path: polygon(0 80%, 100% 20%, 100% 100%, 0 100%);
  transform: translate(0.0125em, 0.025em);
  opacity: 0.8;
}

@keyframes glitch {
  0% {
    text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75),
      -0.05em -0.025em 0 rgba(0, 255, 0, 0.75),
      -0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
  }

  14% {
    text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75),
      -0.05em -0.025em 0 rgba(0, 255, 0, 0.75),
      -0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
  }

  15% {
    text-shadow: -0.05em -0.025em 0 rgba(255, 0, 0, 0.75),
      0.025em 0.025em 0 rgba(0, 255, 0, 0.75),
      -0.05em -0.05em 0 rgba(0, 0, 255, 0.75);
  }

  49% {
    text-shadow: -0.05em -0.025em 0 rgba(255, 0, 0, 0.75),
      0.025em 0.025em 0 rgba(0, 255, 0, 0.75),
      -0.05em -0.05em 0 rgba(0, 0, 255, 0.75);
  }

  50% {
    text-shadow: 0.025em 0.05em 0 rgba(255, 0, 0, 0.75),
      0.05em 0 0 rgba(0, 255, 0, 0.75), 0 -0.05em 0 rgba(0, 0, 255, 0.75);
  }

  99% {
    text-shadow: 0.025em 0.05em 0 rgba(255, 0, 0, 0.75),
      0.05em 0 0 rgba(0, 255, 0, 0.75), 0 -0.05em 0 rgba(0, 0, 255, 0.75);
  }

  100% {
    text-shadow: -0.025em 0 0 rgba(255, 0, 0, 0.75),
      -0.025em -0.025em 0 rgba(0, 255, 0, 0.75),
      -0.025em -0.05em 0 rgba(0, 0, 255, 0.75);
  }
}

/*------------------ GLITCH TEXT---------------*/
header h2 {
  color: #fff;
  padding-top: 2rem;
}

.work-section {
  font-size: 1em;
  font-weight: 600;
  display: flex;
  align-items: center;
  flex-direction: column;

}

.work-section h3,
.skill-section h4 {
  background-color: #222;
  color: #fff;
  text-transform: uppercase;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 2px;
  margin: 2rem;
  padding: 1rem 2rem;
  text-align: center;
}

.work-section {
  padding-bottom: 9vh;
  color: #fff;
  text-align: center;
  font-size: 3rem;
}

.work-section a {
  color: #fff;
  text-decoration: none;
}

.work-elfirst {
  width: 50rem;
  height: 13rem;
  background: url('../img/P-w.png') no-repeat;
  padding: 3.5rem;
  margin-bottom: 2rem;
}

.work-elfirst:hover {
  background: url('../img/P-m.png') no-repeat;
}

.work-elsecond {
  width: 50rem;
  height: 13rem;
  padding: 3.5rem;
  background: url('../img/K-w.png') no-repeat;
}

.work-elsecond:hover {
  background: url('../img/K-c.png') no-repeat;
}

footer {
  background-color: #222;
  color: #fff;
  padding: 1em 4em;

}

footer .links i:hover {
  color: #00ffff;
}

footer .links {
  display: flex;
  justify-content: flex-end;
  color: #fff;
}

footer .links i {
  margin: 0 10px;
}

/*------------------ Skillsection---------------*/

.skill-section {
  padding: 4% 0;
  background-color: #eee;
}

.competence-section {
  margin-top: 11px;
}

.skill-section h4 {
  margin: 1rem 7rem;
  width: 9rem;
}

.skill-section li {
  list-style: none;
  font-size: 1.1rem;
  text-align: right;
  text-transform: uppercase;
}

.progress-bar {
  background-color: #000;
}

.progress {
  height: 7px;
  border-radius: 20px;
  margin-bottom: 20px;
  background-color: #d3d3d3;
}

.skill-container {
  display: flex;
  flex: wrap;
}


.img-website {
  width: 100%;
}

.work {
  padding-top: 2rem;
}

.work a {
  text-decoration: none;
  color: #000;
}


/* accordion section*/

/* Style the buttons that are used to open and close the accordion panel */
.accordion {
  background-color: #f8f9fa;
  color: #222;
  font-size: 23px;
  cursor: pointer;
  padding: 18px;
  width: 100%;
  text-align: left;
  border: none;
  outline: none;
  transition: 0.4s;
}
.work-section p {
  font-size: 15px;

}
/* Add a background color to the button if it is clicked on (add the .active class with JS), and when you move the mouse over it (hover) */
.active,
.accordion:hover {
  background-color: #f8f9fa;
  color: #222;
}

/* Style the accordion panel. Note: hidden by default */
.panel {
  color: #222;
  padding: 0 18px;
  background-color: #f8f9fa;
  display: none;
  overflow: hidden;
}

.accordion:after {
  content: '\002B';
  font-size: 25px;
  font-weight: 600;
  color: #222;
  float: right;
  margin-left: 5px;
}

.active:after {
  content: "\2212";
}

.sojasesam{
  background-color: #e8c39e;
  height:100px;
  width:100%;
}