/* Main style */

:root {
    --main-color:rgb(72, 148, 42);
    --main-active-color:rgb(101, 173, 73);
    --bg-color: rgb(31, 31, 31);
    --theme-color: rgb(223, 223, 223);
    --theme-text: rgb(31, 31, 31);
    --txt-color: rgb(255,255,255);
    --font: Arial, Helvetica, sans-serif;
    height: 100%;
}

:root.light {
    --bg-color: rgb(240, 240, 240);
    --theme-color: rgb(31, 31, 31);
    --theme-text: rgb(223, 223, 223);
    --txt-color: rgb(31,31,31);
}

body {
  height: 100%;
  margin: 0;
  background-color: var(--bg-color);
}

.container {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100%;
}

.triangle {
  z-index: -1;
  width: 100%;
  height: 100%;
  position: absolute;
  clip-path: polygon(0 0, 15% 0, 25% 100%, 0% 100%);
  background-color: var(--main-color);
}

main {
  height: 100%;
  width: 80%;
}

nav {
  height: 100%;
  width: 20%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

nav button {
  background-color: var(--main-color);
  color: var(--txt-color);
  border: none;
  border-radius: 50px;
  padding: 10px;
  height: 70px;
  width: 70px;
  margin-right: 10px;
  margin-left: auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: width 0.3s ease, border-radius 0.3s ease;
  white-space: nowrap;
  cursor: pointer;
}

nav button:hover {
  width: 150px;
}

nav button:active {
  background-color: var(--main-active-color);
}

nav button > div:first-child {
  width: 0;
  overflow: hidden;
  transition: width 0.3s ease;
}

nav button:hover > div:first-child {
  width: 100px;
}

.theme-button {
  position: absolute;
  border-radius: 100%;
  border: none;
  text-align: center;
  align-content: center;
  top: 20px;
  right: 20px;
  background-color: var(--theme-color);
  color: var(--theme-text);
  width: 30px;
  height: 30px;  
}

.theme-button:hover {
  height: 50px;
  width: 50px;
  top: 10px;
  right: 10px;
  transition: width 0.3s ease, height 0.3s ease, top 0.3s ease, right 0.3s ease;
}

/* Main Page */
#home-main {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding-left: 10%;
  gap: 5%;
}

#home-main img {
  max-width: 60%;
  max-height: 40%;
  height: auto;
  width: auto;
  border-radius: 50%;
  background-color: var(--bg-color);
  object-fit: cover;
}

#home-main div {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  color: var(--txt-color);
  font-family: var(--font);
  font-size: xx-large;
  font-weight: bold;
}

#home-main div p {
  margin: 0px;
}

#home-main div p:nth-child(2) {
  font-size: large;
  text-align: right;
}

#home-main div p span {
  color: var(--main-color);
}

/* About Page */
#about-main {
  display: flex;
  flex-direction: column;
  gap: 5%;
  margin-top: 2%;
  margin-bottom: 2%;
}

h1{
  margin-left: auto;
  margin-right: auto;
  color: var(--txt-color);
  font-family: var(--font);
}

h1 span{
  color: var(--main-color);
  text-align: center;
}

h2 {
  color: var(--txt-color);
  font-family: var(--font);
  margin: 10px;
}

#about-main .info{
  margin-left: 10%;
  margin-right: 10%;
  display: flex;
  flex-direction: column;
  gap: 5%;
}

#about-main .info a{
  margin: 10px;
  background-color: var(--bg-color);
  color: var(--txt-color);
  border: 2px solid var(--main-color);
  border-radius: 25px;
  width: 200px;
  height: 50px;
  font-weight: bold;
  font-family: var(--font);
  text-decoration: none;
  text-align: center;
  align-content: center;
  transition: box-shadow 0.5s ease;
}

#about-main .info a:hover{
  box-shadow: inset -200px 0 0 0 var(--main-color);
  transition: box-shadow 0.5s ease;
}

#about-main .info a:active{
  box-shadow: inset -200px 0 0 0 var(--main-active-color-color);
  background-color: var(--main-active-color);
}

#about-main .grid{
  display: grid;
  grid-template-columns: auto auto auto;
  margin: 10px;
}

#about-main .info-box{
  border: 2px solid rgb(66, 66, 66);
  border-radius: 5px;
  margin: 5px;
  padding: 10px;
  width: 220px;
  height: 70px;
  font-family: var(--font);
}

#about-main .info-box h3{
  margin: 0px;
  padding-left: 10px;
  font-size: larger;
  color: var(--main-color);
}

#about-main .info-box p{
  color: var(--txt-color);
  font-size: larger;
  text-align: left;
  padding-left: 10px;
}

#about-main .info-box p::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 2px;
    background-color: rgb(66, 66, 66); 
    margin-right: 10px;
    vertical-align: middle;
}

/* Projects Page */
#projects-main {
  display: flex;
  flex-direction: column;
  gap: 5%;
  margin-top: 2%;
  margin-bottom: 2%;
}

#projects-main .grid{
  display: grid;
  grid-template-columns: repeat(3, min-content);
  margin: 10px;
  justify-content: center;
  align-items: center;
}

#projects-main .project-box{
  display: grid;
  width: 220px;
  line-height: 100px;
  text-align: center;
  text-decoration: none;
  font-family: var(--font);
  color: var(--txt-color);
  border: 2px solid rgb(66, 66, 66);
  border-radius: 5px;
  background-size: 220px 100px;
}

#projects-main .project-box > *{
  grid-area: 1/1;
  width: 100%;
  height: 100%;
  margin: 0px;
  padding: 0px;
}

#projects-main .project-box img{
  z-index: 1;
  transition: opacity 0.3s ease;
}

#projects-main .project-box h3{
  background-color: var(--main-color);
  align-content: center;
  text-align: center;
}

#projects-main .project-box:active h3{
  background-color: var(--main-active-color);
}

#projects-main .project-box:hover img{
  opacity: 0;
  transition: opacity 0.3s ease;
}


