@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400;1,500;1,600;1,700;1,800&family=Pixelify+Sans:wght@400..700&family=Rethink+Sans:ital,wght@0,400..800;1,400..800&display=swap');

body {
  margin: 0;
  text-align: center;
  font-family: 'Press Start 2P', cursive;
  user-select: none;
}

header {
  margin: 0 auto;
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}

h1 {
  /* background: url("./btto-set.png") 0% 340px; */
  padding: 1.2rem 0;
  margin: 0;
}

.score-container {
  display: flex;
  justify-content: space-between;
  padding: 8px 6px;
  background: #20c997;
}

.modal {
  display: none;
  /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  /* Semi-transparent black */
  color: white;
  z-index: 1000;
  justify-content: center;
  align-items: center;
  font-family: Arial, sans-serif;
  text-align: center;
}

.modal-content {
  background: transparent;
  /* No background since the modal covers the screen */
  color: white;
  padding: 20px;
  border-radius: 10px;
}

.modal-content h1 {
  font-size: 2em;
  margin-bottom: 20px;
  background: none;
}

.modal-content p {
  font-size: 1.2em;
  margin-bottom: 20px;
}

.modal-content p#final-score{
  font-size: 1.7em;
}

.modal-content ul {
  font-size: 1em;
  list-style: none;
  padding: 0;
}

.modal-content ul li {
  margin-bottom: 10px;
}

button {
  background: #007bff;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 1em;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 20px;
}

button:hover {
  background: #0056b3;
}


.b2to-2-start-modal,
.b2to-2-end-modal {
  display: flex;
  border-radius: none;


}

@media only screen and (max-width: 550px) {

  .b2to-2-start-modal,
  .b2to-2-end-modal {
    display: block;
    overflow-y: scroll;
  }
}

.b2to-2-start-modal .modal-close-btn,
.b2to-2-end-modal .modal-close-btn {
  display: flex;
  justify-content: flex-end;
}

.b2to-2-start-modal .modal-close-btn button,
.b2to-2-end-modal .modal-close-btn button {
  padding: 0;
}

.b2to-2-start-modal .modal-content,
.b2to-2-end-modal .modal-content {
  background-color: #ffffff;
  max-width: 444px;
  border-radius: 0;
}

.bto2-modal-logo {
  max-width: 312px;
}

.b2to-2-start-modal .modal-content p,
.b2to-2-start-modal .modal-content h2,
.b2to-2-end-modal .modal-content p,
.b2to-2-end-modal .modal-content h2 {
  color: #000000;
  text-align: left;
  font-family: "Pixelify Sans", serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
  line-height: 26px;
  font-size: 15px;
}

.b2to-2-start-modal .modal-content a,
.b2to-2-end-modal .modal-content a {
  color: #3C718A;
}

.b2to-2-start-modal .modal-content h2,
.b2to-2-end-modal .modal-content h2 {
  font-size: 18px;
}

.b2to-2-start-modal #start-button,
.b2to-2-end-modal #start-button,
#retry-button,
.b2to-2-start-modal #start-button:hover,
.b2to-2-end-modal #start-button:hover,
#retry-button:hover,
#close-button,
#close-button:hover,
#close2-button,
#close2-button:hover {
  padding: 0;
  background-color: transparent;
  outline-offset: 5px;
  margin: 0;
}

hr {
  background-color: #66D0E6;
  height: 2px;
  border: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
  border: 0;
}

.share-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 30px;
}

.share-link-wrapper {
  display: flex;
  gap: 8px;
}

.share-links {
  outline-offset: 2px;
}

.share-links img{
  max-width: 32px;
}

.top-content p,
.top-content h2 {
  text-align: center !important;
}