* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
}

body {
  position: relative;
  font-family: "Poppins", sans-serif;
  min-width: 35rem;
  font-weight: 400;
  font-size: 2rem;
  background-color: #264653;
  height: 100vh;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.carousel--container {
  background-color: #264653;
  position: absolute;
  height: 100vh;
  width: 100vw;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  animation-duration: 0.3s;
  animation-name: fadein2;
}

.carousel--close {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  position: absolute;
  color: #fff;
  font-size: 2rem;
  background-color: #264653;
  border: 0.4rem solid #fff;
  border-radius: 1rem;
  top: 1rem;
  right: 1rem;
  padding: 1rem 2rem;
  cursor: pointer;
  animation-duration: 0.3s;
  animation-name: fadein2;
  transition: all 200ms;
  z-index: 6;
}

.carousel--close:hover {
  color: #264653;
  background-color: #fff;
}

.carousel--next {
  position: absolute;
  color: #fff;
  border: none;
  background-color: rgba(0, 0, 0, 0);
  border-radius: 2rem;
  right: 1%;
  top: 80%;
  cursor: pointer;
  transition: all 200ms;
  z-index: 3;
}

.carousel--next:hover {
  background-color: #2a9d8f;
}

.carousel--next:active {
  transform: translateX(1rem);
}

.carousel--next-icon {
  height: 10rem;
  width: 10rem;
}

.carousel--prev {
  position: absolute;
  color: #fff;
  border: none;
  background-color: rgba(0, 0, 0, 0);
  border-radius: 2rem;
  left: 1%;
  top: 80%;
  cursor: pointer;
  transition: all 200ms;
  z-index: 3;
}

.carousel--prev:hover {
  background-color: #2a9d8f;
}

.carousel--prev:active {
  transform: translateX(-1rem);
}

.carousel--prev-icon {
  height: 10rem;
  width: 10rem;
}

.carousel--project-image-container {
  display: none;
  padding-top: 1rem;
  width: 95vw;
  max-width: 140rem;
  border-radius: 1rem;
  z-index: 2;
  transition: all 200ms;
  user-select: none;
}

.carousel--project-image {
  width: 100%;
  border-radius: 1rem 1rem 1rem 0;
}

.carousel--project-image-text {
  color: #fff;
  font-size: 2.2rem;
  user-select: none;
  padding: 1rem 2rem;
  border-radius: 0 0 2rem 2rem;
  background-color: #e76f51;
}

.carousel--dot-container {
  display: flex;
  gap: 2rem;
  position: absolute;
  bottom: 5%;
  z-index: 3;
}
.carousel--dot {
  border-radius: 50%;
  display: inline-block;
  height: 3rem;
  width: 3rem;
  background-color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 200ms;
}

.carousel--dot-active,
.carousel--dot:hover {
  background-color: #2a9d8f;
}

.wrapper {
  margin: 0 auto;
  height: 100%;
  max-height: 100rem;
  width: 70vw;
  display: flex;
  align-items: center;
  padding: 3rem;
  gap: 3rem;
  text-align: center;
}

.about-me-container {
  height: 100%;
  width: 35%;
  margin: 0 auto;
  gap: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.about-me {
  background-color: #e76f51;
  color: #fff;
  width: 100%;
  height: 65%;
  border-radius: 4rem;
  padding: 1rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.about-me-text {
  font-size: 2rem;
  width: 90%;
  padding-top: 2rem;
}

.contact-box {
  color: #fff;
  background-color: #ff9844;
  width: 100%;
  height: 35%;
  border-radius: 4rem;
  padding: 1rem 3rem;
  font-weight: 700;
  position: relative;
  font-size: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 2rem;
  flex-direction: column;
}

.email {
  font-size: 2rem;
  word-break: break-all;
  padding-top: 0.5rem;
  padding-bottom: 2.5rem;
}

.contact-icon {
  width: 100%;
  height: 100%;
  padding: 0;
  position: absolute;
  top: 0;
  left: 0;
}

.copy-icon {
  width: 2.4rem;
  height: 2.4rem;
  margin-right: 0.3rem;
}

.copy-button {
  border: 0.5rem solid #fff;
  padding: 1rem;
  border-radius: 1.6rem;
  font-family: "Poppins", sans-serif;
  font-size: 1.6rem;
  background-color: #ff9844;
  color: #fff;
  font-weight: 700;
  transition: all 200ms;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.copy-button:hover {
  background-color: #fff;
  color: #ff9844;
}

.copy-button:active {
  content: "Copied!";
  background-color: #2a9d8f;
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 1.6rem;
}

.greeting {
  font-size: 5rem;
}

.greeting-2 {
  font-size: 2.5rem;
}

.projects-container {
  width: 65%;
  height: 100%;
  position: relative;
}

.projects {
  color: #fff;
  background-color: #2a9d8f;
  width: 100%;
  height: 100%;
  padding: 1rem 3rem;
  border-radius: 4rem;
}

.projects-heading {
  font-size: 5rem;
  padding-bottom: 1rem;
}

p {
  padding-top: 2rem;
  padding-bottom: 0.5rem;
  font-size: 1.9rem;
}

.work-img-container {
  position: relative;
}

.work-img {
  max-width: 90%;
  border-radius: 1rem;
  transition: all 200ms;
}

.work-img:hover {
  transform: translateY(-0.5rem);
  box-shadow: 0 0 0 0.5rem #fff;
  cursor: pointer;
}

.click-icon {
  width: 2.4rem;
  height: 2.4rem;
}

.click {
  position: absolute;
  bottom: -8%;
  right: 5%;
}

.project-title {
  font-size: 4rem;
  padding-top: 3.5rem;
}

.projects-icon {
  position: absolute;
  top: 33%;
  right: -1rem;
  height: 7rem;
  width: 7rem;
  color: #fff;
}

.github-button {
  position: absolute;
  bottom: 0;
  right: 0;
  border: 0.5rem solid #fff;
  padding: 1rem;
  border-radius: 1.6rem 0 1.6rem 0;
  font-family: "Poppins", sans-serif;
  font-size: 1.6rem;
  background-color: #2a9d8f;
  color: #fff;
  font-weight: 700;
  transition: all 200ms;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.github-button:hover {
  background-color: #fff;
  color: #2a9d8f;
}

.project-text {
  padding-top: 1rem;
  padding-bottom: 1.5rem;
  width: 90%;
  margin: 0 auto;
}
@media(min-width: 155rem) {
  .about-me-text {
    font-size: 2.4rem;
  }
  .carousel--project-image-container {
    max-width: 200rem;
  }
}

@media (max-width: 115rem) {
  .wrapper {
    width: 80vw;
  }
}

@media (max-width: 100rem) {
  .wrapper {
    width: 90vw;
  }
}

@media (max-width: 90rem) {
  .wrapper {
    width: 100vw;
  }
}

@media (max-width: 80rem) {
  .greeting {
    font-size: 3.9vw;
  }
  .greeting-2 {
    font-size: 1.7vw;
  }
  .about-me-text {
    font-size: 1.5vw;
  }
}

@media (max-width: 70rem) {
  body {
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0;
    margin: 0;
    overflow-y: scroll;
    overflow-x: hidden;
    height: 100%;
  }

  p {
    font-size: 1.8rem;
  }

  .greeting {
    font-size: 5rem;
  }
  .greeting-2 {
    font-size: 3rem;
  }
  .about-me-text {
    font-size: 2rem;
  }

  .carousel--project-image-container {
    transform: translateY(10rem);
  }

  .carousel--container {
    position: absolute;
    height: 80%;
    transform: translateY(50rem);
  }

  .made-with {
    width: 100%;
    padding-bottom: 7rem;
  }

  .click {
    font-size: 2rem;
    bottom: -7%;
  }

  .contact-box {
    height: 100%;
  }
  .projects-heading {
    font-size: 3.2rem;
    padding-bottom: 2rem;
  }
  .wrapper {
    width: 100%;
    padding: 1rem;
    margin: 0rem;
    flex-direction: column;
  }

  .about-me-container {
    width: 100%;
    height: 100%;
  }

  .email {
    font-size: 3vw;
  }

  .projects-container {
    width: 100%;
  }

  .about-me {
    height: 100%;
  }
  .work-img {
    max-width: 100%;
  }
  .project-text {
    width: 100%;
  }
}

@media (max-width: 65rem) {
  .click {
    bottom: -8%;
  }
}

@media (max-width: 60rem) {
  .email {
    font-size: 4vw;
  }

  .click {
    font-size: 2.2rem;
    bottom: -10%;
    right: 1%;
  }
}

@media (max-width: 45rem) {
  .greeting {
    font-size: 10vw;
  }

  .greeting-2 {
    font-size: 5vw;
  }
  .click {
    bottom: -13%;
  }
  .carousel--project-image-container {
    transform: translateY(15rem);
  }
}

@media (max-width: 40rem) {
  .click {
    bottom: -15%;
  }
  .carousel--prev {
    top: 70%;
  }
  .carousel--next {
    top: 70%;
  }
}

.hidden {
  display: none;
}

.fade {
  animation-duration: 0.5s;
  animation-name: fadein;
}

.slideright {
  animation-duration: 0.3s;
  animation-name: slideright;
}

.slideleft {
  animation-duration: 0.3s;
  animation-name: slideleft;
}

@keyframes fadein {
  from {
    width: 60%;
    opacity: 0%;
  }

  to {
    width: 95%;
    opacity: 100%;
  }
}

@keyframes fadein2 {
  from {
    opacity: 0%;
  }

  to {
    opacity: 100%;
  }
}

@keyframes slideright {
  from {
    transform: translateX(-1500px);
    opacity: 0%;
  }
  to {
    transform: translateX(0px);
    opacity: 100%;
  }
}

@keyframes slideleft {
  from {
    transform: translateX(1500px);
    opacity: 0%;
  }
  to {
    transform: translateX(0px);
    opacity: 100%;
  }
}
