* {
  box-sizing: border-box;
  margin: 0;
  scroll-behavior: smooth;
}

body {
  background: #1a1816;
  color: #ffffff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

h1,
h2,
h3,
h4 {
  font-family: "Chess Sans";
  color: #fff;
}

h1 {
  text-align: center;
  font-size: 56px;
  font-weight: 700;
  line-height: 56px;
}

h2 {
  font-size: 56px;
  font-weight: 800;
  line-height: 56px;
  text-align: left;
}

h3 {
  font-size: 42px;
  font-weight: 700;
  line-height: 48px;
  text-align: left;
}

h4 {
  font-size: 22px;
  font-weight: 800;
  line-height: 28px;
  text-align: left;
}

.info h2 {
  font-size: 22px;
  font-weight: 800;
  line-height: 28px;
  text-align: left;
}

section {
  margin-bottom: 80px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto 80px;
  display: flex;
  flex-direction: column;
}

section.hero {
  max-width: unset;
  flex-direction: column;
  padding: 24px;
  min-height: 500px;
}

.paragraph-large {
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.subtitle {
  color: rgba(255, 255, 255, 0.72);
  font-size: 22px;
  font-weight: 700;
  line-height: 28px;
  text-align: center;
  font-family: "Chess Sans";
}

.paragraph-large a,
.paragraph-large a:visited,
.paragraph-large a:hover {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: underline;
}

.img-holder {
  display: flex;
  justify-content: center;
  align-items: center;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px 14px;
}

.nav-items {
  display: none;
  /* display: flex; */
  gap: 16px;
  align-items: center;
}

a.nav-item,
a.nav-item:visited,
a.nav-item:hover,
a.nav-item:active {
  font-size: 14px;
  font-weight: 600;
  line-height: 16px;
  color: #ffffff;
  text-decoration: none;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
    url("https://images.chesscomfiles.com/uploads/ad_image/24107.a3c2a10d.jpg")
      no-repeat center/cover;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-bottom: 5px solid #000000;
}

.hero .text-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 573px;
  padding: 15px;
}

.hero .img-holder-desktop {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: end;
  height: 96%;
}

.hero .img-holder-mobile {
  display: none;
}

.hero .img-holder-desktop img {
  height: 100%;
  width: auto;
}

.hero .text-container .year {
  text-align: center;
  -webkit-text-stroke: 3px white;
  color: transparent;
  font-family: "Chess Sans";
  font-size: 120px;
  font-style: normal;
  font-weight: 800;
  line-height: 100%;
  display: block;
}

.hero .text-container h1.title {
  color: #fff;
  text-align: center;
  font-family: "Chess Sans";
  font-size: 56px;
  font-style: normal;
  font-weight: 700;
  line-height: 100%;
  margin-bottom: 40px;
}

.hero .text-container .date-place-container {
  display: flex;
  border: 1px solid #fff;
  border-radius: 5px;
  overflow: hidden;
}

.hero .text-container .date-place-container .date {
  color: #312e2b;
  text-align: center;
  font-family: "Chess Sans";
  font-size: 22px;
  font-style: normal;
  font-weight: 700;
  line-height: 28px;
  background-color: #fff;
  padding: 4px 8px;
}

.hero .text-container .date-place-container .place {
  color: #fff;
  text-align: center;
  font-family: "Chess Sans";
  font-size: 22px;
  font-style: normal;
  font-weight: 700;
  line-height: 28px;
  background-color: transparent;
  padding: 4px 8px;
}

.embed-live-game {
  width: 100%;
  height: 100vh;
  max-width: 100%;
}

section.info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.info-cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 16px;
}

.info-card {
  display: flex;
  padding: 16px 24px 24px;
  gap: 10px;
  background: #00000033;
  box-shadow: 0px -4px 0px 0px #00000040 inset;
  border-radius: 10px;
  justify-content: end;
  flex-direction: column;
}

.info-card .img-holder {
  justify-content: start;
}

.info-text {
  font-size: 17px;
  font-weight: 700;
  line-height: 20px;
  text-align: left;
  font-family: "Chess Sans";
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(17, 1fr);
  overflow-x: auto;
  scrollbar-color: rgba(0, 0, 0, 0.45) transparent;
  scrollbar-width: thin;
}

.white {
  background-color: #fff;
  color: #312e2b;
}

.score-item {
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0px 12px;
  font-size: 16px;
  line-height: 18px;
}

.score-item img {
  min-width: 34px;
}

.score-item:has(img) {
  padding: 0;
}

.score-item.game {
  padding: 12px;
  text-wrap: nowrap;
  font-weight: 600;
}

.score-item.total {
  font-weight: 600;
  text-wrap: nowrap;
}

.score-item.name {
  justify-content: start;
  text-wrap: nowrap;
}

.rounded-lt {
  border-radius: 5px 0px 0px 0px;
}

.rounded-lb {
  border-radius: 0px 0px 0px 5px;
}

.rounded-rt {
  border-radius: 0px 5px 0px 0px;
}

.rounded-rb {
  border-radius: 0px 0px 5px 0px;
}

.bg-grey {
  background: rgba(255, 255, 255, 0.1);
}

.border-none {
  border: none;
}

section.players,
section.results,
section.schedule {
  gap: 40px;
}

.schedule .schedule-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}

.schedule .schedule-item {
  font-size: 14px;
  padding: 16px;
  font-weight: 600;
  color: #ffffffb8;
}

.schedule .schedule-item:nth-child(1) {
  border-radius: 5px 0 0 0;
}

.schedule .schedule-item:nth-child(3) {
  border-radius: 0 5px 0 0;
}

.schedule .schedule-item:nth-child(3n) {
  text-align: right;
}

.schedule .schedule-item:nth-child(3n-1) {
  text-align: center;
}

.grid-head {
  background: rgba(255, 255, 255, 0.1);
}

.border-b {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.players-bottom {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.players-item {
  display: flex;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  overflow: hidden;
  max-height: 476px;
}

.players-item.player-two {
  flex-direction: row-reverse;
}

.players-img {
  background: #f7c631;
  display: flex;
  justify-content: center;
  align-items: end;
  width: 100%;
}

.players-item.player-two .players-img {
  background: #009fd9;
}

.players-item .players-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
}

.players-tag {
  color: #f7c631;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.name-card .players-tag {
  text-align: center;
}

.players-tag.blue {
  color: #009fd9;
}

.players-item .players-name {
  margin-bottom: 16px;
  text-align: start;
}

.players-item .players-country {
  margin-bottom: 34px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.players-item .players-country span {
  color: #fafafa;
  font-family: "Chess Sans";
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: 20px; /* 100% */
}

.players-item .players-info .paragraph-large {
  text-align: start;
}

section.players-stats {
  gap: 24px;
}

.players-stats h2 {
  text-align: center;
  margin-bottom: 12px;
}

.players-stats .players-img-wrapper {
  display: flex;
  gap: 24px;
  justify-content: space-between;
}

.players-stats.players-img-wrapper {
  border-radius: 10px;
}

.players-stats .players-names-wrapper {
  display: flex;
  padding: 48px 24px;
  background: #00000033;
  border-radius: 10px;
  align-items: start;
}

.players-stats .name-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0 40px;
}

.vs {
  font-size: 42px;
  font-weight: 700;
  line-height: 48px;
  text-align: left;
  color: #ffffff80;
  width: max-content;
  font-family: "Chess Sans";
}

.players-stats .stats-wrapper {
  max-width: 674px;
  width: 100%;
  margin: 0 auto;
  gap: 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
}

.players-stats .number {
  color: #ffffff;
  font-size: 31px;
  font-weight: 700;
  line-height: 36px;
  text-align: center;
  font-family: "Chess Sans";
}

.players-stats .game-type {
  color: #ffffffb8;
  font-size: 22px;
  font-weight: 500;
  line-height: 28px;
  width: 100%;
  text-align: center;
  font-family: "Chess Sans";
  align-self: center;
}

.info-detailed .text-container {
  display: flex;
  justify-content: space-between;
}

.info-detailed a,
.info-detailed a:visited {
  text-decoration: underline;
  color: #fff;
}

.info-detailed .text-container .img-holder {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 24px;
}

.fide-img-holder {
  display: flex;
  justify-content: center;
  align-items: center;
}

.info-detailed .text-container .img-holder img {
  width: 100%;
  height: auto;
}

.info-detailed .text-container li {
  font-size: 16px;
  line-height: 24px;
}

.info-detailed .text-container .left {
  display: flex;
  flex-direction: column;
  justify-content: start;
  gap: 16px;
  padding: 188.5px 40px;
  background: #5e53d9;
  border-radius: 10px;
}

.info-detailed .text-container .left .section-toggle:hover {
  color: #ffffff;
  cursor: pointer;
}

.info-detailed .text-container .left .section-toggle.active {
  color: #ffffff;
}

.info-detailed .text-container .right {
  display: none;
  width: 100%;
  gap: 12px;
  padding: 40px;
  background: #00000033;
  border-radius: 10px;
  justify-content: center;
}

.info-detailed .text-container .right.active {
  display: flex;
  flex-direction: column;
}

.info-detailed .text-container .left .section-toggle {
  font-size: 56px;
  font-weight: 800;
  line-height: 56px;
  text-align: left;
  color: #ffffff80;
  font-family: "Chess Sans";
  width: max-content;
}

.prizes {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: default;
  height: 100%;
}

.prizes-info {
  display: flex;
  flex-direction: column;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: var(--border-radius-10);
  padding: 40px;
  justify-content: center;
  border-bottom: 5px solid #00000033;
  width: 100%;
}

.prizes-info > span {
  margin-bottom: 25px;
  text-align: center;
  font-family: "Chess Sans";
  font-size: 42px;
  font-style: normal;
  font-weight: 700;
  line-height: 48px; /* 114.286% */
}

.prize-amount {
  font-size: 36px;
  font-weight: 700;
  color: #f7c631;
  margin-top: 24px;
  line-height: 40px;
  text-wrap: nowrap;
  font-family: Chess Sans;
}

.prize-text {
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 8px;
  margin-bottom: 24px;
  line-height: 24px;
  font-family: Chess Sans;
  font-size: 17px;
}

.event-prize-text {
  font-size: 22px;
  line-height: 28px;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
  max-width: 350px;
  width: 100%;
}

.location {
  height: 100%;
  display: flex;
  justify-content: start;
  align-items: center;
  font-size: 22px;
  line-height: 28px;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
  width: 100%;
  text-align: start;
}

@media screen and (max-width: 1340px) {
  .hero .img-holder-desktop {
    height: 78%;
  }
}

@media screen and (max-width: 1224px) {
  section {
    padding-left: 24px;
    padding-right: 24px;
  }

  .players-img-wrapper .img-holder img {
    width: 100%;
    height: auto;
  }

  .players-names-wrapper h3 {
    text-align: center;
  }

  section {
    margin-bottom: 40px;
  }
}

@media screen and (max-width: 1180px) {
  .hero .text-container {
    max-width: 370px;
  }

  .hero .text-container .year {
    font-size: 90px;
    line-height: 100%;
  }
  .hero .text-container .title {
    font-size: 40px;
    line-height: 100%;
    margin-bottom: 22px;
  }

  .hero .text-container .date-place-container .date,
  .hero .text-container .date-place-container .place {
    font-size: 17px;
    line-height: 20px;
  }

  .players-img img {
    width: 100%;
    height: auto;
  }
  .info-cards {
    grid-template-columns: 1fr 1fr;
  }
  .info-detailed .text-container .left .section-toggle {
    font-size: 5vw;
    line-height: normal;
  }
  .fide-img-holder {
    top: 4%;
  }
}

@media screen and (max-width: 920px) {
  .hero .img-holder-desktop {
    height: 50%;
  }
  .hero .text-container {
    top: 50px;
  }
  .hero .text-container h1.title {
    margin-bottom: 24px;
  }
  .fide-img-holder {
    top: 3%;
  }
}

@media screen and (max-width: 840px) {
  h3 {
    font-size: 5vw;
    line-height: normal;
  }
  .players-stats .players-names-wrapper {
    padding: 0;
  }

  section.hero {
    min-height: 0;
  }
  .vs {
    font-size: 5vw;
    line-height: normal;
  }
  .players-item,
  .players-item.player-two {
    flex-direction: column;
    max-height: unset;
  }

  .info-detailed .text-container {
    flex-direction: column;
  }
  .info-detailed .text-container .left {
    padding: 24px;
    gap: 8px;
  }
  .info-detailed .text-container .right {
    padding: 24px;
  }
  h2 {
    font-size: 7vw;
    line-height: normal;
  }
  .players-stats .stats-wrapper {
    padding: 0 24px;
  }
}

@media screen and (max-width: 640px) {
  .players-stats .name-card {
    padding: 0 16px;
  }
}

@media screen and (max-width: 490px) {
  section.hero {
    flex-direction: column;
    height: max-content;
  }

  .hero .text-container {
    position: relative;
    transform: none;
    left: unset;
    top: unset;
  }

  .hero .img-holder-desktop {
    display: none;
  }

  .hero .img-holder-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: end;
  }

  .hero .img-holder-mobile img {
    width: 100%;
    height: auto;
  }
  .hero .text-container h1.title {
    font-size: 11vw;
    line-height: normal;
  }
  .info-cards {
    grid-template-columns: 1fr;
  }
  .players-stats .stats-wrapper {
    gap: 8px;
  }
  .players-stats .number {
    font-size: 5vw;
    line-height: normal;
  }
  .players-stats .game-type {
    font-size: 4.5vw;
    line-height: normal;
  }
  h4 {
    font-size: 5vw;
    line-height: normal;
  }
  .nav-items {
    display: flex;
  }
}

@media screen and (max-width: 393px) {
  .hero {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
      url("https://images.chesscomfiles.com/uploads/ad_image/21793.86f78589.jpg")
        no-repeat center/cover;
  }
  nav .img-holder {
    justify-content: start;
  }
  nav .img-holder img {
    width: 60%;
    height: auto;
  }
}

@media screen and (max-width: 370px) {
  .hero .text-container h1.title {
    font-size: 10vw;
  }
}

@media screen and (max-width: 350px) {
  .hero .text-container .year {
    font-size: 24vw;
    line-height: 100%;
  }
  .hero .text-container .title {
    font-size: 11vw;
    line-height: 100%;
  }

  .hero .text-container .date-place-container .date,
  .hero .text-container .date-place-container .place {
    font-size: 4.5vw;
    line-height: 100%;
  }
}
