@import url('https://fonts.googleapis.com/css2?family=Montserrat&display=swap');

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
  list-style: none;
  text-align: center;
}

a {
	text-decoration: none;
	color: black;
}

a:hover {
	cursor: pointer;
	background: #EEEEEE;
}

.navbar-option a.selected {
		border-bottom: 2px solid lime;
}

.navbar-option a {
	color: black;
}

.navbar-option {
	padding: 10px;
}

.navbar-option:hover {
	background: #EEEEEE;
	cursor: pointer;
}

#navbar-more-icon {
	translate: 5px 1.25px;
	animation: rotate90anticlockwise 0.5s forwards;
}

#navbar-more-icon.showing-more {
	translate: 5px 1.25px;
	animation: rotate90 0.5s forwards;
}

#navbar-small-ul.closing {
	display: flex;
	animation: fadeOut 0.5s forwards;
}

#navbar-small-ul {
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	background: white;
	width: 100vw;
}

#navbar-small-ul.showing-more {
	display: flex;
	animation: fadeIn 0.5s forwards;
	box-shadow: inset 0 -5px 5px -5px #CCCCCC;
}

#navbar-small-ul li {
	width: 100vw;
	display: flex;
	align-items: center;
	justify-content: center;
}

#navbar-small-top {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  height: calc(10vh + 20px);
}

nav {
	height: calc(15vh + 20px);
  box-shadow: 0 0 5px #CCCCCC;
  display: flex;
	flex-direction: row;
	position: fixed;
	top: 0;
  width: 100vw;
  z-index: 1;
  background: white;
}

.panth-pic {
  height: min(50%, 250px);
  width: min(50%, 250px);
  margin-top: 20px;
  border: 5px solid black;
  border-radius: 50%;
}

.code-background {
	z-index: -1;
	width: 100%;
	height: 60vh;
	position: absolute;
	top: 0;
}

.white-background {
	z-index: -1;
	width: 100%;
	height: 100%;
	position: absolute;
	background: white;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow-x: hidden;
}

.contact-detail {
    height: 30px;
	display: flex;
	font-size: 15px;
	align-items: center;
	justify-content: center;
}

.contact-detail a {
	display: flex;
	align-items: center;
	justify-content: center;
}

.my-code-name {
    text-decoration: underline;
}

#my-code-container > div {
    padding: 10px;
}

#my-code-container > div:hover {
    background: #EEEEEE;
}

#my-code-container > div > a {
    border-bottom: 2px solid lime;
}

#my-code-container > h3 {
    margin-top: 35px;
}

.section {
	opacity: 0;
	filter: blur(5px);
	width: 100%;
	transform: translateX(-100%);
	margin: 0 -10px;
	transition: all 1s;
	display: flex;
}

.section:nth-child(odd) {
	flex-direction: row-reverse;
	transform: translateX(100%);
}

.section.visible {
	opacity: 1;
	filter: blur(0);
	transform: translateX(0);
	display: flex;
}

.section img {
	height: 100%;
	width: 50vw;
}

.section div {
	display: flex;
	width: 50vw;
	align-content: center;
	justify-content: center;
	flex-direction: column;
	position: relative;
}

.section div div {
	width: 100%;
	justify-content: flex-start;
	align-items: center;
	transition-delay: 1s;
	padding: 10px;
}

.section div a {
	position: absolute;
	bottom: 50px;
	left: 50%;
	translate: -50% 0;
	padding: 10px;
	border-bottom: 2px solid lime;
}

.section div div p {
	width: min(85%, 400px);
}

#about-me-root {
	width: 100%;
	display: flex;
  flex-direction: column;
}

#about-me-root div {
	width: 100%;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: center;
}

#about-me-text {
	margin: 0 10px;
	width: min(35vw, 400px);
}

.framework-starting-h1 {
	padding: 5px 0;
	margin-top: 10px;
	text-decoration: underline;
}

@keyframes rotate90 {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(90deg);
	}
}

@keyframes rotate90anticlockwise {
	0% {
		transform: rotate(90deg);
	}
	100% {
		transform: rotate(0deg);
	}
}

@keyframes fadeIn {
	0% {
		opacity: 0;
	}
	100% {
		opacity: 1;
	}
}

@keyframes fadeOut {
	0% {
		opacity: 1;
	}
	100% {
		opacity: 0;
	}
}

@media only screen and (max-width: 1000px) {
	nav {
		height: calc(10vh + 60px);
		flex-direction: column;
	}

	nav.showing-more {
		box-shadow: none;
	}

  #navbar-small-bottom {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 10px 0;
  }

  #navbar-small-bottom:hover {
    background: #EEEEEE;
    cursor: pointer;
  }

  #content {
    margin-top: calc(10vh + 60px);
    z-index: 0;
  }

  .white-background {
		top: calc(min(25vw, 125px) + 10vh + 85px);
  }
}

@media only screen and (min-width: 1000px) {
	nav {
		flex-direction: row;
	}

	#content {
    margin-top: calc(15vh + 20px);
    z-index: 0;
  }

  .white-background {
		top: calc(170px + 15vh);
  }

  .section div div h1 {
  	font-size: 2.5em;
  }

  .section div div p {
    font-size: 1em;
  }
}

@media only screen and (500px <= width <= 1000px) {
	.section div div h1 {
    font-size: 1.75em;
  }

  .section div div p {
    font-size: 1em;
  }

  .section div a {
    bottom: 10px;
  }
}

@media only screen and (max-width: 825px) {
	.section div div, .section img {
    width: 100%;
  }

  .section {
    flex-direction: column-reverse !important;
  }

  .section div {
    width: 100vw;
  }

  .section div a {
    bottom: 10px;
  }

  #about-me-text {
    width: min(85vw, 400px);
  }
}

@media only screen and (max-width: 500px) {
	.section div div h1 {
    font-size: 1em;
  }

  .section div div p {
    font-size: 0.75em;
  }
}

@media (prefers-reduced-motion) {
	.section {
		transition: none;
	}
}
