@import url('https://fonts.googleapis.com/css2?family=Outfit&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@800&display=swap');
:root {
	--primary-color:#f0ece2;
	--secondary-color: #c7b198;
	--dark-orange: #c24d2c;
	--dark-blue: #596e79;
	--white: #ffffff;
	--black: #000000;

}
* {
	box-sizing: border-box;
	margin: 0;
}

body {
	background-color: var(--primary-color);
	font-family: 'Outfit', sans-serif;
	height: 100vh;
}


.navbar{
	position: relative;
	display: flex;
	align-items: center;
	margin-top: 0;
	margin-left: auto;
	margin-right: auto;
	padding: 2% 5%;
	justify-content: space-around;
	border-bottom: 2px solid black;
	font-size: 20px;
}

.title {
	margin: 4% 15% 0;
	font-size: 4rem;
}
.big-title {
	position: relative;
	margin-bottom: 10%;
	font-family: 'Plus Jakarta Sans', sans-serif;
	color: var(--black);
}

.line {
	font-size: .5em;
	position: relative;
	width: fit-content;
	text-align: left;
	overflow: hidden; /* Ensures the content is not revealed until the animation */
	white-space: nowrap;
	margin:0 0 20% 0 ;
	border-right: .15em solid black;
	letter-spacing: .15rem;
	animation: typing 4s steps(45, end),
    blink-caret .5s step-end infinite;
	color: var(--black);

	
}

/* The typing effect */
@keyframes typing {
	from { width: 0 }
	to { width:85% }
  }
  
  /* The typewriter cursor effect */
  @keyframes blink-caret {
	from, to { border-color: transparent }
	50% { border-color: black }
  }

  /* Button nav bar */
  .about-btn {
	display: inline-block;
	min-width: auto;
	height: auto;
	background-color: var(--dark-orange);
	text-decoration: none;
	border: 3px solid var(--dark-orange);
	padding: 10px 20px;
	border-radius: 60px;
	cursor: pointer;
	color: var(--white);
	font-size: 20px;
	transition: 0.3s;
  }
  .about-btn:hover {
	border-radius: 10px;
	color: var(--black);
	
  }
  .main {
	background-color: var(--primary-color);
	display: flex;
	
  }

  .box {
	border: 3px solid black;
	border-radius: 20px;
	background-color: var(--secondary-color);
	width: 50%;
	margin: 4% 10% 6%;

  }
.title-about{
	height: auto;
	font-size: 2.5em;
	font-family: 'Plus Jakarta Sans', sans-serif;
	background-color: var(--primary-color);
	padding-left: 180px;
	color: var(--black);
}

h3 {
	padding: 10px 0 0 40px;
	font-size: 30px;
}

.text {
	font-size: 17px;
	position: relative;
	display: block;
	text-align: left;
	font-family: 'Outfit', sans-serif;
	width: fit-content;
	padding: 40px;

  }

.projects {
	white-space: normal;
	display: block;
	text-align: center;
	padding: 20px 20px 30px 20px;
	background-color: var(--secondary-color);
}
.paragraph{
	padding-top: 40px;
	padding-bottom: 5%;
	font-weight: 600;
	font-size: 35px;
}

.courses {
	background-color: var(--secondary-color);
	height:500px;
	display: grid;
	justify-content: center;
	grid-template-columns: repeat(2, 350px);
	align-content: space-around;
	gap: 3rem;
	
}
/* Part about courses */
.sub-title{
	background-color: var(--secondary-color);
	text-align: center;
	font-size: 35px;
	padding: 30px;
}

.course-title{
	font-size: 30px;
	
}
.underline {
	width: 40px;
	height: 1px;
	margin-bottom: 15px;
	border-bottom: 2px solid black;
}


footer {
	height: 250px;
	display: grid;
	justify-content: center;
	align-content: center;
	gap: 4px;
	grid-auto-flow: column;
	background-color: var(--dark-blue);
}

footer  a {
	margin: 20px;
	font-size: 30px;
	color: black;
	padding: 10px 14px;
	transition: all 100ms ease-in-out;
	background-color: white;
	border-radius: 50%;
	opacity: 0.6;
	transition: 0.3s;
}
footer a:hover {
	opacity: 1;
}

/* Back to the top scroll button */
button {
	display: none;
	cursor: pointer;
	position: fixed; 
	bottom: 20px;
	right: 30px;
	z-index: 1;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background-color: rgb(12, 12, 12);
	color: white;
	font-size: 15px;
	border: none;
  }
/* Meadi queries for mobiles */
@media only screen and (max-width: 390px) {

	.navbar{
		font-size: 10px;
	}
	.line {
		font-size: 7.5px;
	}
	.course-title{
		font-size: 20px;
		
	}
	.courses {
		width: 100%;
		height:100%;
		display: grid;
		justify-content: center;
		grid-template-columns: repeat(2, 150px);
		align-content: space-around;
		gap: 3rem;
		background-color: var(--secondary-color);
		
	}
	.title {
		margin: 4% 15% 0;
		font-size: 1rem;
	}
	.title-about{
		height: auto;
		font-size: 1em;
		font-family: 'Plus Jakarta Sans', sans-serif;
		padding-top: 5%;
		padding-left: 60px;
	}
	.main {
		display: grid;
	}


	.box {
		border: 3px solid black;
		border-radius: 20px;
		height: fit-content;
		width: 80%;
		margin: 4% 10% 6%;
	
	  }
  }