*,
body {
  --mainblue: rgb(21, 177, 230);
  --maingray: rgb(69, 69, 69);
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  list-style: none;
  text-decoration: none;
  scroll-behavior: smooth;
  font-family: "Playfair Display", serif;
}

.section {
  min-height: 100vh;
  padding: 100px;
}

.green {
  color: rgb(19, 230, 19);
  /* color: var(--mainblue); */
  /* padding: 50px; */
}

.blue {
  color: var(--mainblue);
}

/*Header*/

#header {
  background-image: url("codingBG.jpg");
  background-size: cover;
  position: relative;
  text-align: left;
}

#header h1 {
  width: 300px;
  font-size: 75px;
  color: white;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

#header a {
  color: green;
  border: 3px solid green;
  background-color: rgba(255, 255, 255, 0.658);
  border-radius: 3px;
  padding: 20px;
  font-size: 30px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: background-color 0.2s linear, border-color 0.2s linear;
}

#header a:hover {
  background-color: white;
  border-color: white;
  box-shadow: black 0px 0px 200px;
}

a,
p {
  font-family: "Open Sans", sans-serif;
}
nav {
  background-color: var(--mainblue);
  display: flex;
  align-items: center;
  padding: 10px 100px;
  position: sticky;
  top: 0;
  border-bottom: 5px solid var(--maingray);

  z-index: 10;
}

nav h2 {
  color: white;
}

nav ul {
  display: flex;
  margin-left: 100px;
}

nav li {
  padding: 5px;
  margin-right: 20px;
}

nav li a {
  color: white;
  font-size: 24px;
}

.section h1 {
  font-size: 64;
  text-align: center;
  margin-bottom: 30px;
}

.aboutTop {
  text-align: center;
  padding: 40px;
  font-size: 24px;
  width: 80%;
  margin: auto;
}

.aboutTop img {
  width: 400px;
  border-radius: 50%;
  background-color: var(--mainblue);
  margin-bottom: 20px;
}

.aboutBottom {
  display: flex;
  justify-content: space-around;
  padding: 40px;
}

.hobby {
  text-align: center;
  width: 30%;
  height: 300px;
  padding: 40px;
  background-color: var(--maingray);
  border-radius: 10px;
  color: white;
  border-bottom: 7px solid var(--mainblue);
}

.hobby i {
  font-size: 120px;
  color: var(--mainblue);
  margin-bottom: 20px;
}

/*Projects*/

#projects {
  background-color: rgb(228, 228, 228);
}

myprojects {
  width: 90%;
  margin: auto;
  text-align: center;
}

.project {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px;
}

.projectText {
  flex: 1;
  margin: auto 40px;
}

.projectText h2 {
  color: var(--mainblue);
  font-size: 36px;
  margin-bottom: 10px;
  border-bottom: 2px solid var(--maingray);
}

.projectText p {
  font-size: 20px;
}

.screen {
  width: 400px;
  position: relative;
}

.screen img {
  width: 100%;
  /* padding-top: 25px; */
}

.screenimg {
  /* background-color: red; */
  background-size: cover;
  background-position: center;

  position: absolute;
  width: 305px;
  height: 195px;
  top: 8px;
  left: 48px;
  border-radius: 3px;

  display: flex;
  justify-content: center;
  align-items: center;
}

.screenimg i {
  font-size: 80px;
  color: var(--mainblue);
  opacity: 0;

  transition: opacity 0.2s linear, transform 0.2s linear;

  transform: translateX(-10px);
}

.screen:hover i {
  opacity: 1;
  transform: translateX(0px);
}

#pizzasrus {
  background-image: url("pizzasRUs.png");
}

#teamgoat {
  background-image: url("teamGoat.png");
}

#teslablog {
  background-image: url("teslaBlog.png");
}

/*Skills*/

#skills {
  padding: 100px 0;
}

.skillsContainer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 600px;
  position: relative;
}

.skill {
  width: 25%;
  display: flex;
  justify-content: center;
}

.skill img {
  width: 70%;
}

.skillsBackground {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: var(--mainblue);
  z-index: -1;
  transition: background-color 0.2s linear;
}

#html:hover ~ .skillsBackground {
  background-color: rgb(194, 80, 31);
}

#css:hover ~ .skillsBackground {
  background-color: rgb(65, 110, 210);
}

#scratch:hover ~ .skillsBackground {
  background-color: rgb(231, 109, 9);
}

#python:hover ~ .skillsBackground {
  background-color: rgb(213, 235, 13);
}

.skillsContainer p {
  position: absolute;
  bottom: 20px;
  width: 100%;
  text-align: center;
  font-size: 34px;
  color: white;
  display: none;
}

#html:hover ~ #htmltext {
  display: block;
}

#css:hover ~ #csstext {
  display: block;
}

#scratch:hover ~ #scratchtext {
  display: block;
}

#python:hover ~ #pythontext {
  display: block;
}

/*Levels*/

.skillScale {
  display: flex;
  flex-direction: column;
  width: 80%;
  margin: auto;
}

.levels {
  display: flex;
  justify-content: space-between;
}

.level {
  font-size: 30px;
}

.graph {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 100%;
  height: 400px;
  margin-top: 50px;
  position: relative;
}

.bar {
  height: 60px;
  display: flex;
  justify-content: flex-end;
  padding-right: 40px;
  color: white;
  font-size: 40px;
}

.bar.beg {
  width: 33%;
}

.bar.int {
  width: 66%;
}

.bar.exp {
  width: 100%;
}

.bar.first {
  background-color: rgb(194, 80, 31);
}

.bar.seccond {
  background-color: rgb(65, 110, 210);
}

.bar.third {
  background-color: rgb(231, 109, 9);
}

.bar.fourth {
  background-color: rgb(213, 235, 13);
}

.marker {
  position: absolute;
  width: 4px;
  height: 100%;
  background-color: var(--mainblue);
  z-index: -1;
}

.marker.seccond {
  left: 33%;
}
.marker.third {
  left: 66%;
}
.marker.fourth {
  left: 100%;
}

/*Footer*/

footer {
  height: 100px;
  background-color: var(--mainblue);
  color: white;
  text-align: center;
}

footer ul {
  display: flex;
  justify-content: center;
  margin: auto;
}

footer li {
  padding: 20px;
}

footer a {
  color: white;
}

/*IPad and lower style.css*/

@media (max-width: 1130px) {
  .section {
    padding: 30px;
  }

  #header {
    text-align: center;
    padding: 50px;
  }

  #header h1 {
    font-size: 40px;
    width: auto;
    transform: none;
    position: static;
  }

  nav {
    flex-direction: column;
    padding: 10px 0;
  }

  nav ul {
    margin: 0;
  }

  nav li a {
    font-size: 20px;
  }

  .aboutTop {
    padding: 0;
    width: 100%;
    font-size: 16px;
  }

  .aboutTop img {
    width: 100%;
  }

  .aboutBottom {
    flex-direction: column;
    padding: 0;
  }

  .hobby {
    width: 100%;
    height: auto;
    margin: 10px auto;
  }

  .project {
    flex-direction: column;
    margin: 0;
    padding: 10px;
  }

  #projects {
    overflow: hidden;
  }

  .projectText {
    margin: 0;
    margin-bottom: 80px;
  }
  .screenimg {
    margin-bottom: 0;
  }

  .reverse {
    flex-direction: column-reverse;
  }

  .skillsContainer {
    flex-direction: column;
  }

  .skill {
    width: 100%;
    margin-bottom: 100px;
  }

  .skillsContainer p {
    font-size: 16px;
  }

  .level {
    font-size: 16px;
  }

  .bar {
    font-size: 20px;
    padding-right: 10px;
  }

  .skill img {
    width: 50%;
  }

  .skill {
    padding-top: 50px;
  }
}

