@import url("https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&display=swap");

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Lato", Helvetica, sans-serif;
  background-color: #16161a;
  animation-name: fade-in;
  animation-duration: 1.5s;
  animation-iteration-count: 1;
  animation-timing-function: ease-in;
  height: 100vh;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.5rem;
  color: #2cb67d;
  text-shadow: 2px 2px #7f5af0;
  font-weight: 900;
  border: 0px solid white;
  padding: 0 2% 0 2%;
}

nav {
  display: flex;
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 2%;
  justify-content: center;
  align-items: center;
  border: 0px solid white;
}
nav button {
  width: 35px;
  height: 35px;
  margin: 1.5%;
  border-radius: 100%;
  border: 3px solid #2cb67d;
  cursor: pointer;
  transition: 0.2;
}
nav button:hover {
  scale: 1.2;
  box-shadow: 0px 0px 15px #7f5af0;
}

.buttonOn {
  background-color: #7f5af0;
}

.buttonOff {
  background-color: transparent;
}

main {
  display: flex;
  overflow: hidden;
  width: 100vw;
  height: 70vh;
  border: 0px solid white;
  align-items: center;
  scroll-behavior: smooth;
}

article {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 100%;
  width: 100%;
  margin: 0;
}

article img {
  border-radius: 25px;
  width: 20%;
  height: auto;
  margin: 2%;
  border-radius: 125px 125px 100px 100px;
  border: 0px solid black;
  box-shadow: 5px 0px #7f5af0, 0px 5px #2cb67d, 0px -5px #2cb67d,
    -5px 0px #7f5af0;
  animation-name: bubble;
  animation-duration: 10s;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}

.project {
  display: flex;
  justify-content: space-evenly;
  padding: 0 5%;
}
.projdetails p {
  margin: 2% 0;
}
.projectlist h1 {
  min-height: 2ch;
  margin-bottom: 2%;
  width: 100%;
}

.projdetails {
  display: flex;
  width: 50%;
  flex-direction: column;
  margin: 0;
  align-items: flex-start;
  justify-content: space-evenly;
  padding: 0 3%;
}
#showcase {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  row-gap: 3%;
  width: 40%;
  height: 90%;
  padding: 3%;
  background-color: white;
  align-items: center;
  justify-items: center;
  border-radius: 0px;
  border-radius: 125px 125px 100px 100px;
  box-shadow: 5px 0px #7f5af0, 0px 5px #2cb67d, 0px -5px #2cb67d,
    -5px 0px #7f5af0;
  animation-name: bubble2;
  animation-duration: 10s;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
  transition: 0.15s;
  transition-timing-function: ease-in-out;
}
#showcase img {
  width: 65%;
  margin: 0;
  height: auto;
  border: none;
  box-shadow: none;
  animation: none;
  border-radius: 0;
}
#solarvid {
  width: 45%;
  height: auto;
  border-radius: 125px 125px 100px 100px;
  box-shadow: 5px 0px #7f5af0, 0px 5px #2cb67d, 0px -5px #2cb67d,
    -5px 0px #7f5af0;
  animation-name: bubble2;
  animation-duration: 10s;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
  transition: 0.15s;
  transition-timing-function: ease-in-out;
}
#textHolder {
  max-width: 40%;
  margin-left: 2.5%;
}
.closed {
  display: none;
}

#textHolder ul {
  list-style: none;
  padding-left: 0%;
  color: white;
}
#textHolder a {
  color: #94a1b2;
  line-height: 1.3rem;
}

article h2 {
  font-size: 2rem;
  color: #fffffe;
  line-height: 0;
}
article p {
  border: 0px solid black;
  font-size: 1.1rem;
  color: #94a1b2;
}

aside {
  display: flex;
  width: 15%;
  margin: 0;
  justify-content: center;
  align-items: center;
  border: 0px solid white;
}
aside img {
  border: 0px solid #2cb67d;
  box-shadow: 3px 3px #7f5af0;
  border-radius: 5px;
  width: 50px;
  height: auto;
  transition: 0.2s;
  cursor: pointer;
}
aside a {
  margin: 0 15% 0 15%;
}
aside img:hover {
  scale: 1.4;
  box-shadow: 0px 0px 15px #7f5af0;
}
footer {
  display: flex;
  justify-content: flex-end;
  position: absolute;
  bottom: 0;
  right: 0;
  color: #fffffe;
  padding: 0 3%;
  font-size: 0.8rem;
  line-height: 0.5rem;
}
footer h1 {
  font-size: 1rem;
}
footer p {
  color: #94a1b2;
  font-size: 1rem;
}

@keyframes bubble {
  0%,
  100% {
    border-radius: 130px 200px 100px 110px;
  }
  25% {
    border-radius: 100px 100px 120px 150px;
  }
  50% {
    border-radius: 150px 200px 140px 120px;
  }
  75% {
    border-radius: 120px 160px 160px 150px;
  }
}
@keyframes bubble2 {
  0%,
  100% {
    border-radius: 13px 20px 10px 11px;
  }
  25% {
    border-radius: 10px 10px 12px 15px;
  }
  50% {
    border-radius: 15px 20px 14px 12px;
  }
  75% {
    border-radius: 12px 16px 16px 15px;
  }
}

@keyframes fade-in {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 100;
  }
}

@media screen and(min-width: 1440px) {
  #textHolder h2 {
    font-size: 920px;
  }
  article p {
    font-size: 2rem;
  }
}

@media screen and (max-width: 768px) {
  article img {
    width: 30%;
  }
  article h2 {
    font-size: 1.2rem;
  }
  #textHolder a {
    font-size: 1.2rem;
  }
  article p {
    font-size: 0.9rem;
  }

  aside img {
    width: 40px;
  }

  nav button {
    width: 25px;
    height: 25px;
  }
  footer {
    position: static;
    padding: 2%;
    font-size: 0.8rem;
  }
}

@media screen and (max-width: 480px) {
  header {
    font-size: 0.8rem;
  }
  nav {
    margin: 1%;
    position: static;
  }
  .project {
    display: flex;
    flex-wrap: wrap;
  }
  .projdetails {
    min-width: 100%;
  }
  #showcase {
    width: 60%;
    margin-top: 4%;
  }
  #solarvid {
    width: 70%;
    margin-top: 4%;
  }

  #textHolder {
    margin-top: 2%;
    padding: 2%;
    max-width: 60%;
  }
  #textHolder a {
    font-size: 0.7rem;
  }
  aside {
    width: 30%;
    padding: 0 8% 0 8%;
  }
  aside img {
    width: 30px;
  }
  article {
    flex-direction: column;
  }
  article img {
    width: 50%;
    margin: 2%;
  }
  article h2 {
    font-size: 0.8rem;
  }
  article p {
    font-size: 0.7rem;
  }
  footer {
    position: fixed;
  }
  footer h2 {
    font-size: 1rem;
  }
  footer p {
    font-size: 0.8rem;
  }
}
