/*
  STYLE GUIDE STYLING 
  Default styling for the style guide 
*/

:root{
  --light-purple: #EBE0FD;
  --purple: #9A62F6;
  --dark-purple: #4D317B;
  --cocoa-brown: #241615;
  --white: #FFFFFF;
  --gray: #dddbdb;
  --dark-gray: #484747;
}

/* 
  GENERAL ELEMENTS -------------------
*/

body {
  font-family: Helvetica, sans-serif;
  padding: 2rem;
  background-color: var(--white);
}

header, nav, footer{
  background-color: var(--white);
}

section:not([id]) {
  margin: 1em 0;
  padding: 0.5em 0;
  border-top: 1px solid #333;
}

section code {
  background-color: var(--gray);
  padding: 0.6rem;
  display: block;
  max-width: 100%;
}

p{
  color: var(--cocoa-brown);
}



/* 

  INTERACTIVE ELEMENTS -------------------
*/


/*------Navigational button---------*/

.learn-more-button{
  background-color: var(--purple);
  color: var(--white);
  border: none;
  padding: 0.8rem 2rem;
  font-size: 1.1rem;
  transition: background-color 0.3s ease;
}

.learn-more-button:hover{
  background-color: var(--dark-purple);
  cursor: pointer;
}

/*------In-text link------*/
a{
  color: var(--light-purple);
  transition: color 0.3s ease;
  font-size: 1.5rem;

  &:hover{
    color: var(---dark-purple);
  }
  
}

/*------Image as a link------*/

.image-nav{
  width: 200px;
  height: auto;
  transition: 0.3s ease;

  &:hover{
    transform: scale(1.05);
  }
}

/* 
  TEXT ELEMENTS -------------------
*/

ul li{
  margin-bottom: 2.5rem;
  line-height: 1.5rem;
}


/* 
  COMBINED ELEMENTS -------------------
*/


.nav-links {
  display: flex;
  list-style: none;
  gap: 35px; 
  transition: left 0.2s ease;
  
  a{
    text-decoration: none;
  }

  li{

  }
}





.context{
  width: 100%;
  padding-left: 2rem;
  padding-top: 0.5rem;

  td{
    line-height: 1.25rem;
  }

  td:first-of-type{
    font-weight: bold;
    font-size: 1rem;
    color: var(--purple);
  }

  td:last-of-type{
    font-size: 0.75rem;
  }
}

tr{
  display: block;
}

.project-section-title{
  color: var(--purple);
  font-size: 1rem;
  padding-bottom: 0.2rem;
  padding-top: 2rem;
}

.two-images{
  width: 500px;
  margin: auto;
  display: flex;
  justify-content: center;
  margin-top: 3.5rem;
}

figcaption{
  color: var(--dark-gray);
  width: 100%;
  text-align: center;
  opacity: 0.5;
  margin-top: 0.5rem;
}
/* 
  BIO ELEMENTS -------------------
*/

#bio{
  display: flex;
  width: 110%;
  margin-top:-1rem;
  margin-left:-2.5rem;
  justify-content: center;
  align-items: center;
}

.bio-image img{
  width: 300px;
  height: auto;
  animation: slideInLeft 0.5s forwards;
  border-radius: 20px;

} 

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.bio-description{
  margin-top: 1.5rem;
  margin-left: 4rem;
  width: 40%;
  padding-bottom: 1.5rem;
  animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bio-name{
  font-size: 1.4rem;
}

.bio-quote{
  font-size: 2rem;
  line-height: 2rem;
}

.bio-detail{
  line-height: 1.5rem;
}

#contact-me{
  width: 100%;
  text-align: center;
  background-color: var(--white);
  color: var(--white);
  padding-top: 4rem;
}

.contact-container{
  display: flex;
  margin: auto;
  justify-content: center;
}

.contact-information{
  display: flex;
  margin-left: 2.5rem;
}

.image-icon{
  width: 30px;
  height: auto;
  margin-top: 0.7rem;
  margin-right: 0.9rem;
}

#phone-icon{
  height: 30px;
}

/* 
  BRAND COMPONENT ELEMENTS -------------------
*/

h1{
   font-size: 44px;
   font-weight: 800;
   color: var(--purple);
   /* border: solid 5px orange; */
}

h2{
  font-size: 36px;
  /* border: solid 5px purple; */
  color: var(--purple);
}

h3{
  font-size: 28px;
  /* border: solid 5px red; */
  line-height: 2.5rem;
}

h4{
  /* border: solid 5px blue; */
  font-size: 20px;
}

p{
  /* border: solid 5px green; */
  font-size: 16px;
  font-weight: 100;
  line-height: 1.4rem;
  color: var(--cocoa-brown);
}

h1,h2{
  font-family: Roboto, sans-serif;
}

h3, h4, p{
  font-family: Helvetica, sans-serif;
}

.typography, .color-palette{
  margin-left: 4rem;

}
.typography:nth-child(-n + 7){
  border-bottom-style: solid;
  padding-top: 20px;
  border-color: var(--purple);
  width: 85%;
}

.rect{
  width: 80%;
  height: 5rem;
}

.rect1{
  background-color: var(--seljuk-blue);
}

.rect2{
  background-color: var(--drift-on-the-sea);
}

.rect3{
  background-color: var(--cocoa-brown);
}

.rect4{
  background-color: var(--white);
  border: 1px solid black;
}

.color-text{
  margin-bottom: 5rem;
}

.imagery{
  img[src="image/seniowell-phone.png"]{
    width: 200px;
  }

  img[src="image/persona.png"]{
    width: 400px;
  }

  img[src="image/profile.png"]{
    width: 300px;
  }

  img{
    height: auto;
    margin-right: 2rem;
  }
}
