:root{
  /* --mainColor:#f8f8f8;
  --secondryColor:rgb(21, 21, 21); */
  --mainColor: rgb(21,21,21);
  --secondryColor: rgb(248,248,248);
  --secondryborderColor: 248,248,248;
  --mainborderColor: 21,21,21;
  --opacity:0.1;
  --opacity3:0.3;
}

.loadingover{
  position: fixed;
  top: 0;
  left: 0;
  transform-origin: center;
  width: 100vw;
  height: 100vh;
  background-color: var(--secondryColor);
  z-index: 999999;
  box-shadow: 0 0 100px 145px var(--secondryColor);
}
.work.panel{
  height: fit-content !important;
}
.work{
  background-color: var(--mainColor);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  .worktitle{
    margin-bottom: 35px;
    margin-top: -18px;
    h1{
      color: var(--secondryColor);
      font-size: 18.5rem;
      font-weight: 700;
      margin-top: 3px;
      overflow: hidden;
      text-align: center;
      clip-path: polygon(0 0, 100% 0, 100% 91%, 0 91%);
      user-select: none;
      svg{
        width: 240px;
        position: relative;
        top: 18px;
        left: 0;
        margin-left: -18px;
        margin-right: -7px;
        path{
          fill: #fb3640;
        }
      }
    }
  }
}
@media (max-width: 1400px) {
  .work{
    .worktitle{
      h1{
        font-size: 15rem;
        svg{
          width: 215px;
          margin-left: -11px;
          margin-right: -5px;
          top: 25px;
        }
      }
    }
  }
}
@media (max-width: 1000px) {
  .work{
    .worktitle{
      margin-top: 15px;
      h1{
        font-size: 12rem;
        svg{
          width: 190px;
          margin-left: -3px;
          margin-right: -3px;
          top: 24px;
        }
      }
    }
  }
}
@media (max-width: 800px) {
  .work{
    .worktitle{
      h1{
        font-size: 9rem;
        svg{
          width: 140px;
          margin-left: -5px;
          margin-right: 0px;
          top: 18px;
        }
      }
    }
  }
}
@media (max-width: 600px) {
  .work{
    .worktitle{
      margin-top: 30px;
      h1{
        font-size: 5rem;
        svg{
          width: 80px;
          margin-left: 1px;
          margin-right: 2px;
          top: 11px;
        }
      }
    }
  }
}
/* card desc */

.carddesc{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 40px;
  color: var(--secondryColor);
  .latest{
    font-size: 1rem;
    font-weight: 200;
    letter-spacing: 3px;
    width: 66.66%;
    overflow: hidden;
  }
  .other{
    font-size: .9rem;
    font-weight: 200;
    letter-spacing: 3px;
    width: 33.33%;
    overflow: hidden;
  }
}
@media (max-width: 1000px) {
  .work{
    .carddesc{
      .other{
        display: none;
      }
    }
  }
}
/* work cards */

.workcards{
  border: 1px dashed rgba(var(--secondryborderColor),var(--opacity));
  display: flex;
  flex-direction: row;
  margin-bottom: 45px;
  width: 100%;
  height: fit-content;
  position: relative;
  .scroll-holder{
    width: 100%;
    height: fit-content;
    overflow: hidden;
    .cardholder{
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 15px;
      width: 100%;
      height: fit-content;
      position: relative;
      padding: 15px;
      .card{
        position: relative;
        width: 100%;
        height: 300px;
        color: var(--secondryColor);
        letter-spacing: 3px;
        font-weight: 200;
        cursor: pointer;
        border: 1px dashed rgba(var(--secondryborderColor),var(--opacity3));
        display: flex;
        flex-direction: column;
        overflow: hidden;
        &.latest{
          grid-column: span 2;
          grid-row: span 2;
          height: 100% !important;
        }
        a{
          position: absolute;
          top: 0;
          left: 0;
          width: 100%;
          height: 100%;
          z-index: 9999;
        }
        .cardtitle{
          font-weight: 400;
          letter-spacing: 2px;
          user-select: none;
          overflow: hidden;
          padding: 15px;
          font-size: 1rem;
          clip-path: polygon(0 0, 100% 0, 100% 78%, 0 78%);
        }
        .curimg{
          width: 100%;
          height: 100%;
          border: none;
          pointer-events: none;
          outline: none;
          border-bottom: 1px dashed rgba(var(--secondryborderColor),var(--opacity3));
        }
        .view{
          position: absolute;
          top: -12px;
          left: 10px;
          z-index: 9999;
          color: var(--secondryColor);
          font-size: .6rem;
          font-weight: 400;
          letter-spacing: 3px;
          mix-blend-mode: difference;
          user-select: none;
        }
      }
    } 
  }
}
@media (max-width: 1400px) {
  .workcards{
    .scroll-holder{
      .cardholder{
        .card{
          height: 250px;
          .cardtitle{
            font-size: .8rem !important;
          }
          .cardtitle{
            padding: 15px;
          }
        }
      }
    }
  }
}
@media (max-width: 1000px) {
  .workcards{
    .scroll-holder{
      .cardholder{
        grid-template-columns: repeat(2, 1fr);
        .card{
          height: 300px;
          &.latest{
            grid-column: span 2;
            grid-row: span 2;
            height: 300px !important;
          }
          .cardtitle{
            font-size: .9rem;
          }
        }
      }
    }
  }
}
@media (max-width: 800px) {
  .workcards{
    .scroll-holder{
      .cardholder{
        grid-template-columns: repeat(1, 1fr);
        .card{
          height: 350px;
          &.latest{
            grid-column: span 1;
            grid-row: span 1;
            height: 350px !important;
          }
        }
      }
    }
  }
}
@media (max-width: 400px) {
  .workcards{
    .scroll-holder{
      .cardholder{
        padding: 0;
        .card{
          height: 350px;
          &.latest{
            grid-column: span 1;
            grid-row: span 1;
            height: 350px !important;
          }
        }
      }
    }
  }
}
// contact
.panell.contactdiv{
  height: fit-content !important;
  min-height: 0 !important;
}
.contactdiv{
  border-top: 1px dashed rgba(var(--secondryborderColor),var(--opacity));
  background-color: var(--mainColor);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100vw !important;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  .linkshandle{
    display: flex;
    align-items: flex-start;
    margin-top: 20px;
    ul{
    width: 12%;
    display: flex;
    flex-direction: column;
    padding: 15px;
    &:nth-child(2),&:nth-child(3){
      margin-left: 75px;
    }
    li{
      color: var(--secondryColor);
      &:nth-child(1){
        margin-top: 0;
        padding-top: 0;
        a{
          margin-top: 0;
          padding-top: 0;
        }
      }
      a{
        display: block;
        padding: 7px 0px;
        position: relative;
        font-size: 10px;
        letter-spacing: 2px;
        &::after{
          content: "";
          position: absolute;
          bottom: 0;
          left: 0;
          width: 0;
          height: 1px;
          background-color: var(--secondryColor);
          transition: all 0.3s ease-in-out;
        }
        &:hover{
          &::after{
            width: 20%;
          }
        }
      }
    }
  }
  .email{
    width: fit-content;
    li{
      &:nth-child(1){
        font-size: 0.85rem;
      }
      &:nth-child(2){
        a{
          margin-top: 15px;
          padding: 5px 24px;
          border: 1px dashed rgba(var(--secondryborderColor),var(--opacity3));
          font-weight: 500;
          width: fit-content;
          font-size: 0.85rem;
          letter-spacing: 1px;
          .cwC{
            margin-top: 3px;
          }
          &::after{
            display: none;
          }
        }
      }
      & .li{
        display: flex;
        height: 18px;
        flex-direction: column;
        border: none;
        overflow: hidden;
        .mwC{
          margin-top: 1.5px;
        }
      }
    }
  }
  }
}
@media (max-width: 1400px) {
  .contactdiv{
    &.panel{
      height: 400px !important;
    }
    .gameouter{
      .contactgame{
        padding: 0 10px 10px;
        height: 85%;
      }
    }
  }
}
@media (max-width: 1000px) {
  .contactdiv{
    &.panel{
      height: 370px !important;
    }
    .linkshandle{
      ul{
        width: 17%;
      }
    }
  }
  .rights{
    font-size: 10px !important;
  }
}
@media (max-width: 800px) {
  .contactdiv{
    .linkshandle{
      ul{
        width: 140px;
        &:nth-child(2),&:nth-child(3){
          margin-left: 0px;
        }
        &:first-child{
          width: 100px;
        }
      }
    }
  }
}
@media (max-width: 686px) {
  .contactdiv{
    .linkshandle{
      flex-direction: column;
    }
  }
}
@media (max-width: 600px) {
  .contactdiv{
    &.panel{
      height: 480px !important;
      justify-content: flex-end;
    }
    .gameouter{
      display: none;
    }
    .linkshandle{
      ul{
        width: 100% !important;
        padding-left: 30px;
        &.email{
          li{
            font-size: 15px !important;
          }
        }
        li{
          a{
            font-size: 13px !important;
          }
        }
      }
    }
  }
}

@media (max-width: 1000px) {
  .trail-dot{
    display: none;
  }
}