@import url(../styles/main.css);

body {
  background-color: var(--gray);
}

/* Header */
.header {
  width: 50%;
  margin: 1.5em auto 1.5em auto;
}

.header h1 {
  font-family: "Roboto Slab", serif;
  font-size: 1.6em;
  color: var(--soft-black);
  text-align: center;
}

/* Main */
main {
  display: grid;
  gap: 1.2em;
  grid-template-areas: "skills courses";
  grid-template-columns: 820px 380px;
  grid-auto-rows: auto;
  max-width: fit-content;
  max-width: -moz-fit-content;
  margin: 1.2em auto 1.2em auto;
}

/* Skills */
.skills {
  grid-area: skills;
  gap: 1.5em;
  display: flex;
  flex-direction: column;
}

.skill-head-lan,
.other-head {
  text-align: center;
  font-family: "Roboto Slab", serif;
  font-size: 1.3rem;
  font-weight: 600;
}

.skill-head-lan h3 {
  position: relative;
}

.skill-head-lan h3::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 26%;
  background: url("../images/language-photo.svg") no-repeat;
  background-size: cover;
  width: 80px;
  height: 52px;
}

.skill-lan {
  display: flex;
  flex-direction: column;
  gap: 1.5em;
}

.skill-count-lan {
  display: flex;
  flex-flow: row wrap;
  align-content: space-between;
  justify-content: center;
  row-gap: 1.5em;
  column-gap: 4em;
  padding: 1.5em;
  background-color: var(--light-blue);
  box-shadow: var(--shadow);
  border-radius: 5px;
}

.skill-item-lan {
  display: flex;
  gap: 0.3em;
  flex-direction: column;
}

.top-rect-lan {
  display: flex;
  justify-content: space-between;
  color: var(--white);
}

.rect-lan {
  height: 9px;
  width: 320px;
  background-color: #c4c4c4;
  position: relative;
  border-radius: 23px;
}

.rect-lan::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 9px;
  width: 320px;
  border-radius: 23px;
  background-color: #e0b35b;
}

.hebrew::before {
  width: calc(320px * 0.2);
}

.French::before {
  width: calc(320px * 0.2);
}

.English::before {
  width: calc(320px * 0.6);
}

/* Other Skills */
.others {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1em;
  line-height: 1.3em;
}

.other-skill {
  display: flex;
  flex-direction: column;
  gap: 1.2em;
}

.other-list {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  gap: 1em;
  width: 400px;
  padding: 1em;
  background-color: var(--light-blue);
  box-shadow: var(--shadow);
  border-radius: 5px;
  color: var(--white);
}

.other-item {
  display: flex;
}

.other-item span {
  padding-right: 0.5em;
  background-color: var(--light-yellow);
  background: linear-gradient(180deg, #13cc25 0%, #f5c86f 100%);
  background-clip: text;
  background-size: 100%;
  font-weight: 600;
  font-size: 1.1em;
  -webkit-background-clip: text;
  -moz-background-clip: text;
  -webkit-text-fill-color: transparent;
  -moz-text-fill-color: transparent;
}

/* Courses */
.courses {
  grid-area: courses;
  display: flex;
  flex-direction: column;
  border-radius: 5px;
  gap: 1.2em;
}

.course {
  background-color: #f5c86f;
  border-radius: 5px;
  padding-bottom: 0.6em;
  box-shadow: var(--shadow);
}

.course > .image {
  background-color: var(--light-blue);
  height: 163.2px;
  border-radius: 5px;
  margin-bottom: 1em;
}

.art-course {
  padding-left: 1em;
  padding-right: 1em;
  hyphens: auto;
  margin-bottom: 1em;
}

.art-course h3 {
  font-family: "Roboto Slab", serif;
  font-size: 1.1rem;
  margin-bottom: 1em;
}

.art-course p {
  font-size: 1rem;
  color: var(--soft-black);
  font-weight: 600;
}

.art-course + a {
  color: var(--white);
  background-color: var(--light-blue);
  font-weight: 600;
  font-family: "Roboto Slab", serif;
  padding: 0.5em;
  float: right;
  border-radius: 5px;
  margin-right: 0.5em;
  box-shadow: var(--shadow);
  border: 1px solid transparent;
}

.art-course + a:hover {
  color: var(--black);
  background-color: transparent;
  box-shadow: 0 0 0 0;
  border-color: var(--light-blue);
}

@media screen and (max-width: 1250px) {
  main {
    grid-template-columns: 820px;
    grid-template-areas:
      "skills"
      "courses";
    max-width: 820px;
    margin: 2em auto;
    gap: 5em;
  }
  .courses {
    flex-direction: row;
    flex-wrap: wrap;
    max-width: 850px;
    justify-content: center;
    position: relative;
  }
  .course {
    max-width: 398px;
  }

  .courses::before {
    content: "Courses";
    position: absolute;
    top: -82px;
    font-weight: 600;
    padding: 0.4em;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    background-color: #f5c86f;
    font-size: 1.5rem;
    margin: 0.5rem auto;
  }
  .image-in {
    display: none;
  }
  .header{
    display: none;
  }

}

@media screen and (max-width: 860px) {
  main {
    gap: 1.2em;
    grid-template-columns: 400px;
    max-width: 400px;
  }
  .skills {
    grid-template-columns: 400px;
    grid-template-rows: repeat(10, 320px) repeat(4, 240px);
  }
  .skills,
  .events {
    margin: 0 auto;
  }
  .courses {
    flex-direction: column;
    max-width: 400px;
  }
  .courses::before {
    position: static;
  }
  .skill-head-lan h3::before {
    left: 0%;
  }

}

@media screen and (max-width: 440px) {
  main {
    grid-template-columns: 300px;
    max-width: 300px;
  }
  .skills {
    grid-template-columns: 300px;
    grid-template-rows: 1fr;
  }
  .courses {
    max-width: 300px;
  }
  .skill-count-lan {
    width: 300px;
  }
  .rect-lan::before {
    width: 250px;
  }
  .rect-lan {
    width: 250px;
  }
  .hebrew::before {
    width: calc(250px * 0.2);
  }

  .French::before {
    width: calc(250px * 0.2);
  }
  .English::before {
    width: calc(250px * 0.6);
  }
  .other-list{
    width: 300px;
  }
  .skill-head-lan h3::before{
    display: none;
  }
}
