html {
  color: black;
  margin: 0;
  padding: 0;
}

body {
  padding: 0;
  margin: 0;
  display: flex;
  font-family: "Lato", sans-serif;
  font-weight: 400;
  font-style: normal;
  background: url('./img/q3logo.jpg') center center;
}

.wrapper {
  padding: 0 35px;
  background: black;
  width: 100vw;
  height: auto;
}

.wrapper:before {
  content: '';
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  background: url(../img/q3logo.jpg) black no-repeat center center;
  background-size: contain;
  opacity: 0.6;
  width: 100%;
  height: 100%;
}

.header {
  position: relative;
  z-index: 1;
  color: red;
  font-size: 35px;
  font-weight: bold;
  display: flex;
  align-items: center;
  flex-direction: column;
}

.headerFirst,
.headerSecond {
  margin: 12px;
}

.headerHighlighted {
  color: white;
}

.content {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}

.playersContainer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: white;
  flex: 1;
}

.playersTitle,
.currentTableTitle,
.scoresTableTitle {
  font-size: 50px;
  color: white;
  -webkit-text-stroke-width: 1px;
  -webkit-text-stroke-color: red;
  margin-bottom: 25px;
}

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

.player:nth-child(odd) {
  flex-direction: row-reverse;
}

.playerName {
  font-size: 40px;
  font-weight: 600;
  padding: 0 15px;
}

.playerDescription {
  line-height: 40px;
  vertical-align: bottom;
  padding: 0 15px;
}

.tournamentTable {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  flex: 2
}

.currentTable,
.scores {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  margin-top: 25px;
}

.row,
.scoresRow {
  height: 60px;
  display: flex;
  width: 69%;
}

.scoresRow a {
  display: flex;
  width: 100%;
  text-decoration: underline;
  text-decoration-color: yellowgreen;
}

.cell,
.scoresCell {
  color: white;
  font-size: 35px;
  text-align: start;
}

.cell:first-child {
  flex: 1;
}

.cell:nth-child(2) {
  flex: 4;
}

.cell:nth-child(3) {
  flex: 1;
  text-align: center;
}

.cell:last-child {
  flex: 1;
  text-align: center;
}

.scoresCell:first-child {
  flex: 4;
}

.scoresCell:nth-child(2) {
  flex: 1;
  text-align: center;
}


.photo {
    display: none;
    position: fixed;
    overflow: hidden;
    overflow-y: auto;
    top: 1%;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    height: 100%;
    z-index: 1000;
    background: black;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.photo:target {
    display: flex;
    justify-content: center;
}

.close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #f00;
    color: #fff;
    padding: 5px 10px;
    text-decoration: none;
    border-radius: 5px;
}

@media only screen and (max-width: 768px) {
  .wrapper {
    padding: 0 10px;
  }
  .content {
    flex-direction: column-reverse;
  }

  .playersTitle,
  .currentTableTitle,
  .scoresTableTitle {
    font-size: 35px;
  }

  .row,
  .scoresRow{
    width: 90%
  }

  .cell {
    font-size: 20px;
  }

  .scoresCell {
    font-size: 16px;
  }

  .playerDescription {
    line-height: 20px;
    padding: 0 7px;
  }

  .playerName {
    font-size: 25px;
    padding: 0 5px;
  }

  .player img {
    width: 20%;
  }

  .photo {
    width: auto;
    height: 80%;
    max-width: 90vw;
  }
}