@import url("https://fonts.googleapis.com/css2?family=Kalam:wght@300&family=Montserrat:wght@100&family=Space+Mono&display=swap");
/* #0861d8 good color for full stack developer */
@font-face {
  font-family: "handwriting";
  src: url("./assets/Sticky\ Notes.ttf");
}
:root {
  --font-handwriting: "handwriting";
  --font-space: "Space Mono", monospace;
  --font-mont: "Montserrat", sans-serif;
  --font-small: "Quintessential", cursive;
  --highlight-color: #ffff24;
  --white-color: #fff;
  --black-color: #000000;
  --ball-color: #0087ca;
  --cursor-color: #2696E8;
  --cards-container: #9fdfff;
  --light-oc:rgb(8 ,253 ,216);
  --dark-oc:rgb(255 ,34 ,83);
  --font-test1: "Kalam", cursive;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;

}


body {
  font-family: var(--font-space);

}
body::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
body::-webkit-scrollbar-thumb {
  background: var(--light-oc);
  border-radius: 10px;
  box-shadow: inset 2px 2px 2px rgb(8 ,253 ,216), inset -2px -2px 2px var(--light-oc);
}

body::-webkit-scrollbar-track {
  background: linear-gradient(90deg,#201c29,#201c29 1px,#17141d 0,#17141d);
}




.github-corner:hover .octo-arm {
  animation: octocat-wave 560ms ease-in-out
}

@keyframes octocat-wave {

  0%,
  100% {
    transform: rotate(0)
  }

  20%,
  60% {
    transform: rotate(-25deg)
  }

  40%,
  80% {
    transform: rotate(10deg)
  }
}

@media (max-width:500px) {
  .github-corner:hover .octo-arm {
    animation: none
  }

  .github-corner .octo-arm {
    animation: octocat-wave 560ms ease-in-out
  }
}


nav {
  height: 10vh;
  background-color: var(--white-color);

  width: 100%;
}

.nav-links {
  display: flex;
  list-style: none;
  width: 50%;
  height: 100%;
  justify-content: space-around;
  align-items: center;
}

.nav-links li a {
  color: var(--black-color);
  text-decoration: none;
  font-size: 1.4rem;
  position: relative;
}

.nav-links li a::before {
  content: "";
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--black-color);
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
}
.nav-links li a:hover::before {
  transform: scaleX(1);
  transform-origin: bottom left;
}

@media screen and (max-width: 750px) {
  .line {
    width: 30px;
    height: 3px;
    background-color: var(--black-color);
    margin: 5px;
  }
  .burger-menu {
    position: absolute;
    left: 20px;
    top: 25px;
    z-index: 9999999;
  }
  nav {
    position: relative;
  }
  .nav-links li {
    opacity: 0;
  }
  .nav-links li a {
    color: var(--white-color);
    text-decoration: none;
    font-size: 1.4rem;
  }
  .nav-links li:nth-child(1) {
    transition: 0.5s ease-in 0.2s;
  }
  .nav-links li:nth-child(2) {
    transition: 0.5s ease-in 0.4s;
  }
  .nav-links li:nth-child(3) {
    transition: 0.5s ease-in 0.6s;
  }
  .nav-links {
    position: fixed;
    width: 100%;
    height: 100%;
    flex-direction: column;
    background: #171b22;
    clip-path: circle(100px at 200% -10%);
    -webkit-clip-path: circle(100 at 90% -10%);
    transition: all 1s ease-out;
    pointer-events: none;
    z-index: 999;
  }
  li.fade {
    opacity: 1;
  }
  .nav-links.open {
    clip-path: circle(1200px at 90% -10%);
    -webkit-clip-path: circle(1200px at 90% -10%);
    pointer-events: all;
    background-color: #0087ca;
  }

  #container-about-overide {
    display: flex;
    justify-content: center;
  }

  .play-btn{
    display: none;
  }
  #work-container{
    display: flex;
    flex-direction: column;
    align-items: center;
    align-content: center;
    justify-content: center;
    gap: 90px;
    padding: 30px;
    text-align: center;
  }


}



/* about me section */
.about-container {
  display: grid;
}

.container-about {
  height: 100vh;
  background-color: #6495ed;
  display: grid;
  grid-template-columns: 1fr 1.04fr 1fr;
  grid-template-rows: 1fr 20fr 1fr;
  gap: 0px 0px;
  grid-auto-flow: row;
  grid-template-areas:
    "about-container about-container something"
    "about-container about-container something"
    ". . .";
}

.svg-grid-container {
  grid-area: about-container;
}

.section-about {
  grid-area: something;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}


h2{
  font-size: clamp(1.3rem, 2vw, 2.1rem);
}
.color-highlight {
  color: var(--highlight-color);
}
.html-tag {
  font-family: var(--font-test1);
  color: #515152;
  position: absolute;
}

.contact-btn {
  cursor: pointer;
  outline: none;
  background-color: var(--white-color);
  position: relative;
  border: none;
  border-radius: 5px;
  width: 100%;
  height: 4rem;
  margin-top: 9px;
  padding: 5px;
  font-size: 1.4rem;
  transition: 0.5s ease-out;
}
.contact-btn:hover,
.contact-btn:focus {
  box-shadow: 0.4em 0.5em 0.5em -0.4em var(--black-color);
  transform: translateY(-0.25em);
}

.container-book {
  position: relative;
  height: 100vh;
  overflow-x: hidden;
}

.center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.page {
  width: 400px;
  height: 600px;
  padding: 30px;
  background: var(--white-color);
  border-left: 30px solid cornflowerblue;
  transform: rotate(-10deg) skewX(1deg) scale(0.8);
  transition: 700ms;
  box-shadow: -50px 50px 50px rgba(0, 0, 0, 0.5);
}

.page h2 {
  margin: 0 0 20px 0;
  padding: 0;
  text-align: center;
  font-size: 2.9rem;
  font-family: var(--font-handwriting);
}
.page:hover {
  transform: rotate(0deg) skewX(1deg) scale(0.8);
}

.page:before {
  content: "Abdulaziz Alsunaydi";
  writing-mode: vertical-rl;
  text-orientation: mixed;
  text-align: center;
  font-size: 1.4rem;
  width: 30px;
  height: 100%;
  background: white;
  position: absolute;
  top: 0;
  left: 0;
  transform: skewY(-45deg) translate(-57px, -43px);
}

.page:after {
  content: "IPA";
  text-align: center;
  width: 106%;
  height: 30px;
  background: #ccc;
  position: absolute;
  bottom: 0;
  left: 0;
  transform: skewX(-45deg) translate(-11px, 30px);
}



/* courses and game section */
.cards-container {
  height: 100vh;
  background-color: var(--cards-container);
  position: relative;
}
.top-cards {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60%;
  gap: 2px;
}
.down-cards {
  display: flex;
  gap: 2px;
  justify-content: center;
  align-items: center;
  height: 30%;
  position: relative;
  bottom: 200px;
}
.card {
  border-radius: 5px;
  width: 300px;
  height: 130px;
  text-align: center;
  background-color: var(--white-color);
}


/* ? static game only to view not to play that shows courses l take in my diploma. */
.game-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

}

/* ? brick breaking game container */
.container-game{
 display: none;
 place-items: center;
  width: 100%;
  height: 100vh;
  background-color: var(--cards-container);
 position: relative;
}
.grid-game{
 position: absolute;
 width: 560px;
  height: 300px;
  border: solid black 1px;
}
.block{
  position: absolute;
  width: 100px;
  height: 20px;
  background-color: #0087ca;
  left: 50px;
  bottom: 50px;
}
.user{
  position: absolute;
  width: 100px;
  height: 20px;
  background-color: var(--black-color);
  left: 50px;
  border-radius: 10px;
  bottom: 50px;
}

.ball{
  position:absolute ;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--cursor-color);
}
.ball-static {
  font-size: 1.5rem;
  position: relative;
  color: var(--ball-color);
  animation: ballMoving 1.3s ease-in-out 0s infinite;
}
.platform {
  display: flex;
  background-color: var(--black-color);
  width: 100px;
  height: 9px;
  border-radius: 10px;
}


@keyframes ballMoving {
  0% {
    transform: translateY(8px);
  }
  50% {
    transform: translateY(-260px);
  }
  100% {
    transform: translateY(8px);
  }
}


.play-btn{
  cursor: pointer;
    position: absolute;
    background-color: var(--white-color);
    left: 50%;
    margin-left: -70px;
    top: 10%;
    padding: .5rem;
    width:9rem;
    font-size: 1.1rem;
    z-index: 9999;
   border: none;
   outline: none;
   border-radius: 10px;
   white-space: nowrap;
   touch-action: manipulation;
   -webkit-transition: all 0.2s ease-in;
-moz-transition: all 0.2s ease-in;
-o-transition: all 0.2s ease-in;
transition: all 0.2s ease-in;
}
.play-btn:hover{
  box-shadow: inset 0 3px 0 0 var(--ball-color);

}



/* skills section */

.skills-container { 
   display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0px 0px;
  text-align: center;
  grid-auto-flow: row;
  grid-template-areas:
    "languages languages languages"
    "languages languages languages";
    background-color: rgb(30, 30, 30);
}



.skills { grid-area: languages; }


.ul-skills{
  list-style-type: none;
  padding: 20px;
  color: white;
  
 margin: calc(310px - 20px) 0;
 padding: 30px;
}
.front-end-bar{
  position: relative;
  padding: 20px;
  text-align: start;
  font-size: 1.8rem;
  margin-bottom: 90px;
}

.front-end-bar::after{
  content: "";
  position: absolute;
 animation: front-end 2s ease-in forwards;
  height: 6px;
  bottom: 0;
  left: 0;
  background-color: var(--light-oc);
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
  border-radius: 10px;
}
.back-end-bar{
  position: relative;
  padding: 20px;
  text-align: start;
  font-size: 1.8rem;
}
.back-end-bar::after{
  content: "";
  position: absolute;
 animation: back-end 2s ease-in forwards;
  transform: scaleX(1);

  height: 6px;
  bottom: 0;
  left: 0;
  background-color: var(--dark-oc);
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
  border-radius: 10px;
}

.gray-bar::before{
  content: "";
  position: absolute;
  width: 100%;
  transform: scaleX(1);
  height: 6px;
  bottom: 0;
  left: 0;
  background-color: rgb(55, 55, 55);
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
  border-radius: 10px;

}

@keyframes front-end {
  0%{width: 0%;}
  100%{width: 99%;}
}
@keyframes back-end {
  0%{width: 0%;}
  100%{width: 85%;}
}



/* work */

.work-container { 
   display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  grid-auto-columns: 1fr 1fr;
  grid-auto-rows: 1fr;
  gap: 0px 30px;
  grid-auto-flow: row;
  font-size: 1.8rem;
  padding: 30px 30px 30px 40px;
  grid-template-areas:
    "work1 work2 work3"
    "work4 work5 work6"
    "work7 work8 work9";
}

.work-container a, .work-container .work6{
  color: var(--ball-color);
  text-decoration: none;
  padding: 10px 10px 10px 40px;

}

.work1{grid-area: work1; }

.work2 { grid-area: work2;}

.work3 { grid-area: work3; }

.work4 { grid-area: work4; }

.work5 { grid-area: work5; }

.work6 { grid-area: work6; }




/* contact */
.email-h3{
  color: white;
   font-size: 23px;
   width: 0px;
   height: 0px;
}

@media only screen and (max-width:500px) {
  .email-h3{
    font-size: 16px;
  }
}

.contact-container{
  background-color: rgb(50, 50, 50);
  padding: 30px;
}
form { max-width:420px; margin:50px auto; }

.feedback-input {
  color:white;
  font-family: Helvetica, Arial, sans-serif;
  font-weight:500;
  font-size: 18px;
  border-radius: 5px;
  line-height: 22px;
  background-color: transparent;
  border:2px solid var(--dark-oc);
  transition: all 0.3s;
  padding: 13px;
  margin-bottom: 15px;
  width:100%;
  box-sizing: border-box;
  outline:0;
}

.feedback-input:focus { border:2px solid var(--light-oc); }

textarea {
  height: 150px;
  line-height: 150%;
  resize:vertical;
}

[type="submit"] {
  cursor: pointer;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  width: 100%;
  background:var(--dark-oc);
  border-radius:5px;
  border:0;
  cursor:pointer;
  color:white;
  font-size:24px;
  padding-top:10px;
  padding-bottom:10px;
  transition: all 0.3s;
  margin-top:-4px;
  font-weight:700;
}
[type="submit"]:hover { background:var(--light-oc); }


/* footer */


footer{
  clear: both;
  position: relative;
  
  margin-top: 0px;
  background-color: #494949;
  padding: 10px;
  color: var(--ball-color);
  text-align: center;
}