@import url('https://fonts.googleapis.com/css2?family=Sofia&family=Ysabeau&display=swap');
html, body {
  position: fixed;
  width: 100vw;
  min-height: 100%;
  overflow-x: hidden;
  left: 0;
  margin: 0;
}
body.whitebg {
  background-color: rgba(253, 253, 253, 0.85);
}
.bgcircle {
  background: rgb(245, 248, 241);
  border-radius: 50%;
  z-index: -10;
}
.bgcircle::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: inherit;
  border-radius: 50%;
  z-index: -1;
  animation: ripple 1.5s ease-out;
}
@keyframes ripple {
  from {
    opacity: 1;
    transform: scale(0);
  }
  to {
    opacity: 0;
    transform: scale(3);
  }
}
.bgcircle.bigcircle {
  background: #fde4dc;
}

/* body.home {
  background: url("./graphics/background.png") no-repeat center top;
  background-size: cover;
} */

* {
  font-family: "Ysabeau", sans-serif;
  font-size: 18px;
}

span {
  font-size: 18px;
}
a {
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 0.5pt;
  font-size: 16px;
}

h2 {
  font-family: 'Sofia', cursive;
  font-size: 24px;
  letter-spacing: 0.1em;
  text-align: center;
  margin-top: 0;
}

.subtitle {
  font-size: 14px;
  text-align: center;
  margin-top: -20px;
  margin-bottom: 30px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

#topbar {
  display: none;
}

/* The side navigation menu */
.sidenav {
  height: calc(100% - 30px); /* 100% Full-height */
  width: 240px; /* 0 width - change this with JavaScript */
  position: fixed; /* Stay in place */
  z-index: 2; /* Stay on top */
  top: 0; /* Stay at the top */
  left: 0;
  overflow-x: hidden; /* Disable horizontal scroll */
  padding-top: 40px; /* Place content 30px from the top */
  animation: fadeIn 1s ease-in-out forwards;
}

/* The navigation menu links */
.sidenav .page-link {
  padding: 8px 8px 8px 30px; /* top right bottom left */
  margin-right: 16px;
  border-radius: 0 10px 10px 0;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  line-height: 36px;
  letter-spacing: 0.1em;
  color: black;
  display: block;
}

.sidenav .icon {
  height: 18px;
  width: 18px;
  margin-right: 20px;
  position: relative;
  top: 5px;
  cursor: pointer;
}

.social-icons {
  width: 100%;
  text-align: center;
  position: absolute;
  bottom: 50px;
}

.social-icons .icon {
  padding: 17px 10px 2px 10px;
  border-radius: 50%;
  margin: 0 2px;
}

.horizontal-bar {
  width: 60%;
  height: 1px;
  background-color: rgb(193, 179, 155);
  margin: -10px auto 20px; /* Centers the bar horizontally */
}

hr {
  width: min(100%, 200px);
  margin: 30px 0 10px 0;
  height: 1.5px;
  margin-bottom: 30px;
  border: none;
  background: #ccc;
}
.italic-subheading {
  margin: 0;
  font-style: italic;
}

/* Style page content - use this if you want to push the page content to the right when you open the side navigation */
#main {
  margin-left: 240px;
  padding: 60px 70px 0 72px;
  position: absolute;
  width: calc(100vw - 380px);
}

.container {
  position:relative;
  margin-top: 0;
  margin-left: -80px;
  padding: 40px 75px 50px;
  width: 80%;
  background-color: #fefefe;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
  min-height: calc(100vh - 196px);
  animation: slideUp 1.5s ease-in-out forwards;
  border-radius: 10px;
}

.container.home {
  min-height: 0 !important;
  background: none;
  box-shadow: none;
  padding-top: 0;
  top: 0;
}

h1, h1 span {
  margin: 0;
  font-family: 'Sofia', cursive;
  font-size: 70px;
  font-weight: 800;
  letter-spacing: 0em;
  animation: slideRight 1.5s ease-in-out forwards;
  margin-top: 50px;
  margin-bottom: 50px;
}

h1.waviy {
  margin-top: 135px;
  margin-bottom: -40px;
  font-size: 60px;
  letter-spacing: 0;
}

.emphasize {
  font-weight: 700;
  color: #61801a;
}

.dev-color {
  color: #AC4425;
}

p {
  padding-top: 9px;
  text-align: justify;
  line-height: 1.5;
}

.role-choice {
  width: 300px;
  display: inline;
}

.role-choice div {
  float: left;
  font-size: 18px;
  padding: 10px;
  width: 150px;
  text-align: center;
  cursor: pointer;
  letter-spacing: 0.1em;
  box-shadow: inset 0 -2px 4px -2px rgba(97, 66, 66, 0.4);
}

.role-choice:hover {
  background-color: #d8d8d8;
}
.role-choice .selected {
  font-weight: 600;
  box-shadow: inset 0 2px 4px -2px rgba(97, 66, 66, 0.4);
  cursor: default;
}

.waviy {
  position: relative;
}
.waviy span { 
  position: relative;
  display: inline-block;
  animation: flip 4s forwards;
  animation-delay: calc(.2s * var(--i));
}
@keyframes flip {
  0%, 50% {
    transform: rotateY(360deg)
  }
}

.typewriter {
  display: inline-block;
}
.typewriter p {
  overflow: hidden; /* Ensures the content is not revealed until the animation */
  padding-right: 0.3em;
  line-height: 90%;
  border-right: .15em solid #AC4425; /* The typewriter 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 .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: #AC4425; }
}

@keyframes slideRight {
  0% {
    transform: translateX(-1000px);
    opacity: 0;
  }
  30% { opacity: 0;}
  100% {
    transform: translateX(0px);
    opacity: 100%;
  }
}
@keyframes slideUp {
  0% {
    transform: translateY(1000px);
  }
  100% {
    transform: translateY(0px);
  }
}
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 100%;
  }
}


/* Content pages */
div.profile {
  background-image: url("./graphics/profile-center.JPG");
  width: 350px;
  height: 350px;
  position: absolute;
  z-index: 1;
  top: 30px;
  right: -25px;
  border-radius: 50%;
  border: 10px solid #fefefe;
  background-size: cover;
  background-position: bottom;
  animation: fadeIn 2s ease-in-out forwards;
}

h3 {
  font-family: 'Sofia', cursive;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.2em;
  float: left;
  width: 100%;
}

h4 {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  font-size: 15px;
  padding-right: 30px;
  margin-top: 28px;
}

/* Project cards */
.fieldfilter {
  float: right;
  width: 250px;
  padding: 30px 0;
}
.fieldfilter label {
  float: right;
  padding: 5px 12px;
  text-align: center;
  background-color: rgba(255,255,255,0.5);
  border: 1px solid #AEA5A5;
  border-radius: 17px;
  min-width: 30px;
  margin-right: 7px;
  cursor: pointer;
}
.fieldfilter input[type="radio"] {
  display: none;
}
.fieldfilter label:hover, .fieldfilter input[type="radio"]:checked+label {
  color: #fff;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(450px, 100%), 1fr));
  grid-gap: 30px;
  grid-auto-rows: minmax(0, auto);
  grid-auto-flow: dense;
  margin-bottom: 20px; /* TODO might wanna take this out if footer has been added*/
}
.cell {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 25px;
  padding-bottom: 20px;
  border-radius: 10px;
  border: 2px solid #f0f0f0;

  cursor: pointer;
  position: relative;
}
.cell:not(.fullwidth):hover {
  background-color: rgb(255, 247, 247);
}
.cell h4 {
  padding: 0 0 7px;
  margin: 0;
}
.cell p {
  font-size: 16px;
  margin: 0;
  padding: 5px 0;
  text-align: left;
}
.cell hr {
  margin: 15px 0 10px 0;
  
}
.cell img {
  width: calc(100% + 20px);
  height: 220px;
  margin: -10px;
  object-fit: contain;
  margin-bottom: 15px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 10px 10px 0 0;
}
.cell .keyword {
  font-size: 16px;
  padding: 3px 7px;
  border-radius: 5px;
  display: inline-block;
  margin: 0 5px 5px 0;
}
.cell.fullwidth {
  grid-column: 1 / -1;
  cursor: default;
  border: 2px solid #ffdcd4;
  background: none;
  box-shadow: none;
  border-radius: 0;
  display: none;
}
.projectlink {
  margin-right: 15px;
  display: inline-block;
}
.projectlink img {
  display: inline-block;
  height: 16px;
  width: 16px;
  margin: 0px 8px;
  vertical-align: top;
}
.projectlink span{ 
  font-size: 14px;
}

.cell .triangle {
  display: none;
  content: "";
  width: 0px;
  height: 0px;
  position: absolute;
  border-left: 16px solid #ffdcd4;
  border-right: 16px solid transparent;
  border-top: 16px solid transparent;
  border-bottom: 16px solid #ffdcd4;
  left: 20px;
  bottom: -32px;
}
.fullwidth.visible, .triangle.visible {
  display: inline-block !important;
  animation: slideRight 0.5s ease-in-out;
}
.cell.visible {
  display: inline-block !important;
}

.right-cell {
  margin-left: 20px;
  padding: 10px 30px 30px;
  border-radius: 10px;
  animation: slideUp 1.5s ease-in-out forwards;
}

/* On smaller screens, where height is less than 450px, change the style of the sidenav (less padding and a smaller font size) */
@media screen and (max-width: 1000px) {
  div.profile {
    width: 30vw;
    height: 30vw;
  }
  div.profile::before, div.profile::after {
    background: none;
  }
  .container.about {
    top: 1vw;
  }
  .right-cell {
    margin: 0 0 20px;
    animation: none !important;
  }
  h1, h1 span, h1.waviy {
    font-size: 60px;
  }
}

@media screen and (max-width: 800px) {
  body {
    background: none !important;
    padding: 0;
  }
  .sidenav {
    width: 300px;
    max-width: 100%;
    transform: translateX(-300px);
    transition: transform 0.3s ease-in-out;
  }
  .social-icons {
    bottom: 30px !important;
  }
  .social-icons .icon {
    width: 22px !important;
    height: 22px !important;
    padding: 17px 20px 2px;
    margin: 0 2px;
  }
  #main {
    margin-left: 0;
    padding: 30px;
    left: 0;
    top: 0;
    width: calc(100vw - 62px);
    overflow-x: hidden;
    transition: margin-left 0.3s ease-in-out;
  }
  body.home .bgcircle {
    right: -15vw !important;
    top: calc(5vw + 120px) !important;
  }
  body.home .bigcircle {
    left: -20vw !important;
    top: 120px !important;
  }
  body:not(.home) .bgcircle{
    position: absolute !important;
    width: 30vw;
    height: 30vw;
    top: 100px;
    right: 20vw;
  }
  body:not(.home) .bigcircle{
    display: none;
  }
  h1, h1 span, h1.waviy {
    font-size: 10vw;
    text-align: center;
  }
  h1.waviy {
    margin-top: 20vh !important;
    margin-bottom: 5vh !important;
  }
  h1 {
    margin-top: 80px;
  }
  h1 span {
    margin: 0
  }
  h1 span.split {
    display: block;
    line-height: 0;
  }
  .bgcircle {
    background: rgb(233, 246, 230);
  }
  .role-choice div {
    width: calc((100vw - 73px) / 2);
  }
  .container {
    box-shadow: none;
    padding: 0;
    width: 100%;
    margin: 0;
    overflow: visible !important;
    min-height: auto !important;
  }
  .container.home {
    margin-top: 5vh;
  }
  .container.about {
    margin-top: 370px;
  }
  h3 {
    font-family: 'Sofia', cursive;
    font-size: 20px;
    letter-spacing: 0.1em;
    margin: 0;
  }
  #topbar {
    display: inline-block;
    width: calc(100vw - 40px);
    position: fixed;
    top: 0;
    left: 0;
    padding: 15px 20px 0;
    z-index: 11;
    height: 45px;
    background-color: #fefefe;
    border-bottom: 1px solid #d2d2d2;
    transition: margin-left 0.3s ease-in-out;
  }
  body.open .sidenav {
    transform: translateX(0);
  }
  body.open #main, body.open #topbar {
    margin-left: 300px;
  }
  div.profile {
    width: 80vw;
    height: 80vw;
    position: absolute;
    left: calc((100% - 80vw) / 2);
    top: calc(10vw + 180px);
    border: none;
    z-index: 0;
  }
  div.profile::after, div.profile::before {
    background: none;
  }
  .cell {
    padding: 18px 14px 10px 14px;
  }
}

.slideshow-container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  height: 300px;
  margin-top: 40px;
}

.slideshow {
  width: calc(50% - 10px); /* Subtracting half the gap */
  position: relative;
  overflow: hidden;
}

.slideshow img {
  display: none;
  width: 100%;
  height: 100%; 
  object-fit: contain;
}

.slideshow img.active {
  display: block;
}

/* Clover + Stem */
.stem-line {
  width: 3px;
  height: 285px;
  background-color: #f7b8a7;
}

.clover-icon {
  margin-top:-35px;
  width: 100px;
  height: 100px;
}

.clover-stem-fixed {
  position: absolute;
  top: 0;
  left: -24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  z-index: 10;

  /* Animation setup */
  opacity: 0;
  transform: translateY(-50px);
  animation: slideDown 0.8s ease-out forwards;
  animation-delay: 0.2s;
}

@keyframes slideDown {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media screen and (max-width: 340px) {
  body.open #topbar #menu {
    position: fixed;
    right: 15px;
    top: 15px;
  }
}

@media screen and (max-height: 540px) {
  .social-icons {
    position: relative;
    top: 30px;
  }
}