@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@200;300;400;700&display=swap');

.hidden {
  display: none;
}

* {
  margin: 0px;
  padding: 0px;
}

.background {
  width: 100%;
  height: 100vh;
  padding: 0px;
  margin: 0px;
  display: grid;
  background: linear-gradient(#b1e9fc, #5fbfe5, #b1e9fc);
  overflow: hidden;
  align-items: center;
  justify-content: center;
  grid-template-rows: 1fr 1fr 1fr;
  grid-template-columns: 1fr;
}

.score-box {
  background-color: white;
  padding: 30px 30px;
  display: flex;
  flex-direction: row;
  gap: 50px;
  align-items: center;
  width: 200px;
  margin: 0px;
}

.player--0 > .score-box {
  position: absolute;
  top: 50px;
  left: 50px;
  border: solid 10px #66bddf;
  z-index: 2;
  color: #347992;
}

.player--1 > .score-box {
  position: absolute;
  bottom: 50px;
  right: 50px;
  border: solid 10px #66bddf;
  z-index: 2;
  color: #347992;
}

.score-box h2 {
  font-family: 'montserrat';
  font-weight: bold;
  font-size: 22px;
  text-transform: uppercase;
}

.score-box p {
  font-family: 'montserrat';
  font-size: 22px;
  text-transform: uppercase;
}
.play-area {
  grid-column: 1/2;
  grid-row: 1/4;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-content: center;
}

.play-table {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  padding: 30px;
  gap: 10px;
  background-color: #66bddf;
  z-index: 1;
  width: 60%;
  justify-self: center;
  align-self: center;
  justify-items: center;
}

.card-play {
  padding: 5px;
  width: 90px;
  height: 120px;
  border: solid 2px white;
  background-color: transparent;
  color: white;
  font-size: 20px;
  font-family: 'montserrat';
  text-align: center;
}
#card-play-p-0 {
  grid-column: 2/3;
  grid-row: 1/2;
}
#card-play-p-1 {
  grid-column: 4/5;
  grid-row: 1/2;
}
#card-play-p-2 {
  grid-column: 2/3;
  grid-row: 2/3;
}
#card-play-p-3 {
  grid-column: 4/5;
  grid-row: 2/3;
}
#card-play-p-4 {
  grid-column: 3/4;
  grid-row: 1/2;
}
#card-play-p-5 {
  grid-column: 3/4;
  grid-row: 2/3;
}
#card-play-p-6 {
  grid-column: 1/2;
  grid-row: 1/2;
}
#card-play-p-7 {
  grid-column: 1/2;
  grid-row: 2/3;
}
#card-play-p-8 {
  grid-column: 5/6;
  grid-row: 1/2;
}
#card-play-p-9 {
  grid-column: 5/6;
  grid-row: 2/3;
}
.hand-table {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr;
  gap: 0px;
  padding: 10px 50px;
  margin: 30px 0px;
  background-color: #71c9ec;
  justify-self: center;
  align-self: center;
  z-index: 1;
  width: 40%;
  justify-items: center;
  position: relative;
}

.card-hand {
  position: relative;
  padding: 5px;
  width: 90px;
  height: 120px;
  border: solid 2px white;
  background-color: transparent;
  color: white;
  font-size: 20px;
  font-family: 'montserrat';
  text-align: center;
}

.btns {
  grid-column: 1/2;
  grid-row: 2/3;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  gap: 40px;
  z-index: 0;
  align-items: flex-end;
  justify-content: center;
}

.btn {
  width: 150px;
  height: 60px;
  border: solid 2px white;
  background-color: #3479923b;
  color: white;
  font-size: 20px;
  font-family: 'montserrat';
  margin: 0px 60px;
  text-transform: uppercase;
}
.btn:hover {
  border: solid 2px #347992;
  color: #347992;
  font-size: 20px;
  cursor: pointer;
}

.card {
  width: 100%;
  height: 100%;
}

.card:hover {
  cursor: pointer;
}

.selected {
  opacity: 50%;
}
.card-overlay {
  padding: 0px;
  width: 100%;
  height: 100%;
  background-color: #469fbf;
  top: 0px;
  left: 0px;
  z-index: 15;
  position: absolute;
}

.messages {
  grid-column: 1/2;
  grid-row: 2/3;
  flex-direction: column;
  width: 220px;
  gap: 40px;
  z-index: 5;
  align-items: flex-start;
  justify-content: center;
  margin: 0px 0px 0px 25px;
  background-color: #347992;
}

.messages p {
  width: 150px;
  margin: auto;
  padding: 50px 35px;
  background-color: #469fbf;
  text-align: center;
  font-size: 25px;
  font-family: 'montserrat';
  color: white;
  font-weight: bold;
}

.modal-btn {
  position: absolute;
  right: 10px;
  top: 10px;
  border-radius: 100%;
  background-color: #469fbf;
  margin: 0px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-btn-2 {
  position: absolute;
  right: 90px;
  top: 10px;
  border-radius: 100%;
  background-color: #469fbf;
  margin: 0px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 40px;
}

.modal-btn-2:hover {
  background-color: #469fbf7f;
  cursor: pointer;
}
.modal-btn p {
  color: white;
  font-size: 40px;
  font-family: 'montserrat';
  font-weight: bold;
  text-transform: uppercase;
}

.modal-btn:hover {
  background-color: #469fbf7f;
  cursor: pointer;
}

.imcb {
  background-color: #70bfdc;
}
.imcb:hover {
  background-color: #70bfdca8;
}

.imcb p {
  font-size: 37px;
  font-weight: bold;
}

.modal-text h2 {
  color: white;
  font-weight: bold;
  font-size: 35px;
  font-family: 'montserrat';
}

.modal-text {
  padding: 50px;
}

.text-chunk {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0px 50px;
}
.text-chunk p {
  padding: 0px 0px;
  color: white;
  font-family: 'montserrat';
  font-size: 20px;
}
.text-chunk span {
  padding: 0px 0px;
  color: white;
  font-family: 'montserrat';
  font-size: 25px;
  font-weight: bold;
}
.all-nontitle-text {
  padding: 20px 0px;
}

.modal-box {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100vh;
  background-color: #347992ea;
  z-index: 20;
}

.all-nontitle-points-text {
  padding: 40px 0px 40px 0px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  grid-gap: 100px 100px;
}

.point-category-grid {
  display: grid;
  grid-template-columns: 3fr 1fr 1fr;
  grid-template-rows: 200px;
  width: 100%;
  grid-gap: 50px;
}
.point-category-image {
  grid-column: 3/4;
  grid-row: 1/2;
  width: 150px;
  height: 200px;
  justify-self: end;
  align-self: flex-end;
  padding: 0px 20px 0px 20px;
}
.point-category-text {
  grid-column: 1/2;
  grid-row: 1/2;
  align-self: center;
}
.point-category-text p {
  padding: 30px 20px;
}
.point-category-points {
  grid-column: 2/3;
  grid-row: 1/2;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  gap: 55px;
  padding: 43px 0px;
}
.pmcb {
  background-color: #70bfdc;
}
.pmcb:hover {
  background-color: #70bfdca8;
}

.pmcb p {
  font-size: 30px;
  font-weight: bold;
}
.modal-text-winner {
  display: flex;
  flex-direction: row;
  height: 100vh;
  align-items: center;
  justify-content: center;
}
.winner-modal h1 {
  color: white;
  font-size: 130px;
  text-align: center;
  font-family: 'montserrat';
  font-weight: bold;
}

.modal-text-next {
  display: flex;
  flex-direction: column;
  height: 100vh;
  align-items: center;
  justify-content: center;
}
.next-modal {
  color: white;
  text-align: center;
  font-family: 'montserrat';
  font-weight: bold;
}
.next-modal h1 {
  color: white;
  font-size: 80px;
  text-align: center;
  font-family: 'montserrat';
  font-weight: bold;
}

.next-btn {
  display: flex;
  align-content: center;
  justify-content: center;
  background-color: #70bfdc;
  color: white;
  margin: 0px;
  width: 150px;
  height: 70px;
}
.next-btn:hover {
  background-color: #70bfdca8;
  cursor: pointer;
}

.next-btn p {
  font-size: 50px;
  font-weight: bold;
}

@media screen and (max-width: 1300px) {
  .score-box {
    background-color: white;
    padding: 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    width: 120px;
    margin: 0px;
  }

  .player--0 > .score-box {
    top: 30px;
  }

  .player--1 > .score-box {
    bottom: 30px;
  }
  .btns {
    width: 100%;
  }

  .btn {
    width: 120px;
    height: 60px;
    margin: 0px 20px;
  }
  .messages {
    margin: 0px 0px 0px 0px;
  }

  .messages p {
    width: 120px;
    margin: auto;
    padding: 50px 20px;
    background-color: #469fbf;
    text-align: center;
    font-size: 25px;
    font-family: 'montserrat';
    color: white;
    font-weight: bold;
  }
}

@media screen and (max-width: 1100px) {
  .messages {
    z-index: 5;
    width: 91%;
    margin-bottom: 47px;
  }
  .messages p {
    display: grid;
    width: 100%;
    height: 50px;
    z-index: 10;
    align-self: center;
    justify-self: center;
    align-items: center;
    justify-items: center;
    text-align: center;
  }
}
@media screen and (max-width: 950px) {
  .btns {
    grid-column: 1/2;
    grid-row: 1/3;
    gap: 0px;
    justify-content: flex-start;
  }

  .btn {
    margin: 30px 50px 10px 50px;
  }

  .player--0 > .score-box {
    left: 30px;
  }

  .player--1 > .score-box {
    right: 30px;
  }
}

@media screen and (max-width: 950px) {
  .play-table {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    padding: 20px 0px 20px 0px;
    row-gap: 10px;
    background-color: #66bddf;
    z-index: 1;
    width: 100%;
    justify-self: center;
    align-self: center;
    justify-items: center;
  }
  .card-play {
    padding: 0px;
    width: 70px;
    height: 90px;
  }
  .card-hand {
    position: relative;
    width: 70px;
    height: 90px;
    border: solid 2px white;
    background-color: transparent;
    color: white;
    font-size: 20px;
    font-family: 'montserrat';
    text-align: center;
  }
  .hand-table {
    padding: 10px 10px;
  }

  .modal-btn {
    position: absolute;
    top: 92%;
    left: 10px;
    border-radius: 100%;
    background-color: #469fbf;
    margin: 0px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
  }
  .modal-btn-2 {
    position: absolute;
    top: 92%;
    left: 80px;
    border-radius: 100%;
    background-color: #469fbf;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    color: white;
    font-size: 40px;
    width: 50px;
    height: 50px;
    margin: 0px;
  }
  .modal-text h2 {
    font-size: 30px;
  }

  .modal-text {
    padding: 10px;
  }
  .all-nontitle-points-text {
    padding: 30px 0px 0px 0px;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr 1fr 1fr;
    grid-gap: 0px 0px;
  }
  .text-chunk {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin: 0px 0px 0px -50px;
  }
  .text-chunk p {
    padding: 0px 0px;
    color: white;
    font-family: 'montserrat';
    font-size: 18px;
  }
  .text-chunk span {
    padding: 0px 0px;
    color: white;
    font-family: 'montserrat';
    font-size: 20px;
    font-weight: bold;
  }
  .all-nontitle-text {
    padding: 0px 0px;
  }
  .point-category-grid {
    display: grid;
    grid-template-columns: 125px 60px 80px;
    grid-template-rows: 1fr;
    grid-gap: 0px 0px;
    padding-bottom: 50px;
  }

  .point-category-image {
    grid-column: 3/4;
    grid-row: 1/2;
    width: 80px;
    height: 110px;
    justify-self: flex-end;
    align-self: flex-start;
    padding: 0px 10px 0px 0px;
  }
  .point-category-text {
    grid-column: 1/2;
    grid-row: 1/2;
    align-self: flex-start;
  }
  .point-category-text p {
    padding: 0px 0px 27px 10px;
  }
  .point-category-points {
    grid-column: 2/3;
    grid-row: 1/2;
    align-self: flex-start;
    justify-self: flex-start;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0px 0px 0px 10px;
    border-left: white solid 1.5px;
  }
  .winner-modal h1 {
    font-size: 80px;
  }
}

@media screen and (max-width: 750px) {
  .score-box {
    flex-direction: row;
    gap: 50px;
    align-items: center;
    width: 150px;
    margin: 0px;
  }
  .player--0 > .score-box {
    position: absolute;
    top: 0px;
    left: 0px;
    border: solid 10px #66bddf;
    z-index: 2;
    color: #347992;
  }

  .player--1 > .score-box {
    position: absolute;
    bottom: 0px;
    right: 0px;
    border: solid 10px #66bddf;
    z-index: 2;
    color: #347992;
  }
  .score-box h2 {
    font-size: 16px;
  }

  .score-box p {
    font-size: 16px;
    text-transform: uppercase;
  }
  .hand-table {
    width: 70%;
  }
}

@media screen and (max-width: 700px) {
  .score-box {
    flex-direction: row;
    gap: 30px;
    align-items: center;
    width: 125px;
    margin: 0px;
  }
  .player--0 > .score-box {
    position: absolute;
    top: 0px;
    left: 0px;
    border: solid 5px #66bddf;
    z-index: 2;
    color: #347992;
  }

  .player--1 > .score-box {
    position: absolute;
    bottom: 0px;
    right: 0px;
    border: solid 5px #66bddf;
    z-index: 2;
    color: #347992;
  }
  .score-box h2 {
    font-size: 16px;
  }

  .score-box p {
    font-size: 16px;
    text-transform: uppercase;
  }
  .hand-table {
    width: 70%;
  }
  .play-area {
    margin-bottom: 50px;
  }
  .btns {
    grid-column: 1/2;
    grid-row: 1/3;
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
    gap: 0px;
    z-index: 0;
    align-items: flex-start;
    justify-content: flex-end;
  }

  .btn {
    width: 90px;
    height: 45px;
    margin: 20px 10px;
    font-size: 16px;
  }
  .btn:hover {
    font-size: 16px;
  }
  .next-modal h1 {
    font-size: 60px;
  }
}
