@import url("https://fonts.googleapis.com/css2?family=Roboto+Mono&display=swap");

body {
  font-family: "Roboto Mono", monospace;
  
  font-size: 20px;
  padding: 1em;
  line-height: 1.5;
}

* {
  box-sizing: border-box;
}

.container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "canvus main";
  height: 95%;
  width: 95%;
  position: absolute;
  left: calc(50% - 47.5%);
  top: calc(50% - 47.5%);
  border: 1px solid;
  border-radius: 2px;
  padding: 1rem;
  grid-gap: 5rem;
  overflow: hidden;
}

.canvus {
  grid-area: canvus;
}

section.intro {
  grid-area: main;
  width: 35ch;
  padding-top: 1rem;
}

.name {
  font-size: 2em;
  border: 4px solid;
  background: #fc0;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
}
.name:hover {
  background: rgb(206, 200, 175);
}

ul a {
  text-decoration: none;
}
ul {
  list-style-type: none;
  margin: 0;
  padding: 1em;
  padding-left: 0;
}
ul li {
  display: inline-block;
  margin: 1em;
  margin-left: 0;
}

@media (max-width: 1100px) {
  .container {
    grid-template-columns: 1fr;
    grid-template-areas:
      "main"
      "canvus";
    box-shadow: none;
  }

  body {
    font-size: 16px;
  }
  canvas {
    display: none;
  }

  .about-container{
    grid-template-columns: 1fr;
    grid-template-areas: "avatar" "about";
  }
}

.mountainOne {
  position: absolute;
  height: 0;
  width: 0;
  border-left: 2rem solid transparent;
  border-right: 4rem solid transparent;
  border-bottom: 4rem solid #fc0;
  bottom: 0;
  right: 13rem;
}

.mountainOne::before {
  content: "";
  position: absolute;
  height: 0;
  width: 0;
  border-left: 1rem solid transparent;
  border-right: 1rem solid transparent;
  border-bottom: 1rem solid rgb(241, 87, 134);
  left: -3.4rem;
  top: 3rem;
}

.mountainTwo {
  position: absolute;
  height: 0;
  width: 0;
  border-left: 8rem solid transparent;
  border-right: 4rem solid transparent;
  border-bottom: 6rem solid #2196f3;
  bottom: 0;
  right: 5rem;
}

.mountainThree {
  position: absolute;
  height: 0;
  width: 0;
  border-left: 4rem solid transparent;
  border-right: 3rem solid transparent;
  border-bottom: 3rem solid hotpink;
  bottom: 0;
  right: 0rem;
}

/* About Page */
.about-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  grid-template-areas: "avatar about";
  height: 95%;
  width: 95%;
  position: absolute;
  left: calc(50% - 47.5%);
  top: calc(50% - 47.5%);
  border: 1px solid;
  border-radius: 2px;

}

img.avatar {
  height: 100%;
  width: 100%;
  object-fit: cover;
}


.about-me {
  grid-area: about;
  width: 100%;
  height: 100%;
  position: absolute; 
  padding: 1rem;
  text-overflow: ellipsis;
}

@media (max-width: 1100px) {
  .container {
    grid-template-columns: 1fr;
    grid-template-areas:
      "main"
      "canvus";
    box-shadow: none;
  }

  body {
    font-size: 16px;
  }
  canvas {
    display: none;
  }

  .about-container{
    grid-template-columns: 1fr;
    grid-template-areas: "avatar" "about";
  
  }
}

svg{
  transition: all 0.2s;
}

svg:hover{
  fill: #2196f3;
  animation: shake 0.5s ease;
}

@keyframes shake{  
  from,to{
    transform: rotate(0deg);
  }
  20%{transform: rotate(-40deg);}
  40%{transform: rotate(40deg);}
  60%{transform: rotate(-40deg);}
  80%{transform: rotate(40deg);}
}

.icon-dev{
  transition: all 0.2s;
}

.icon-dev:hover{
  background: #2196f3;
  animation: shake 0.5s ease;
}