@import url('https://fonts.googleapis.com/css2?family=PT+Sans+Narrow&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Exo+2:ital,wght@1,300&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Oswald&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Audiowide&display=swap');

:root {
    --main-bg-color: #1d1d1d;
    --main-txt-color: aliceblue;
    --border-color: goldenrod;
    --main-txt-size: 4vw;
    --bg-color: rgb(19, 19, 19);
    --slogan-fz: 10vw;
    --h1-fz: 7vw;
    --right-first-block-height: 14vh;
}

* {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    /* background-color: #fff; */
    color: var(--main-txt-color);
    font-family: sans-serif;
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    background-color: transparent;
}

body {
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

#profile-wrapper {
    width: 100%;
    /* height: 200vh; */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: calc(2.5% + 7vh);
    margin-bottom: 2.5%;
    border-radius: 10px;
    position: relative;
    
}

#profile-main-wrapper {
    width: 80%;
    height: 100%;
    /* background-color: #202020; */
    background-color: rgb(15, 15, 15);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;

}

#up-wrap {
    width: 100%;
    height: 250px;
    position: relative;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

#down-wrap {
    width: 100%;
    height: 80%;
    background-color: #202020;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    box-shadow: 0px 3px 10px 0px rgb(0, 0, 0);
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    padding-bottom: 2.5%;

}

#player-info-wrapper {
    background-color: rgb(18, 18, 18);
    position: relative;
    width: 100%;
    height: 170px;
    display: flex;
    justify-content: end;
    box-shadow: 0px 3px 10px 0px rgb(0, 0, 0);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

#info-wrap {
    /* background-color: aquamarine; */
    background-color: rgb(18, 18, 18);
    width: 75%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    border-top-right-radius: 10px;
}

#name {
    background-color: rgb(18, 18, 18);
    width: 20%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
#name-span {
    font-family: 'Exo 2';
    color: aliceblue;
    font-size: 20px;
    font-weight: 600;
    background-color: rgb(18, 18, 18);
}

#flag,
#role {
    width: 25px;
    margin-top: 5px;
    background-color: transparent;
}

#number-span {
    font-family: 'Exo 2';
    font-size: 28px;
    font-style: italic;
    font-weight: 900;
    color: grey;
    background-color: rgb(18, 18, 18);
}

#info {
    width: 80%;
    height: 100%;
    background-color: rgb(18, 18, 18);
    display: flex;
    flex-direction: column;
    border-top-right-radius: 10px;

}

.info-row {
    width: 100%;
    height: 50%;
    display: flex;
    align-items: center;
    justify-content: space-around;
    background-color: rgb(18, 18, 18);
    border-top-right-radius: 10px;
}

.info-card {
    height: 80%;
    width: 20%;
    display: flex;
    flex-direction: column;
    background-color: rgb(18, 18, 18);
    
}

.info-header {
    width: 100%;
    font-family: 'Exo 2';
    color: grey;
    font-size: 12px;
    margin-bottom: 4px;
    background-color: rgb(18, 18, 18);
    display: flex;
    align-items: center;

}


.info-value {
    width: 150px;
    height: 90%;
    color: aliceblue;
    font-family: 'Exo 2';
    padding: 2.5px;
    /* background-color: rgb(18, 18, 18); */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 5px;
    background: #202020;
    box-shadow: inset 2.5px 2.5px 0px #0d0d0d,
                inset -2.5px -2.5px 0px rgb(46, 46, 46);
}

.top-info-wrap {
    background-color: rgb(18, 18, 18);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: start;
}

#about-amplua,
#about-spec {
    margin-left: 3%;
    background-color: transparent;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

#about-amplua img,
#about-spec img {
    width: 15px;
    background-color: transparent;
}

#about-amplua:hover::after,
#about-spec:hover::after {
    content: attr(data-title); /* Выводим текст */
    position: absolute; /* Абсолютное позиционирование */
    left: 100%; bottom: 110%; /* Положение подсказки */
    z-index: 1000000; /* Отображаем подсказку поверх других элементов */
    background: rgba(255, 159, 64, 0.4);
    font-family: 'Exo 2';
    font-size: 12px; /* Размер текста подсказки */
    padding: 5px 10px; /* Поля */
    color: aliceblue;
    border-radius: 3%;
    font-weight: 900;
    backdrop-filter: blur(3px);
    word-wrap: break-word;
}

#amplua-header,
#spec-stat-header {
    width: auto;
}

.info-card-stat {
    height: 80%;
    width: 15%;
    display: flex;
    flex-direction: column;
    background-color: rgb(18, 18, 18);
    position: relative;
}

.info-header-stat {
    width: 100%;
    font-family: 'Exo 2';
    color: grey;
    font-size: 12px;
    margin-bottom: 4px;
    background-color: rgb(18, 18, 18);
}

.info-value-stat {
    width: 100%;
    height: 90%;
    color: aliceblue;
    font-family: 'Exo 2';
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    border-radius: 10px;
    background: #202020;
    box-shadow: inset 2.5px 2.5px 0px #0d0d0d,
                inset -2.5px -2.5px 0px rgb(47, 46, 46);
}

#for-color {
    background-color: #202020;
    height: 80px;
}

#photo-wrapper {
    position: absolute;
    width: 150px;
    height: 150px;
    background-color: #202020;
    border-radius: 50%;
    top: 75px;
    left: 75px;
    display: flex;
    justify-content: center;
    overflow: hidden;
    /* border: 1px solid goldenrod; */
    /* box-shadow: 3px 3px 10px 5px rgb(0, 0, 0); */
    box-shadow: inset 2.5px 2.5px 0px #0d0d0d,
                inset -1px -1px 0px rgb(46, 46, 46);
}

#player-photo {
    background-color: transparent;
    width: 110%;
    position: absolute;
    bottom: 0;
}

.card {
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    box-shadow: 1px 1px 1px 0px rgb(0, 0, 0); 
}

.card:nth-child(2) {
    margin-left: 10px;
    margin-right: 10px;
}

.card:nth-child(4) {
    margin-right: 10px;
}

#graph-card {
    width: 375px;
    height: 250px;
}

#medium-card {
    width: 375px;
    height: 250px;
}

#position-card {
    width: 250px;
    height: 250px;
}

#matches-card {
    width: 760px;
    height: 350px;
}

#compare-card {
    width: 250px;
    height: 350px;
}

.card-header {
    width: 100%;
    height: 15%;
    background-color: rgb(18, 18, 18);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    box-shadow: 0px 3px 1px 0px rgb(0, 0, 0);
    z-index: 10;
}

.card-content {
    width: 100%;
    height: 85%;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    background-color: rgba(32, 32, 32, .4);
    
}

.card-name {
    font-family: 'Exo 2';
    font-size: 14px;
    color: aliceblue;
}

#graph-card .card-header {
    display: flex;
    align-items: center;
    justify-content: center;
}

#graph-span {
    border-top-left-radius: 10px;
    width: 40%;
    padding-left: 10px;
    background-color: rgb(18, 18, 18);
}

#btn-wrap {
    border-top-right-radius: 10px;
    width: 60%;
    height: 100%;
    display: flex;
   justify-content: space-evenly;
   background-color: rgb(18, 18, 18);
}

.graph-btn {
    width: 10%;
    background-color: transparent;
    cursor: pointer;
}

#btn-sub-goals,
#btn-sub-assists,
#btn-sub-defence,
#btn-sub-saves,
#btn-sub-passes {
    width: 20%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    position: relative;
}

#goals-btn,
#assists-btn,
#saves-btn,
#passes-btn {
    background-color: transparent;
    width: 50%;
}

#defence-btn {
    background-color: transparent;
    width: 60%; 
}

#medium ul {
    width: 100%;
    height: 100%;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    
}

#medium ul li {
    width: 100%;
    height: calc(100%/6);
    display: flex;
    align-items: center;
    justify-content: center;
}

#medium ul li:nth-child(odd) {
    background-color: rgba(32, 32, 32, .4);
}

#medium ul li:nth-child(even) {
    background-color: rgba(32, 32, 32, .2);
}

#medium ul li:last-child {
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.medium-stat-name {
    font-family: 'Exo 2';
    font-size: 12px;
    width: 30%;
    background-color: transparent;
    padding-left: 10px;
}

.medium-stat {
    width: 35%;
    font-family: 'Exo 2';
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    font-size: 20px !important;
}

#medium-card .card-header {
    display: flex;
    align-items: center;
}

#medium-span {
    width: 30%;
    padding-left: 10px;
    background-color: transparent;
}

.col-name {
    width: 35%;
    font-size: 14px;
    font-family: 'Exo 2';
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
}

#position {
    display: flex;
    align-items: center;
    justify-content: center;
}

#position-card .card-header {
    display: flex;
    align-items: center;
}

#position-span {
    width: 30%;
    padding-left: 10px;
    background-color: transparent;
}

.chart {
    width: 95%;
    height: 95%;
    background-color: rgba(32, 32, 32, .1);
}

#matches ul {
    width: 100%;
    height: 100%;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.match-row {
    width: 100%;
    height: calc(100%/5);
    display: flex;
}

.match-row:last-child {
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.match-row:nth-child(odd) {
    background-color: rgba(32, 32, 32, .4);
}

.match-row:nth-child(even) {
    background-color: rgba(32, 32, 32, .2);
}

#matches-card .card-header {
    display: flex;
    align-items: center;

}

#matches-span {
    width: 40%;
    padding-left: 10px;
    background-color: transparent;
}

#matches-col-name-wrap {
    width: 60%;
    height: 100%;
    display: flex;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    align-items: center;
    background-color: transparent;
}

.state-name-wrap {
    width: calc(100%/7);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
}

.match-stat-name {
    width: 45%;
    background-color: transparent;
}


.match-date {
    width: 10%;
    font-family: 'Exo 2';
    font-size: 10px;
    padding-left: 10px;
    display: flex;
    align-items: center;
    color: aliceblue;
    background-color: transparent;
    word-wrap: break-word;
}

.opponent-wrapper {
    width: 30%;
    display: flex;
    background-color: transparent;
}

.oppo-logo {
    width: 30%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
}

.opponent {
    width: 70%;
    height: 100%;
    font-family: 'Exo 2';
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: aliceblue;
    background-color: transparent;
}

.team-logo {
    width: 70%;
    background-color: transparent;
}

.result,
.match-goals,
.match-assists,
.match-defence,
.match-saves,
.match-passes,
.match-full-stat {
    width: calc(60%/7);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
}

.match-score {
    font-family: 'Exo 2';
    font-size: 22px;
    background-color: transparent;
}

.lose {
    color: red;
}

.win {
    color: green;
}

.nowinners {
    color: aliceblue;
}

.match-goals,
.match-assists,
.match-defence,
.match-saves,
.match-passes {
    font-family: 'Exo 2';
    font-size: 22px;
    color: aliceblue;
    background-color: transparent;
}

.match-link {
    width: 40%;
    height: 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
}

.match-link img {
    width: 100%;
    background-color: transparent;
    cursor: pointer;
    
}

#compare-card .card-header {
    display: flex;
    /* flex-direction: column; */
    justify-content: center;
    background-color: rgb(18, 18, 18);
}

#compare-span {
    width: calc(100% - 10px);
    height: 40%;
    background-color: rgb(18, 18, 18);
    padding-left: 10px;
    display: flex;
    align-items: center;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    font-size: 12px;
}

#bests-btn-wrap {
    background-color: rgb(18, 18, 18);
    width: 80%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.best-btn {
    width: 55%;
    background-color: rgb(18, 18, 18);
    cursor: pointer;
}

#best-goals-sub,
#best-assists-sub,
#best-defence-sub,
#best-saves-sub,
#best-passes-sub {
    width: 20%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
}

#compare ul {
    width: 100%;
    height: 100%;
    background-color: transparent;
}

.compare-row {
    width: 100%;
    height: calc(100%/5);
    display: flex;
    align-items: center;
}

.compare-row:last-child {
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.compare-row:nth-child(odd) {
    background-color: rgba(32, 32, 32, .4);
}

.compare-row:nth-child(even) {
    background-color: rgba(32, 32, 32, .05);
}

.compare-number {
    width: 15%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Exo 2';
    font-size: 18px;
    background-color: transparent;
    color: grey;
}


.compare-player-wrap {
    width: 55%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;

}

.compare-player-name {
    width: 100%;
    font-family: 'Exo 2';
    font-size: 14px;
    overflow: hidden;
    animation-duration: 4s;
    animation-iteration-count: infinite;
    background-color: transparent;
    
}


.compare-value {
    width: 30%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Exo 2';
    font-size: 24px;
    background-color: transparent;
}

#best-defence {
    background-color: transparent;
    width: 70%;   
}

.rotate {
    animation: .75s linear 0s normal none running rot;
    -webkit-animation: .75s linear 0s normal none running rot;
    animation-iteration-count: 1;
}

@keyframes rot {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }
  @-webkit-keyframes rot {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }

  .mirror {
    transform: scale(-1, 1);
    transition: transform .25s;
}

.def {
    animation: .5s linear 0s normal none running def;
    animation-iteration-count: 1;
}

@keyframes def {
    0% {
      transform: rotate(0deg);
    }
    50% {
      transform: rotate(20deg);
    }
    100% {
        transform: rotate(0deg);
      }
  }

#zoom {
    width: 80%;
}

#zoom:hover {
    transform: scale(1.5);
}

#graph {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.graph-bg {
    position: absolute;
    width: auto;
    z-index: 10;
    background-color: transparent;
    height: auto;
    font-family: 'Oswald';
    font-size: 36px;
    opacity: .1;
    text-transform: uppercase;
    text-align: center;
    user-select: none;
    
}

.chart {
    z-index: 20;
}
