* {
  margin: 0;
  padding: 0;
  list-style: none;
  text-decoration: none;

  font-family: "Lucida Console", "Courier New", monospace;
  font-size: 16px;
  color: white;
}

body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  background-color: #4f75ff;
}

header {
  width: 100%;
  display: flex;
  justify-content: space-between;
}

header ul {
  display: flex;
  margin: 0% 4%;
}

header ul li {
  margin: 10px;
  font-size: 1.4rem;
}

header ul li a:hover {
  color: #2121a8;
}

header ul li a svg:hover {
  background-color: #2121a8;
}

main {
  margin: 0% 8%;
}

span {
  color: #2121a8;
}

button {
  padding: 30px;
  background-color: transparent;
  border: 1px solid white;
  cursor: pointer;
}

button:hover {
  background-color: #2121a8;
}

#home {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 15% 0;
}

#home h1,
span {
  font-size: 3.5rem;
  /* color: #2121a8; */
}

#home h2 {
  font-size: 2.2rem;
}

#home p {
  font-size: 1.4rem;
  margin: 1% 10%;
}

#home > * {
  text-align: center;
}

.buttons {
  display: flex;
}

h1 {
  font-size: 3rem;
  font-weight: bold;
}

#about p,
#about span {
  font-size: 1.5rem;
}

#about li {
  margin: 10px;
  font-size: 1.3rem;
}

#about img {
  height: 300px;
}

.about-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5% 0;
}

.aboutcontent {
  width: 70%;
}

#experience h2,
#experience span {
  font-size: 2rem;
}

#experience small {
  font-size: 1.5rem;
}

#experience p {
  font-size: 1.2rem;
  margin-top: 20px;
}

.experience-container {
  padding: 5% 0;
}

#projects img {
  width: 100%;
  border: 1px solid #2121a8;
}

#projects h2 {
  font-size: 2rem;
  color: #2121a8;
}

#projects p {
  font-size: 1.2rem;
}

footer p {
  text-align: center;
}

.top {
  display: none;
  position: fixed;
  margin-top: 85vh;
  right: 3%;
  background-color: #2121a8;
  padding: 10px;
}

.typewriter h1 {
  overflow: hidden; /* Ensures the content is not revealed until the animation */
  border-right: 0.15em solid orange; /* The typwriter cursor */
  white-space: nowrap; /* Keeps the content on a single line */
  margin: 0 auto; /* Gives that scrolling effect as the typing happens */
  animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

/* The typing effect */
@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

/* The typewriter cursor effect */
@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: orange;
  }
}

@media only screen and (max-width: 1060px) {
  * {
    font-size: 6px;
  }
  #nav1 {
    display: none;
  }
  #home p {
    font-size: 1.2rem;
  }
  button {
    padding: 15px;
  }

  #about img {
    display: none;
  }
  .aboutcontent {
    width: 100%;
  }
  #experience h2 {
    font-size: 1.7rem;
  }
  .icons {
    width: 16px;
    height: 16px;
  }
}

/* Slideshow Container */
.slideshow-container {
  position: relative;
  margin: 20px auto;
  overflow: hidden;
  border-radius: 10px;
}

/* Slide Images */
.slide {
  display: none;
  width: 100%;
  height: auto;
}

/* Next and Previous Buttons */
.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 10px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  cursor: pointer;
  border-radius: 3px;
}
.prev {
  left: 10px;
  background-color: rgba(0, 0, 0, 0.5);
}
.next {
  right: 10px;
  background-color: rgba(0, 0, 0, 0.5);
}

/* Fade Transition for Slides */
.fade {
  animation: fadeEffect 1.5s;
}
@keyframes fadeEffect {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}

/* Dot Indicators */
.dots {
  text-align: center;
  margin-top: 10px;
}
.dot {
  cursor: pointer;
  height: 12px;
  width: 12px;
  margin: 0 5px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s;
}
.active,
.dot:hover {
  background-color: #717171;
}

.slide img {
  max-height: 600px;
}

.slideshow-container h2 {
  margin: 30px 0;
}
