@import url('https://fonts.cdnfonts.com/css/pf-tempesta-seven');
body{
    height: 100%;
    margin-right: 10%;
    margin-left: 10%;
    justify-content: center; /* Centers horizontally */
    align-items: center;     /* Centers vertically */
    font-family: 'PF Tempesta Seven', sans-serif;
    background-color: #0A0E15;
    color: whitesmoke;
    display:grid;
    
}


/*----------------Header----------------*/
header{
    text-align: left;
    display: inline-flex;
    padding-bottom: 50px;

}

header > * {
    margin-bottom: 1px;
    margin-top: 0%;
    padding-top: 1px;
    position:static;
}

header > div{
    width: 50%;
    margin-bottom: 1px;
}

header > div > h1{
    font-size: 50px;
    margin-top: 20px;
    margin-bottom: 0%;
}

header > :first-child{
    margin: 0%;
    width: 70%;
}

header > :nth-child(2) > img{
    border-radius: 50%;
    width: 300px;
    height:300px;
    margin-top: 1px;
    margin-right: 3%;
    padding-top: 1px;
    filter:sepia(50%)
    
}
header > :nth-child(2){
    margin: 0;
    display: flex;
    justify-content: center; /* Centers horizontally */
    align-items: center;     /* Centers vertically */
}

/*----------------Type Effect----------------*/
.paper{
    text-align: left;
    display: inline-block;
}

.t1{
    margin-right: 9px;
    margin-bottom: 0;
    font-size: 20px;
}
.t2{
    margin: 0;
    margin-right: -9px;
    padding: 0;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;		     	
    border-right: 15px solid black; 	
    width: 0;
    animation:  typingDeleting 10s steps(20) infinite,
                blink 0.7s step-end infinite;
    font-size: 20px;
}


@keyframes typingDeleting {
    0% { width: 3%; }
    30% { width: 100%; }      /* Typing done at 3s */
    60% { width: 100%; }      /* Hold for 3s (from 3s to 6s) */
    90% { width: 3%; }         /* Deleting from 6s to 9s */
    100% { width: 3%; }        /* Reset for next cycle */
}

@keyframes blink {
    0%, 100% { border-color: white; }
    50% { border-color: transparent; }
}



/*workplace*/
.bod{
  margin: 0;
  width: 1000px;
  display: flex;
  flex-direction: row-reverse;
  min-height: 500px;

}


/* Sidebar navigation */
nav {
  width: 200px;
  background-color: #f0f0f0;
  padding-top: 1em;
  display: flex;
  flex-direction: column;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

nav a {
  padding: 1em;
  text-decoration: none;
  color: #333;
  border-left: 5px solid transparent;
}

nav a:hover {
  background-color: #ddd;
}

nav a:hover::before{
    content: ">";
}


/* Main content area */

.page {
  display: none;
  padding: 2em;
  flex: 1;
}

.page:target {
  display: block;
  background-color:#ddd;
  color: black;
}

.bod:not(:has(:target)) #home {
  display: block;
  background-color: #ddd;
  color: black;
}

#work span p{
  margin-top: 0;
}
#work span h3{
  margin-bottom: 0;
}


/* Active link highlight */
#home:target ~ nav a[href="#home"],
#education:target ~ nav a[href="#education"],
#contacts:target ~ nav a[href="#contacts"],
#proj:target ~ nav a[href="#proj"],
#work:target ~ nav a[href="#work"],
.bod:not(:has(:target)) nav a[href="#home"] {
  background-color: #ddd;
}

/* Active link arrow prefix */
#home:target ~ nav a[href="#home"]::before,
#education:target ~ nav a[href="#education"]::before,
#contacts:target ~ nav a[href="#contacts"]::before,
#proj:target ~ nav a[href="#proj"]::before,
#work:target ~ nav a[href="#work"]::before,
.bod:not(:has(:target)) nav a[href="#home"]::before {
  content: "-->";
  margin-right: 0px;
}


footer{
  justify-content: center; /* Centers horizontally */
  margin: auto;
  margin-top: 100px;
}