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

:root {
  --primary-color: #6e00b3;
  --secondary-color: black;
}

* {
  margin: 0;
  padding: 0;
}

html {
  font-family: "Roboto", sans-serif;
  height: 100%;
  width: 100%;
  overflow-y: scroll;
  overflow-x: hidden;
  -webkit-user-select: none;
  /* Safari */
  -moz-user-select: none;
  /* Firefox */
  -ms-user-select: none;
  /* IE10+/Edge */
  user-select: none;
  /* Standard */
}

img{
  -webkit-user-drag: none;
}

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

@media only screen and (min-width: 600px) {

  #my-local-time{
    position: absolute;
    top: 9%;
    left: -10%;
    background-color: var(--primary-color);
    color: white;
    padding: 1%;
    border-radius: 50px;
    cursor: default;
    transition: 200ms;
    z-index: 1;
    width: fit-content;
    height: 3vh;
    max-width: 8%;
    animation: slideInLocalTime 800ms;
    animation-delay: 300ms;
    animation-fill-mode: forwards;
  }

  #my-local-time img{
    filter: brightness(0) invert(1);
    height: 3vh;
    scale: 1.5;
    transition: 500ms;
  }

  #my-local-time:hover{
    height: fit-content;
    border-radius: 5px;
  }

  #my-local-time:hover #my-local-time-title{
    font-size: 2vh;
    transition: 200ms;
  }

  #my-local-time:hover #my-local-time-text {
    font-size: 5vh;
    transition: 200ms;
  }

  #my-local-time:hover img {
    scale: 0;
    opacity: 0;
    visibility: hidden;
    transition: 400ms;
  }

  @keyframes slideInLocalTime {
    0% {
      opacity: 0;
      left: -10%;
    }
    100% {
      opacity: 1;
      left: 0.5%;
      margin-left: 1%;
    }
  }

  #my-local-time-title{
    margin-bottom: 0;
    font-size: 0vh;
    text-align: center;
    transition: 250ms;
  }

  #my-local-time-text{
    margin-top: 1vh;
    font-size: 0vh;
    text-align: center;
    transition: 200ms;
  }

  #block-1 {
    background-color: black;
    height: 90vh;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
  }

  #b1-left-block,
  #b1-right-block {
    position: relative;
    grid-column: auto;
  }

  #b1-right-block-grid{
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(8, auto);
    grid-template-rows: repeat(8, auto);
    height: 100%;
    width: 100%;
  }

  #b1-right-block-grid div{
    /* border: 1px solid white; */
    height: 85px;
    width: 85px;
    grid-column: auto;
    transition: 500ms;
  }

  #b1-left-block #html_square {
    opacity: 0.7;
    position: absolute;
    right: 17%;
    top: 3%;
    scale: 0.6;
    animation: hovering1 1500ms infinite alternate;
    animation-timing-function: ease-in-out;
    animation-delay: 1500ms;
  }

  #b1-left-block #webpage_bug {
    opacity: 0.5;
    position: absolute;
    left: 10%;
    top: 55%;
    scale: 0.6;
    rotate: -27deg;
    animation: hovering2 1500ms infinite alternate;
    animation-timing-function: ease-in-out;
  }

  #b1-left-block #coding_laptop {
    opacity: 0.7;
    position: absolute;
    right: -5%;
    top: 45%;
    scale: 0.6;
    rotate: 15deg;
    animation: hovering3 1500ms infinite alternate;
    animation-timing-function: ease-in-out;
    animation-delay: 700ms;
  }

  @keyframes hovering3 {
    100% {
      top: 47%;
    }
  }

  @keyframes hovering2 {
    0% {
      top: 55%;
      opacity: 0.7;
    }
    100% {
      top: 57%;
      opacity: 0.5;
    }
  }

  @keyframes hovering1 {
    0% {
      top: 3%;
      opacity: 0.7;
    }
    100% {
      top: 5%;
      opacity: 0.5;
    }
  }

  #b1-right-block-coder {
    position: absolute;
    top: 19.7vh;
    scale: 0.8;
    opacity: 1;
    margin-top: 4vh;
    margin-left: 50vw;
    transition: 500ms;
    animation: slideInCoder 800ms;
    animation-delay: 300ms;
    animation-fill-mode: forwards;
  }

  @keyframes slideInCoder {
    0% {
      /* scale: 0; */
      opacity: 0;
    }
    100% {
      /* scale: 0.8; */
      opacity: 1;
      margin-left: 10vw;
    }
  }

  #b1-right-block-thinking-bubble{
    filter: brightness(0) invert(1);
    position: absolute;
    scale: 0;
    top: -15vh;
    left: 2vw;
    animation: zoomInThinkingBubble 500ms, thinkingBubbleHover 1500ms ease-in-out infinite alternate;
    animation-delay: 1000ms;
    animation-fill-mode: forwards;
  }

  @keyframes zoomInThinkingBubble {
    100%{
      scale: 0.4;
    }    
  }

  @keyframes thinkingBubbleHover {
    100%{
      top: -16vh;
    }
  }

  #thinking_bubble_text{
    z-index: 1;
    position: absolute;
    color: black;
    scale: 0;
    top: 17vh;
    left: 19vw;
    animation: zoomInThinkingBubbleText 500ms, thinkingBubbleHoverText 1500ms ease-in-out infinite alternate;
    animation-delay: 1000ms, 1000ms;
    animation-fill-mode: forwards;
  }

  @keyframes zoomInThinkingBubbleText {
    100%{
      scale: 2.5;
    }    
  }

  @keyframes thinkingBubbleHoverText {
    100%{
      top: 16vh;
    }
  }

  #b1-left-block-title {
    color: white;
    margin-left: 5vw;
    margin-top: 30vh;
    font-size: 4vw;
  }

  #my-name {
    background: linear-gradient(to right, var(--primary-color), #bf40bf);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
  }

  .auto-type {
    background: linear-gradient(to right, #bf40bf, var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  #block-2 {
    position: relative;
    padding-top: 4vh;
    height: 90vh;
    background-image: linear-gradient(to right, #bf40bf, var(--primary-color));
  }

  .lik-html-txt,
  .lik-css-txt,
  .lik-js-txt {
    color: white;
    font-weight: bolder;
    font-size: 1.5vw;
    margin-bottom: 2vh;
  }

  #lik-title{
    color: white;
    font-weight: bolder;
    font-size: 2vw;
    margin-top: -5vh;
    margin-bottom: 3vh;
  }

  #inner-div {
    background-color: #111;
    height: 82%;
    width: 80%;
    margin-left: 7.5vw;
    border-radius: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding-left: 5.5%;
  }

  #inner-div div {
    position: relative;
    background-color: #333;
    grid-column: auto;
    height: 80%;
    width: 80%;
    margin-top: 7vh;
    border-radius: 10px;
    overflow: hidden;
    scale: 0;
    cursor: default;
  }

  /* Add a class to trigger the animations */
  .inner-div-in-view #innerdiv-1 {
    animation: innerDivDivsZoomIn 800ms;
    animation-delay: 300ms;
    animation-fill-mode: forwards;
    transition: 500ms;
  }

  #innerdiv-1:hover{
    margin-top: 5vh;
    transition: 500ms;
  }
  
  .inner-div-in-view #innerdiv-2 {
    animation: innerDivDivsZoomIn 800ms;
    animation-delay: 600ms;
    animation-fill-mode: forwards;
    transition: 500ms;
  }

  #innerdiv-2:hover{
    margin-top: 5vh;
    transition: 500ms;
  }
  
  .inner-div-in-view #innerdiv-3 {
    animation: innerDivDivsZoomIn 800ms;
    animation-delay: 900ms;
    animation-fill-mode: forwards;
    transition: 500ms;
  }

  #innerdiv-3:hover{
    margin-top: 5vh;
    transition: 500ms;
  }

  @keyframes innerDivDivsZoomIn {
    0% {
      scale: 0;
    }
    100% {
      scale: 1;
    }
  }

  #img_html,
  #img_css,
  #img_js {
    height: 50%;
    position: absolute;
    left: 15%;
    top: 10%;
  }

  #img_dev_to {
    height: 40%;
    position: absolute;
    left: 15%;
    top: 15%;
  }

  #img_node_js {
    position: absolute;
    height: 20%;
    top: 77%;
    left: 15%;
  }

  #inner-div div h1 {
    margin-top: 88%;
  }

  #inner-div div p {
    position: absolute;
    color: white;
    left: 43%;
    top: 82.5%;
  }

  #block-3 {
    position: relative;
    height: fit-content;
    background-color: black;
    padding-bottom: 2%;
  }

  #block-3 h1{
    color: white;
    margin-left: 6vw;
    font-size: 7vh;
    margin-bottom: -2%;
    padding-top: 2%;
    opacity: 1;
  }

  #b3-content-div{
    height: 100%;
    width: 90%;
    margin: auto;
    padding-top: 1%;
    overflow: hidden;
  }

  #b3-content-div div{
    margin-top: 2%;
    font-size: 3.5vh;
    padding: 1%;
    height: fit-content;
    width: fit-content;
    color: grey;
    opacity: 0;
  }

  #b3-content-div p{
    display: none;
  }

  .b3-content-div-div{
    animation: b3-content-reveal 2s;
    animation-fill-mode: forwards;
  }

  @keyframes b3-content-reveal {
    100%{
      color: white;
      opacity: 1;
    }
  }

  #cm-card-title {
    position: absolute;
    color: white;
    font-weight: bolder;
    font-size: 1.5vw;
    margin-bottom: 2vh;
    top: 10%;
  }

  #contact-email-btn{
    position: absolute;
    top: 82%;
    left: 27%;
    background-color: #c2e7ff;
    padding: 10px 20px;
    border-radius: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    color: #001d35;
    /* border: 2px solid white; */
    border: none;
    font-size: 1.5vw;
    outline: none;
    scale: 1.2;
  }

  #contact-email-btn:hover{
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    transition: 200ms;
  }

  #contact-email-btn-clicked{
    background: none;
    outline: none;
    border: none;
    color: white;
    font-size: large;
    margin-top: 5%;
  }

  #contact-dev-to{
    position: absolute;
    top: 82%;
    left: 27%;
    background-color: rgb(59, 73, 223);
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    color: white;
    /* border: 2px solid white; */
    border: none;
    font-size: 1.5vw;
    outline: none;
    scale: 1.2;
  }

  #contact-dev-to:hover{
    background-color: rgb(47, 58, 178);
    transition: 200ms;
  }

  #contact-discord-text{
    background-color: #383d6b;
    outline: none;
    border: none;
    color: #4678d1;
    padding: 1.5%;
    padding-left: 2%;
    padding-right: 2%;
    border-radius: 7px;
    font-size: 4vh;
    margin-top: 0%;
    margin-left: -15%;
    cursor: pointer;
    transition: 200ms;
  }

  #contact-discord-text:hover{
    background-color: #5865f2;
    color: white;
    transition: 200ms;
  }

  #discord-profile{
    position: absolute;
    background-color: #111214;
    top: 5vw;
    left: 56vw;
    height: 70vh;
    width: 22vw;
    z-index: 1;
    border-radius: 20px;
    overflow: hidden;
    /* border: 1px solid #232528; */
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  }

  #dp-banner{
    background-color: #ffffff;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 22%;
  }

  #dp-pfp{
    position: absolute;
    top: 12%;
    left: 3%;
    border-radius: 50%;
    border: 5.8px solid #111214;
  }

  #dp-name{
    color: white;
    position: absolute;
    top: 32%;
    left: 5%;
    font-size: 1.8vw;
  }

  #dp-name-pronoun-name{
    color: white;
    position: absolute;
    top: 38.5%;
    left: 5%;
    font-size: 1.2vw;
  }

  #dp-name-pronoun-dot-spacer{
    position: absolute;
    top: 41%;
    left: 27%;
    height: 0.2vh;
    width: 0.2vh;
    scale: 5;
    border-radius: 50%;
    background-color: white;
  }

  #dp-name-pronoun{
    color: white;
    position: absolute;
    top: 38.5%;
    left: 30%;
    font-size: 1.2vw;
  }

  #dp-discord-badges{
    position: absolute;
    top: 24%;
    left: 58%;
    scale: 1.2;
    height: 4vh;
  }

  #dp-bio{
    color: white;
    position: absolute;
    top: 47%;
    left: 5%;
    font-size: 1.2vw;
  }

  #discord-ping{
    background-color: #383d6b;
    color: white;
    width: fit-content;
    padding: 1%;
    padding-left: 1%;
    padding-right: 1%;
    border-radius: 5px;
    font-size: 2vh;
    cursor: pointer;
    transition: 200ms;
  }

  #discord-ping:hover{
    background-color: #5865f2;
    transition: 200ms;
  }

  #dp-roles-text{
    color: white;
    position: absolute;
    top: 62%;
    left: 5%;
    font-size: 1.2vw;
  }

  #dp-discord-dev-role{
    position: absolute;
    top: 67%;
    left: 4%;
    font-size: 1.2vw;
    cursor: pointer;
  }

  #dp-buttons{
    position: absolute;
    top: 90%;
    left: 5%;
    width: 90%;
    height: fit-content;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3%;
  }

  #dp-open-discord-btn{
    background-color: #5865f2;
    outline: none;
    border: none;
    color: white;
    padding: 6%;
    border-radius: 3px;
    font-weight: bold;
    cursor: pointer;
    transition: 200ms;
  }

  #dp-open-discord-btn:hover{
    background-color: #4752c4;
    transition: 200ms;
  }

  #dp-copy-username{
    background-color: #4e5058;
    outline: none;
    border: none;
    color: white;
    padding: 6%;
    border-radius: 3px;
    font-weight: bold;
    cursor: pointer;
    transition: 200ms;
  }

  #dp-copy-username:hover{
    background-color: #6d6f78;
    transition: 200ms;
  }

  #contact-me-bottom-text{
    display: none;
  }

  #coming-soon{
    color: white;
    position: absolute;
    top: 45%;
    left: 38%;
    animation: cs-hovering 2000ms infinite alternate;
  }

  @keyframes cs-hovering {
    100%{
      top: 47%;
    }
  }

}

@media only screen and (max-width: 600px) {

  #my-local-time{
    overflow: hidden;
    position: absolute;
    top: -10vh;
    left: 55vw;
    transform: translate(-50%);
    background-color: transparent;
    color: white;
    padding: 1%;
    border-radius: 5px;
    cursor: default;
    transition: 200ms;
    z-index: 1;
    width: 35vw;
    animation: slideInLocalTime 800ms;
    animation-delay: 300ms;
    animation-fill-mode: forwards;
  }

  #my-local-time img{
    position: absolute;
    height: 3.5vh;
    padding-top: 2%;
    scale: 1;
    filter: brightness(0) invert(1);
    transition: 500ms;
  }

  #my-local-time-title{
    display: none;
    margin-bottom: 0;
    font-size: 2vh;
    text-align: center;
  }

  #my-local-time-text{
    font-size: 3.5vh;
    text-align: center;
  }

  /* #my-local-time:hover{
    scale: 1.05;
    transition: 200ms;
  } */

  @keyframes slideInLocalTime {
    0% {
      opacity: 0;
      top: -10vh;
    }
    100% {
      opacity: 1;
      top: 0%;
    }
  }
  
  #block-1 {
    background-color: black;
    height: fit-content;
    width: 100vw;
    overflow: hidden;
  }

  #b1-left-block {
    position: relative;
    grid-row: 1;
    height: 43vh;
    grid-column: auto;
  }

  #b1-right-block {
    position: relative;
    grid-row: 2;
    height: 40vh;
    grid-column: auto;
  }

  #b1-right-block-grid{
    position: absolute;
    top: -42vh;
    left: 0;
    display: grid;
    grid-template-columns: repeat(5, auto);
    grid-template-rows: repeat(5, auto);
    height: 100%;
    width: 100%;
    /* background-color: green; */
  }

  #b1-right-block-grid div{
    /* border: 1px solid white; */
    height: 75px;
    width: 77px;
    grid-column: auto;
    transition: 500ms;
    /* background-color: red; */
  }

  #b1-left-block #html_square {
    z-index: 1;
    /* opacity: 0.7; */
    opacity: 1;
    position: absolute;
    left: -5%;
    top: 0%;
    scale: 0.6;
    animation: hovering1 1500ms infinite alternate;
    animation-timing-function: ease-in-out;
    animation-delay: 1500ms;
  }

  #b1-left-block #webpage_bug {
    z-index: 1;
    /* opacity: 0.5; */
    opacity: 1;
    position: absolute;
    right: -10%;
    top: 50%;
    scale: 0.4;
    rotate: -27deg;
    animation: hovering2 1500ms infinite alternate;
    animation-timing-function: ease-in-out;
  }

  #b1-left-block #coding_laptop {
    z-index: 1;
    /* opacity: 0.7; */
    opacity: 1;
    position: absolute;
    right: -8%;
    top: 5%;
    scale: 0.4;
    rotate: 15deg;
    animation: hovering3 1500ms infinite alternate;
    animation-timing-function: ease-in-out;
    animation-delay: 700ms;
  }

  @keyframes hovering3 {
    100% {
      top: 10%;
    }
  }

  @keyframes hovering2 {
    0% {
      /* opacity: 0.7; */
    }
    100% {
      top: 55%;
      /* opacity: 0.5; */
    }
  }

  @keyframes hovering1 {
    0% {
      /* opacity: 0.7; */
    }
    100% {
      top: 5%;
      /* opacity: 0.5; */
    }
  }

  #b1-right-block img {
    z-index: 2;
    position: absolute;
    scale: 0;
    opacity: 0;
    top: -35vh;
    left: -15vw;
    transition: 500ms;
    animation: zoomInCoder 800ms;
    animation-delay: 300ms;
    animation-fill-mode: forwards;
    pointer-events: none;
  }

  @keyframes zoomInCoder {
    100% {
      /* top: -35vh; */
      scale: 0.6;
      opacity: 1;
    }
  }

  #b1-right-block-thinking-bubble{
    display: none;
  }

  #thinking_bubble_text{
    display: none;
  }

  #b1-left-block-title {
    z-index: 1;
    position: absolute;
    color: white;
    top: 65vh;
    left: 11vw;
    font-size: 5vh;
  }

  #my-name {
    background: linear-gradient(to right, var(--primary-color), #bf40bf);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
  }

  .auto-type {
    background: linear-gradient(to right, #bf40bf, var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  #block-2 {
    height: 90vh;
    background-image: linear-gradient(to right, #bf40bf, var(--primary-color));
  }

  #block-2 h1 {
    color: white;
    font-weight: bolder;
    font-size: 8vw;
    margin-bottom: 2vh;
  }

  #inner-div {
    background-color: #111;
    height: 84%;
    width: 80%;
    margin-left: 7.5vw;
    border-radius: 20px;
    padding-left: 8%;
    padding-top: 3vh;
  }

  #inner-div div {
    position: relative;
    background-color: #333;
    height: 20%;
    width: 90%;
    margin-top: 2vh;
    border-radius: 10px;
    overflow: hidden;
    scale: 0;
    transition: 500ms;
  }

  #inner-div div:hover{
    /* background: linear-gradient(to right, #bf40bf, var(--primary-color)); */
    background-color: var(--primary-color);
    border-radius: 0px;
    transition: 500ms;
  }

  /* Add a class to trigger the animations */
  .inner-div-in-view #innerdiv-1 {
    animation: innerDivDivsZoomIn 800ms;
    animation-delay: 300ms;
    animation-fill-mode: forwards;
  }

  .inner-div-in-view #innerdiv-2 {
    animation: innerDivDivsZoomIn 800ms;
    animation-delay: 600ms;
    animation-fill-mode: forwards;
  }

  .inner-div-in-view #innerdiv-3 {
    animation: innerDivDivsZoomIn 800ms;
    animation-delay: 900ms;
    animation-fill-mode: forwards;
  }

  @keyframes innerDivDivsZoomIn {
    0% {
      scale: 0;
    }
    100% {
      scale: 1;
    }
  }
  
  #img_html,
  #img_css {
    height: 60%;
    position: absolute;
    left: 5%;
    top: 21%;
  }

  #img_js {
    height: 60%;
    position: absolute;
    margin-left: -10%;
    top: 21%;
  }

  #img_dev_to {
    height: 45%;
    position: absolute;
    margin-left: 6%;
    top: 27%;
  }

  #contact-dev-to-title{
    padding-top: 11%;
  }

  .lik-html-txt,
  .lik-css-txt {
    margin-top: 17%;
    margin-left: 27vw;
    text-align: left;
  }

  .lik-js-txt{
    margin-top: 9%;
    margin-left: 27vw;
    text-align: left;
  }

  #img_node_js {
    position: absolute;
    height: 30%;
    top: 51%;
    left: 35%;
  }

  #inner-div div p {
    position: absolute;
    color: white;
    left: 50%;
    top: 51%;
  }

  #block-3 {
    position: relative;
    height: 83.5vh;
    background-color: black;
    overflow: hidden;
  }

  #block-3 h1{
    color: white;
    text-align: center;
    font-size: 5vh;
    margin-bottom: 3%;
    padding-top: 6%;
    opacity: 1;
  }

  #b3-content-div{
    height: 78%;
    width: 90%;
    margin: auto;
    overflow: hidden;
  }

  #b3-content-div div{
    margin-top: 2%;
    font-size: 3vh;
    padding: 1%;
    height: fit-content;
    width: fit-content;
    color: grey;
    opacity: 0;
  }

  #b3-content-div p{
    position: absolute;
    color: white;
    bottom: 3%;
    left: 35%;
    font-size: 3vh;
  }

  .b3-content-div-div{
    animation: b3-content-reveal 3s;
    animation-fill-mode: forwards;
  }

  @keyframes b3-content-reveal {
    100%{
      color: white;
      opacity: 1;
    }
  }

  #contact-email-btn{
    display: none;
  }

  #contact-dev-to{
    display: none;
  }

  #contact-discord-text{
    display: none;
  }

  #contact-me-bottom-text{
    color: white;
    width: 90%;
    text-align: center;
    margin-top: 25%;
  }

  #coming-soon{
    color: white;
    position: absolute;
    top: 45%;
    left: 10%;
    animation: cs-hovering 2000ms infinite alternate;
  }

  @keyframes cs-hovering {
    100%{
      top: 46%;
    }
  }

}