/* geral style*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
@font-face {
  font-family: Druk;
  src: url(./font/DrukText-Super-Trial.otf);
}
/* variables*/
:root {
  --bkgcolor: #1e1e24;
  --panelscolor: #1e1e24;
  --containercolor: #6f6f6f;
  --h2color: #f6f6f6;
  --h2size: 3em;
  --h2font: "Druk";
  --titanone: "outfit";
  --h2weight: 200;
  --boxshadow: 2px 4px 4px 4px #1718185b;
  --borderradius: 18px;
}

/* background style*/
body {
  background-color: var(--bkgcolor);
  font-family: var(--fontfamily);
  zoom: 0.8;
}

.container {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
}

/* style of navigation part of the site*/
nav img {
  width: 60px;
  aspect-ratio: 3/3;
  object-fit: contain;
}

.NavigationIcons span{
  font-size: 2em;
}
.NavigationIcons {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-wrap: nowrap;
  width: 180px;
  padding: 10% 0;
  gap: 10%;
  margin-left: 3em;
  color: var(--h2color);
  font-family: var(--h2font);
  
}

.navicon {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cards {
  background-color: var(--containercolor);
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1em 1em;
  gap: 1em;
  width: 80%;
  height: 100%;
  border-radius: 40px;
  font-family: var(--titanone);
}

/*panel player style*/
.PlayerInfos {
  h2 {
    text-align: center;
    color: var(--h2color);
    font-size: var(--h2size);
    font-family: var(--h2font);
    font-weight: var(--h2weight);
  }

  /*player infos*/
  .Profile {
    background-color: var(--panelscolor);
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 320px;
    height: auto;
    border-radius: 18px;
    color: var(--h2color);
    box-shadow: var(--boxshadow);
  }

  .PlayerPic {
    background-color: aqua;
    width: 84px;
    clip-path: circle();
    margin-bottom: 10px;
  }

  .Player {
    padding: 10px;
    font-size: 14px;
    height: 140px;
  }

  .PlayerStatus {
    padding: 12px 10px 10px 10px;
    font-size: 12px;
    font-style: italic;
    height: 140px;
  }

  .ChessTitle p {
    background-color: #e45757;
    width: 60px;
    font-style: normal;
    padding: 4% 6% 4% 10%;
    margin: 10% 0;
    text-shadow: 1px 1px 2px #2d2d2d;
    border-radius: 50px;
    font-size: var(--p);
  }

  .PlayerLevel p {
    background-color: #74c85a;
    font-family: "Courier New";
    font-style: italic;
    font-size: 12px;
    width: 10em;
    padding: 4% 6% 4% 10%;
    margin: 10% 0;
    border-radius: 50px;
    box-shadow: 36px 0 #4d793f;
    text-shadow: 1px 1px 2px #2d2d2d;
  }

  /*buttons player*/
  .PlayerButtons img {
    width: 40px;
    aspect-ratio: 2/2;
    object-fit: contain;
  }

  .PlayerButtons {
    padding: 0 20px;
  }

  .Buttons {
    margin: 0 24px 4px;
  }
}

/*activities style*/

.Activities {
  background-color: var(--panelscolor);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 320px;
  height: 334px;
  box-shadow: var(--boxshadow);
  border-radius: var(--borderradius);
}

.MatchCards img {
  width: 64px;
  margin: 0;
  object-fit: contain;
  filter: drop-shadow(1px 1px 2px #2d2d2d);
}

#loss {
  background-color: #e45757;
  box-shadow: 1px -1px 0.9px 1px #fe9e9e;
}

#MatchTimer {
  width: 30px;
}

.MatchCards p {
  text-align: start;
  font-weight: 600;
  font-size: large;
  color: rgb(255, 255, 255);
  text-shadow: 1px 1px 2px #2d2d2d;
}

.MatchCards {
  background-color: #3cac43;
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
  width: 90%;
  margin: auto;
  height: auto;
  box-shadow: 1px -1px 0.9px 1px #abffafc3;
  border-radius: var(--borderradius);
}

.MatchInfo {
  display: flex;
  align-items: center;
}

.DashboardInfo img {
  width: 60%;
}

.Dashboard {
  color: var(--h2color);
  width: 430px;

  h2 {
    text-align: center;
    color: var(--h2color);
    font-size: var(--h2size);
    font-family: var(--h2font);
    font-weight: var(--h2weight);
  }

  h3 {
    font-size: 2.5em;
    font-style: oblique;
    letter-spacing: 2px;
    font-family: var(--titanone);
  }

  h4 {
    font-size: 2em;
    padding: 0.5em;
    font-style: oblique;
    letter-spacing: 2px;
    font-family: var(--titanone);
  }

  p {
    font-size: 1.1em;
    padding: 0px 20px;
    margin-bottom: 0px;
    text-align: center;
    font-family: var(--titanone);
  }
}

.DashboardInfo {
  background-color: var(--panelscolor);
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 396px;
  padding-top: 1.5em;
  border-radius: var(--borderradius);
  box-shadow: var(--boxshadow);

  .Piece {
    padding: 8px;
    font-size: 1.5em;
  }
}

.PieceInfo {
  background-color: var(--panelscolor);
  text-align: center;
  height: 180px;
  margin-top: 1em;
  border-radius: var(--borderradius);
  box-shadow: var(--boxshadow);
}

.Status {
  width: 430px;

  h2 {
    text-align: center;
    color: var(--h2color);
    font-size: var(--h2size);
    font-family: var(--h2font);
    font-weight: var(--h2weight);
  }
}

.PlayerStatus {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 380px;
}

.AllMatch {
  background-color: var(--panelscolor);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 100%;
  padding: 1em 2em;
  font-size: 1em;
  font-family: var(--titanone);
  color: var(--h2color);
  border-radius: var(--borderradius);
  box-shadow: var(--boxshadow);

  p {
    font-size: 2em;
  }

  span {
    font-size: 2em;
  }

  .Game {
    display: flex;
    flex-direction: column;
    margin-top: 10px;
  }

  .Results {
    display: flex;
    flex-direction: column;
    text-align: end;
    margin-top: 10px;
  }
}

.PlayerStrategy {
  background-color: var(--panelscolor);
  display: flex;
  justify-content: center;
  text-align: center;
  gap: 4em;
  margin-top: 1em;
  padding: 0.5em;
  width: 100%;
  font-size: 1.5em;
  color: var(--h2color);
  font-weight: 400;
  box-shadow: var(--boxshadow);
  border-radius: var(--borderradius);

  .OpeningDefense {
    display: flex;
    flex-direction: column;
  }

  .GambitDefense {
    display: flex;
    flex-direction: column;
    text-align: right;
  }
}
.GraphicWheel img {
  width: 160px;
}
.GraphicWheel {
  background-color: var(--panelscolor);
  display: flex;
  justify-content: center;
  align-items: first baseline;
  text-align: center;
  width: 100%;
  gap: 1em;
  margin: 0.5em 0 0 0;
  padding: 0.5em;
  font-size: 1.5em;
  color: var(--h2color);
  font-family: var(--titanone);
  border-radius: var(--borderradius);
  box-shadow: var(--boxshadow);

  .Img1 {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    margin-top: 20px;
  }

  .Img2 {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    margin-top: 20px;
  }
}

.DaysGraphic img {
  height: 120px;
}
.Achievements img {
  width: 90px;
  object-fit: cover;
  aspect-ratio: 3/4;
}

.OverView {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1em;
  margin-bottom: 1em;
  margin-top: 0.5em;

  .DaysGraphic {
    background-color: var(--panelscolor);
    display: flex;
    flex-direction: column;
    text-align: center;
    font-size: 1.5em;
    width: 600px;
    padding: 2px;
    gap: 0.5em;
    color: var(--h2color);
    font-family: var(--titanone);
    box-shadow: var(--boxshadow);
    border-radius: var(--borderradius);
  }

  .Achievements {
    background-color: var(--panelscolor);
    display: flex;
    flex-direction: column;
    text-align: center;
    font-size: 1.5em;
    width: 600px;
    padding: 2px;
    gap: 0.5em;
    color: var(--h2color);
    font-family: var(--titanone);
    box-shadow: var(--boxshadow);
    border-radius: var(--borderradius);

    .Badges {
      display: flex;
      justify-content: space-evenly;
    }
  }
}

/*Animation */
.Dashboard,
.DaysGraphic,
.NavigationIcons {
  animation: slide 0.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}
.PlayerInfos,
.Status,
.Achievements {
  animation: slide 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes slide {
  10% {
    transform: translatex(10%);
  }
}

/*Mobile device styles*/
@media screen and (max-width: 1244px) {
  .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;

  }
  .NavigationIcons {
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    width: 950px;
    padding: 1em;
  }
  .cards {
    display: flex;
    flex-direction: row;
    padding: 0;
  
    
  }
  .AllMatch,
  .PlayerStrategy,
  .GraphicWheel,
  .PieceInfo {
    justify-content: space-around;
    align-items: center;
    padding: 0;
    margin: 0.5em 0;
  }
  
  .PieceInfo p{
    word-break: break-all;

  }
    .OpeningDefense,
  .GambitDefense {
    padding: 0.5em;
  }
  .Status {
    margin: 0;
  }
  .OverView {
    justify-content: center;
    flex-direction: row;
    align-items: center;
    width: 100%;
  }
}

@media screen and (max-width: 700px) {
  body {
    justify-content: center;
  }

  .container {
    margin: 1em;

    h2 {
      font-size: 1.8em;
    }
  }
  .cards {
    width: 90%;
  } 

  .NavigationIcons {
    justify-content: center;
    align-items: center;
    gap: 3em;
    margin: 0;
    width: 200px;
  }
  .GraphicWheel img {
    width: 80px;
  }

  .Dashboard {
    margin: 0 0.5em;
    h4{
      font-size: 200%;
     }

     p{
      font-size: 1em;
     }
  }
  
  .PlayerStrategy {
    padding: 0.5em;
    margin: 0.5em 0;
    
  }
  .OpeningDefense,
  .GambitDefense {
    font-size: 20px;
  }
  .OverView img {
    width: 300px;
  }
  .OverView {
    width: 90%;
  }

  .GraphicWheel {
    justify-content: last baseline;
    padding: 0;
    gap: 1em;
  }

  .Badges img {
    width: 80px;
  }
  .DaysGraphic {
    align-items: center;
  }
}
