
:root {
    /* --grad: linear-gradient(to right, #B993D6 0%, #8CA6DB  51%, #B993D6  100%); */
    --grad: linear-gradient(to right, #b083d3 0%, #6a86bf  100%);
  }

  * {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    box-sizing: border-box;
    border: 0;
    margin: 0;
    padding: 0;
    outline: 0;
    user-select: none;
    -webkit-user-drag: none;
  }

  html, body {
    width: 100%;
    height: 100%;
    background-color: #222222;
    overflow-x: hidden;
  }

  #up {
    width: 50px;
    height: 50px;
    position: fixed;
    display: none;
    bottom: 20px;
    right: 20px;
    background-color: #222222b0;
    padding: 10px;
    border-radius: 50%;
    z-index: 3;
    cursor: pointer;
  }

  .header {
    height: 60px;
    width: 100%;
    position: fixed;
    z-index: 2;
    background-color: rgba(34, 34, 34, 0.69);
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
  }

  .header > div {
    width: 100%;
    height: 100%;
    max-width: 1000px;
    position: relative;
  }

  .header > #brk {
    width: 100%;
    height: 2px;
    position: absolute;
    background: var(--grad);
    bottom: -1px;
    max-width: none;
  }

  .logo {
    position: absolute;
    left: 15px;
    top: 15px;
    width: 30px;
    height: 30px;
    background-color: #2e2d2d;
    border-radius: 50%;
  }

  .nav {
    position: absolute;
    right: 0;
    text-align: right;
  }

  .nav > a {
    color: white;
    text-decoration: none;
    line-height: 60px;
    margin-right: 20px;
    float: left;
    cursor: pointer;
  }
 
  body > div {
    position: relative;
    width: 100%;
    /* background-color: rgb(94, 94, 94); */
    z-index: 1;
  }

  .section {
    position: relative;
    /* border: 2px solid red; */
    
  }

  #top {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 300px;
    padding-bottom: 200px;
  }

  #top > #center {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  #center > p {
    color: white;
    text-align: center;
  }

  #top > #center > #im {
    width: 100px;
    height: 100px;
    background-color: #2e2d2d;
    border-radius: 50%;
  }

  #top > #center > #main {
    /* @keyframes duration | easing-function | delay |
iteration-count | direction | fill-mode | play-state | name */
    font-size: 30px;
    opacity: 0;
    animation: 1s forwards 0s fadeIn;
  }

  #top > #center > #sub {
    font-size: 16px;
    opacity: 0;
    animation: 1s forwards 500ms fadeIn;
  }

  #top > #center > #sub.secondary {
    color: rgb(177, 177, 177);
  }

  #top > #center > #btns > button {
    width: 40px;
    height: 40px;
    border-radius: 5px;
    padding: 8px;
    margin: 10px;
    color: white;
    background-image: var(--grad);
    background-size: 200% auto;
    transition: 0.5s;
    cursor: pointer;
    opacity: 0;
    animation: 1s forwards 1000ms fadeIn;
  }
  
  #top > #center > #btns > button:hover {
    background-position: right center;
  }
  
  #top > #center > #btns > button > img {
    height: 100%;
    width: 100%;
  }

  #top > #center > #ctfWriteups {
    width: 150px;
    height: 40px;
    border-radius: 5px;
    padding: 8px;
    margin: 10px;
    color: white;
    background-image: var(--grad);
    background-size: 200% auto;
    transition: 0.5s;
    cursor: pointer;
    opacity: 0;
    animation: 1s forwards 1000ms fadeIn;
    font-size: 16px;
    font-weight: 600;
  }
  
  #top > #center > #ctfWriteups:hover {
    background-position: right center;
  }
  
  #skills {
    height: 600px;
    padding-top: 100px;
    opacity: 0;
  }

  #glow {
    position: absolute;
    top: 0;
    width: 100%;
    filter: blur(80px);
  }

  #skills > #banner {
    position: absolute;
    width: 120%;
    height: 400px;
    rotate: -5deg;
    margin-left: -10%;
    background-image: var(--grad);
    background-size: 200% auto;
  }

  #skills > #content {
    position: absolute;
    top: 175px;
    width: 100%;
    height: 250px;
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: center;
  }

  #skills > #content > #labels {
    width: 20%;
    height: 100%;
    color: white;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    justify-content: center;
    gap: 40px 20px;
    color: rgb(225, 225, 225);
  }



  #skills > #content > #labels > p {
    cursor: pointer;
  }

  #skills > #content > #labels > .active {
    color: white;
  }

  #skills > #content > #labels > .active::before {
    content: "[ ";
  }

  #skills > #content > #labels > .active::after {
    content: " ]";
  }

  #skills > #content > #labels > p:hover:not(.active) {
    color: rgb(239, 236, 236);
  }


  #skills > #content > #labels > p {


  }


  #skills > #content > #items {
    width: 50%;
    height: 100%;
    color: white;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
  }

  #skills > #content > #items > div {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    justify-content: center;
    flex-basis: 100%;
    gap: 30px;
  }

  #skills > #content > #items > div.active {
    animation: fadeIn 1s ease;
    display: flex;
  }

  #skills > #content > #items > div.inactive {
    animation: fadeOut 1s ease;
    display: none;
  }

  @keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
  }
  @keyframes fadeOut {
      from {opacity: 1;}
      to {opacity: 0; display: none;}
  }

  #skills > #content > #items > div > div {
    width: 80px;
    height: 50px;
    text-align: center;
  }

  #skills > #content > #items > div > div > img {
    height: 80%;
  }

  #skills > #content > #items > div > div > p {
    height: 20%;
    color: rgb(201, 201, 201);
  }

  
  @media screen and (max-width: 600px) {
    #skills > #content > #labels {
      font-size: 3vw;
    }
    #skills > #content > #items {
      font-size: 2vw;
    }
  }

  #projects {
    margin-left: auto;
    margin-right: auto;
    width: 80%;
    max-width: 1000px;
    padding-top: 100px;
    padding-bottom: 100px;
    height: auto;
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    justify-content: center;
    gap: 50px;
  }

  #projects > p {
    color: white;
    font-size: 30px;
  }

  #projects > #proj {
    opacity: 0;
    width: 100%;
    height: 300px;
    /* border: 2px dashed white; */
    background-size: 200% auto;
    
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: center;
    gap: 30px;
  }

  #projects > #proj > div#display {
    display: flex;
    flex-flow: row;
  }

  #projects > #proj > div#display > #controls {
    width: 35px;
    height: 100%;
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
  }

  #projects > #proj > div#display > #controls > div {
    width: 10px;
    height: 10px;
    padding: 0px;
    margin: 0px;
    background-color: rgb(144, 144, 144);
    border-radius: 50%;
    cursor: pointer;
  }

  #projects > #proj > div#display > #controls > div.current {
    background-color: white;
  }

  #projects > #proj:nth-of-type(2n) > #display {
    order: 1;
  }
  #projects > #proj:nth-of-type(2n) > #info {
    order: 2;
  }



  #projects > #proj > div {
    width: 100%;
    height: 100%;
    padding: 10px;
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    justify-content: center;
  }

  #projects > #proj > #info {
    /* order: 1; */
    /* border: 1px solid red; */
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }

  #projects > #proj > #info > #pName {
    color: white;
    width: 100%;
    font-weight: bold;
    font-size: 16px;
  }
  
  #projects > #proj > #info > #techs {
    color: white;
    width: 100%;
    display: flex;
    flex-flow: row wrap;
    gap: 15px;
  }

  #projects > #proj > #info > #techs > div {
    background-image: var(--grad);
    padding: 5px;
    padding-left: 15px;
    padding-right: 15px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 500;
  }

  #projects > #proj > #info > #mainDesc {
    color: white;
    width: 100%;
    font-size: 14px;
  }
  #projects > #proj > #info > #subDesc {
    color: white;
    width: 100%;
    font-weight: lighter;
    font-size: 12px;
  }



  /* <p id="pName"></p>
  <div id="techs"></div>
  <p id="mainDesc"></p>
  <p id="subDesc"></p> */

  #projects > #proj > #display {
    /* order: 2; */
    /* border: 1px solid blue; */
  } 

  #projects > #proj > #display > img{
    width: calc(100% - 35px);
  }

  #projects > #break {
    width: calc(80% - 20px);
    height: 5px;
    border-top: 5px dotted white;
    display: none;
  }

  #contact {
    height: auto;
    padding-top: 100px;
    padding-bottom: 100px;
  }
  
  #contact > div {
    padding: 100px;
    width: 100%;
    height: 500px;
    background-image: var(--grad);
    background-size: 200% auto;
    display: flex;
    flex-flow: row;
    align-items: center;
    justify-content: center;
    gap: 50px;
  }



  #contact > div > div {
    width: 100%;
    height: 100%;
    background-color: #22222286;
    padding: 20px;
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    max-width: 450px;
  }

  #contact > div > #gen {
    align-items: start;
    justify-content: start;
    gap: 20px;
    background-color: transparent;
  }
  
  #contact > div > #gen > #cont {
    background-color: #22222286;
    padding: 5px 10px;
    color: white;
    border-radius: 5px;
  }

  #contact > div > #gen > #large {
    font-size: 30px;
    font-weight: bold;
  }

  #contact > div > #gen > #sub {
    font-size: 14px;
  }
  

  #contact > div > div > p{
    color: white;
    font-size: 18px;
  }

  #contact > div > div  > #infos {
    width: 100%;
    height: 100%;
    display: flex;
    flex-flow: column;
    justify-content: space-between;
    padding: 10px 0px;
    gap: 10px;
  }

  #contact > div > div  > #infos > #info {
    color: white;
    font-size: 12px;
  }

  #contact > div > div  > #infos > #info > input {
    width: 100%;
    padding: 5px;
    background-color: transparent;
    border-bottom: 2px solid white;
    color: white;
    padding-left: 0px;
  }

  #contact > div > div  > #infos > #info > input::placeholder {
    color: white;
  }

  #contact > div > div  > #message {
    width: 100%;
    color: white;
    font-size: 12px;
    display: block;
    height: 100%;
    padding: 10px 0px;
  }

  #contact > div > div  > #message > textarea {
    width: 100%;
    height: 100%;
    resize: none;
    padding: 5px;
    background-color: transparent;
    border: 2px solid white;
    color: white;
  }

  #contact > div > div  > #message > textarea::placeholder {
    color: white;
  }

  #contact > div > div > button {
    background: var(--grad);
    color: white;
    padding: 10px 40px;
    cursor: pointer;
    width: 100%;
  }


  .error {
    animation: shake 0.2s ease-in-out 0s 3;
}

@keyframes shake {
    0% {
        margin-left: 0rem;
    }

    25% {
        margin-left: 0.2rem;
    }

    75% {
        margin-left: -0.2rem;
    }

    100% {
        margin-left: 0rem;
    }
}

  ::-webkit-scrollbar {
    display: none;
  }

  @keyframes slideInLeft {
    0% {
      transform: translateX(-100%);
    }
    100% {
      transform: translateX(0);
    }
  }

  @keyframes slideInRight {
    0% {
      transform: translateX(100%);
    }
    100% {
      transform: translateX(0);
    }
  }

  @keyframes fadeIn {
    0% {
      opacity: 0;
    }
    100% {
      opacity: 1;
    }
  }
  @keyframes fadeOut {
    0% {
      opacity: 1;
    }
    100% {
      opacity: 0;
    }
  }

  #pLabel {
    opacity: 0;
  }

  .fadeIn {
    animation: 1s both 0s fadeIn;
  }
  .fadeOut {
    animation: 1s both 0s fadeOut;
  }


#imgDisplayer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100;
  background-color: rgba(34, 34, 34, 0.69);
  padding: 50px;
  display: none;
  flex-flow: column;
  justify-content: center;
  align-items: center;
}

#imgDisplayer > img {
  width: 100%;
}


@media screen and (max-width: 800px) {
  #projects > #proj {
    flex-flow: column nowrap;
    justify-content: unset;
    height: unset;
  }
  #projects > #proj:nth-of-type(2n) > #display {
    order: 2;
  }
  #projects > #proj:nth-of-type(2n) > #info {
    order: 1;
  }

  #projects > #break {
    display: block;
  }

 
  
#projects > #proj > #display > img{
  width: 100%;
}
#projects > #proj > div#display {
  display: flex;
  flex-flow: column;
  height: calc(100% - 35px);
}

#projects > #proj > div#display > #controls {
  width: 100%;
  height: 35px;
  flex-flow: row;
}

#projects > #proj:nth-of-type(2n) > #display {
  order: 2;
}
#projects > #proj:nth-of-type(2n) > #info {
  order: 1;
}

#contact > div {
  min-height: fit-content;
  height: fit-content;
  flex-flow: column;
  padding: 50px 20px;
}

#contact > div > div {
  gap: 0px;
}

#contact > div > #gen {
  order: 1;
}

#contact > div > #form {
  order: 2;
}

}