:root {
  --main-radius: 5px;
  --main-padding: 40px;
  --main-box-shadow: 10px 10px 10px 2px rgba(5, 3, 32, 0.493);
}
/* #rgb(252, 222, 103)  yello */
/* rgb(90, 205, 246) blue */
/* #030e12; black*/
body {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  background-color: rgb(235, 231, 217);   
  font-family: "Comic Sans MS", "Comic Sans", "Comic Neue", "Verdana", "Geneva", "Tahoma", "sans-serif";
  font-size: 1vw;
  color: #030e12;
  font-weight: bold;
}

.container {
  box-sizing: content-box;
  /* GRID TEMPLATE AREAS */
  display: grid;
  height: min-content;
  width: 100vw;

  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-template-rows: min-content 0.5fr 0.1fr 0.5fr 0.5fr 1fr;
  grid-template-areas:
    "nav nav nav nav" 
    "profile profile smallimage smallimage" "skills skills skills skills"
    "project1 project1 project2 project2" "project3 project3 project4 project4 "
    "contact contact contact contact";
  row-gap: 3rem;
  column-gap: 2rem;
}

.menu {
  background-color: rgb(77, 110, 231);
   grid-area: nav;
   height: min-content;
   position: sticky;
  top: 0;
  z-index: 10;
}

.menu ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu ul li {
  margin: 0;
}

.menu ul li a {
  display: inline-block;
  text-decoration: none;
  color: #030e12;
  padding: 20px 40px;
  font-size: 1.5vw;
}
a {
    text-decoration: none;
    color: black;
}
.menu ul li a:hover {
  color: rgb(214, 230, 124);
  background-color: rgb(27, 48, 231);
}

#bigimage {
  grid-area: bigimage;

}

#profile {
  grid-area: profile;
  border-radius: var(--main-radius);
  padding: var(--main-padding);
  /* box shadow  */
  box-shadow: var(--main-box-shadow);
  animation-name: myanim;
  animation-duration: 3s;
  animation-timing-function: linear;
  animation-fill-mode: alternate;
  animation-iteration-count: infinite;
  margin-left: 80px;
  margin-right: 40px;
}

@keyframes myanim {
  0% {
    background-color: rgb(236, 209, 119);
  }

  25% {
    background-color: rgb(245, 209, 119);
  }

  50% {
    background-color: rgb(233, 168, 39);
  }

  75% {
    background-color: rgb(245, 209, 119);
  }

  100% {
    background-color: rgb(235, 209, 119);
  }
}
.hover {
  /* how long should take the whole transformation in seconds */
  transition: transform 0.5s;
}
#profile img:hover {
  transform: scale(1.2, 1.2);
}
.hover:hover {
  /* how big the item should be when hovered scale/  */
  transform: scale(1.05, 1.05);
  z-index: 1;
}
#smallimage {
  grid-area: smallimage;
  border-radius: var(--main-radius);
  padding: var(--main-padding);
  
}

.typed {
  overflow: hidden;
  white-space: nowrap; /* Keeps the content on a single line */
  width: 0; /* Gives that scrolling effect as the typing happens */
  animation: typing 3s steps(30, end) forwards;
  animation-delay: 1s;
  margin: 10px 100px;
  font-size: 1vw;
  padding: 0;
}

.typed2 {
  overflow: hidden;
  white-space: nowrap; /* Keeps the content on a single line */
  width: 0; /* Gives that scrolling effect as the typing happens */
  animation: typing 3s steps(30, end) forwards;
  animation-delay: 5s;
  margin: 10px 150px;
  font-size: 1vw;
  padding: 0;
}
/* The typing effect change an element’s width from 0 to 100% */
@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 50%;
  }
}

#skills {
  background-color: rgba(230, 226, 171, 0.753);
  grid-area: skills;
  border-radius: var(--main-radius);
  box-shadow: var(--main-box-shadow);
  text-align: center;
  margin-left: 80px;
  margin-right: 80px;
}
#skill {
  list-style-type: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  padding: 10px 40px;
}

.proimages {
  border-radius: 5px 5px 0 0;
  padding: 0;
  width: 100%;
}
.description {
  padding: 30px;
}
#project1 {
  background-color: rgba(220, 182, 241, 0.808);
  grid-area: project1;
  border-radius: var(--main-radius);
  box-shadow: var(--main-box-shadow);
  margin-left: 80px;
  margin-right: 40px;
}

#project2 {
  background-color: rgba(164, 231, 156, 0.719);
  grid-area: project2;
  border-radius: var(--main-radius);
  box-shadow: var(--main-box-shadow);
  margin-right: 80px;
  margin-left: 40px;
}

#project3 {
  background-color: rgba(99, 102, 248, 0.712);
  grid-area: project3;
  border-radius: var(--main-radius);
  box-shadow: var(--main-box-shadow);
  margin-left: 80px;
  margin-right: 40px;
}

#project4 {
  background-color: rgba(158, 23, 34, 0.719);
  grid-area: project4;
  border-radius: var(--main-radius);
  box-shadow: var(--main-box-shadow);
  margin-right: 80px;
  margin-left: 40px;
}

#contact {
  grid-area: contact;
  border-radius: var(--main-radius);
  padding: var(--main-padding);
  text-align: center;
}

.form-text {
  width: 30vw;
  height: 2vw;
  font-size: 1.5vw;
  box-shadow: var(--main-box-shadow);
}

.form-label {
  font-size: 2vw;
}

#message-area {
  height: 20vw;
}

#form-button {
  font-size: 1.5vw;
  width: 6vw;
  height: 3vw;
  color: white;
  background-color: rgb(192, 47, 78, 0.9);
  border-radius: var(--main-radius);
  cursor: pointer;
}

#back-to-top-image {
  border-radius: 40px;
  width: 4vw;
  display: block;
  /* margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
    margin-bottom: 0px; */
  margin: 20px auto 0px auto;
}
#stickyimg {
  border-radius: 5px;
  width: 8vw;
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1;
  margin-right: 20px;
  margin-top: 500px;
  z-index: 100;
}

footer {
  color: grey;
  text-align: center;
}
.side-nav {
  position: fixed;
  z-index: 1;
  background-color: rgba(92, 8, 8, 0.973);
  padding-top: 30px;
  top: 0;
  left: 0;
  transition: 0.5s;
  /* hidden  */
  width: 0;
  overflow-x: hidden;
  height: 100vh;
}

.side-nav li {
  list-style: none;
  margin: 0;
}

.side-nav a {
  text-decoration: none;
  padding: 30px 30px 10px 0px;
  font-size: 3vw;
  display: block;
  color: white;
}

.side-nav a:hover {
  color: black;
}

.side-nav .closebtn {
  position: absolute;
  top: -25px;
  left: 130px;
  font-size: 30px;
}

.nav-small a {
  text-decoration: none;
}
.nav-small {
  /* font-size: 50px; */
  cursor: pointer;
  position: absolute;
  top: 10px;
  left: 15px;
  font-size: 8vw;
  padding: 10px 15px 20px auto;
}

/* MEDIA QUERIES */
/* SMALL SCREENS */
@media only screen and (min-width: 100px) and (max-width: 599px) {
  body {
    background-color: rgb(168, 213, 235);
    font-size: 3vw;
    
  }
  .container {
    width: 98vw;
    grid-template-columns: 1fr;
    grid-template-rows: 0.1fr 0.5fr 0.5fr 0.5fr 0.5fr 0.5fr 0.5fr 0.5fr;
    grid-template-areas:
      "nav-small" "profile" "skills" "project1"
      "project2" "project3" "project4" "contact";
  }

  nav,
  #smallimage,
  #bigimage {
    display: none;
  }
  #project1,
  #project2,
  #project3,
  #project4,
  #profile,
  #skills {
    margin: auto 30px;
  }
  .form-label {
    font-size: 4vw;
  }

  #message-area {
    height: 50vw;
  }
  .form-text {
    width: 60vw;
    height: 6vw;
    font-size: 4vw;
  }
  #form-button {
    font-size: 3vw;
    width: 14vw;
    height: 5vw;
  }
  #back-to-top-image {
    width: 8vw;
  }
 


}

@media only screen and (min-width: 600px) and (max-width: 899px) {
  body {
    background-color: rgb(194, 223, 140);
    font-size: 1.5vw;
  }
  .container {
    width: 100vw;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 0.3fr 0.5fr 0.5fr 0.5fr 0.5fr 0.5fr 0.5fr 0.5fr;
    grid-template-areas:
      "nav nav nav" "profile profile smallimage" "skills skills skills" "project1 project1 project1"
      "project2 project2 project2" "project3 project3 project3" "project4 project4 project4" "contact contact contact";
  }

  #project1,
  #project3 {
    margin-left: 80px;
    margin-right: 200px;
  }
  #skills,
  #project2,
  #project4 {
    margin-right: 80px;
    margin-left: 200px;
  }

  .form-text {
    width: 40vw;
    height: 4vw;
  }

  #bigimage,
  .nav-small,
  .side-nav,
  #smallimage,
  #stickyimg {
    display: none;
  }
}

@media (min-width: 900px) {
  .side-nav,
  .nav-small,
  #stickyimg {
    display: none;
  }
}
